import { BinaryReader, BinaryWriter } from "../../../binary.js"; import { DeepPartial } from "../../../helpers.js"; import { Delegation, DelegationAmino, Params, ParamsAmino, Redelegation, RedelegationAmino, UnbondingDelegation, UnbondingDelegationAmino, Validator, ValidatorAmino } from "./staking.js"; //#region src/cosmos/staking/v1beta1/genesis.d.ts /** * GenesisState defines the staking module's genesis state. * @name GenesisState * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.GenesisState */ interface GenesisState { /** * params defines all the parameters of related to deposit. */ params: Params; /** * last_total_power tracks the total amounts of bonded tokens recorded during * the previous end block. */ lastTotalPower: Uint8Array; /** * last_validator_powers is a special index that provides a historical list * of the last-block's bonded validators. */ lastValidatorPowers: LastValidatorPower[]; /** * validators defines the validator set at genesis. */ validators: Validator[]; /** * delegations defines the delegations active at genesis. */ delegations: Delegation[]; /** * unbonding_delegations defines the unbonding delegations active at genesis. */ unbondingDelegations: UnbondingDelegation[]; /** * redelegations defines the redelegations active at genesis. */ redelegations: Redelegation[]; /** * exported defines a bool to identify whether the chain dealing with exported or initialized genesis. */ exported: boolean; } interface GenesisStateProtoMsg { typeUrl: "/cosmos.staking.v1beta1.GenesisState"; value: Uint8Array; } /** * GenesisState defines the staking module's genesis state. * @name GenesisStateAmino * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.GenesisState */ interface GenesisStateAmino { /** * params defines all the parameters of related to deposit. */ params: ParamsAmino; /** * last_total_power tracks the total amounts of bonded tokens recorded during * the previous end block. */ last_total_power: string; /** * last_validator_powers is a special index that provides a historical list * of the last-block's bonded validators. */ last_validator_powers: LastValidatorPowerAmino[]; /** * validators defines the validator set at genesis. */ validators: ValidatorAmino[]; /** * delegations defines the delegations active at genesis. */ delegations: DelegationAmino[]; /** * unbonding_delegations defines the unbonding delegations active at genesis. */ unbonding_delegations: UnbondingDelegationAmino[]; /** * redelegations defines the redelegations active at genesis. */ redelegations: RedelegationAmino[]; /** * exported defines a bool to identify whether the chain dealing with exported or initialized genesis. */ exported: boolean; } interface GenesisStateAminoMsg { type: "cosmos-sdk/GenesisState"; value: GenesisStateAmino; } /** * LastValidatorPower required for validator set update logic. * @name LastValidatorPower * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.LastValidatorPower */ interface LastValidatorPower { /** * address is the address of the validator. */ address: string; /** * power defines the power of the validator. */ power: bigint; } interface LastValidatorPowerProtoMsg { typeUrl: "/cosmos.staking.v1beta1.LastValidatorPower"; value: Uint8Array; } /** * LastValidatorPower required for validator set update logic. * @name LastValidatorPowerAmino * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.LastValidatorPower */ interface LastValidatorPowerAmino { /** * address is the address of the validator. */ address: string; /** * power defines the power of the validator. */ power: string; } interface LastValidatorPowerAminoMsg { type: "cosmos-sdk/LastValidatorPower"; value: LastValidatorPowerAmino; } /** * GenesisState defines the staking module's genesis state. * @name GenesisState * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.GenesisState */ declare const GenesisState: { typeUrl: string; aminoType: string; is(o: any): o is GenesisState; isAmino(o: any): o is GenesisStateAmino; encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromPartial(object: DeepPartial): GenesisState; fromAmino(object: GenesisStateAmino): GenesisState; toAmino(message: GenesisState): GenesisStateAmino; fromAminoMsg(object: GenesisStateAminoMsg): GenesisState; toAminoMsg(message: GenesisState): GenesisStateAminoMsg; fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; toProto(message: GenesisState): Uint8Array; toProtoMsg(message: GenesisState): GenesisStateProtoMsg; registerTypeUrl(): void; }; /** * LastValidatorPower required for validator set update logic. * @name LastValidatorPower * @package cosmos.staking.v1beta1 * @see proto type: cosmos.staking.v1beta1.LastValidatorPower */ declare const LastValidatorPower: { typeUrl: string; aminoType: string; is(o: any): o is LastValidatorPower; isAmino(o: any): o is LastValidatorPowerAmino; encode(message: LastValidatorPower, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): LastValidatorPower; fromPartial(object: DeepPartial): LastValidatorPower; fromAmino(object: LastValidatorPowerAmino): LastValidatorPower; toAmino(message: LastValidatorPower): LastValidatorPowerAmino; fromAminoMsg(object: LastValidatorPowerAminoMsg): LastValidatorPower; toAminoMsg(message: LastValidatorPower): LastValidatorPowerAminoMsg; fromProtoMsg(message: LastValidatorPowerProtoMsg): LastValidatorPower; toProto(message: LastValidatorPower): Uint8Array; toProtoMsg(message: LastValidatorPower): LastValidatorPowerProtoMsg; registerTypeUrl(): void; }; //#endregion export { GenesisState, GenesisStateAmino, GenesisStateAminoMsg, GenesisStateProtoMsg, LastValidatorPower, LastValidatorPowerAmino, LastValidatorPowerAminoMsg, LastValidatorPowerProtoMsg };