Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockUSDCFaucet

Hierarchy

  • MockUSDCFaucet

Index

Constructors

Properties

connection: Connection
mockUSDCFaucetStatePublicKey?: PublicKey
opts?: ConfirmOptions
program: Program<Idl>
provider: default
wallet: IWallet

Methods

  • createAssociatedTokenAccountAndMintTo(userPublicKey: PublicKey, amount: BN): Promise<[PublicKey, string]>
  • createAssociatedTokenAccountAndMintToInstructions(userPublicKey: PublicKey, amount: BN): Promise<[PublicKey, TransactionInstruction, TransactionInstruction]>
  • fetchState(): Promise<any>
  • getMockUSDCFaucetStatePublicKey(): Promise<PublicKey>
  • getMockUSDCFaucetStatePublicKeyAndNonce(): Promise<[PublicKey, number]>
  • getTokenAccountInfo(props: { userPubKey: PublicKey }): Promise<AccountInfo>
  • initialize(): Promise<string>
  • mintToUser(userTokenAccount: PublicKey, amount: BN): Promise<string>
  • subscribeToTokenAccount(props: { userPubKey: PublicKey; callback: any }): Promise<boolean>

Generated using TypeDoc