import { SPL_STAKE_POOL_PROGRAM_ADDRESS } from "../programs/splStakePool.js"; import "../programs/index.js"; import { AccountMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlyUint8Array, WritableAccount } from "@solana/kit"; //#region src/generated/instructions/updateStakePoolBalance.d.ts export declare const UPDATE_STAKE_POOL_BALANCE_DISCRIMINATOR = 7; export declare function getUpdateStakePoolBalanceDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateStakePoolBalanceInstruction = string, TAccountWithdrawAuthority extends string | AccountMeta = string, TAccountValidatorList extends string | AccountMeta = string, TAccountReserveStake extends string | AccountMeta = string, TAccountFeeAccount extends string | AccountMeta = string, TAccountPoolMint extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? WritableAccount : TAccountStakePool, TAccountWithdrawAuthority extends string ? ReadonlyAccount : TAccountWithdrawAuthority, TAccountValidatorList extends string ? WritableAccount : TAccountValidatorList, TAccountReserveStake extends string ? ReadonlyAccount : TAccountReserveStake, TAccountFeeAccount extends string ? WritableAccount : TAccountFeeAccount, TAccountPoolMint extends string ? WritableAccount : TAccountPoolMint, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts]>; export type UpdateStakePoolBalanceInstructionData = { discriminator: number; }; export type UpdateStakePoolBalanceInstructionDataArgs = {}; export declare function getUpdateStakePoolBalanceInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateStakePoolBalanceInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateStakePoolBalanceInstructionDataCodec(): FixedSizeCodec; export type UpdateStakePoolBalanceAsyncInput = { stakePool: Address; withdrawAuthority?: Address; validatorList: Address; reserveStake: Address; feeAccount: Address; poolMint: Address; tokenProgram?: Address; }; /** * Updates total pool balance based on balances in the reserve and * validator list * 0. `[w]` Stake pool * 1. `[]` Stake pool withdraw authority * 2. `[w]` Validator stake list storage account * 3. `[]` Reserve stake account * 4. `[w]` Account to receive pool fee tokens * 5. `[w]` Pool mint account * 6. `[]` Pool token program */ export declare function getUpdateStakePoolBalanceInstructionAsync(input: UpdateStakePoolBalanceAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateStakePoolBalanceInput = { stakePool: Address; withdrawAuthority: Address; validatorList: Address; reserveStake: Address; feeAccount: Address; poolMint: Address; tokenProgram?: Address; }; /** * Updates total pool balance based on balances in the reserve and * validator list * 0. `[w]` Stake pool * 1. `[]` Stake pool withdraw authority * 2. `[w]` Validator stake list storage account * 3. `[]` Reserve stake account * 4. `[w]` Account to receive pool fee tokens * 5. `[w]` Pool mint account * 6. `[]` Pool token program */ export declare function getUpdateStakePoolBalanceInstruction(input: UpdateStakePoolBalanceInput, config?: { programAddress?: TProgramAddress; }): UpdateStakePoolBalanceInstruction; export type ParsedUpdateStakePoolBalanceInstruction = { programAddress: Address; accounts: { stakePool: TAccountMetas[0]; withdrawAuthority: TAccountMetas[1]; validatorList: TAccountMetas[2]; reserveStake: TAccountMetas[3]; feeAccount: TAccountMetas[4]; poolMint: TAccountMetas[5]; tokenProgram: TAccountMetas[6]; }; data: UpdateStakePoolBalanceInstructionData; }; export declare function parseUpdateStakePoolBalanceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateStakePoolBalanceInstruction; //#endregion //# sourceMappingURL=updateStakePoolBalance.d.ts.map