import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Params, ParamsSDKType, ValidatorOutstandingRewards, ValidatorOutstandingRewardsSDKType, ValidatorAccumulatedCommission, ValidatorAccumulatedCommissionSDKType, ValidatorSlashEvent, ValidatorSlashEventSDKType, DelegationDelegatorReward, DelegationDelegatorRewardSDKType } from "./distribution"; import { DecCoin, DecCoinSDKType } from "../../base/v1beta1/coin"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; import { QueryClient } from "@cosmjs/stargate"; export declare const protobufPackage = "cosmos.distribution.v1beta1"; /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequestSDKType { } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params defines the parameters of the module. */ params: Params | undefined; } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { params: ParamsSDKType | undefined; } /** * 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; } /** * QueryValidatorOutstandingRewardsRequest is the request type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsRequestSDKType { validator_address: string; } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsResponse { rewards: ValidatorOutstandingRewards | undefined; } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsResponseSDKType { rewards: ValidatorOutstandingRewardsSDKType | undefined; } /** * 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; } /** * QueryValidatorCommissionRequest is the request type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionRequestSDKType { validator_address: string; } /** * QueryValidatorCommissionResponse is the response type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionResponse { /** commission defines the commision the validator received. */ commission: ValidatorAccumulatedCommission | undefined; } /** * QueryValidatorCommissionResponse is the response type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionResponseSDKType { commission: ValidatorAccumulatedCommissionSDKType | undefined; } /** * 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 | undefined; } /** * QueryValidatorSlashesRequest is the request type for the * Query/ValidatorSlashes RPC method */ export interface QueryValidatorSlashesRequestSDKType { validator_address: string; starting_height: bigint; ending_height: bigint; pagination?: PageRequestSDKType | undefined; } /** * 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 | undefined; } /** * QueryValidatorSlashesResponse is the response type for the * Query/ValidatorSlashes RPC method. */ export interface QueryValidatorSlashesResponseSDKType { slashes: ValidatorSlashEventSDKType[]; pagination?: PageResponseSDKType | undefined; } /** * 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; } /** * QueryDelegationRewardsRequest is the request type for the * Query/DelegationRewards RPC method. */ export interface QueryDelegationRewardsRequestSDKType { delegator_address: string; validator_address: 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[]; } /** * QueryDelegationRewardsResponse is the response type for the * Query/DelegationRewards RPC method. */ export interface QueryDelegationRewardsResponseSDKType { rewards: DecCoinSDKType[]; } /** * 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; } /** * QueryDelegationTotalRewardsRequest is the request type for the * Query/DelegationTotalRewards RPC method. */ export interface QueryDelegationTotalRewardsRequestSDKType { delegator_address: 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[]; } /** * QueryDelegationTotalRewardsResponse is the response type for the * Query/DelegationTotalRewards RPC method. */ export interface QueryDelegationTotalRewardsResponseSDKType { rewards: DelegationDelegatorRewardSDKType[]; total: DecCoinSDKType[]; } /** * 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; } /** * QueryDelegatorValidatorsRequest is the request type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsRequestSDKType { delegator_address: 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[]; } /** * QueryDelegatorValidatorsResponse is the response type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsResponseSDKType { 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; } /** * QueryDelegatorWithdrawAddressRequest is the request type for the * Query/DelegatorWithdrawAddress RPC method. */ export interface QueryDelegatorWithdrawAddressRequestSDKType { delegator_address: 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; } /** * QueryDelegatorWithdrawAddressResponse is the response type for the * Query/DelegatorWithdrawAddress RPC method. */ export interface QueryDelegatorWithdrawAddressResponseSDKType { withdraw_address: string; } /** * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC * method. */ export interface QueryCommunityPoolRequest { } /** * QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC * method. */ export interface QueryCommunityPoolRequestSDKType { } /** * QueryCommunityPoolResponse is the response type for the Query/CommunityPool * RPC method. */ export interface QueryCommunityPoolResponse { /** pool defines community pool's coins. */ pool: DecCoin[]; } /** * QueryCommunityPoolResponse is the response type for the Query/CommunityPool * RPC method. */ export interface QueryCommunityPoolResponseSDKType { pool: DecCoinSDKType[]; } export declare const QueryParamsRequest: { typeUrl: string; encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(_: any): QueryParamsRequest; toJSON(_: QueryParamsRequest): unknown; fromPartial & {} & Record, never>>(_: 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): unknown; fromPartial & { params?: Params & { communityTax: string; baseProposerReward: string; bonusProposerReward: string; withdrawAddrEnabled: boolean; } & Record, never>; } & Record, never>>(object: I): QueryParamsResponse; }; 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): unknown; fromPartial & { validatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { rewards?: ValidatorOutstandingRewards & { rewards: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { validatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { commission?: ValidatorAccumulatedCommission & { commission: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { validatorAddress?: string; startingHeight?: bigint; endingHeight?: bigint; pagination?: PageRequest & { key: Uint8Array; offset: bigint; limit: bigint; countTotal: boolean; reverse: boolean; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { slashes?: ValidatorSlashEvent[] & (ValidatorSlashEvent & { validatorPeriod: bigint; fraction: string; } & Record, never>)[] & Record, never>; pagination?: PageResponse & { nextKey: Uint8Array; total: bigint; } & Record, never>; } & Record, never>>(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): unknown; fromPartial & { delegatorAddress?: string; validatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { rewards?: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>>(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): unknown; fromPartial & { delegatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { rewards?: DelegationDelegatorReward[] & (DelegationDelegatorReward & { validatorAddress: string; reward: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>)[] & Record, never>; total?: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>>(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): unknown; fromPartial & { delegatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { validators?: string[] & Record, never>; } & Record, never>>(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): unknown; fromPartial & { delegatorAddress?: string; } & Record, never>>(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): unknown; fromPartial & { withdrawAddress?: string; } & Record, never>>(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): unknown; fromPartial & {} & Record, never>>(_: 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): unknown; fromPartial & { pool?: DecCoin[] & (DecCoin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>>(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; /** 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 a 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. */ CommunityPool(request?: QueryCommunityPoolRequest): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: TxRpc); Params(request?: QueryParamsRequest): 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; } export declare const createRpcQueryExtension: (base: QueryClient) => { Params(request?: QueryParamsRequest): 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; };