import { DecCoin } from '../../../cosmos/base/v1beta1/coin'; import { ValidatorAccumulatedCommission, ValidatorHistoricalRewards, ValidatorCurrentRewards, DelegatorStartingInfo, ValidatorSlashEvent, Params, FeePool } from '../../../cosmos/distribution/v1beta1/distribution'; import * as Long from 'long'; import { Writer, Reader } from 'protobufjs/minimal'; /** * DelegatorWithdrawInfo is the address for where distributions rewards are * withdrawn to by default this struct is only used at genesis to feed in * default withdraw addresses. */ export interface DelegatorWithdrawInfo { /** * delegator_address is the address of the delegator. */ delegatorAddress: string; /** * withdraw_address is the address to withdraw the delegation rewards to. */ withdrawAddress: string; } /** * ValidatorOutstandingRewardsRecord is used for import/export via genesis json. */ export interface ValidatorOutstandingRewardsRecord { /** * validator_address is the address of the validator. */ validatorAddress: string; /** * outstanding_rewards represents the oustanding rewards of a validator. */ outstandingRewards: DecCoin[]; } /** * ValidatorAccumulatedCommissionRecord is used for import / export via genesis * json. */ export interface ValidatorAccumulatedCommissionRecord { /** * validator_address is the address of the validator. */ validatorAddress: string; /** * accumulated is the accumulated commission of a validator. */ accumulated?: ValidatorAccumulatedCommission; } /** * ValidatorHistoricalRewardsRecord is used for import / export via genesis * json. */ export interface ValidatorHistoricalRewardsRecord { /** * validator_address is the address of the validator. */ validatorAddress: string; /** * period defines the period the historical rewards apply to. */ period: Long; /** * rewards defines the historical rewards of a validator. */ rewards?: ValidatorHistoricalRewards; } /** * ValidatorCurrentRewardsRecord is used for import / export via genesis json. */ export interface ValidatorCurrentRewardsRecord { /** * validator_address is the address of the validator. */ validatorAddress: string; /** * rewards defines the current rewards of a validator. */ rewards?: ValidatorCurrentRewards; } /** * DelegatorStartingInfoRecord used for import / export via genesis json. */ export interface DelegatorStartingInfoRecord { /** * delegator_address is the address of the delegator. */ delegatorAddress: string; /** * validator_address is the address of the validator. */ validatorAddress: string; /** * starting_info defines the starting info of a delegator. */ startingInfo?: DelegatorStartingInfo; } /** * ValidatorSlashEventRecord is used for import / export via genesis json. */ export interface ValidatorSlashEventRecord { /** * validator_address is the address of the validator. */ validatorAddress: string; /** * height defines the block height at which the slash event occured. */ height: Long; /** * period is the period of the slash event. */ period: Long; /** * validator_slash_event describes the slash event. */ validatorSlashEvent?: ValidatorSlashEvent; } /** * GenesisState defines the distribution module's genesis state. */ export interface GenesisState { /** * params defines all the paramaters of the module. */ params?: Params; /** * fee_pool defines the fee pool at genesis. */ feePool?: FeePool; /** * fee_pool defines the delegator withdraw infos at genesis. */ delegatorWithdrawInfos: DelegatorWithdrawInfo[]; /** * fee_pool defines the previous proposer at genesis. */ previousProposer: string; /** * fee_pool defines the outstanding rewards of all validators at genesis. */ outstandingRewards: ValidatorOutstandingRewardsRecord[]; /** * fee_pool defines the accumulated commisions of all validators at genesis. */ validatorAccumulatedCommissions: ValidatorAccumulatedCommissionRecord[]; /** * fee_pool defines the historical rewards of all validators at genesis. */ validatorHistoricalRewards: ValidatorHistoricalRewardsRecord[]; /** * fee_pool defines the current rewards of all validators at genesis. */ validatorCurrentRewards: ValidatorCurrentRewardsRecord[]; /** * fee_pool defines the delegator starting infos at genesis. */ delegatorStartingInfos: DelegatorStartingInfoRecord[]; /** * fee_pool defines the validator slash events at genesis. */ validatorSlashEvents: ValidatorSlashEventRecord[]; } export declare const protobufPackage = "cosmos.distribution.v1beta1"; export declare const DelegatorWithdrawInfo: { encode(message: DelegatorWithdrawInfo, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): DelegatorWithdrawInfo; fromJSON(object: any): DelegatorWithdrawInfo; fromPartial(object: DeepPartial): DelegatorWithdrawInfo; toJSON(message: DelegatorWithdrawInfo): unknown; }; export declare const ValidatorOutstandingRewardsRecord: { encode(message: ValidatorOutstandingRewardsRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): ValidatorOutstandingRewardsRecord; fromJSON(object: any): ValidatorOutstandingRewardsRecord; fromPartial(object: DeepPartial): ValidatorOutstandingRewardsRecord; toJSON(message: ValidatorOutstandingRewardsRecord): unknown; }; export declare const ValidatorAccumulatedCommissionRecord: { encode(message: ValidatorAccumulatedCommissionRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): ValidatorAccumulatedCommissionRecord; fromJSON(object: any): ValidatorAccumulatedCommissionRecord; fromPartial(object: DeepPartial): ValidatorAccumulatedCommissionRecord; toJSON(message: ValidatorAccumulatedCommissionRecord): unknown; }; export declare const ValidatorHistoricalRewardsRecord: { encode(message: ValidatorHistoricalRewardsRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): ValidatorHistoricalRewardsRecord; fromJSON(object: any): ValidatorHistoricalRewardsRecord; fromPartial(object: DeepPartial): ValidatorHistoricalRewardsRecord; toJSON(message: ValidatorHistoricalRewardsRecord): unknown; }; export declare const ValidatorCurrentRewardsRecord: { encode(message: ValidatorCurrentRewardsRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): ValidatorCurrentRewardsRecord; fromJSON(object: any): ValidatorCurrentRewardsRecord; fromPartial(object: DeepPartial): ValidatorCurrentRewardsRecord; toJSON(message: ValidatorCurrentRewardsRecord): unknown; }; export declare const DelegatorStartingInfoRecord: { encode(message: DelegatorStartingInfoRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): DelegatorStartingInfoRecord; fromJSON(object: any): DelegatorStartingInfoRecord; fromPartial(object: DeepPartial): DelegatorStartingInfoRecord; toJSON(message: DelegatorStartingInfoRecord): unknown; }; export declare const ValidatorSlashEventRecord: { encode(message: ValidatorSlashEventRecord, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): ValidatorSlashEventRecord; fromJSON(object: any): ValidatorSlashEventRecord; fromPartial(object: DeepPartial): ValidatorSlashEventRecord; toJSON(message: ValidatorSlashEventRecord): unknown; }; export declare const GenesisState: { encode(message: GenesisState, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): GenesisState; fromJSON(object: any): GenesisState; fromPartial(object: DeepPartial): GenesisState; toJSON(message: GenesisState): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};