import { Rpc } from "../../../helpers"; import { QueryClient } from "@cosmjs/stargate"; import { QueryParamsRequest, QueryParamsResponse, QueryValidatorOutstandingRewardsRequest, QueryValidatorOutstandingRewardsResponse, QueryValidatorCommissionRequest, QueryValidatorCommissionResponse, QueryValidatorSlashesRequest, QueryValidatorSlashesResponse, QueryDelegationRewardsRequest, QueryDelegationRewardsResponse, QueryDelegationTotalRewardsRequest, QueryDelegationTotalRewardsResponse, QueryDelegatorValidatorsRequest, QueryDelegatorValidatorsResponse, QueryDelegatorWithdrawAddressRequest, QueryDelegatorWithdrawAddressResponse, QueryCommunityPoolRequest, QueryCommunityPoolResponse } from "./query"; /** 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: Rpc); 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; };