cosmos-explorer/packages/codegen/dist/cosmos/staking/v1beta1/query.d.ts
2023-03-02 13:21:24 +08:00

553 lines
24 KiB
TypeScript

/// <reference types="long" />
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 { DeepPartial, 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: string;
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: ValidatorSDKType[];
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: 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?: 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: string;
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?: 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: string;
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?: 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: string;
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_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: string;
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?: 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: string;
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: DelegationResponseSDKType[];
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: string;
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?: 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: string;
src_validator_addr: string;
dst_validator_addr: string;
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?: 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: string;
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: ValidatorSDKType[];
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: string;
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?: 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: 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?: 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?: 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?: ParamsSDKType;
}
export declare const QueryValidatorsRequest: {
encode(message: QueryValidatorsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsRequest;
fromPartial(object: DeepPartial<QueryValidatorsRequest>): QueryValidatorsRequest;
};
export declare const QueryValidatorsResponse: {
encode(message: QueryValidatorsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorsResponse;
fromPartial(object: DeepPartial<QueryValidatorsResponse>): QueryValidatorsResponse;
};
export declare const QueryValidatorRequest: {
encode(message: QueryValidatorRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorRequest;
fromPartial(object: DeepPartial<QueryValidatorRequest>): QueryValidatorRequest;
};
export declare const QueryValidatorResponse: {
encode(message: QueryValidatorResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorResponse;
fromPartial(object: DeepPartial<QueryValidatorResponse>): QueryValidatorResponse;
};
export declare const QueryValidatorDelegationsRequest: {
encode(message: QueryValidatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsRequest;
fromPartial(object: DeepPartial<QueryValidatorDelegationsRequest>): QueryValidatorDelegationsRequest;
};
export declare const QueryValidatorDelegationsResponse: {
encode(message: QueryValidatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDelegationsResponse;
fromPartial(object: DeepPartial<QueryValidatorDelegationsResponse>): QueryValidatorDelegationsResponse;
};
export declare const QueryValidatorUnbondingDelegationsRequest: {
encode(message: QueryValidatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsRequest;
fromPartial(object: DeepPartial<QueryValidatorUnbondingDelegationsRequest>): QueryValidatorUnbondingDelegationsRequest;
};
export declare const QueryValidatorUnbondingDelegationsResponse: {
encode(message: QueryValidatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorUnbondingDelegationsResponse;
fromPartial(object: DeepPartial<QueryValidatorUnbondingDelegationsResponse>): QueryValidatorUnbondingDelegationsResponse;
};
export declare const QueryDelegationRequest: {
encode(message: QueryDelegationRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationRequest;
fromPartial(object: DeepPartial<QueryDelegationRequest>): QueryDelegationRequest;
};
export declare const QueryDelegationResponse: {
encode(message: QueryDelegationResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegationResponse;
fromPartial(object: DeepPartial<QueryDelegationResponse>): QueryDelegationResponse;
};
export declare const QueryUnbondingDelegationRequest: {
encode(message: QueryUnbondingDelegationRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationRequest;
fromPartial(object: DeepPartial<QueryUnbondingDelegationRequest>): QueryUnbondingDelegationRequest;
};
export declare const QueryUnbondingDelegationResponse: {
encode(message: QueryUnbondingDelegationResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryUnbondingDelegationResponse;
fromPartial(object: DeepPartial<QueryUnbondingDelegationResponse>): QueryUnbondingDelegationResponse;
};
export declare const QueryDelegatorDelegationsRequest: {
encode(message: QueryDelegatorDelegationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsRequest;
fromPartial(object: DeepPartial<QueryDelegatorDelegationsRequest>): QueryDelegatorDelegationsRequest;
};
export declare const QueryDelegatorDelegationsResponse: {
encode(message: QueryDelegatorDelegationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorDelegationsResponse;
fromPartial(object: DeepPartial<QueryDelegatorDelegationsResponse>): QueryDelegatorDelegationsResponse;
};
export declare const QueryDelegatorUnbondingDelegationsRequest: {
encode(message: QueryDelegatorUnbondingDelegationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsRequest;
fromPartial(object: DeepPartial<QueryDelegatorUnbondingDelegationsRequest>): QueryDelegatorUnbondingDelegationsRequest;
};
export declare const QueryDelegatorUnbondingDelegationsResponse: {
encode(message: QueryDelegatorUnbondingDelegationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorUnbondingDelegationsResponse;
fromPartial(object: DeepPartial<QueryDelegatorUnbondingDelegationsResponse>): QueryDelegatorUnbondingDelegationsResponse;
};
export declare const QueryRedelegationsRequest: {
encode(message: QueryRedelegationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsRequest;
fromPartial(object: DeepPartial<QueryRedelegationsRequest>): QueryRedelegationsRequest;
};
export declare const QueryRedelegationsResponse: {
encode(message: QueryRedelegationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryRedelegationsResponse;
fromPartial(object: DeepPartial<QueryRedelegationsResponse>): QueryRedelegationsResponse;
};
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 QueryDelegatorValidatorRequest: {
encode(message: QueryDelegatorValidatorRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorRequest;
fromPartial(object: DeepPartial<QueryDelegatorValidatorRequest>): QueryDelegatorValidatorRequest;
};
export declare const QueryDelegatorValidatorResponse: {
encode(message: QueryDelegatorValidatorResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDelegatorValidatorResponse;
fromPartial(object: DeepPartial<QueryDelegatorValidatorResponse>): QueryDelegatorValidatorResponse;
};
export declare const QueryHistoricalInfoRequest: {
encode(message: QueryHistoricalInfoRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoRequest;
fromPartial(object: DeepPartial<QueryHistoricalInfoRequest>): QueryHistoricalInfoRequest;
};
export declare const QueryHistoricalInfoResponse: {
encode(message: QueryHistoricalInfoResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryHistoricalInfoResponse;
fromPartial(object: DeepPartial<QueryHistoricalInfoResponse>): QueryHistoricalInfoResponse;
};
export declare const QueryPoolRequest: {
encode(_: QueryPoolRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolRequest;
fromPartial(_: DeepPartial<QueryPoolRequest>): QueryPoolRequest;
};
export declare const QueryPoolResponse: {
encode(message: QueryPoolResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): QueryPoolResponse;
fromPartial(object: DeepPartial<QueryPoolResponse>): QueryPoolResponse;
};
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;
};