Skip to main content

FungibleTokenClaimContract

Hierarchy

  • unknown
    • FungibleTokenClaimContract

Index

Constructors

constructor

Properties

events

events: { claim: typeof ClaimEvent; offer: typeof ClaimEvent; updateWhitelist: any; withdraw: typeof ClaimEvent } = ...

Type declaration

  • claim: typeof ClaimEvent
  • offer: typeof ClaimEvent
  • updateWhitelist: any
  • withdraw: typeof ClaimEvent

maxAmount

maxAmount: any = ...

owner

owner: any = ...

token

token: any = ...

whitelist

whitelist: any = ...

Methods

claim

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

    • amount: UInt64

    Returns Promise<void>

deploy

initialize

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

    • owner: PublicKey
    • token: PublicKey
    • amount: UInt64

    Returns Promise<void>

offer

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

    • amount: 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>