Hierarchy

Constructors

Properties

accountClosedListener: null | ((update: AccountClosedUpdate) => void)
accountDiscriminants: {
    registeredStake: Readonly<Buffer>;
    stakingAccount: Readonly<Buffer>;
    stakingVars: Readonly<Buffer>;
}

Type declaration

  • registeredStake: Readonly<Buffer>
  • stakingAccount: Readonly<Buffer>
  • stakingVars: Readonly<Buffer>
parsers: {
    registeredStake: (new (...args: never[]) => RegisteredStake & Account) & AccountStatic<RegisteredStake, AtlasStakingIDL>;
    stakingAccount: (new (...args: never[]) => UserStake & Account) & AccountStatic<UserStake, AtlasStakingIDL>;
    stakingVars: (new (...args: never[]) => StakingVars & Account) & AccountStatic<StakingVars, AtlasStakingIDL>;
}

Type declaration

program: ProgramMethods<AtlasStakingIDL>

Accessors

  • get programId(): PublicKey
  • Returns PublicKey

Methods

  • Parameters

    • data: Buffer

    Returns null | {
        discriminantLength: number;
        key: "registeredStake" | "stakingAccount" | "stakingVars";
    }

  • Parameters

    • discriminant: Buffer

    Returns null | {
        discriminantLength: number;
        key: "registeredStake" | "stakingAccount" | "stakingVars";
    }

  • Parameters

    • key: PublicKey
    • oldOwner: PublicKey
    • newOwner: PublicKey
    • slot: number
    • confirmationStatus: "recent" | TransactionConfirmationStatus
    • writeVersion: number
    • accountInfo: AccountInfo<Buffer>

    Returns void

  • Parameters

    • account: KeyedAccountInfo
    • slot: number
    • confirmationStatus: "recent" | TransactionConfirmationStatus
    • isStartup: boolean
    • writeVersion: number
    • Optional unknownAccountHandler: ((key: PublicKey) => void)
        • (key: PublicKey): void
        • Parameters

          • key: PublicKey

          Returns void

    Returns void

  • Type Parameters

    Parameters

    • accountId: AccountId
    • account: AtlasStakingAccounts[AccountId]
    • slot: number
    • confirmationStatus: "recent" | TransactionConfirmationStatus
    • isStartup: boolean
    • accountInfo: AccountInfo<Buffer>
    • writeVersion: number

    Returns void

  • Parameters

    • listener: ((update: AccountClosedUpdate) => null | void)
        • (update: AccountClosedUpdate): null | void
        • Parameters

          • update: AccountClosedUpdate

          Returns null | void

    Returns void

  • Parameters

    • programId: PublicKey
    • Optional provider: default
    • Optional coder: Coder<string, string>

    Returns AtlasStakingIDLProgram

Generated using TypeDoc