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/updateValidatorListBalance.d.ts export declare const UPDATE_VALIDATOR_LIST_BALANCE_DISCRIMINATOR = 6; export declare function getUpdateValidatorListBalanceDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateValidatorListBalanceInstruction = string, TAccountWithdrawAuthority extends string | AccountMeta = string, TAccountValidatorList extends string | AccountMeta = string, TAccountReserveStake extends string | AccountMeta = string, TAccountClockSysvar extends string | AccountMeta = "SysvarC1ock11111111111111111111111111111111", TAccountStakeHistorySysvar extends string | AccountMeta = "SysvarStakeHistory1111111111111111111111111", TAccountStakeProgram extends string | AccountMeta = "Stake11111111111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[TAccountStakePool extends string ? ReadonlyAccount : TAccountStakePool, TAccountWithdrawAuthority extends string ? ReadonlyAccount : TAccountWithdrawAuthority, TAccountValidatorList extends string ? WritableAccount : TAccountValidatorList, TAccountReserveStake extends string ? WritableAccount : TAccountReserveStake, TAccountClockSysvar extends string ? ReadonlyAccount : TAccountClockSysvar, TAccountStakeHistorySysvar extends string ? ReadonlyAccount : TAccountStakeHistorySysvar, TAccountStakeProgram extends string ? ReadonlyAccount : TAccountStakeProgram, ...TRemainingAccounts]>; export type UpdateValidatorListBalanceInstructionData = { discriminator: number; startIndex: number; noMerge: boolean; }; export type UpdateValidatorListBalanceInstructionDataArgs = { startIndex: number; noMerge: boolean; }; export declare function getUpdateValidatorListBalanceInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateValidatorListBalanceInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateValidatorListBalanceInstructionDataCodec(): FixedSizeCodec; export type UpdateValidatorListBalanceAsyncInput = { stakePool: Address; withdrawAuthority?: Address; validatorList: Address; reserveStake: Address; clockSysvar?: Address; stakeHistorySysvar?: Address; stakeProgram?: Address; startIndex: UpdateValidatorListBalanceInstructionDataArgs["startIndex"]; noMerge: UpdateValidatorListBalanceInstructionDataArgs["noMerge"]; }; /** * Updates balances of validator and transient stake accounts in the pool * While going through the pairs of validator and transient stake * accounts, if the transient stake is inactive, it is merged into the * reserve stake account. If the transient stake is active and has * matching credits observed, it is merged into the canonical * validator stake account. In all other states, nothing is done, and * the balance is simply added to the canonical stake account balance. * 0. `[]` Stake pool * 1. `[]` Stake pool withdraw authority * 2. `[w]` Validator stake list storage account * 3. `[w]` Reserve stake account * 4. `[]` Sysvar clock * 5. `[]` Sysvar stake history * 6. `[]` Stake program * 7. `..7+2N` [] N pairs of validator and transient stake accounts */ export declare function getUpdateValidatorListBalanceInstructionAsync(input: UpdateValidatorListBalanceAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type UpdateValidatorListBalanceInput = { stakePool: Address; withdrawAuthority: Address; validatorList: Address; reserveStake: Address; clockSysvar?: Address; stakeHistorySysvar?: Address; stakeProgram?: Address; startIndex: UpdateValidatorListBalanceInstructionDataArgs["startIndex"]; noMerge: UpdateValidatorListBalanceInstructionDataArgs["noMerge"]; }; /** * Updates balances of validator and transient stake accounts in the pool * While going through the pairs of validator and transient stake * accounts, if the transient stake is inactive, it is merged into the * reserve stake account. If the transient stake is active and has * matching credits observed, it is merged into the canonical * validator stake account. In all other states, nothing is done, and * the balance is simply added to the canonical stake account balance. * 0. `[]` Stake pool * 1. `[]` Stake pool withdraw authority * 2. `[w]` Validator stake list storage account * 3. `[w]` Reserve stake account * 4. `[]` Sysvar clock * 5. `[]` Sysvar stake history * 6. `[]` Stake program * 7. `..7+2N` [] N pairs of validator and transient stake accounts */ export declare function getUpdateValidatorListBalanceInstruction(input: UpdateValidatorListBalanceInput, config?: { programAddress?: TProgramAddress; }): UpdateValidatorListBalanceInstruction; export type ParsedUpdateValidatorListBalanceInstruction = { programAddress: Address; accounts: { stakePool: TAccountMetas[0]; withdrawAuthority: TAccountMetas[1]; validatorList: TAccountMetas[2]; reserveStake: TAccountMetas[3]; clockSysvar: TAccountMetas[4]; stakeHistorySysvar: TAccountMetas[5]; stakeProgram: TAccountMetas[6]; }; data: UpdateValidatorListBalanceInstructionData; }; export declare function parseUpdateValidatorListBalanceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateValidatorListBalanceInstruction; //#endregion //# sourceMappingURL=updateValidatorListBalance.d.ts.map