import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import { Params, ValidatorOutstandingRewards, ValidatorAccumulatedCommission, ValidatorSlashEvent, DelegationDelegatorReward } from "./distribution"; import { DecCoin } from "../../base/v1beta1/coin"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { JsonSafe } from "../../../json-safe"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; export declare const protobufPackage = "cosmos.distribution.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params; } /** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */ export interface QueryValidatorDistributionInfoRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } /** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */ export interface QueryValidatorDistributionInfoResponse { /** operator_address defines the validator operator address. */ operatorAddress: string; /** self_bond_rewards defines the self delegations rewards. */ selfBondRewards: DecCoin[]; /** commission defines the commission the validator received. */ commission: DecCoin[]; } /** * QueryValidatorOutstandingRewardsRequest is the request type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsResponse { rewards: ValidatorOutstandingRewards; } /** * QueryValidatorCommissionRequest is the request type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; } /** * QueryValidatorCommissionResponse is the response type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionResponse { /** commission defines the commission the validator received. */ commission: ValidatorAccumulatedCommission; } /** * QueryValidatorSlashesRequest is the request type for the * Query/ValidatorSlashes RPC method */ export interface QueryValidatorSlashesRequest { /** validator_address defines the validator address to query for. */ validatorAddress: string; /** starting_height defines the optional starting height to query the slashes. */ startingHeight: bigint; /** starting_height defines the optional ending height to query the slashes. */ endingHeight: bigint; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryValidatorSlashesResponse is the response type for the * Query/ValidatorSlashes RPC method. */ export interface QueryValidatorSlashesResponse { /** slashes defines the slashes the validator received. */ slashes: ValidatorSlashEvent[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryDelegationRewardsRequest is the request type for the * Query/DelegationRewards RPC method. */ export interface QueryDelegationRewardsRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; /** validator_address defines the validator address to query for. */ validatorAddress: string; } /** * QueryDelegationRewardsResponse is the response type for the * Query/DelegationRewards RPC method. */ export interface QueryDelegationRewardsResponse { /** rewards defines the rewards accrued by a delegation. */ rewards: DecCoin[]; } /** * QueryDelegationTotalRewardsRequest is the request type for the * Query/DelegationTotalRewards RPC method. */ export interface QueryDelegationTotalRewardsRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } /** * QueryDelegationTotalRewardsResponse is the response type for the * Query/DelegationTotalRewards RPC method. */ export interface QueryDelegationTotalRewardsResponse { /** rewards defines all the rewards accrued by a delegator. */ rewards: DelegationDelegatorReward[]; /** total defines the sum of all the rewards. */ total: DecCoin[]; } /** * QueryDelegatorValidatorsRequest is the request type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } /** * QueryDelegatorValidatorsResponse is the response type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsResponse { /** validators defines the validators a delegator is delegating for. */ validators: string[]; } /** * QueryDelegatorWithdrawAddressRequest is the request type for the * Query/DelegatorWithdrawAddress RPC method. */ export interface QueryDelegatorWithdrawAddressRequest { /** delegator_address defines the delegator address to query for. */ delegatorAddress: string; } /** * QueryDelegatorWithdrawAddressResponse is the response type for the * Query/DelegatorWithdrawAddress RPC method. */ export interface QueryDelegatorWithdrawAddressResponse { /** withdraw_address defines the delegator address to query for. */ withdrawAddress: string; } /** * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC * method. */ export interface QueryCommunityPoolRequest { } /** * QueryCommunityPoolResponse is the response type for the Query/CommunityPool * RPC method. */ export interface QueryCommunityPoolResponse { /** pool defines community pool's coins. */ pool: DecCoin[]; } export declare const QueryParamsRequest: { typeUrl: string; encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): JsonSafe; fromPartial, I>>(_: I): QueryParamsRequest; }; export declare const QueryParamsResponse: { typeUrl: string; encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): JsonSafe; fromPartial, I>>(object: I): QueryParamsResponse; }; export declare const QueryValidatorDistributionInfoRequest: { typeUrl: string; encode(message: QueryValidatorDistributionInfoRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoRequest; fromJSON(object: any): QueryValidatorDistributionInfoRequest; toJSON(message: QueryValidatorDistributionInfoRequest): JsonSafe; fromPartial, I>>(object: I): QueryValidatorDistributionInfoRequest; }; export declare const QueryValidatorDistributionInfoResponse: { typeUrl: string; encode(message: QueryValidatorDistributionInfoResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorDistributionInfoResponse; fromJSON(object: any): QueryValidatorDistributionInfoResponse; toJSON(message: QueryValidatorDistributionInfoResponse): JsonSafe; fromPartial, I>>(object: I): QueryValidatorDistributionInfoResponse; }; export declare const QueryValidatorOutstandingRewardsRequest: { typeUrl: string; encode(message: QueryValidatorOutstandingRewardsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; fromJSON(object: any): QueryValidatorOutstandingRewardsRequest; toJSON(message: QueryValidatorOutstandingRewardsRequest): JsonSafe; fromPartial, I>>(object: I): QueryValidatorOutstandingRewardsRequest; }; export declare const QueryValidatorOutstandingRewardsResponse: { typeUrl: string; encode(message: QueryValidatorOutstandingRewardsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; fromJSON(object: any): QueryValidatorOutstandingRewardsResponse; toJSON(message: QueryValidatorOutstandingRewardsResponse): JsonSafe; fromPartial, I>>(object: I): QueryValidatorOutstandingRewardsResponse; }; export declare const QueryValidatorCommissionRequest: { typeUrl: string; encode(message: QueryValidatorCommissionRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionRequest; fromJSON(object: any): QueryValidatorCommissionRequest; toJSON(message: QueryValidatorCommissionRequest): JsonSafe; fromPartial, I>>(object: I): QueryValidatorCommissionRequest; }; export declare const QueryValidatorCommissionResponse: { typeUrl: string; encode(message: QueryValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorCommissionResponse; fromJSON(object: any): QueryValidatorCommissionResponse; toJSON(message: QueryValidatorCommissionResponse): JsonSafe; fromPartial, I>>(object: I): QueryValidatorCommissionResponse; }; export declare const QueryValidatorSlashesRequest: { typeUrl: string; encode(message: QueryValidatorSlashesRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesRequest; fromJSON(object: any): QueryValidatorSlashesRequest; toJSON(message: QueryValidatorSlashesRequest): JsonSafe; fromPartial, I>>(object: I): QueryValidatorSlashesRequest; }; export declare const QueryValidatorSlashesResponse: { typeUrl: string; encode(message: QueryValidatorSlashesResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryValidatorSlashesResponse; fromJSON(object: any): QueryValidatorSlashesResponse; toJSON(message: QueryValidatorSlashesResponse): JsonSafe; fromPartial, I>>(object: I): QueryValidatorSlashesResponse; }; export declare const QueryDelegationRewardsRequest: { typeUrl: string; encode(message: QueryDelegationRewardsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsRequest; fromJSON(object: any): QueryDelegationRewardsRequest; toJSON(message: QueryDelegationRewardsRequest): JsonSafe; fromPartial, I>>(object: I): QueryDelegationRewardsRequest; }; export declare const QueryDelegationRewardsResponse: { typeUrl: string; encode(message: QueryDelegationRewardsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationRewardsResponse; fromJSON(object: any): QueryDelegationRewardsResponse; toJSON(message: QueryDelegationRewardsResponse): JsonSafe; fromPartial, I>>(object: I): QueryDelegationRewardsResponse; }; export declare const QueryDelegationTotalRewardsRequest: { typeUrl: string; encode(message: QueryDelegationTotalRewardsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; fromJSON(object: any): QueryDelegationTotalRewardsRequest; toJSON(message: QueryDelegationTotalRewardsRequest): JsonSafe; fromPartial, I>>(object: I): QueryDelegationTotalRewardsRequest; }; export declare const QueryDelegationTotalRewardsResponse: { typeUrl: string; encode(message: QueryDelegationTotalRewardsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; fromJSON(object: any): QueryDelegationTotalRewardsResponse; toJSON(message: QueryDelegationTotalRewardsResponse): JsonSafe; fromPartial, I>>(object: I): QueryDelegationTotalRewardsResponse; }; export declare const QueryDelegatorValidatorsRequest: { typeUrl: string; encode(message: QueryDelegatorValidatorsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; fromJSON(object: any): QueryDelegatorValidatorsRequest; toJSON(message: QueryDelegatorValidatorsRequest): JsonSafe; fromPartial, I>>(object: I): QueryDelegatorValidatorsRequest; }; export declare const QueryDelegatorValidatorsResponse: { typeUrl: string; encode(message: QueryDelegatorValidatorsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; fromJSON(object: any): QueryDelegatorValidatorsResponse; toJSON(message: QueryDelegatorValidatorsResponse): JsonSafe; fromPartial, I>>(object: I): QueryDelegatorValidatorsResponse; }; export declare const QueryDelegatorWithdrawAddressRequest: { typeUrl: string; encode(message: QueryDelegatorWithdrawAddressRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; fromJSON(object: any): QueryDelegatorWithdrawAddressRequest; toJSON(message: QueryDelegatorWithdrawAddressRequest): JsonSafe; fromPartial, I>>(object: I): QueryDelegatorWithdrawAddressRequest; }; export declare const QueryDelegatorWithdrawAddressResponse: { typeUrl: string; encode(message: QueryDelegatorWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; fromJSON(object: any): QueryDelegatorWithdrawAddressResponse; toJSON(message: QueryDelegatorWithdrawAddressResponse): JsonSafe; fromPartial, I>>(object: I): QueryDelegatorWithdrawAddressResponse; }; export declare const QueryCommunityPoolRequest: { typeUrl: string; encode(_: QueryCommunityPoolRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolRequest; fromJSON(_: any): QueryCommunityPoolRequest; toJSON(_: QueryCommunityPoolRequest): JsonSafe; fromPartial, I>>(_: I): QueryCommunityPoolRequest; }; export declare const QueryCommunityPoolResponse: { typeUrl: string; encode(message: QueryCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryCommunityPoolResponse; fromJSON(object: any): QueryCommunityPoolResponse; toJSON(message: QueryCommunityPoolResponse): JsonSafe; fromPartial, I>>(object: I): QueryCommunityPoolResponse; }; /** Query defines the gRPC querier service for distribution module. */ export interface Query { /** Params queries params of the distribution module. */ Params(request?: QueryParamsRequest): Promise; /** ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator */ ValidatorDistributionInfo(request: QueryValidatorDistributionInfoRequest): Promise; /** ValidatorOutstandingRewards queries rewards of a validator address. */ ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; /** ValidatorCommission queries accumulated commission for a validator. */ ValidatorCommission(request: QueryValidatorCommissionRequest): Promise; /** ValidatorSlashes queries slash events of a validator. */ ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise; /** DelegationRewards queries the total rewards accrued by a delegation. */ DelegationRewards(request: QueryDelegationRewardsRequest): Promise; /** * DelegationTotalRewards queries the total rewards accrued by each * validator. */ DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; /** DelegatorValidators queries the validators of a delegator. */ DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; /** DelegatorWithdrawAddress queries withdraw address of a delegator. */ DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; /** * CommunityPool queries the community pool coins. * * WARNING: This query will fail if an external community pool is used. */ CommunityPool(request?: QueryCommunityPoolRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Params(request?: QueryParamsRequest): Promise; ValidatorDistributionInfo(request: QueryValidatorDistributionInfoRequest): Promise; ValidatorOutstandingRewards(request: QueryValidatorOutstandingRewardsRequest): Promise; ValidatorCommission(request: QueryValidatorCommissionRequest): Promise; ValidatorSlashes(request: QueryValidatorSlashesRequest): Promise; DelegationRewards(request: QueryDelegationRewardsRequest): Promise; DelegationTotalRewards(request: QueryDelegationTotalRewardsRequest): Promise; DelegatorValidators(request: QueryDelegatorValidatorsRequest): Promise; DelegatorWithdrawAddress(request: QueryDelegatorWithdrawAddressRequest): Promise; CommunityPool(request?: QueryCommunityPoolRequest): Promise; }