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 * as _m0 from "protobufjs/minimal"; import { Long } from "../../../helpers"; /** 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; } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { /** params defines the parameters of the module. */ params?: ParamsSDKType; } /** * 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 defines the validator address to query for. */ validator_address: string; } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsResponse { rewards?: ValidatorOutstandingRewards; } /** * QueryValidatorOutstandingRewardsResponse is the response type for the * Query/ValidatorOutstandingRewards RPC method. */ export interface QueryValidatorOutstandingRewardsResponseSDKType { rewards?: ValidatorOutstandingRewardsSDKType; } /** * 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 defines the validator address to query for. */ 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; } /** * QueryValidatorCommissionResponse is the response type for the * Query/ValidatorCommission RPC method */ export interface QueryValidatorCommissionResponseSDKType { /** commission defines the commision the validator received. */ commission?: ValidatorAccumulatedCommissionSDKType; } /** * 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: Long; /** starting_height defines the optional ending height to query the slashes. */ endingHeight: Long; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryValidatorSlashesRequest is the request type for the * Query/ValidatorSlashes RPC method */ export interface QueryValidatorSlashesRequestSDKType { /** validator_address defines the validator address to query for. */ validator_address: string; /** starting_height defines the optional starting height to query the slashes. */ starting_height: Long; /** starting_height defines the optional ending height to query the slashes. */ ending_height: Long; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * 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; } /** * QueryValidatorSlashesResponse is the response type for the * Query/ValidatorSlashes RPC method. */ export interface QueryValidatorSlashesResponseSDKType { /** slashes defines the slashes the validator received. */ slashes: ValidatorSlashEventSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * 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 defines the delegator address to query for. */ delegator_address: string; /** validator_address defines the validator address to query for. */ 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 defines the rewards accrued by a delegation. */ 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 defines the delegator address to query for. */ 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 defines all the rewards accrued by a delegator. */ rewards: DelegationDelegatorRewardSDKType[]; /** total defines the sum of all the rewards. */ 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 defines the delegator address to query for. */ 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 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; } /** * QueryDelegatorWithdrawAddressRequest is the request type for the * Query/DelegatorWithdrawAddress RPC method. */ export interface QueryDelegatorWithdrawAddressRequestSDKType { /** delegator_address defines the delegator address to query for. */ 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 defines the delegator address to query for. */ 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 defines community pool's coins. */ pool: DecCoinSDKType[]; } export declare const QueryParamsRequest: { encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; fromPartial(_: Partial): QueryParamsRequest; }; export declare const QueryParamsResponse: { encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; fromPartial(object: Partial): QueryParamsResponse; }; export declare const QueryValidatorOutstandingRewardsRequest: { encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest; fromPartial(object: Partial): QueryValidatorOutstandingRewardsRequest; }; export declare const QueryValidatorOutstandingRewardsResponse: { encode(message: QueryValidatorOutstandingRewardsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse; fromPartial(object: Partial): QueryValidatorOutstandingRewardsResponse; }; export declare const QueryValidatorCommissionRequest: { encode(message: QueryValidatorCommissionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest; fromPartial(object: Partial): QueryValidatorCommissionRequest; }; export declare const QueryValidatorCommissionResponse: { encode(message: QueryValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse; fromPartial(object: Partial): QueryValidatorCommissionResponse; }; export declare const QueryValidatorSlashesRequest: { encode(message: QueryValidatorSlashesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest; fromPartial(object: Partial): QueryValidatorSlashesRequest; }; export declare const QueryValidatorSlashesResponse: { encode(message: QueryValidatorSlashesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse; fromPartial(object: Partial): QueryValidatorSlashesResponse; }; export declare const QueryDelegationRewardsRequest: { encode(message: QueryDelegationRewardsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest; fromPartial(object: Partial): QueryDelegationRewardsRequest; }; export declare const QueryDelegationRewardsResponse: { encode(message: QueryDelegationRewardsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse; fromPartial(object: Partial): QueryDelegationRewardsResponse; }; export declare const QueryDelegationTotalRewardsRequest: { encode(message: QueryDelegationTotalRewardsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest; fromPartial(object: Partial): QueryDelegationTotalRewardsRequest; }; export declare const QueryDelegationTotalRewardsResponse: { encode(message: QueryDelegationTotalRewardsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse; fromPartial(object: Partial): QueryDelegationTotalRewardsResponse; }; export declare const QueryDelegatorValidatorsRequest: { encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest; fromPartial(object: Partial): QueryDelegatorValidatorsRequest; }; export declare const QueryDelegatorValidatorsResponse: { encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse; fromPartial(object: Partial): QueryDelegatorValidatorsResponse; }; export declare const QueryDelegatorWithdrawAddressRequest: { encode(message: QueryDelegatorWithdrawAddressRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest; fromPartial(object: Partial): QueryDelegatorWithdrawAddressRequest; }; export declare const QueryDelegatorWithdrawAddressResponse: { encode(message: QueryDelegatorWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse; fromPartial(object: Partial): QueryDelegatorWithdrawAddressResponse; }; export declare const QueryCommunityPoolRequest: { encode(_: QueryCommunityPoolRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest; fromPartial(_: Partial): QueryCommunityPoolRequest; }; export declare const QueryCommunityPoolResponse: { encode(message: QueryCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse; fromPartial(object: Partial): QueryCommunityPoolResponse; };