Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Award

Index

Constructors

Properties

Methods

Constructors

Properties

addresses: AwardAddresses
award: AwardInfo

Methods

  • Derive the award account and vault token account PDAs

    static
    memberof

    Award

    Parameters

    • stakeAccount: PublicKey
    • seed: string

    Returns AwardAddresses

  • load(rewardsProgram: Program<RewardsIdl>, stakeAccount: PublicKey, seed: string): Promise<Award>
  • Load the award account and its vault

    static
    memberof

    Award

    Parameters

    • rewardsProgram: Program<RewardsIdl>
    • stakeAccount: PublicKey
    • seed: string

    Returns Promise<Award>

  • use(rewardsProgram: undefined | Program<RewardsIdl>, stakeAccount: undefined | PublicKey, seed: string): undefined | Award
  • React hook to use the award account and its vault

    static
    memberof

    Award

    Parameters

    • rewardsProgram: undefined | Program<RewardsIdl>
    • stakeAccount: undefined | PublicKey
    • seed: string

    Returns undefined | Award

Generated using TypeDoc