Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Methods

  • getAssociatedAuthority(__namedParameters: { poolId: PublicKey; programId: PublicKey }): Promise<{ nonce: number; publicKey: PublicKey }>
  • Parameters

    • __namedParameters: { poolId: PublicKey; programId: PublicKey }
      • poolId: PublicKey
      • programId: PublicKey

    Returns Promise<{ nonce: number; publicKey: PublicKey }>

  • getAssociatedLedgerAccount(__namedParameters: { owner: PublicKey; poolId: PublicKey; programId: PublicKey }): Promise<PublicKey>
  • Parameters

    • __namedParameters: { owner: PublicKey; poolId: PublicKey; programId: PublicKey }
      • owner: PublicKey
      • poolId: PublicKey
      • programId: PublicKey

    Returns Promise<PublicKey>

  • getAssociatedLedgerPoolAccount(__namedParameters: { mint: PublicKey; poolId: PublicKey; programId: PublicKey; type: "lpVault" | "rewardVault" }): Promise<PublicKey>
  • Parameters

    • __namedParameters: { mint: PublicKey; poolId: PublicKey; programId: PublicKey; type: "lpVault" | "rewardVault" }
      • mint: PublicKey
      • poolId: PublicKey
      • programId: PublicKey
      • type: "lpVault" | "rewardVault"

    Returns Promise<PublicKey>

  • Parameters

    • version: number

    Returns FarmLedgerLayout

  • getProgramId(version: number): PublicKey
  • Parameters

    • version: number

    Returns PublicKey

  • Parameters

    • version: number

    Returns FarmStateLayout

  • Parameters

    Returns Promise<{ instructions: TransactionInstruction[]; newAccounts: Signer[] }>

  • Parameters

    Returns Promise<{ instructions: TransactionInstruction[]; newAccounts: Signer[] }>

  • Parameters

    Returns Promise<{ instructions: TransactionInstruction[]; newAccounts: Signer[] }>

  • makeRestartFarmInstructionV6(__namedParameters: FarmRestartInstructionParamsV6): Promise<{ instructions: TransactionInstruction[]; newAccounts: Signer[] }>
  • Parameters

    Returns Promise<{ instructions: TransactionInstruction[]; newAccounts: Signer[] }>

  • updatePoolInfo(poolInfo: FarmState, lpVault: { amount: BN; closeAuthority: PublicKey; closeAuthorityOption: number; delegate: PublicKey; delegateOption: number; delegatedAmount: BN; isNative: BN; isNativeOption: number; mint: PublicKey; owner: PublicKey; state: number }, slot: number, chainTime: number): FarmState
  • Parameters

    • poolInfo: FarmState
    • lpVault: { amount: BN; closeAuthority: PublicKey; closeAuthorityOption: number; delegate: PublicKey; delegateOption: number; delegatedAmount: BN; isNative: BN; isNativeOption: number; mint: PublicKey; owner: PublicKey; state: number }
      • amount: BN
      • closeAuthority: PublicKey
      • closeAuthorityOption: number
      • delegate: PublicKey
      • delegateOption: number
      • delegatedAmount: BN
      • isNative: BN
      • isNativeOption: number
      • mint: PublicKey
      • owner: PublicKey
      • state: number
    • slot: number
    • chainTime: number

    Returns FarmState