import { PodStakeStatus, PodStakeStatusArgs } from "./podStakeStatus.js"; import "./index.js"; import { Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder } from "@solana/kit"; //#region src/generated/types/validatorStakeInfo.d.ts /** * Information about a validator in the pool * NOTE: ORDER IS VERY IMPORTANT HERE, PLEASE DO NOT RE-ORDER THE FIELDS UNLESS * THERE'S AN EXTREMELY GOOD REASON. * To save on BPF instructions, the serialized bytes are reinterpreted with a * `bytemuck` transmute, which means that this structure cannot have any * undeclared alignment-padding in its representation. */ export type ValidatorStakeInfo = { /** * Amount of lamports on the validator stake account, including rent * Note that if `last_update_epoch` does not match the current epoch then * this field may not be accurate */ activeStakeLamports: bigint; /** * Amount of transient stake delegated to this validator * Note that if `last_update_epoch` does not match the current epoch then * this field may not be accurate */ transientStakeLamports: bigint; /** Last epoch the active and transient stake lamports fields were updated */ lastUpdateEpoch: bigint; /** * Transient account seed suffix, used to derive the transient stake * account address */ transientSeedSuffix: bigint; /** Unused space, initially meant to specify the end of seed suffixes */ unused: number; /** Validator account seed suffix */ validatorSeedSuffix: number; /** Status of the validator stake account */ status: PodStakeStatus; /** Validator vote account address */ voteAccountAddress: Address; }; export type ValidatorStakeInfoArgs = { /** * Amount of lamports on the validator stake account, including rent * Note that if `last_update_epoch` does not match the current epoch then * this field may not be accurate */ activeStakeLamports: number | bigint; /** * Amount of transient stake delegated to this validator * Note that if `last_update_epoch` does not match the current epoch then * this field may not be accurate */ transientStakeLamports: number | bigint; /** Last epoch the active and transient stake lamports fields were updated */ lastUpdateEpoch: number | bigint; /** * Transient account seed suffix, used to derive the transient stake * account address */ transientSeedSuffix: number | bigint; /** Unused space, initially meant to specify the end of seed suffixes */ unused: number; /** Validator account seed suffix */ validatorSeedSuffix: number; /** Status of the validator stake account */ status: PodStakeStatusArgs; /** Validator vote account address */ voteAccountAddress: Address; }; export declare function getValidatorStakeInfoEncoder(): FixedSizeEncoder; export declare function getValidatorStakeInfoDecoder(): FixedSizeDecoder; export declare function getValidatorStakeInfoCodec(): FixedSizeCodec; //#endregion //# sourceMappingURL=validatorStakeInfo.d.ts.map