Baz.VenueAdapter behaviour (baz v0.0.2)

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

get_collection_assets_by_slug_result()

@type get_collection_assets_by_slug_result() ::
  [Ecto.Changeset.t()] | {:error, shared_errors()}
Link to this type

get_collection_by_slug_result()

@type get_collection_by_slug_result() ::
  Ecto.Changeset.t() | {:error, shared_errors()}
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

get_collection_assets_by_slug(venue, address, token_ids)

@callback get_collection_assets_by_slug(venue(), address(), token_ids()) ::
  get_collection_assets_by_slug_result()
Link to this callback

get_collection_by_slug(venue, collection_slug)

@callback get_collection_by_slug(venue(), collection_slug()) ::
  get_collection_by_slug_result()

Link to this section Functions

Link to this function

get_collection_assets_by_slug(venue, collection_address, token_ids)

@spec get_collection_assets_by_slug(venue(), address(), token_ids()) ::
  get_collection_assets_by_slug_result()
Link to this function

get_collection_by_slug(venue, slug)

@spec get_collection_by_slug(venue(), collection_slug()) ::
  get_collection_by_slug_result()