Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PersistentMarket

Index

Constructors

Methods

Constructors

constructor

  • Parameters

    • prefix: string

      A prefix to use for every key of this map

    Returns PersistentMarket

Methods

add

  • add(tokenId: TokenId, accountId: AccountId, bid: Bid): void
  • Sets the bid for tokenID

    Parameters

    • tokenId: TokenId
    • accountId: AccountId
    • bid: Bid

    Returns void

get

  • Parameters

    • tokenId: TokenId

    Returns BidsByBidder

    An object of bids for tokenId

get_by_bidder

  • get_by_bidder(accountId: AccountId): Bid[]
  • Parameters

    • accountId: AccountId

    Returns Bid[]

    An array of bids by accountId

has

  • has(token_id: TokenId): bool
  • Parameters

    • token_id: TokenId

      ID of token to check if bids exists

    Returns bool

remove

  • remove(tokenId: TokenId, accountId: AccountId): void
  • Remove the bid for tokenID

    Parameters

    • tokenId: TokenId
    • accountId: AccountId

    Returns void

Generated using TypeDoc