366 lines
15 KiB
TypeScript
366 lines
15 KiB
TypeScript
/// <reference types="long" />
|
|
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 { DeepPartial, 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?: 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: 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: 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?: 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: string;
|
|
starting_height: Long;
|
|
ending_height: Long;
|
|
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: ValidatorSlashEventSDKType[];
|
|
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: 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: {
|
|
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
};
|
|
export declare const QueryParamsResponse: {
|
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
};
|
|
export declare const QueryValidatorOutstandingRewardsRequest: {
|
|
encode(message: QueryValidatorOutstandingRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsRequest;
|
|
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsRequest>): QueryValidatorOutstandingRewardsRequest;
|
|
};
|
|
export declare const QueryValidatorOutstandingRewardsResponse: {
|
|
encode(message: QueryValidatorOutstandingRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorOutstandingRewardsResponse;
|
|
fromPartial(object: DeepPartial<QueryValidatorOutstandingRewardsResponse>): QueryValidatorOutstandingRewardsResponse;
|
|
};
|
|
export declare const QueryValidatorCommissionRequest: {
|
|
encode(message: QueryValidatorCommissionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionRequest;
|
|
fromPartial(object: DeepPartial<QueryValidatorCommissionRequest>): QueryValidatorCommissionRequest;
|
|
};
|
|
export declare const QueryValidatorCommissionResponse: {
|
|
encode(message: QueryValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorCommissionResponse;
|
|
fromPartial(object: DeepPartial<QueryValidatorCommissionResponse>): QueryValidatorCommissionResponse;
|
|
};
|
|
export declare const QueryValidatorSlashesRequest: {
|
|
encode(message: QueryValidatorSlashesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesRequest;
|
|
fromPartial(object: DeepPartial<QueryValidatorSlashesRequest>): QueryValidatorSlashesRequest;
|
|
};
|
|
export declare const QueryValidatorSlashesResponse: {
|
|
encode(message: QueryValidatorSlashesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorSlashesResponse;
|
|
fromPartial(object: DeepPartial<QueryValidatorSlashesResponse>): QueryValidatorSlashesResponse;
|
|
};
|
|
export declare const QueryDelegationRewardsRequest: {
|
|
encode(message: QueryDelegationRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsRequest;
|
|
fromPartial(object: DeepPartial<QueryDelegationRewardsRequest>): QueryDelegationRewardsRequest;
|
|
};
|
|
export declare const QueryDelegationRewardsResponse: {
|
|
encode(message: QueryDelegationRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRewardsResponse;
|
|
fromPartial(object: DeepPartial<QueryDelegationRewardsResponse>): QueryDelegationRewardsResponse;
|
|
};
|
|
export declare const QueryDelegationTotalRewardsRequest: {
|
|
encode(message: QueryDelegationTotalRewardsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsRequest;
|
|
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsRequest>): QueryDelegationTotalRewardsRequest;
|
|
};
|
|
export declare const QueryDelegationTotalRewardsResponse: {
|
|
encode(message: QueryDelegationTotalRewardsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationTotalRewardsResponse;
|
|
fromPartial(object: DeepPartial<QueryDelegationTotalRewardsResponse>): QueryDelegationTotalRewardsResponse;
|
|
};
|
|
export declare const QueryDelegatorValidatorsRequest: {
|
|
encode(message: QueryDelegatorValidatorsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsRequest;
|
|
fromPartial(object: DeepPartial<QueryDelegatorValidatorsRequest>): QueryDelegatorValidatorsRequest;
|
|
};
|
|
export declare const QueryDelegatorValidatorsResponse: {
|
|
encode(message: QueryDelegatorValidatorsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorsResponse;
|
|
fromPartial(object: DeepPartial<QueryDelegatorValidatorsResponse>): QueryDelegatorValidatorsResponse;
|
|
};
|
|
export declare const QueryDelegatorWithdrawAddressRequest: {
|
|
encode(message: QueryDelegatorWithdrawAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressRequest;
|
|
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressRequest>): QueryDelegatorWithdrawAddressRequest;
|
|
};
|
|
export declare const QueryDelegatorWithdrawAddressResponse: {
|
|
encode(message: QueryDelegatorWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorWithdrawAddressResponse;
|
|
fromPartial(object: DeepPartial<QueryDelegatorWithdrawAddressResponse>): QueryDelegatorWithdrawAddressResponse;
|
|
};
|
|
export declare const QueryCommunityPoolRequest: {
|
|
encode(_: QueryCommunityPoolRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolRequest;
|
|
fromPartial(_: DeepPartial<QueryCommunityPoolRequest>): QueryCommunityPoolRequest;
|
|
};
|
|
export declare const QueryCommunityPoolResponse: {
|
|
encode(message: QueryCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryCommunityPoolResponse;
|
|
fromPartial(object: DeepPartial<QueryCommunityPoolResponse>): QueryCommunityPoolResponse;
|
|
};
|