Skip to main content

FungibleTokenOfferContract

Hierarchy

  • unknown
    • FungibleTokenOfferContract

Index

Constructors

constructor

Properties

events

events: { buy: typeof OfferEvent; offer: typeof OfferEvent; updateWhitelist: any; withdraw: typeof OfferEvent } = ...

Type declaration

price

price: any = ...

seller

seller: any = ...

token

token: any = ...

whitelist

whitelist: any = ...

Methods

buy

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

    • amount: UInt64

    Returns Promise<void>

deploy

initialize

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

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

    Returns Promise<void>

offer

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

    • amount: UInt64
    • price: UInt64

    Returns Promise<void>

updateWhitelist

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

    • whitelist: Whitelist

    Returns Promise<void>

withdraw

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

    • amount: UInt64

    Returns Promise<void>