Skip to main content

FungibleTokenBidContract

Hierarchy

  • unknown
    • FungibleTokenBidContract

Index

Constructors

constructor

Properties

buyer

buyer: any = ...

events

events: { bid: typeof BidEvent; sell: typeof BidEvent; updateWhitelist: any; withdraw: typeof BidEvent } = ...

Type declaration

price

price: any = ...

token

token: any = ...

whitelist

whitelist: any = ...

Methods

bid

  • bid(amount: UInt64, price: UInt64): Promise<void>
  • Parameters

    • amount: UInt64
    • price: UInt64

    Returns Promise<void>

deploy

initialize

  • initialize(token: PublicKey, amount: UInt64, price: UInt64): Promise<void>
  • Parameters

    • token: PublicKey
    • amount: UInt64
    • price: UInt64

    Returns Promise<void>

sell

  • sell(amount: UInt64): Promise<void>
  • Parameters

    • amount: UInt64

    Returns Promise<void>

updateWhitelist

  • updateWhitelist(whitelist: Whitelist): Promise<void>
  • Parameters

    • whitelist: Whitelist

    Returns Promise<void>

withdraw

  • withdraw(amountInMina: UInt64): Promise<void>
  • Parameters

    • amountInMina: UInt64

    Returns Promise<void>