Baz.VenueAdapter behaviour (baz v0.0.6)

Link to this section Summary

Link to this section Types

@type address() :: String.t()
Link to this type

collection()

@type collection() :: Baz.Collections.Collection.t()
Link to this type

collection_slug()

@type collection_slug() :: String.t()
Link to this type

fetch_collection_asset_page_by_slug_result()

@type fetch_collection_asset_page_by_slug_result() ::
  Baz.Page.t() | {:error, shared_errors()}
Link to this type

fetch_collection_by_slug_result()

@type fetch_collection_by_slug_result() :: collection() | {:error, shared_errors()}
Link to this type

fetch_collection_event_page_by_slug_result()

@type fetch_collection_event_page_by_slug_result() ::
  Baz.Page.t() | {:error, shared_errors()}
Link to this type

page_cursor()

@type page_cursor() :: Baz.Page.cursor()
Link to this type

shared_errors()

@type shared_errors() :: :not_implemented | {:unhandled, term()} | term()
@type token_id() :: non_neg_integer()
@type token_ids() :: [token_id()]
@type venue() :: struct()

Link to this section Callbacks

Link to this callback

fetch_collection_asset_page_by_slug(venue, collection_slug, token_ids, page_cursor)

@callback fetch_collection_asset_page_by_slug(
  venue(),
  collection_slug(),
  token_ids(),
  page_cursor()
) ::
  fetch_collection_asset_page_by_slug_result()
Link to this callback

fetch_collection_by_slug(venue, collection_slug)

@callback fetch_collection_by_slug(venue(), collection_slug()) ::
  fetch_collection_by_slug_result()
Link to this callback

fetch_collection_event_page_by_slug(venue, collection_slug, token_ids, page_cursor)

@callback fetch_collection_event_page_by_slug(
  venue(),
  collection_slug(),
  token_ids(),
  page_cursor()
) ::
  fetch_collection_event_page_by_slug_result()

Link to this section Functions

Link to this function

fetch_collection_asset_page_by_slug(venue, slug, token_ids, page_cursor)

@spec fetch_collection_asset_page_by_slug(
  venue(),
  collection_slug(),
  token_ids(),
  page_cursor()
) ::
  fetch_collection_asset_page_by_slug_result()
Link to this function

fetch_collection_by_slug(venue, slug)

@spec fetch_collection_by_slug(venue(), collection_slug()) ::
  fetch_collection_by_slug_result()
Link to this function

fetch_collection_event_page_by_slug(venue, slug, token_ids, page_cursor)

@spec fetch_collection_event_page_by_slug(
  venue(),
  collection_slug(),
  token_ids(),
  page_cursor()
) ::
  fetch_collection_event_page_by_slug_result()