2020-07-14 10:41:30 -07:00
|
|
|
syntax = "proto3";
|
2020-08-11 04:49:45 -07:00
|
|
|
package cosmos.staking.v1beta1;
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-11 04:49:45 -07:00
|
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
2020-07-14 10:41:30 -07:00
|
|
|
import "gogoproto/gogo.proto";
|
2020-08-14 03:05:35 -07:00
|
|
|
import "google/api/annotations.proto";
|
2020-08-11 04:49:45 -07:00
|
|
|
import "cosmos/staking/v1beta1/staking.proto";
|
2020-07-14 10:41:30 -07:00
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Query defines the gRPC querier service.
|
2020-07-14 10:41:30 -07:00
|
|
|
service Query {
|
2020-08-10 01:12:59 -07:00
|
|
|
// Validators queries all validators that match the given status.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Validators (QueryValidatorsRequest) returns (QueryValidatorsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Validator queries validator info for given validator address.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Validator (QueryValidatorRequest) returns (QueryValidatorResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// ValidatorDelegations queries delegate info for given validator.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc ValidatorDelegations (QueryValidatorDelegationsRequest) returns (QueryValidatorDelegationsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc ValidatorUnbondingDelegations (QueryValidatorUnbondingDelegationsRequest) returns (QueryValidatorUnbondingDelegationsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/unbonding_delegations";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Delegation queries delegate info for given validator delegator pair.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Delegation (QueryDelegationRequest) returns (QueryDelegationResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// UnbondingDelegation queries unbonding info for given validator delegator pair.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc UnbondingDelegation (QueryUnbondingDelegationRequest) returns (QueryUnbondingDelegationResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/validators/{validator_addr}/delegations/{delegator_addr}/unbonding_delegation";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// DelegatorDelegations queries all delegations of a given delegator address.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc DelegatorDelegations (QueryDelegatorDelegationsRequest) returns (QueryDelegatorDelegationsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/delegations/{delegator_addr}";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-14 03:05:35 -07:00
|
|
|
// DelegatorUnbondingDelegations queries all unbonding delegations of a given delegator address.
|
|
|
|
rpc DelegatorUnbondingDelegations (QueryDelegatorUnbondingDelegationsRequest) returns (QueryDelegatorUnbondingDelegationsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/unbonding_delegations";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Redelegations queries redelegations of given address.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Redelegations (QueryRedelegationsRequest) returns (QueryRedelegationsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/redelegations";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-14 03:05:35 -07:00
|
|
|
// DelegatorValidators queries all validators info for given delegator address.
|
|
|
|
rpc DelegatorValidators (QueryDelegatorValidatorsRequest) returns (QueryDelegatorValidatorsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// DelegatorValidator queries validator info for given delegator validator pair.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc DelegatorValidator (QueryDelegatorValidatorRequest) returns (QueryDelegatorValidatorResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/delegators/{delegator_addr}/validators/{validator_addr}";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// HistoricalInfo queries the historical info for given height.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc HistoricalInfo (QueryHistoricalInfoRequest) returns (QueryHistoricalInfoResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/historical_info/{height}";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Pool queries the pool info.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Pool (QueryPoolRequest) returns (QueryPoolResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/pool";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// Parameters queries the staking parameters.
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/staking/v1beta1/params";
|
|
|
|
}
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryValidatorsRequest is request type for Query/Validators RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryValidatorsRequest{
|
2020-08-10 01:12:59 -07:00
|
|
|
// status enables to query for validators matching a given status.
|
2020-07-14 10:41:30 -07:00
|
|
|
string status = 1;
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryValidatorsResponse is response type for the Query/Validators RPC method
|
|
|
|
message QueryValidatorsResponse {
|
2020-08-11 04:49:45 -07:00
|
|
|
// validators contains all the queried validators.
|
|
|
|
repeated Validator validators = 1 [(gogoproto.nullable) = false];
|
2020-07-14 10:41:30 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryValidatorRequest is response type for the Query/Validator RPC method
|
|
|
|
message QueryValidatorRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryValidatorResponse is response type for the Query/Validator RPC method
|
|
|
|
message QueryValidatorResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator defines the the validator info.
|
2020-07-14 10:41:30 -07:00
|
|
|
Validator validator = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method
|
|
|
|
message QueryValidatorDelegationsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-14 03:05:35 -07:00
|
|
|
// QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryValidatorDelegationsResponse {
|
|
|
|
repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "DelegationResponses"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method
|
|
|
|
message QueryValidatorUnbondingDelegationsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryValidatorUnbondingDelegationsResponse {
|
|
|
|
repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegationRequest is request type for the Query/Delegation RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegationRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegationResponse is response type for the Query/Delegation RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegationResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegation_responses defines the delegation info of a delegation.
|
|
|
|
DelegationResponse delegation_response = 1;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryUnbondingDelegationRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryUnbondingDelegationResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// unbond defines the unbonding information of a delegation.
|
2020-07-14 10:41:30 -07:00
|
|
|
UnbondingDelegation unbond =1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorDelegationsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorDelegationsResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegation_responses defines all the delegations' info of a delegator.
|
2020-07-14 10:41:30 -07:00
|
|
|
repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorUnbondingDelegationsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
2020-08-11 04:49:45 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
2020-08-11 04:49:45 -07:00
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorUnbondingDelegationsResponse {
|
|
|
|
repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryRedelegationsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// src_validator_addr defines the validator address to redelegate from.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes src_validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// dst_validator_addr defines the validator address to redelegate to.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes dst_validator_addr = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 4;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryRedelegationsResponse {
|
|
|
|
repeated RedelegationResponse redelegation_responses = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorValidatorsRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines an optional pagination for the request.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorValidatorsResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validators defines the the validators' info of a delegator.
|
2020-07-14 10:41:30 -07:00
|
|
|
repeated Validator validators = 1 [(gogoproto.nullable) = false];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// pagination defines the pagination in the response.
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
2020-07-14 10:41:30 -07:00
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorValidatorRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// delegator_addr defines the delegator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator_addr defines the validator address to query for.
|
2020-07-14 10:41:30 -07:00
|
|
|
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryDelegatorValidatorResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// validator defines the the validator info.
|
2020-07-14 10:41:30 -07:00
|
|
|
Validator validator = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryHistoricalInfoRequest {
|
2020-08-10 01:12:59 -07:00
|
|
|
// height defines at which height to query the historical info.
|
2020-07-14 10:41:30 -07:00
|
|
|
int64 height = 1;
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryHistoricalInfoResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// hist defines the historical info at the given height.
|
2020-07-14 10:41:30 -07:00
|
|
|
HistoricalInfo hist = 1;
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryPoolRequest is request type for the Query/Pool RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryPoolRequest { }
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryPoolResponse is response type for the Query/Pool RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryPoolResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// pool defines the pool info.
|
2020-07-14 10:41:30 -07:00
|
|
|
Pool pool = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryParamsRequest is request type for the Query/Params RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryParamsRequest { }
|
|
|
|
|
2020-08-10 01:12:59 -07:00
|
|
|
// QueryParamsResponse is response type for the Query/Params RPC method.
|
2020-07-14 10:41:30 -07:00
|
|
|
message QueryParamsResponse {
|
2020-08-10 01:12:59 -07:00
|
|
|
// params holds all the parameters of this module.
|
2020-07-14 10:41:30 -07:00
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
2020-08-10 01:12:59 -07:00
|
|
|
}
|