Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Airdrop

Index

Constructors

Properties

airdrop: AirdropInfo
airdropAddress: PublicKey
rewardsVault: AssociatedToken
rewardsVaultAddress: PublicKey
targetInfo: AirdropTargetInfo

Methods

  • claim(rewardsProgram: Program<RewardsIdl>, airdrop: Airdrop, stakePool: StakePool, owner: PublicKey): Promise<TransactionInstruction[]>
  • deriveRewardsVault(airdrop: PublicKey): PublicKey
  • Derives the reward vault for the airdrop

    static
    memberof

    Airdrop

    Parameters

    • airdrop: PublicKey

    Returns PublicKey

  • load(rewardsProgram: Program<RewardsIdl>, airdropAddress: PublicKey): Promise<Airdrop>
  • Loads the airdrop account and its reward vault

    static
    memberof

    Airdrop

    Parameters

    • rewardsProgram: Program<RewardsIdl>
    • airdropAddress: PublicKey

    Returns Promise<Airdrop>

  • loadAll(rewardsProgram: Program<RewardsIdl>, stakePoolVault: PublicKey): Promise<Airdrop[]>
  • Loads the airdrop accounts associating with the stake pool vault

    static
    memberof

    Airdrop

    Parameters

    • rewardsProgram: Program<RewardsIdl>
    • stakePoolVault: PublicKey

    Returns Promise<Airdrop[]>

  • use(rewardsProgram: undefined | Program<RewardsIdl>, airdrop: undefined | PublicKey): undefined | Airdrop
  • React hook to use the airdrop account and its hook

    static
    memberof

    Airdrop

    Parameters

    • rewardsProgram: undefined | Program<RewardsIdl>
    • airdrop: undefined | PublicKey

    Returns undefined | Airdrop

  • useAll(rewardsProgram: undefined | Program<RewardsIdl>, stakePoolVault: undefined | PublicKey): undefined | Airdrop[]
  • withClaim(instructions: TransactionInstruction[], rewardsProgram: Program<RewardsIdl>, airdrop: Airdrop, stakePool: StakePool, owner: PublicKey): Promise<void>

Generated using TypeDoc