import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination"; import { Validator, ValidatorSDKType, DelegationResponse, DelegationResponseSDKType, UnbondingDelegation, UnbondingDelegationSDKType, RedelegationResponse, RedelegationResponseSDKType, HistoricalInfo, HistoricalInfoSDKType, Pool, PoolSDKType, Params, ParamsSDKType } from "./staking"; import * as _m0 from "protobufjs/minimal"; import { Long } from "../../../helpers"; /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequest { /** status enables to query for validators matching a given status. */ status: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryValidatorsRequest is request type for Query/Validators RPC method. */ export interface QueryValidatorsRequestSDKType { /** status enables to query for validators matching a given status. */ status: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** QueryValidatorsResponse is response type for the Query/Validators RPC method */ export interface QueryValidatorsResponse { /** validators contains all the queried validators. */ validators: Validator[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryValidatorsResponse is response type for the Query/Validators RPC method */ export interface QueryValidatorsResponseSDKType { /** validators contains all the queried validators. */ validators: ValidatorSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** QueryValidatorRequest is response type for the Query/Validator RPC method */ export interface QueryValidatorRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; } /** QueryValidatorRequest is response type for the Query/Validator RPC method */ export interface QueryValidatorRequestSDKType { /** validator_addr defines the validator address to query for. */ validator_addr: string; } /** QueryValidatorResponse is response type for the Query/Validator RPC method */ export interface QueryValidatorResponse { /** validator defines the the validator info. */ validator?: Validator; } /** QueryValidatorResponse is response type for the Query/Validator RPC method */ export interface QueryValidatorResponseSDKType { /** validator defines the the validator info. */ validator?: ValidatorSDKType; } /** * QueryValidatorDelegationsRequest is request type for the * Query/ValidatorDelegations RPC method */ export interface QueryValidatorDelegationsRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryValidatorDelegationsRequest is request type for the * Query/ValidatorDelegations RPC method */ export interface QueryValidatorDelegationsRequestSDKType { /** validator_addr defines the validator address to query for. */ validator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryValidatorDelegationsResponse is response type for the * Query/ValidatorDelegations RPC method */ export interface QueryValidatorDelegationsResponse { delegationResponses: DelegationResponse[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryValidatorDelegationsResponse is response type for the * Query/ValidatorDelegations RPC method */ export interface QueryValidatorDelegationsResponseSDKType { delegation_responses: DelegationResponseSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * QueryValidatorUnbondingDelegationsRequest is required type for the * Query/ValidatorUnbondingDelegations RPC method */ export interface QueryValidatorUnbondingDelegationsRequest { /** validator_addr defines the validator address to query for. */ validatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryValidatorUnbondingDelegationsRequest is required type for the * Query/ValidatorUnbondingDelegations RPC method */ export interface QueryValidatorUnbondingDelegationsRequestSDKType { /** validator_addr defines the validator address to query for. */ validator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryValidatorUnbondingDelegationsResponse is response type for the * Query/ValidatorUnbondingDelegations RPC method. */ export interface QueryValidatorUnbondingDelegationsResponse { unbondingResponses: UnbondingDelegation[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryValidatorUnbondingDelegationsResponse is response type for the * Query/ValidatorUnbondingDelegations RPC method. */ export interface QueryValidatorUnbondingDelegationsResponseSDKType { unbonding_responses: UnbondingDelegationSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ export interface QueryDelegationRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** validator_addr defines the validator address to query for. */ validatorAddr: string; } /** QueryDelegationRequest is request type for the Query/Delegation RPC method. */ export interface QueryDelegationRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** validator_addr defines the validator address to query for. */ validator_addr: string; } /** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ export interface QueryDelegationResponse { /** delegation_responses defines the delegation info of a delegation. */ delegationResponse?: DelegationResponse; } /** QueryDelegationResponse is response type for the Query/Delegation RPC method. */ export interface QueryDelegationResponseSDKType { /** delegation_responses defines the delegation info of a delegation. */ delegation_response?: DelegationResponseSDKType; } /** * QueryUnbondingDelegationRequest is request type for the * Query/UnbondingDelegation RPC method. */ export interface QueryUnbondingDelegationRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** validator_addr defines the validator address to query for. */ validatorAddr: string; } /** * QueryUnbondingDelegationRequest is request type for the * Query/UnbondingDelegation RPC method. */ export interface QueryUnbondingDelegationRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** validator_addr defines the validator address to query for. */ validator_addr: string; } /** * QueryDelegationResponse is response type for the Query/UnbondingDelegation * RPC method. */ export interface QueryUnbondingDelegationResponse { /** unbond defines the unbonding information of a delegation. */ unbond?: UnbondingDelegation; } /** * QueryDelegationResponse is response type for the Query/UnbondingDelegation * RPC method. */ export interface QueryUnbondingDelegationResponseSDKType { /** unbond defines the unbonding information of a delegation. */ unbond?: UnbondingDelegationSDKType; } /** * QueryDelegatorDelegationsRequest is request type for the * Query/DelegatorDelegations RPC method. */ export interface QueryDelegatorDelegationsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryDelegatorDelegationsRequest is request type for the * Query/DelegatorDelegations RPC method. */ export interface QueryDelegatorDelegationsRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryDelegatorDelegationsResponse is response type for the * Query/DelegatorDelegations RPC method. */ export interface QueryDelegatorDelegationsResponse { /** delegation_responses defines all the delegations' info of a delegator. */ delegationResponses: DelegationResponse[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryDelegatorDelegationsResponse is response type for the * Query/DelegatorDelegations RPC method. */ export interface QueryDelegatorDelegationsResponseSDKType { /** delegation_responses defines all the delegations' info of a delegator. */ delegation_responses: DelegationResponseSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * QueryDelegatorUnbondingDelegationsRequest is request type for the * Query/DelegatorUnbondingDelegations RPC method. */ export interface QueryDelegatorUnbondingDelegationsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryDelegatorUnbondingDelegationsRequest is request type for the * Query/DelegatorUnbondingDelegations RPC method. */ export interface QueryDelegatorUnbondingDelegationsRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryUnbondingDelegatorDelegationsResponse is response type for the * Query/UnbondingDelegatorDelegations RPC method. */ export interface QueryDelegatorUnbondingDelegationsResponse { unbondingResponses: UnbondingDelegation[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryUnbondingDelegatorDelegationsResponse is response type for the * Query/UnbondingDelegatorDelegations RPC method. */ export interface QueryDelegatorUnbondingDelegationsResponseSDKType { unbonding_responses: UnbondingDelegationSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * QueryRedelegationsRequest is request type for the Query/Redelegations RPC * method. */ export interface QueryRedelegationsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** src_validator_addr defines the validator address to redelegate from. */ srcValidatorAddr: string; /** dst_validator_addr defines the validator address to redelegate to. */ dstValidatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryRedelegationsRequest is request type for the Query/Redelegations RPC * method. */ export interface QueryRedelegationsRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** src_validator_addr defines the validator address to redelegate from. */ src_validator_addr: string; /** dst_validator_addr defines the validator address to redelegate to. */ dst_validator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryRedelegationsResponse is response type for the Query/Redelegations RPC * method. */ export interface QueryRedelegationsResponse { redelegationResponses: RedelegationResponse[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryRedelegationsResponse is response type for the Query/Redelegations RPC * method. */ export interface QueryRedelegationsResponseSDKType { redelegation_responses: RedelegationResponseSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * QueryDelegatorValidatorsRequest is request type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryDelegatorValidatorsRequest is request type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequestSDKType; } /** * QueryDelegatorValidatorsResponse is response type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsResponse { /** validators defines the the validators' info of a delegator. */ validators: Validator[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** * QueryDelegatorValidatorsResponse is response type for the * Query/DelegatorValidators RPC method. */ export interface QueryDelegatorValidatorsResponseSDKType { /** validators defines the the validators' info of a delegator. */ validators: ValidatorSDKType[]; /** pagination defines the pagination in the response. */ pagination?: PageResponseSDKType; } /** * QueryDelegatorValidatorRequest is request type for the * Query/DelegatorValidator RPC method. */ export interface QueryDelegatorValidatorRequest { /** delegator_addr defines the delegator address to query for. */ delegatorAddr: string; /** validator_addr defines the validator address to query for. */ validatorAddr: string; } /** * QueryDelegatorValidatorRequest is request type for the * Query/DelegatorValidator RPC method. */ export interface QueryDelegatorValidatorRequestSDKType { /** delegator_addr defines the delegator address to query for. */ delegator_addr: string; /** validator_addr defines the validator address to query for. */ validator_addr: string; } /** * QueryDelegatorValidatorResponse response type for the * Query/DelegatorValidator RPC method. */ export interface QueryDelegatorValidatorResponse { /** validator defines the the validator info. */ validator?: Validator; } /** * QueryDelegatorValidatorResponse response type for the * Query/DelegatorValidator RPC method. */ export interface QueryDelegatorValidatorResponseSDKType { /** validator defines the the validator info. */ validator?: ValidatorSDKType; } /** * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC * method. */ export interface QueryHistoricalInfoRequest { /** height defines at which height to query the historical info. */ height: Long; } /** * QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC * method. */ export interface QueryHistoricalInfoRequestSDKType { /** height defines at which height to query the historical info. */ height: Long; } /** * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC * method. */ export interface QueryHistoricalInfoResponse { /** hist defines the historical info at the given height. */ hist?: HistoricalInfo; } /** * QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC * method. */ export interface QueryHistoricalInfoResponseSDKType { /** hist defines the historical info at the given height. */ hist?: HistoricalInfoSDKType; } /** QueryPoolRequest is request type for the Query/Pool RPC method. */ export interface QueryPoolRequest { } /** QueryPoolRequest is request type for the Query/Pool RPC method. */ export interface QueryPoolRequestSDKType { } /** QueryPoolResponse is response type for the Query/Pool RPC method. */ export interface QueryPoolResponse { /** pool defines the pool info. */ pool?: Pool; } /** QueryPoolResponse is response type for the Query/Pool RPC method. */ export interface QueryPoolResponseSDKType { /** pool defines the pool info. */ pool?: PoolSDKType; } /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequest { } /** QueryParamsRequest is request type for the Query/Params RPC method. */ export interface QueryParamsRequestSDKType { } /** QueryParamsResponse is response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** params holds all the parameters of this module. */ params?: Params; } /** QueryParamsResponse is response type for the Query/Params RPC method. */ export interface QueryParamsResponseSDKType { /** params holds all the parameters of this module. */ params?: ParamsSDKType; } export declare const QueryValidatorsRequest: { encode(message: QueryValidatorsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsRequest; fromPartial(object: Partial): QueryValidatorsRequest; }; export declare const QueryValidatorsResponse: { encode(message: QueryValidatorsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsResponse; fromPartial(object: Partial): QueryValidatorsResponse; }; export declare const QueryValidatorRequest: { encode(message: QueryValidatorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorRequest; fromPartial(object: Partial): QueryValidatorRequest; }; export declare const QueryValidatorResponse: { encode(message: QueryValidatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorResponse; fromPartial(object: Partial): QueryValidatorResponse; }; export declare const QueryValidatorDelegationsRequest: { encode(message: QueryValidatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsRequest; fromPartial(object: Partial): QueryValidatorDelegationsRequest; }; export declare const QueryValidatorDelegationsResponse: { encode(message: QueryValidatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsResponse; fromPartial(object: Partial): QueryValidatorDelegationsResponse; }; export declare const QueryValidatorUnbondingDelegationsRequest: { encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest; fromPartial(object: Partial): QueryValidatorUnbondingDelegationsRequest; }; export declare const QueryValidatorUnbondingDelegationsResponse: { encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse; fromPartial(object: Partial): QueryValidatorUnbondingDelegationsResponse; }; export declare const QueryDelegationRequest: { encode(message: QueryDelegationRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRequest; fromPartial(object: Partial): QueryDelegationRequest; }; export declare const QueryDelegationResponse: { encode(message: QueryDelegationResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationResponse; fromPartial(object: Partial): QueryDelegationResponse; }; export declare const QueryUnbondingDelegationRequest: { encode(message: QueryUnbondingDelegationRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationRequest; fromPartial(object: Partial): QueryUnbondingDelegationRequest; }; export declare const QueryUnbondingDelegationResponse: { encode(message: QueryUnbondingDelegationResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationResponse; fromPartial(object: Partial): QueryUnbondingDelegationResponse; }; export declare const QueryDelegatorDelegationsRequest: { encode(message: QueryDelegatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest; fromPartial(object: Partial): QueryDelegatorDelegationsRequest; }; export declare const QueryDelegatorDelegationsResponse: { encode(message: QueryDelegatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse; fromPartial(object: Partial): QueryDelegatorDelegationsResponse; }; export declare const QueryDelegatorUnbondingDelegationsRequest: { encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest; fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsRequest; }; export declare const QueryDelegatorUnbondingDelegationsResponse: { encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse; fromPartial(object: Partial): QueryDelegatorUnbondingDelegationsResponse; }; export declare const QueryRedelegationsRequest: { encode(message: QueryRedelegationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsRequest; fromPartial(object: Partial): QueryRedelegationsRequest; }; export declare const QueryRedelegationsResponse: { encode(message: QueryRedelegationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsResponse; fromPartial(object: Partial): QueryRedelegationsResponse; }; 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 QueryDelegatorValidatorRequest: { encode(message: QueryDelegatorValidatorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorRequest; fromPartial(object: Partial): QueryDelegatorValidatorRequest; }; export declare const QueryDelegatorValidatorResponse: { encode(message: QueryDelegatorValidatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorResponse; fromPartial(object: Partial): QueryDelegatorValidatorResponse; }; export declare const QueryHistoricalInfoRequest: { encode(message: QueryHistoricalInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoRequest; fromPartial(object: Partial): QueryHistoricalInfoRequest; }; export declare const QueryHistoricalInfoResponse: { encode(message: QueryHistoricalInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoResponse; fromPartial(object: Partial): QueryHistoricalInfoResponse; }; export declare const QueryPoolRequest: { encode(_: QueryPoolRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolRequest; fromPartial(_: Partial): QueryPoolRequest; }; export declare const QueryPoolResponse: { encode(message: QueryPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolResponse; fromPartial(object: Partial): QueryPoolResponse; }; 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; };