Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • StakeAccount

Index

Properties

program: Program<StakeIdl>
stakeAccount: StakeAccountInfo
voterWeightRecord: VoterWeightRecord

Methods

  • addStake(provider: AnchorProvider, stakePool: StakePool, owner: PublicKey, collateralTokenAccount: PublicKey, amount: BN): Promise<string>
  • TODO:

    static
    memberof

    StakeAccount

    Parameters

    • provider: AnchorProvider
    • stakePool: StakePool
    • owner: PublicKey
    • collateralTokenAccount: PublicKey
    • amount: BN

    Returns Promise<string>

  • create(stakeProgram: Program<StakeIdl>, stakePool: PublicKey, owner: PublicKey, payer: PublicKey): Promise<string>
  • TODO:

    static
    memberof

    StakeAccount

    Parameters

    • stakeProgram: Program<StakeIdl>
    • stakePool: PublicKey
    • owner: PublicKey
    • payer: PublicKey

    Returns Promise<string>

  • exists(stakeProgram: Program<StakeIdl>, stakePool: PublicKey, owner: PublicKey): Promise<boolean>
  • TODO:

    static
    memberof

    StakeAccount

    Parameters

    • stakeProgram: Program<StakeIdl>
    • stakePool: PublicKey
    • owner: PublicKey

    Returns Promise<boolean>

  • load(stakeProgram: Program<StakeIdl>, stakePool: PublicKey, owner: PublicKey): Promise<StakeAccount>
  • withAddStake(instructions: TransactionInstruction[], stakePool: StakePool, owner: PublicKey, payer: PublicKey, tokenAccount: PublicKey, amount?: null | BN): Promise<void>
  • TODO:

    static
    memberof

    StakeAccount

    Parameters

    • instructions: TransactionInstruction[]
    • stakePool: StakePool
    • owner: PublicKey
    • payer: PublicKey
    • tokenAccount: PublicKey
    • amount: null | BN = null

    Returns Promise<void>

  • withCreate(instructions: TransactionInstruction[], stakeProgram: Program<StakeIdl>, stakePool: PublicKey, owner: PublicKey, payer: PublicKey): Promise<void>
  • TODO:

    static
    memberof

    StakeAccount

    Parameters

    • instructions: TransactionInstruction[]
    • stakeProgram: Program<StakeIdl>
    • stakePool: PublicKey
    • owner: PublicKey
    • payer: PublicKey

    Returns Promise<void>

Generated using TypeDoc