Protobuf audit: Queries (#6967)
* Add required fields for queries, p1 * Add comments * Remove required * More modules * 2 to go * Finish all modules * Fix typo * Fix test * Make proto-gen Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
parent
75478579b3
commit
6e3c268a72
|
@ -8,29 +8,32 @@ import "cosmos_proto/cosmos.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types";
|
||||
|
||||
// Query creates service with Account and Parameters as rpc
|
||||
// Query defines the gRPC querier service.
|
||||
service Query{
|
||||
// Account returns account details based on address
|
||||
// Account returns account details based on address.
|
||||
rpc Account (QueryAccountRequest) returns (QueryAccountResponse) {}
|
||||
|
||||
// Params queries all parameters
|
||||
// Params queries all parameters.
|
||||
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
}
|
||||
|
||||
// QueryAccountRequest is request type for the Query/Account RPC method
|
||||
// QueryAccountRequest is the request type for the Query/Account RPC method.
|
||||
message QueryAccountRequest{
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
// address defines the address to query for.
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryAccountResponse is response type for the Query/Account RPC method
|
||||
// QueryAccountResponse is the response type for the Query/Account RPC method.
|
||||
message QueryAccountResponse{
|
||||
// account defines the account of the corresponding address.
|
||||
google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface) = "AccountI"];
|
||||
}
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest{ }
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse{
|
||||
// params defines the parameters of the module.
|
||||
cosmos.auth.Params params = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
|
@ -7,54 +7,57 @@ import "cosmos/cosmos.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
||||
|
||||
// Query provides defines the gRPC querier service
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
// Balance queries the balance of a single coin for a single account
|
||||
// Balance queries the balance of a single coin for a single account.
|
||||
rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) {}
|
||||
|
||||
// AllBalances queries the balance of all coins for a single account
|
||||
// AllBalances queries the balance of all coins for a single account.
|
||||
rpc AllBalances(QueryAllBalancesRequest) returns (QueryAllBalancesResponse) {}
|
||||
|
||||
// TotalSupply queries the total supply of all coins
|
||||
// TotalSupply queries the total supply of all coins.
|
||||
rpc TotalSupply(QueryTotalSupplyRequest) returns (QueryTotalSupplyResponse) {}
|
||||
|
||||
// SupplyOf queries the supply of a single coin
|
||||
// SupplyOf queries the supply of a single coin.
|
||||
rpc SupplyOf(QuerySupplyOfRequest) returns (QuerySupplyOfResponse) {}
|
||||
}
|
||||
|
||||
// QueryBalanceRequest is the request type for the Query/Balance RPC method
|
||||
// QueryBalanceRequest is the request type for the Query/Balance RPC method.
|
||||
message QueryBalanceRequest {
|
||||
// address is the address to query balances for
|
||||
// address is the address to query balances for.
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// denom is the coin denom to query balances for
|
||||
// denom is the coin denom to query balances for.
|
||||
string denom = 2;
|
||||
}
|
||||
|
||||
// QueryBalanceResponse is the response type for the Query/Balance RPC method
|
||||
// QueryBalanceResponse is the response type for the Query/Balance RPC method.
|
||||
message QueryBalanceResponse {
|
||||
// balance is the balance of the coin
|
||||
// balance is the balance of the coin.
|
||||
cosmos.Coin balance = 1;
|
||||
}
|
||||
|
||||
// QueryBalanceRequest is the request type for the Query/AllBalances RPC method
|
||||
// QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
|
||||
message QueryAllBalancesRequest {
|
||||
// address is the address to query balances for
|
||||
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
// address is the address to query balances for.
|
||||
bytes address = 1
|
||||
[(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method
|
||||
// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.
|
||||
message QueryAllBalancesResponse {
|
||||
// balances is the balances of the coins
|
||||
// balances is the balances of all the coins.
|
||||
repeated cosmos.Coin balances = 1
|
||||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method
|
||||
// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method.
|
||||
message QueryTotalSupplyRequest {}
|
||||
|
||||
// QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method
|
||||
|
@ -64,14 +67,15 @@ message QueryTotalSupplyResponse {
|
|||
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
||||
}
|
||||
|
||||
// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method
|
||||
// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.
|
||||
message QuerySupplyOfRequest {
|
||||
// denom is the coin denom to query balances for.
|
||||
string denom = 1;
|
||||
}
|
||||
|
||||
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method
|
||||
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
|
||||
message QuerySupplyOfResponse {
|
||||
// amount is the supply of the coin
|
||||
// amount is the supply of the coin.
|
||||
cosmos.Coin amount = 1
|
||||
[(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin", (gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
|
@ -8,132 +8,153 @@ import "cosmos/distribution/distribution.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types";
|
||||
|
||||
// Query defines the gRPC querier service for distribution module
|
||||
// Query defines the gRPC querier service for distribution module.
|
||||
service Query {
|
||||
// Params queries params of distribution module
|
||||
// Params queries params of the distribution module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
rpc ValidatorOutstandingRewards(QueryValidatorOutstandingRewardsRequest) returns (QueryValidatorOutstandingRewardsResponse) {}
|
||||
|
||||
// ValidatorCommission queries accumulated commission for a validator
|
||||
// ValidatorCommission queries accumulated commission for a validator.
|
||||
rpc ValidatorCommission (QueryValidatorCommissionRequest) returns (QueryValidatorCommissionResponse) {}
|
||||
|
||||
// ValidatorSlashes queries slash events of a validator
|
||||
// ValidatorSlashes queries slash events of a validator.
|
||||
rpc ValidatorSlashes (QueryValidatorSlashesRequest) returns (QueryValidatorSlashesResponse) {}
|
||||
|
||||
// DelegationRewards the total rewards accrued by a delegation
|
||||
// DelegationRewards queries the total rewards accrued by a delegation.
|
||||
rpc DelegationRewards (QueryDelegationRewardsRequest) returns (QueryDelegationRewardsResponse) {}
|
||||
|
||||
// DelegationTotalRewards the total rewards accrued by a each validator
|
||||
// DelegationTotalRewards queries the total rewards accrued by a each validator.
|
||||
rpc DelegationTotalRewards (QueryDelegationTotalRewardsRequest) returns (QueryDelegationTotalRewardsResponse) {}
|
||||
|
||||
// DelegatorValidators queries the validators of a delegator
|
||||
// DelegatorValidators queries the validators of a delegator.
|
||||
rpc DelegatorValidators (QueryDelegatorValidatorsRequest) returns (QueryDelegatorValidatorsResponse) {}
|
||||
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator.
|
||||
rpc DelegatorWithdrawAddress (QueryDelegatorWithdrawAddressRequest) returns (QueryDelegatorWithdrawAddressResponse) {}
|
||||
|
||||
// CommunityPool queries the community pool coins
|
||||
// CommunityPool queries the community pool coins.
|
||||
rpc CommunityPool (QueryCommunityPoolRequest) returns (QueryCommunityPoolResponse) {}
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest { }
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
message QueryParamsResponse {
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse {
|
||||
// params defines the parameters of the module.
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method
|
||||
// QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method.
|
||||
message QueryValidatorOutstandingRewardsRequest {
|
||||
// validator_address defines the validator address to query for.
|
||||
bytes validator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method
|
||||
// QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method.
|
||||
message QueryValidatorOutstandingRewardsResponse {
|
||||
ValidatorOutstandingRewards rewards = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryValidatorCommissionRequest is the request type for the Query/ValidatorCommission RPC method
|
||||
message QueryValidatorCommissionRequest {
|
||||
// validator_address defines the validator address to query for.
|
||||
bytes validator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryValidatorCommissionResponse is the response type for the Query/ValidatorCommission RPC method
|
||||
message QueryValidatorCommissionResponse {
|
||||
// commission defines the commision the validator received.
|
||||
ValidatorAccumulatedCommission commission = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryValidatorSlashesRequest is the request type for the Query/ValidatorSlashes RPC method
|
||||
message QueryValidatorSlashesRequest {
|
||||
// validator_address defines the validator address to query for.
|
||||
bytes validator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
// starting_height defines the optional starting height to query the slashes.
|
||||
uint64 starting_height = 2;
|
||||
// starting_height defines the optional ending height to query the slashes.
|
||||
uint64 ending_height = 3;
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 4;
|
||||
}
|
||||
|
||||
// QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method
|
||||
// QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method.
|
||||
message QueryValidatorSlashesResponse {
|
||||
// slashes defines the slashes the validator received.
|
||||
repeated ValidatorSlashEvent slashes = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method
|
||||
// QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method.
|
||||
message QueryDelegationRewardsRequest {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
bytes delegator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
// validator_address defines the validator address to query for.
|
||||
bytes validator_address = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method
|
||||
// QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method.
|
||||
message QueryDelegationRewardsResponse {
|
||||
// rewards defines the rewards accrued by a delegation.
|
||||
repeated cosmos.DecCoin rewards = 1 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"
|
||||
];
|
||||
}
|
||||
|
||||
// QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method
|
||||
// QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method.
|
||||
message QueryDelegationTotalRewardsRequest {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
bytes delegator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method
|
||||
// QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method.
|
||||
message QueryDelegationTotalRewardsResponse {
|
||||
// rewards defines all the rewards accrued by a delegator.
|
||||
repeated DelegationDelegatorReward rewards = 1 [(gogoproto.nullable) = false];
|
||||
// total defines the sum of all the rewards.
|
||||
repeated cosmos.DecCoin total = 2 [
|
||||
(gogoproto.nullable) = false,
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"
|
||||
];
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method.
|
||||
message QueryDelegatorValidatorsRequest {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
bytes delegator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method.
|
||||
message QueryDelegatorValidatorsResponse {
|
||||
// validators defines the validators a delegator is delegating for.
|
||||
repeated bytes validators = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method
|
||||
// QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method.
|
||||
message QueryDelegatorWithdrawAddressRequest {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
bytes delegator_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method
|
||||
// QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.
|
||||
message QueryDelegatorWithdrawAddressResponse {
|
||||
// withdraw_address defines the delegator address to query for.
|
||||
bytes withdraw_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method
|
||||
// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.
|
||||
message QueryCommunityPoolRequest {}
|
||||
|
||||
// QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method
|
||||
// QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.
|
||||
message QueryCommunityPoolResponse {
|
||||
// pool defines community pool's coins.
|
||||
repeated cosmos.DecCoin pool = 1 [
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
|
||||
(gogoproto.nullable) = false
|
||||
|
|
|
@ -7,33 +7,38 @@ import "google/protobuf/any.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types";
|
||||
|
||||
// Query defines the gRPC querier service
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
// Evidence queries evidence based on evidence hash
|
||||
// Evidence queries evidence based on evidence hash.
|
||||
rpc Evidence(QueryEvidenceRequest) returns (QueryEvidenceResponse) {}
|
||||
|
||||
// AllEvidence queries all evidence
|
||||
// AllEvidence queries all evidence.
|
||||
rpc AllEvidence(QueryAllEvidenceRequest) returns (QueryAllEvidenceResponse) {}
|
||||
}
|
||||
|
||||
// QueryEvidenceRequest is the request type for the Query/Evidence RPC method
|
||||
// QueryEvidenceRequest is the request type for the Query/Evidence RPC method.
|
||||
message QueryEvidenceRequest {
|
||||
// evidence_hash defines the hash of the requested evidence.
|
||||
bytes evidence_hash = 1 [(gogoproto.casttype) = "github.com/tendermint/tendermint/libs/bytes.HexBytes"];;
|
||||
}
|
||||
|
||||
// QueryEvidenceResponse is the response type for the Query/Evidence RPC method
|
||||
// QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
|
||||
message QueryEvidenceResponse {
|
||||
// evidence returns the requested evidence.
|
||||
google.protobuf.Any evidence = 1;
|
||||
}
|
||||
|
||||
// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC method
|
||||
// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC method.
|
||||
message QueryAllEvidenceRequest {
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 1;
|
||||
}
|
||||
|
||||
// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method
|
||||
// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method.
|
||||
message QueryAllEvidenceResponse {
|
||||
// evidence returns all evidences.
|
||||
repeated google.protobuf.Any evidence = 1;
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
|
|
@ -9,140 +9,154 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
|
|||
|
||||
// Query defines the gRPC querier service for gov module
|
||||
service Query {
|
||||
// Proposal queries proposal details based on ProposalID
|
||||
// Proposal queries proposal details based on ProposalID.
|
||||
rpc Proposal (QueryProposalRequest) returns (QueryProposalResponse) {}
|
||||
|
||||
// Proposals queries all proposals based on given status
|
||||
// Proposals queries all proposals based on given status.
|
||||
rpc Proposals (QueryProposalsRequest) returns (QueryProposalsResponse) {}
|
||||
|
||||
// Vote queries Voted information based on proposalID, voterAddr
|
||||
// Vote queries voted information based on proposalID, voterAddr.
|
||||
rpc Vote(QueryVoteRequest) returns (QueryVoteResponse) {}
|
||||
|
||||
// Votes queries votes of a given proposal
|
||||
// Votes queries votes of a given proposal.
|
||||
rpc Votes (QueryVotesRequest) returns (QueryVotesResponse) {}
|
||||
|
||||
// Params queries all parameters of the gov module
|
||||
// Params queries all parameters of the gov module.
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
|
||||
// Deposit queries single deposit information based proposalID, depositAddr
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
rpc Deposit(QueryDepositRequest) returns (QueryDepositResponse) {}
|
||||
|
||||
// Deposits queries all deposits of a single proposal
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
rpc Deposits(QueryDepositsRequest) returns (QueryDepositsResponse) {}
|
||||
|
||||
// TallyResult queries the tally of a proposal vote
|
||||
// TallyResult queries the tally of a proposal vote.
|
||||
rpc TallyResult(QueryTallyResultRequest) returns (QueryTallyResultResponse) {}
|
||||
}
|
||||
|
||||
// QueryProposalRequest is the request type for the Query/Proposal RPC method
|
||||
// QueryProposalRequest is the request type for the Query/Proposal RPC method.
|
||||
message QueryProposalRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
}
|
||||
|
||||
// QueryProposalResponse is the response type for the Query/Proposal RPC method
|
||||
// QueryProposalResponse is the response type for the Query/Proposal RPC method.
|
||||
message QueryProposalResponse {
|
||||
Proposal proposal = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryProposalsRequest is the request type for the Query/Proposals RPC method
|
||||
// QueryProposalsRequest is the request type for the Query/Proposals RPC method.
|
||||
message QueryProposalsRequest {
|
||||
// status of the proposals.
|
||||
// proposal_status defines the status of the proposals.
|
||||
ProposalStatus proposal_status = 1 ;
|
||||
|
||||
// Voter address for the proposals.
|
||||
// voter defines the voter address for the proposals.
|
||||
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// Deposit addresses from the proposals.
|
||||
// depositor defines the deposit addresses from the proposals.
|
||||
bytes depositor = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 4;
|
||||
}
|
||||
|
||||
// QueryProposalsResponse is the response type for the Query/Proposals RPC method
|
||||
// QueryProposalsResponse is the response type for the Query/Proposals RPC method.
|
||||
message QueryProposalsResponse {
|
||||
repeated Proposal proposals = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryVoteRequest is the request type for the Query/Vote RPC method
|
||||
// QueryVoteRequest is the request type for the Query/Vote RPC method.
|
||||
message QueryVoteRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
|
||||
// Voter address for the proposals.
|
||||
// voter defines the oter address for the proposals.
|
||||
bytes voter = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryVoteResponse is the response type for the Query/Vote RPC method
|
||||
// QueryVoteResponse is the response type for the Query/Vote RPC method.
|
||||
message QueryVoteResponse {
|
||||
// vote defined the queried vote.
|
||||
Vote vote = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryVotesRequest is the request type for the Query/Votes RPC method
|
||||
// QueryVotesRequest is the request type for the Query/Votes RPC method.
|
||||
message QueryVotesRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryVotesResponse is the response type for the Query/Votes RPC method
|
||||
// QueryVotesResponse is the response type for the Query/Votes RPC method.
|
||||
message QueryVotesResponse {
|
||||
// votes defined the queried votes.
|
||||
repeated Vote votes = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest {
|
||||
// params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".
|
||||
string params_type = 1;
|
||||
}
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse {
|
||||
// voting_params defines the parameters related to voting.
|
||||
VotingParams voting_params = 1 [(gogoproto.nullable) = false];
|
||||
// deposit_params defines the parameters related to deposit.
|
||||
DepositParams deposit_params = 2 [(gogoproto.nullable) = false];
|
||||
// tally_params defines the parameters related to tally.
|
||||
TallyParams tally_params = 3 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryDepositRequest is the request type for the Query/Deposit RPC method
|
||||
// QueryDepositRequest is the request type for the Query/Deposit RPC method.
|
||||
message QueryDepositRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
|
||||
// Deposit addresses from the proposals.
|
||||
// depositor defines the deposit addresses from the proposals.
|
||||
bytes depositor = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
}
|
||||
|
||||
// QueryDepositResponse is the response type for the Query/Deposit RPC method
|
||||
// QueryDepositResponse is the response type for the Query/Deposit RPC method.
|
||||
message QueryDepositResponse {
|
||||
// deposit defines the requested deposit.
|
||||
Deposit deposit = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryDepositsRequest is the request type for the Query/Deposits RPC method
|
||||
// QueryDepositsRequest is the request type for the Query/Deposits RPC method.
|
||||
message QueryDepositsRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDepositsResponse is the response type for the Query/Deposits RPC method
|
||||
// QueryDepositsResponse is the response type for the Query/Deposits RPC method.
|
||||
message QueryDepositsResponse {
|
||||
repeated Deposit deposits = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryTallyResultRequest is the request type for the Query/Tally RPC method
|
||||
// QueryTallyResultRequest is the request type for the Query/Tally RPC method.
|
||||
message QueryTallyResultRequest {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
uint64 proposal_id = 1;
|
||||
}
|
||||
|
||||
// QueryTallyResultResponse is the response type for the Query/Tally RPC method
|
||||
message QueryTallyResultResponse {
|
||||
// QueryTallyResultResponse is the response type for the Query/Tally RPC method.
|
||||
message QueryTallyResultResponse {
|
||||
// tally defines the requested tally.
|
||||
TallyResult tally = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import "cosmos/mint/mint.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types";
|
||||
|
||||
// Query provides defines the gRPC querier service
|
||||
// Query provides defines the gRPC querier service.
|
||||
service Query {
|
||||
// Params returns the total set of minting parameters.
|
||||
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
|
@ -18,26 +18,29 @@ service Query {
|
|||
rpc AnnualProvisions (QueryAnnualProvisionsRequest) returns (QueryAnnualProvisionsResponse) {}
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest { }
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse {
|
||||
// params defines the parameters of the module.
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryInflationRequest is the request type for the Query/Inflation RPC method
|
||||
// QueryInflationRequest is the request type for the Query/Inflation RPC method.
|
||||
message QueryInflationRequest { }
|
||||
|
||||
// QueryInflationResponse is the response type for the Query/Inflation RPC method
|
||||
// QueryInflationResponse is the response type for the Query/Inflation RPC method.
|
||||
message QueryInflationResponse {
|
||||
// inflation is the current minting inflation value.
|
||||
bytes inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method
|
||||
// QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.
|
||||
message QueryAnnualProvisionsRequest { }
|
||||
|
||||
// QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method
|
||||
// QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.
|
||||
message QueryAnnualProvisionsResponse {
|
||||
// annual_provisions is the current minting annual provisions value.
|
||||
bytes annual_provisions = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
|
@ -6,20 +6,23 @@ import "cosmos/params/params.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal";
|
||||
|
||||
// Query creates service with Parameters as rpc
|
||||
// Query defines the gRPC querier service.
|
||||
service Query{
|
||||
// Params queries all parameters of the params module
|
||||
// Params queries a specific parameter of a module, given its subspace and key.
|
||||
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
}
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest{
|
||||
// subspace defines the module to query the parameter for.
|
||||
string subspace = 1;
|
||||
|
||||
// key defines the key of the parameter in the subspace.
|
||||
string key = 2;
|
||||
}
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse{
|
||||
cosmos.params.ParamChange params = 1 [(gogoproto.nullable) = false];
|
||||
// param defines the queried parameter.
|
||||
cosmos.params.ParamChange param = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
|
|
@ -7,79 +7,87 @@ import "cosmos/staking/staking.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types";
|
||||
|
||||
// Query defines the gRPC querier service
|
||||
// Query defines the gRPC querier service.
|
||||
service Query {
|
||||
// Validators queries all validators that match the given status
|
||||
// Validators queries all validators that match the given status.
|
||||
rpc Validators (QueryValidatorsRequest) returns (QueryValidatorsResponse) {}
|
||||
|
||||
// Validator queries validator info for given validator addr
|
||||
// Validator queries validator info for given validator address.
|
||||
rpc Validator (QueryValidatorRequest) returns (QueryValidatorResponse) {}
|
||||
|
||||
// ValidatorDelegations queries delegate info for given validator
|
||||
// ValidatorDelegations queries delegate info for given validator.
|
||||
rpc ValidatorDelegations (QueryValidatorDelegationsRequest) returns (QueryValidatorDelegationsResponse) {}
|
||||
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
|
||||
rpc ValidatorUnbondingDelegations (QueryValidatorUnbondingDelegationsRequest) returns (QueryValidatorUnbondingDelegationsResponse) {}
|
||||
|
||||
// Delegation queries delegate info for given validator delegator pair
|
||||
// Delegation queries delegate info for given validator delegator pair.
|
||||
rpc Delegation (QueryDelegationRequest) returns (QueryDelegationResponse) {}
|
||||
|
||||
// UnbondingDelegation queries unbonding info for give validator delegator pair
|
||||
// UnbondingDelegation queries unbonding info for given validator delegator pair.
|
||||
rpc UnbondingDelegation (QueryUnbondingDelegationRequest) returns (QueryUnbondingDelegationResponse) {}
|
||||
|
||||
// DelegatorDelegations queries all delegations of a give delegator address
|
||||
// DelegatorDelegations queries all delegations of a given delegator address.
|
||||
rpc DelegatorDelegations (QueryDelegatorDelegationsRequest) returns (QueryDelegatorDelegationsResponse) {}
|
||||
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address.
|
||||
rpc DelegatorUnbondingDelegations (QueryDelegatorUnbondingDelegationsRequest) returns (QueryDelegatorUnbondingDelegationsResponse) {}
|
||||
|
||||
// Redelegations queries redelegations of given address
|
||||
// Redelegations queries redelegations of given address.
|
||||
rpc Redelegations (QueryRedelegationsRequest) returns (QueryRedelegationsResponse) {}
|
||||
|
||||
// DelegatorValidators queries all validator info for given delegator address
|
||||
// DelegatorValidators queries all validator info for given delegator address.
|
||||
rpc DelegatorValidators (QueryDelegatorValidatorsRequest) returns (QueryDelegatorValidatorsResponse) {}
|
||||
|
||||
// DelegatorValidator queries validator info for given delegator validator pair
|
||||
// DelegatorValidator queries validator info for given delegator validator pair.
|
||||
rpc DelegatorValidator (QueryDelegatorValidatorRequest) returns (QueryDelegatorValidatorResponse) {}
|
||||
|
||||
// HistoricalInfo queries the historical info for given height
|
||||
// HistoricalInfo queries the historical info for given height.
|
||||
rpc HistoricalInfo (QueryHistoricalInfoRequest) returns (QueryHistoricalInfoResponse) {}
|
||||
|
||||
// Pool queries the pool info
|
||||
// Pool queries the pool info.
|
||||
rpc Pool (QueryPoolRequest) returns (QueryPoolResponse) {}
|
||||
|
||||
// Parameters queries the staking parameters
|
||||
// Parameters queries the staking parameters.
|
||||
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
|
||||
}
|
||||
|
||||
// QueryValidatorsRequest is request type for Query/Validators RPC method
|
||||
// QueryValidatorsRequest is request type for Query/Validators RPC method.
|
||||
message QueryValidatorsRequest{
|
||||
// status enables to query for validators matching a given status.
|
||||
string status = 1;
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryValidatorsResponse is response type for the Query/Validators RPC method
|
||||
message QueryValidatorsResponse {
|
||||
// validators contains all the queried validators
|
||||
repeated cosmos.staking.Validator validators = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryValidatorRequest is response type for the Query/Validator RPC method
|
||||
message QueryValidatorRequest {
|
||||
// validator_addr defines the validator address to query for.
|
||||
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 {
|
||||
// validator defines the the validator info.
|
||||
Validator validator = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method
|
||||
message QueryValidatorDelegationsRequest {
|
||||
// validator_addr defines the validator address to query for.
|
||||
bytes validator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
|
@ -87,142 +95,173 @@ message QueryValidatorDelegationsRequest {
|
|||
message QueryValidatorDelegationsResponse {
|
||||
repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "DelegationResponses"];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method
|
||||
message QueryValidatorUnbondingDelegationsRequest {
|
||||
// validator_addr defines the validator address to query for.
|
||||
bytes validator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method
|
||||
// QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.
|
||||
message QueryValidatorUnbondingDelegationsResponse {
|
||||
repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegationRequest is request type for the Query/Delegation RPC method
|
||||
// QueryDelegationRequest is request type for the Query/Delegation RPC method.
|
||||
message QueryDelegationRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// validator_addr defines the validator address to query for.
|
||||
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegationResponse is response type for the Query/Delegation RPC method
|
||||
// QueryDelegationResponse is response type for the Query/Delegation RPC method.
|
||||
message QueryDelegationResponse {
|
||||
DelegationResponse delegation_response = 1 [(gogoproto.casttype) = "DelegationResponse"];
|
||||
// delegation_responses defines the delegation info of a delegation.
|
||||
DelegationResponse delegation_response = 1;
|
||||
}
|
||||
|
||||
// QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method
|
||||
// QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.
|
||||
message QueryUnbondingDelegationRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// validator_addr defines the validator address to query for.
|
||||
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method
|
||||
// QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.
|
||||
message QueryUnbondingDelegationResponse {
|
||||
// unbond defines the unbonding information of a delegation.
|
||||
UnbondingDelegation unbond =1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method
|
||||
// QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.
|
||||
message QueryDelegatorDelegationsRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method
|
||||
// QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.
|
||||
message QueryDelegatorDelegationsResponse {
|
||||
// delegation_responses defines all the delegations' info of a delegator.
|
||||
repeated DelegationResponse delegation_responses = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method
|
||||
// QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.
|
||||
message QueryDelegatorUnbondingDelegationsRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
// QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method
|
||||
// QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.
|
||||
message QueryDelegatorUnbondingDelegationsResponse {
|
||||
repeated UnbondingDelegation unbonding_responses = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryRedelegationsRequest is request type for the Query/Redelegations RPC method
|
||||
// QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.
|
||||
message QueryRedelegationsRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// src_validator_addr defines the validator address to redelegate from.
|
||||
bytes src_validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
|
||||
// dst_validator_addr defines the validator address to redelegate to.
|
||||
bytes dst_validator_addr = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 4;
|
||||
}
|
||||
|
||||
// QueryRedelegationsResponse is response type for the Query/Redelegations RPC method
|
||||
// QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.
|
||||
message QueryRedelegationsResponse {
|
||||
repeated RedelegationResponse redelegation_responses = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.
|
||||
message QueryDelegatorValidatorsRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// pagination defines an optional pagination for the request.
|
||||
cosmos.query.PageRequest pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.
|
||||
message QueryDelegatorValidatorsResponse {
|
||||
// validators defines the the validators' info of a delegator.
|
||||
repeated Validator validators = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
// pagination defines the pagination in the response.
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method
|
||||
// QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.
|
||||
message QueryDelegatorValidatorRequest {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
bytes delegator_addr = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
||||
|
||||
// validator_addr defines the validator address to query for.
|
||||
bytes validator_addr = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ValAddress"];
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method
|
||||
// QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.
|
||||
message QueryDelegatorValidatorResponse {
|
||||
// validator defines the the validator info.
|
||||
Validator validator = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method
|
||||
// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.
|
||||
message QueryHistoricalInfoRequest {
|
||||
// height defines at which height to query the historical info.
|
||||
int64 height = 1;
|
||||
}
|
||||
|
||||
// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method
|
||||
// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.
|
||||
message QueryHistoricalInfoResponse {
|
||||
// hist defines the historical info at the given height.
|
||||
HistoricalInfo hist = 1;
|
||||
}
|
||||
|
||||
// QueryPoolRequest is request type for the Query/Pool RPC method
|
||||
// QueryPoolRequest is request type for the Query/Pool RPC method.
|
||||
message QueryPoolRequest { }
|
||||
|
||||
// QueryPoolResponse is response type for the Query/Pool RPC method
|
||||
// QueryPoolResponse is response type for the Query/Pool RPC method.
|
||||
message QueryPoolResponse {
|
||||
// pool defines the pool info.
|
||||
Pool pool = 1 [(gogoproto.nullable) = false];
|
||||
}
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest { }
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method.
|
||||
message QueryParamsResponse {
|
||||
// params holds all the parameters of this module.
|
||||
Params params = 1 [(gogoproto.nullable) = false];
|
||||
|
||||
cosmos.query.PageResponse pagination = 2;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,32 +5,32 @@ import "cosmos/upgrade/upgrade.proto";
|
|||
|
||||
option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types";
|
||||
|
||||
// Query defines the gRPC upgrade querier service
|
||||
// Query defines the gRPC upgrade querier service.
|
||||
service Query {
|
||||
// CurrentPlan queries the current upgrade plan
|
||||
// CurrentPlan queries the current upgrade plan.
|
||||
rpc CurrentPlan(QueryCurrentPlanRequest) returns (QueryCurrentPlanResponse) {}
|
||||
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name.
|
||||
rpc AppliedPlan(QueryAppliedPlanRequest) returns (QueryAppliedPlanResponse) {}
|
||||
}
|
||||
|
||||
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC method
|
||||
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC method.
|
||||
message QueryCurrentPlanRequest {}
|
||||
|
||||
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC method
|
||||
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC method.
|
||||
message QueryCurrentPlanResponse {
|
||||
// plan is the current upgrade plan
|
||||
// plan is the current upgrade plan.
|
||||
Plan plan = 1;
|
||||
}
|
||||
|
||||
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC method
|
||||
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC method.
|
||||
message QueryAppliedPlanRequest {
|
||||
// name is the name of the applied plan to query for
|
||||
// name is the name of the applied plan to query for.
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC method
|
||||
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC method.
|
||||
message QueryAppliedPlanResponse {
|
||||
// height is the block height at which the plan was applied
|
||||
// height is the block height at which the plan was applied.
|
||||
int64 height = 1;
|
||||
}
|
||||
|
|
|
@ -31,8 +31,9 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryAccountRequest is request type for the Query/Account RPC method
|
||||
// QueryAccountRequest is the request type for the Query/Account RPC method.
|
||||
type QueryAccountRequest struct {
|
||||
// address defines the address to query for.
|
||||
Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -76,8 +77,9 @@ func (m *QueryAccountRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.Ac
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryAccountResponse is response type for the Query/Account RPC method
|
||||
// QueryAccountResponse is the response type for the Query/Account RPC method.
|
||||
type QueryAccountResponse struct {
|
||||
// account defines the account of the corresponding address.
|
||||
Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -121,7 +123,7 @@ func (m *QueryAccountResponse) GetAccount() *types.Any {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
}
|
||||
|
||||
|
@ -158,8 +160,9 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
// params defines the parameters of the module.
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
|
@ -251,9 +254,9 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Account returns account details based on address
|
||||
// Account returns account details based on address.
|
||||
Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
|
||||
// Params queries all parameters
|
||||
// Params queries all parameters.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
@ -285,9 +288,9 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Account returns account details based on address
|
||||
// Account returns account details based on address.
|
||||
Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
|
||||
// Params queries all parameters
|
||||
// Params queries all parameters.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
|
|
@ -31,11 +31,11 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryBalanceRequest is the request type for the Query/Balance RPC method
|
||||
// QueryBalanceRequest is the request type for the Query/Balance RPC method.
|
||||
type QueryBalanceRequest struct {
|
||||
// address is the address to query balances for
|
||||
// address is the address to query balances for.
|
||||
Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
|
||||
// denom is the coin denom to query balances for
|
||||
// denom is the coin denom to query balances for.
|
||||
Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -86,9 +86,9 @@ func (m *QueryBalanceRequest) GetDenom() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// QueryBalanceResponse is the response type for the Query/Balance RPC method
|
||||
// QueryBalanceResponse is the response type for the Query/Balance RPC method.
|
||||
type QueryBalanceResponse struct {
|
||||
// balance is the balance of the coin
|
||||
// balance is the balance of the coin.
|
||||
Balance *types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -132,11 +132,12 @@ func (m *QueryBalanceResponse) GetBalance() *types.Coin {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryBalanceRequest is the request type for the Query/AllBalances RPC method
|
||||
// QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
|
||||
type QueryAllBalancesRequest struct {
|
||||
// address is the address to query balances for
|
||||
Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// address is the address to query balances for.
|
||||
Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryAllBalancesRequest) Reset() { *m = QueryAllBalancesRequest{} }
|
||||
|
@ -186,11 +187,12 @@ func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method
|
||||
// QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.
|
||||
type QueryAllBalancesResponse struct {
|
||||
// balances is the balances of the coins
|
||||
Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// balances is the balances of all the coins.
|
||||
Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryAllBalancesResponse) Reset() { *m = QueryAllBalancesResponse{} }
|
||||
|
@ -240,7 +242,7 @@ func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method
|
||||
// QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method.
|
||||
type QueryTotalSupplyRequest struct {
|
||||
}
|
||||
|
||||
|
@ -323,8 +325,9 @@ func (m *QueryTotalSupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_type
|
|||
return nil
|
||||
}
|
||||
|
||||
// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method
|
||||
// QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.
|
||||
type QuerySupplyOfRequest struct {
|
||||
// denom is the coin denom to query balances for.
|
||||
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -368,9 +371,9 @@ func (m *QuerySupplyOfRequest) GetDenom() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method
|
||||
// QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.
|
||||
type QuerySupplyOfResponse struct {
|
||||
// amount is the supply of the coin
|
||||
// amount is the supply of the coin.
|
||||
Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"`
|
||||
}
|
||||
|
||||
|
@ -469,13 +472,13 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Balance queries the balance of a single coin for a single account
|
||||
// Balance queries the balance of a single coin for a single account.
|
||||
Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
|
||||
// AllBalances queries the balance of all coins for a single account
|
||||
// AllBalances queries the balance of all coins for a single account.
|
||||
AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error)
|
||||
// TotalSupply queries the total supply of all coins
|
||||
// TotalSupply queries the total supply of all coins.
|
||||
TotalSupply(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error)
|
||||
// SupplyOf queries the supply of a single coin
|
||||
// SupplyOf queries the supply of a single coin.
|
||||
SupplyOf(ctx context.Context, in *QuerySupplyOfRequest, opts ...grpc.CallOption) (*QuerySupplyOfResponse, error)
|
||||
}
|
||||
|
||||
|
@ -525,13 +528,13 @@ func (c *queryClient) SupplyOf(ctx context.Context, in *QuerySupplyOfRequest, op
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Balance queries the balance of a single coin for a single account
|
||||
// Balance queries the balance of a single coin for a single account.
|
||||
Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
|
||||
// AllBalances queries the balance of all coins for a single account
|
||||
// AllBalances queries the balance of all coins for a single account.
|
||||
AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
|
||||
// TotalSupply queries the total supply of all coins
|
||||
// TotalSupply queries the total supply of all coins.
|
||||
TotalSupply(context.Context, *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)
|
||||
// SupplyOf queries the supply of a single coin
|
||||
// SupplyOf queries the supply of a single coin.
|
||||
SupplyOf(context.Context, *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
}
|
||||
|
||||
|
@ -68,8 +68,9 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
// params defines the parameters of the module.
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
|
@ -113,8 +114,9 @@ func (m *QueryParamsResponse) GetParams() Params {
|
|||
return Params{}
|
||||
}
|
||||
|
||||
// QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method
|
||||
// QueryValidatorOutstandingRewardsRequest is the request type for the Query/ValidatorOutstandingRewards RPC method.
|
||||
type QueryValidatorOutstandingRewardsRequest struct {
|
||||
// validator_address defines the validator address to query for.
|
||||
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -160,7 +162,7 @@ func (m *QueryValidatorOutstandingRewardsRequest) GetValidatorAddress() github_c
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method
|
||||
// QueryValidatorOutstandingRewardsResponse is the response type for the Query/ValidatorOutstandingRewards RPC method.
|
||||
type QueryValidatorOutstandingRewardsResponse struct {
|
||||
Rewards ValidatorOutstandingRewards `protobuf:"bytes,1,opt,name=rewards,proto3" json:"rewards"`
|
||||
}
|
||||
|
@ -209,6 +211,7 @@ func (m *QueryValidatorOutstandingRewardsResponse) GetRewards() ValidatorOutstan
|
|||
|
||||
// QueryValidatorCommissionRequest is the request type for the Query/ValidatorCommission RPC method
|
||||
type QueryValidatorCommissionRequest struct {
|
||||
// validator_address defines the validator address to query for.
|
||||
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -254,6 +257,7 @@ func (m *QueryValidatorCommissionRequest) GetValidatorAddress() github_com_cosmo
|
|||
|
||||
// QueryValidatorCommissionResponse is the response type for the Query/ValidatorCommission RPC method
|
||||
type QueryValidatorCommissionResponse struct {
|
||||
// commission defines the commision the validator received.
|
||||
Commission ValidatorAccumulatedCommission `protobuf:"bytes,1,opt,name=commission,proto3" json:"commission"`
|
||||
}
|
||||
|
||||
|
@ -299,10 +303,14 @@ func (m *QueryValidatorCommissionResponse) GetCommission() ValidatorAccumulatedC
|
|||
|
||||
// QueryValidatorSlashesRequest is the request type for the Query/ValidatorSlashes RPC method
|
||||
type QueryValidatorSlashesRequest struct {
|
||||
// validator_address defines the validator address to query for.
|
||||
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
|
||||
StartingHeight uint64 `protobuf:"varint,2,opt,name=starting_height,json=startingHeight,proto3" json:"starting_height,omitempty"`
|
||||
EndingHeight uint64 `protobuf:"varint,3,opt,name=ending_height,json=endingHeight,proto3" json:"ending_height,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// starting_height defines the optional starting height to query the slashes.
|
||||
StartingHeight uint64 `protobuf:"varint,2,opt,name=starting_height,json=startingHeight,proto3" json:"starting_height,omitempty"`
|
||||
// starting_height defines the optional ending height to query the slashes.
|
||||
EndingHeight uint64 `protobuf:"varint,3,opt,name=ending_height,json=endingHeight,proto3" json:"ending_height,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorSlashesRequest) Reset() { *m = QueryValidatorSlashesRequest{} }
|
||||
|
@ -366,10 +374,12 @@ func (m *QueryValidatorSlashesRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method
|
||||
// QueryValidatorSlashesResponse is the response type for the Query/ValidatorSlashes RPC method.
|
||||
type QueryValidatorSlashesResponse struct {
|
||||
Slashes []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=slashes,proto3" json:"slashes"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// slashes defines the slashes the validator received.
|
||||
Slashes []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=slashes,proto3" json:"slashes"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorSlashesResponse) Reset() { *m = QueryValidatorSlashesResponse{} }
|
||||
|
@ -419,9 +429,11 @@ func (m *QueryValidatorSlashesResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method
|
||||
// QueryDelegationRewardsRequest is the request type for the Query/DelegationRewards RPC method.
|
||||
type QueryDelegationRewardsRequest struct {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
|
||||
// validator_address defines the validator address to query for.
|
||||
ValidatorAddress github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -472,8 +484,9 @@ func (m *QueryDelegationRewardsRequest) GetValidatorAddress() github_com_cosmos_
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method
|
||||
// QueryDelegationRewardsResponse is the response type for the Query/DelegationRewards RPC method.
|
||||
type QueryDelegationRewardsResponse struct {
|
||||
// rewards defines the rewards accrued by a delegation.
|
||||
Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
|
||||
}
|
||||
|
||||
|
@ -517,8 +530,9 @@ func (m *QueryDelegationRewardsResponse) GetRewards() github_com_cosmos_cosmos_s
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method
|
||||
// QueryDelegationTotalRewardsRequest is the request type for the Query/DelegationTotalRewards RPC method.
|
||||
type QueryDelegationTotalRewardsRequest struct {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -562,10 +576,12 @@ func (m *QueryDelegationTotalRewardsRequest) GetDelegatorAddress() github_com_co
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method
|
||||
// QueryDelegationTotalRewardsResponse is the response type for the Query/DelegationTotalRewards RPC method.
|
||||
type QueryDelegationTotalRewardsResponse struct {
|
||||
Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
|
||||
Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
|
||||
// rewards defines all the rewards accrued by a delegator.
|
||||
Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"`
|
||||
// total defines the sum of all the rewards.
|
||||
Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegationTotalRewardsResponse) Reset() { *m = QueryDelegationTotalRewardsResponse{} }
|
||||
|
@ -615,8 +631,9 @@ func (m *QueryDelegationTotalRewardsResponse) GetTotal() github_com_cosmos_cosmo
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsRequest is the request type for the Query/DelegatorValidators RPC method.
|
||||
type QueryDelegatorValidatorsRequest struct {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -660,8 +677,9 @@ func (m *QueryDelegatorValidatorsRequest) GetDelegatorAddress() github_com_cosmo
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsResponse is the response type for the Query/DelegatorValidators RPC method.
|
||||
type QueryDelegatorValidatorsResponse struct {
|
||||
// validators defines the validators a delegator is delegating for.
|
||||
Validators []github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,rep,name=validators,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validators,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -705,8 +723,9 @@ func (m *QueryDelegatorValidatorsResponse) GetValidators() []github_com_cosmos_c
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method
|
||||
// QueryDelegatorWithdrawAddressRequest is the request type for the Query/DelegatorWithdrawAddress RPC method.
|
||||
type QueryDelegatorWithdrawAddressRequest struct {
|
||||
// delegator_address defines the delegator address to query for.
|
||||
DelegatorAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -750,8 +769,9 @@ func (m *QueryDelegatorWithdrawAddressRequest) GetDelegatorAddress() github_com_
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method
|
||||
// QueryDelegatorWithdrawAddressResponse is the response type for the Query/DelegatorWithdrawAddress RPC method.
|
||||
type QueryDelegatorWithdrawAddressResponse struct {
|
||||
// withdraw_address defines the delegator address to query for.
|
||||
WithdrawAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=withdraw_address,json=withdrawAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"withdraw_address,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -795,7 +815,7 @@ func (m *QueryDelegatorWithdrawAddressResponse) GetWithdrawAddress() github_com_
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method
|
||||
// QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.
|
||||
type QueryCommunityPoolRequest struct {
|
||||
}
|
||||
|
||||
|
@ -832,8 +852,9 @@ func (m *QueryCommunityPoolRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryCommunityPoolRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method
|
||||
// QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.
|
||||
type QueryCommunityPoolResponse struct {
|
||||
// pool defines community pool's coins.
|
||||
Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"`
|
||||
}
|
||||
|
||||
|
@ -975,23 +996,23 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Params queries params of distribution module
|
||||
// Params queries params of the distribution module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(ctx context.Context, in *QueryValidatorOutstandingRewardsRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
// ValidatorCommission queries accumulated commission for a validator
|
||||
// ValidatorCommission queries accumulated commission for a validator.
|
||||
ValidatorCommission(ctx context.Context, in *QueryValidatorCommissionRequest, opts ...grpc.CallOption) (*QueryValidatorCommissionResponse, error)
|
||||
// ValidatorSlashes queries slash events of a validator
|
||||
// ValidatorSlashes queries slash events of a validator.
|
||||
ValidatorSlashes(ctx context.Context, in *QueryValidatorSlashesRequest, opts ...grpc.CallOption) (*QueryValidatorSlashesResponse, error)
|
||||
// DelegationRewards the total rewards accrued by a delegation
|
||||
// DelegationRewards queries the total rewards accrued by a delegation.
|
||||
DelegationRewards(ctx context.Context, in *QueryDelegationRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationRewardsResponse, error)
|
||||
// DelegationTotalRewards the total rewards accrued by a each validator
|
||||
// DelegationTotalRewards queries the total rewards accrued by a each validator.
|
||||
DelegationTotalRewards(ctx context.Context, in *QueryDelegationTotalRewardsRequest, opts ...grpc.CallOption) (*QueryDelegationTotalRewardsResponse, error)
|
||||
// DelegatorValidators queries the validators of a delegator
|
||||
// DelegatorValidators queries the validators of a delegator.
|
||||
DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator.
|
||||
DelegatorWithdrawAddress(ctx context.Context, in *QueryDelegatorWithdrawAddressRequest, opts ...grpc.CallOption) (*QueryDelegatorWithdrawAddressResponse, error)
|
||||
// CommunityPool queries the community pool coins
|
||||
// CommunityPool queries the community pool coins.
|
||||
CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error)
|
||||
}
|
||||
|
||||
|
@ -1086,23 +1107,23 @@ func (c *queryClient) CommunityPool(ctx context.Context, in *QueryCommunityPoolR
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Params queries params of distribution module
|
||||
// Params queries params of the distribution module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address
|
||||
// ValidatorOutstandingRewards queries rewards of a validator address.
|
||||
ValidatorOutstandingRewards(context.Context, *QueryValidatorOutstandingRewardsRequest) (*QueryValidatorOutstandingRewardsResponse, error)
|
||||
// ValidatorCommission queries accumulated commission for a validator
|
||||
// ValidatorCommission queries accumulated commission for a validator.
|
||||
ValidatorCommission(context.Context, *QueryValidatorCommissionRequest) (*QueryValidatorCommissionResponse, error)
|
||||
// ValidatorSlashes queries slash events of a validator
|
||||
// ValidatorSlashes queries slash events of a validator.
|
||||
ValidatorSlashes(context.Context, *QueryValidatorSlashesRequest) (*QueryValidatorSlashesResponse, error)
|
||||
// DelegationRewards the total rewards accrued by a delegation
|
||||
// DelegationRewards queries the total rewards accrued by a delegation.
|
||||
DelegationRewards(context.Context, *QueryDelegationRewardsRequest) (*QueryDelegationRewardsResponse, error)
|
||||
// DelegationTotalRewards the total rewards accrued by a each validator
|
||||
// DelegationTotalRewards queries the total rewards accrued by a each validator.
|
||||
DelegationTotalRewards(context.Context, *QueryDelegationTotalRewardsRequest) (*QueryDelegationTotalRewardsResponse, error)
|
||||
// DelegatorValidators queries the validators of a delegator
|
||||
// DelegatorValidators queries the validators of a delegator.
|
||||
DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator
|
||||
// DelegatorWithdrawAddress queries withdraw address of a delegator.
|
||||
DelegatorWithdrawAddress(context.Context, *QueryDelegatorWithdrawAddressRequest) (*QueryDelegatorWithdrawAddressResponse, error)
|
||||
// CommunityPool queries the community pool coins
|
||||
// CommunityPool queries the community pool coins.
|
||||
CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
|
||||
}
|
||||
|
||||
|
|
|
@ -31,8 +31,9 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryEvidenceRequest is the request type for the Query/Evidence RPC method
|
||||
// QueryEvidenceRequest is the request type for the Query/Evidence RPC method.
|
||||
type QueryEvidenceRequest struct {
|
||||
// evidence_hash defines the hash of the requested evidence.
|
||||
EvidenceHash github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=evidence_hash,json=evidenceHash,proto3,casttype=github.com/tendermint/tendermint/libs/bytes.HexBytes" json:"evidence_hash,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -76,8 +77,9 @@ func (m *QueryEvidenceRequest) GetEvidenceHash() github_com_tendermint_tendermin
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryEvidenceResponse is the response type for the Query/Evidence RPC method
|
||||
// QueryEvidenceResponse is the response type for the Query/Evidence RPC method.
|
||||
type QueryEvidenceResponse struct {
|
||||
// evidence returns the requested evidence.
|
||||
Evidence *types.Any `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -121,8 +123,9 @@ func (m *QueryEvidenceResponse) GetEvidence() *types.Any {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC method
|
||||
// QueryEvidenceRequest is the request type for the Query/AllEvidence RPC method.
|
||||
type QueryAllEvidenceRequest struct {
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -166,9 +169,11 @@ func (m *QueryAllEvidenceRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method
|
||||
// QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC method.
|
||||
type QueryAllEvidenceResponse struct {
|
||||
Evidence []*types.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
// evidence returns all evidences.
|
||||
Evidence []*types.Any `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -270,9 +275,9 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Evidence queries evidence based on evidence hash
|
||||
// Evidence queries evidence based on evidence hash.
|
||||
Evidence(ctx context.Context, in *QueryEvidenceRequest, opts ...grpc.CallOption) (*QueryEvidenceResponse, error)
|
||||
// AllEvidence queries all evidence
|
||||
// AllEvidence queries all evidence.
|
||||
AllEvidence(ctx context.Context, in *QueryAllEvidenceRequest, opts ...grpc.CallOption) (*QueryAllEvidenceResponse, error)
|
||||
}
|
||||
|
||||
|
@ -304,9 +309,9 @@ func (c *queryClient) AllEvidence(ctx context.Context, in *QueryAllEvidenceReque
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Evidence queries evidence based on evidence hash
|
||||
// Evidence queries evidence based on evidence hash.
|
||||
Evidence(context.Context, *QueryEvidenceRequest) (*QueryEvidenceResponse, error)
|
||||
// AllEvidence queries all evidence
|
||||
// AllEvidence queries all evidence.
|
||||
AllEvidence(context.Context, *QueryAllEvidenceRequest) (*QueryAllEvidenceResponse, error)
|
||||
}
|
||||
|
||||
|
|
|
@ -30,9 +30,9 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryProposalRequest is the request type for the Query/Proposal RPC method
|
||||
// QueryProposalRequest is the request type for the Query/Proposal RPC method.
|
||||
type QueryProposalRequest struct {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ func (m *QueryProposalRequest) GetProposalId() uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
// QueryProposalResponse is the response type for the Query/Proposal RPC method
|
||||
// QueryProposalResponse is the response type for the Query/Proposal RPC method.
|
||||
type QueryProposalResponse struct {
|
||||
Proposal Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
|
||||
}
|
||||
|
@ -121,15 +121,16 @@ func (m *QueryProposalResponse) GetProposal() Proposal {
|
|||
return Proposal{}
|
||||
}
|
||||
|
||||
// QueryProposalsRequest is the request type for the Query/Proposals RPC method
|
||||
// QueryProposalsRequest is the request type for the Query/Proposals RPC method.
|
||||
type QueryProposalsRequest struct {
|
||||
// status of the proposals.
|
||||
// proposal_status defines the status of the proposals.
|
||||
ProposalStatus ProposalStatus `protobuf:"varint,1,opt,name=proposal_status,json=proposalStatus,proto3,enum=cosmos.gov.ProposalStatus" json:"proposal_status,omitempty"`
|
||||
// Voter address for the proposals.
|
||||
// voter defines the voter address for the proposals.
|
||||
Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"`
|
||||
// Deposit addresses from the proposals.
|
||||
Depositor github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=depositor,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"depositor,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// depositor defines the deposit addresses from the proposals.
|
||||
Depositor github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,3,opt,name=depositor,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"depositor,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryProposalsRequest) Reset() { *m = QueryProposalsRequest{} }
|
||||
|
@ -193,9 +194,10 @@ func (m *QueryProposalsRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryProposalsResponse is the response type for the Query/Proposals RPC method
|
||||
// QueryProposalsResponse is the response type for the Query/Proposals RPC method.
|
||||
type QueryProposalsResponse struct {
|
||||
Proposals []Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"`
|
||||
Proposals []Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -246,11 +248,11 @@ func (m *QueryProposalsResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryVoteRequest is the request type for the Query/Vote RPC method
|
||||
// QueryVoteRequest is the request type for the Query/Vote RPC method.
|
||||
type QueryVoteRequest struct {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// Voter address for the proposals.
|
||||
// voter defines the oter address for the proposals.
|
||||
Voter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=voter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"voter,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -301,8 +303,9 @@ func (m *QueryVoteRequest) GetVoter() github_com_cosmos_cosmos_sdk_types.AccAddr
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryVoteResponse is the response type for the Query/Vote RPC method
|
||||
// QueryVoteResponse is the response type for the Query/Vote RPC method.
|
||||
type QueryVoteResponse struct {
|
||||
// vote defined the queried vote.
|
||||
Vote Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote"`
|
||||
}
|
||||
|
||||
|
@ -346,10 +349,11 @@ func (m *QueryVoteResponse) GetVote() Vote {
|
|||
return Vote{}
|
||||
}
|
||||
|
||||
// QueryVotesRequest is the request type for the Query/Votes RPC method
|
||||
// QueryVotesRequest is the request type for the Query/Votes RPC method.
|
||||
type QueryVotesRequest struct {
|
||||
// unique id of the proposal
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -400,9 +404,11 @@ func (m *QueryVotesRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryVotesResponse is the response type for the Query/Votes RPC method
|
||||
// QueryVotesResponse is the response type for the Query/Votes RPC method.
|
||||
type QueryVotesResponse struct {
|
||||
Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
|
||||
// votes defined the queried votes.
|
||||
Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -453,8 +459,9 @@ func (m *QueryVotesResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
// params_type defines which parameters to query for, can be one of "voting", "tallying" or "deposit".
|
||||
ParamsType string `protobuf:"bytes,1,opt,name=params_type,json=paramsType,proto3" json:"params_type,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -498,11 +505,14 @@ func (m *QueryParamsRequest) GetParamsType() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
VotingParams VotingParams `protobuf:"bytes,1,opt,name=voting_params,json=votingParams,proto3" json:"voting_params"`
|
||||
// voting_params defines the parameters related to voting.
|
||||
VotingParams VotingParams `protobuf:"bytes,1,opt,name=voting_params,json=votingParams,proto3" json:"voting_params"`
|
||||
// deposit_params defines the parameters related to deposit.
|
||||
DepositParams DepositParams `protobuf:"bytes,2,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params"`
|
||||
TallyParams TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params"`
|
||||
// tally_params defines the parameters related to tally.
|
||||
TallyParams TallyParams `protobuf:"bytes,3,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params"`
|
||||
}
|
||||
|
||||
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
||||
|
@ -559,11 +569,11 @@ func (m *QueryParamsResponse) GetTallyParams() TallyParams {
|
|||
return TallyParams{}
|
||||
}
|
||||
|
||||
// QueryDepositRequest is the request type for the Query/Deposit RPC method
|
||||
// QueryDepositRequest is the request type for the Query/Deposit RPC method.
|
||||
type QueryDepositRequest struct {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// Deposit addresses from the proposals.
|
||||
// depositor defines the deposit addresses from the proposals.
|
||||
Depositor github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=depositor,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"depositor,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -614,8 +624,9 @@ func (m *QueryDepositRequest) GetDepositor() github_com_cosmos_cosmos_sdk_types.
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDepositResponse is the response type for the Query/Deposit RPC method
|
||||
// QueryDepositResponse is the response type for the Query/Deposit RPC method.
|
||||
type QueryDepositResponse struct {
|
||||
// deposit defines the requested deposit.
|
||||
Deposit Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit"`
|
||||
}
|
||||
|
||||
|
@ -659,10 +670,11 @@ func (m *QueryDepositResponse) GetDeposit() Deposit {
|
|||
return Deposit{}
|
||||
}
|
||||
|
||||
// QueryDepositsRequest is the request type for the Query/Deposits RPC method
|
||||
// QueryDepositsRequest is the request type for the Query/Deposits RPC method.
|
||||
type QueryDepositsRequest struct {
|
||||
// unique id of the proposal
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -713,9 +725,10 @@ func (m *QueryDepositsRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDepositsResponse is the response type for the Query/Deposits RPC method
|
||||
// QueryDepositsResponse is the response type for the Query/Deposits RPC method.
|
||||
type QueryDepositsResponse struct {
|
||||
Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"`
|
||||
Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -766,9 +779,9 @@ func (m *QueryDepositsResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryTallyResultRequest is the request type for the Query/Tally RPC method
|
||||
// QueryTallyResultRequest is the request type for the Query/Tally RPC method.
|
||||
type QueryTallyResultRequest struct {
|
||||
// unique id of the proposal
|
||||
// proposal_id defines the unique id of the proposal.
|
||||
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -812,8 +825,9 @@ func (m *QueryTallyResultRequest) GetProposalId() uint64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
// QueryTallyResultResponse is the response type for the Query/Tally RPC method
|
||||
// QueryTallyResultResponse is the response type for the Query/Tally RPC method.
|
||||
type QueryTallyResultResponse struct {
|
||||
// tally defines the requested tally.
|
||||
Tally TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally"`
|
||||
}
|
||||
|
||||
|
@ -945,21 +959,21 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Proposal queries proposal details based on ProposalID
|
||||
// Proposal queries proposal details based on ProposalID.
|
||||
Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
|
||||
// Proposals queries all proposals based on given status
|
||||
// Proposals queries all proposals based on given status.
|
||||
Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
|
||||
// Vote queries Voted information based on proposalID, voterAddr
|
||||
// Vote queries voted information based on proposalID, voterAddr.
|
||||
Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
|
||||
// Votes queries votes of a given proposal
|
||||
// Votes queries votes of a given proposal.
|
||||
Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
Deposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error)
|
||||
// TallyResult queries the tally of a proposal vote
|
||||
// TallyResult queries the tally of a proposal vote.
|
||||
TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
|
||||
}
|
||||
|
||||
|
@ -1045,21 +1059,21 @@ func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultReque
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Proposal queries proposal details based on ProposalID
|
||||
// Proposal queries proposal details based on ProposalID.
|
||||
Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
|
||||
// Proposals queries all proposals based on given status
|
||||
// Proposals queries all proposals based on given status.
|
||||
Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
|
||||
// Vote queries Voted information based on proposalID, voterAddr
|
||||
// Vote queries voted information based on proposalID, voterAddr.
|
||||
Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
|
||||
// Votes queries votes of a given proposal
|
||||
// Votes queries votes of a given proposal.
|
||||
Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
|
||||
// Params queries all parameters of the gov module
|
||||
// Params queries all parameters of the gov module.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
// Deposit queries single deposit information based proposalID, depositAddr
|
||||
// Deposit queries single deposit information based proposalID, depositAddr.
|
||||
Deposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
|
||||
// Deposits queries all deposits of a single proposal
|
||||
// Deposits queries all deposits of a single proposal.
|
||||
Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error)
|
||||
// TallyResult queries the tally of a proposal vote
|
||||
// TallyResult queries the tally of a proposal vote.
|
||||
TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
}
|
||||
|
||||
|
@ -66,8 +66,9 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
// params defines the parameters of the module.
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
|
@ -111,7 +112,7 @@ func (m *QueryParamsResponse) GetParams() Params {
|
|||
return Params{}
|
||||
}
|
||||
|
||||
// QueryInflationRequest is the request type for the Query/Inflation RPC method
|
||||
// QueryInflationRequest is the request type for the Query/Inflation RPC method.
|
||||
type QueryInflationRequest struct {
|
||||
}
|
||||
|
||||
|
@ -148,8 +149,9 @@ func (m *QueryInflationRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryInflationRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryInflationResponse is the response type for the Query/Inflation RPC method
|
||||
// QueryInflationResponse is the response type for the Query/Inflation RPC method.
|
||||
type QueryInflationResponse struct {
|
||||
// inflation is the current minting inflation value.
|
||||
Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"`
|
||||
}
|
||||
|
||||
|
@ -186,7 +188,7 @@ func (m *QueryInflationResponse) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryInflationResponse proto.InternalMessageInfo
|
||||
|
||||
// QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method
|
||||
// QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method.
|
||||
type QueryAnnualProvisionsRequest struct {
|
||||
}
|
||||
|
||||
|
@ -223,8 +225,9 @@ func (m *QueryAnnualProvisionsRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryAnnualProvisionsRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method
|
||||
// QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method.
|
||||
type QueryAnnualProvisionsResponse struct {
|
||||
// annual_provisions is the current minting annual provisions value.
|
||||
AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"`
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ func NewQuerySubspaceParamsCmd() *cobra.Command {
|
|||
return err
|
||||
}
|
||||
|
||||
return clientCtx.PrintOutput(res.GetParams())
|
||||
return clientCtx.PrintOutput(res.GetParam())
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ func (k Keeper) Params(c context.Context, req *proposal.QueryParamsRequest) (*pr
|
|||
|
||||
ctx := sdk.UnwrapSDKContext(c)
|
||||
rawValue := ss.GetRaw(ctx, []byte(req.Key))
|
||||
params := proposal.NewParamChange(req.Subspace, req.Key, string(rawValue))
|
||||
param := proposal.NewParamChange(req.Subspace, req.Key, string(rawValue))
|
||||
|
||||
return &proposal.QueryParamsResponse{Params: params}, nil
|
||||
return &proposal.QueryParamsResponse{Param: param}, nil
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ func (suite *KeeperTestSuite) TestGRPCQueryParams() {
|
|||
if tc.expPass {
|
||||
suite.Require().NoError(err)
|
||||
suite.Require().NotNil(res)
|
||||
suite.Require().Equal(expValue, res.Params.Value)
|
||||
suite.Require().Equal(expValue, res.Param.Value)
|
||||
} else {
|
||||
suite.Require().Error(err)
|
||||
suite.Require().Nil(res)
|
||||
|
|
|
@ -28,10 +28,12 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
// subspace defines the module to query the parameter for.
|
||||
Subspace string `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace,omitempty"`
|
||||
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||
// key defines the key of the parameter in the subspace.
|
||||
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} }
|
||||
|
@ -81,9 +83,10 @@ func (m *QueryParamsRequest) GetKey() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
Params ParamChange `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
// param defines the queried parameter.
|
||||
Param ParamChange `protobuf:"bytes,1,opt,name=param,proto3" json:"param"`
|
||||
}
|
||||
|
||||
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
||||
|
@ -119,9 +122,9 @@ func (m *QueryParamsResponse) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *QueryParamsResponse) GetParams() ParamChange {
|
||||
func (m *QueryParamsResponse) GetParam() ParamChange {
|
||||
if m != nil {
|
||||
return m.Params
|
||||
return m.Param
|
||||
}
|
||||
return ParamChange{}
|
||||
}
|
||||
|
@ -142,16 +145,16 @@ var fileDescriptor_3bc356506c43c13a = []byte{
|
|||
0x53, 0x72, 0xe2, 0x12, 0x0a, 0x04, 0x99, 0x17, 0x00, 0x16, 0x0c, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d,
|
||||
0x2e, 0x11, 0x92, 0xe2, 0xe2, 0x28, 0x2e, 0x4d, 0x2a, 0x2e, 0x48, 0x4c, 0x4e, 0x95, 0x60, 0x54,
|
||||
0x60, 0xd4, 0xe0, 0x0c, 0x82, 0xf3, 0x85, 0x04, 0xb8, 0x98, 0xb3, 0x53, 0x2b, 0x25, 0x98, 0xc0,
|
||||
0xc2, 0x20, 0xa6, 0x92, 0x3f, 0x97, 0x30, 0x8a, 0x19, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x42,
|
||||
0x16, 0x5c, 0x6c, 0x10, 0xab, 0xc0, 0x46, 0x70, 0x1b, 0x49, 0xe9, 0xa1, 0x38, 0x56, 0x0f, 0xac,
|
||||
0xdc, 0x39, 0x23, 0x31, 0x2f, 0x3d, 0xd5, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0xa8, 0x7a,
|
||||
0xa3, 0x28, 0x2e, 0x56, 0xb0, 0x81, 0x42, 0x81, 0x5c, 0x6c, 0x10, 0x43, 0x85, 0x14, 0xd1, 0x34,
|
||||
0x63, 0x3a, 0x5a, 0x4a, 0x09, 0x9f, 0x12, 0x88, 0x9b, 0x94, 0x18, 0x9c, 0xfc, 0x4e, 0x3c, 0x92,
|
||||
0xc2, 0x20, 0xa6, 0x92, 0x2f, 0x97, 0x30, 0x8a, 0x19, 0xc5, 0x05, 0xf9, 0x79, 0xc5, 0xa9, 0x42,
|
||||
0x66, 0x5c, 0xac, 0x60, 0xab, 0xc0, 0x26, 0x70, 0x1b, 0x49, 0xe9, 0xa1, 0xb8, 0x55, 0x0f, 0xac,
|
||||
0xda, 0x39, 0x23, 0x31, 0x2f, 0x3d, 0xd5, 0x89, 0xe5, 0xc4, 0x3d, 0x79, 0x86, 0x20, 0x88, 0x72,
|
||||
0xa3, 0x28, 0x2e, 0x56, 0xb0, 0x71, 0x42, 0x81, 0x5c, 0x6c, 0x10, 0x23, 0x85, 0x14, 0xd1, 0xf4,
|
||||
0x62, 0x3a, 0x59, 0x4a, 0x09, 0x9f, 0x12, 0x88, 0x8b, 0x94, 0x18, 0x9c, 0xfc, 0x4e, 0x3c, 0x92,
|
||||
0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c,
|
||||
0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x24, 0x3d, 0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f,
|
||||
0x39, 0x3f, 0x57, 0x1f, 0x1a, 0x62, 0x10, 0x4a, 0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 0x16, 0x7c,
|
||||
0x39, 0x3f, 0x57, 0x1f, 0x1a, 0x5e, 0x10, 0x4a, 0xb7, 0x38, 0x25, 0x5b, 0xbf, 0x02, 0x16, 0x78,
|
||||
0x25, 0x95, 0x05, 0xa9, 0xc5, 0xfa, 0x05, 0x45, 0xf9, 0x05, 0xf9, 0xc5, 0x89, 0x39, 0x49, 0x6c,
|
||||
0xe0, 0x70, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x88, 0x12, 0x84, 0xa6, 0xa5, 0x01, 0x00,
|
||||
0xe0, 0x50, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x85, 0xc8, 0x5e, 0x08, 0xa3, 0x01, 0x00,
|
||||
0x00,
|
||||
}
|
||||
|
||||
|
@ -167,7 +170,7 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Params queries all parameters of the params module
|
||||
// Params queries a specific parameter of a module, given its subspace and key.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
@ -190,7 +193,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Params queries all parameters of the params module
|
||||
// Params queries a specific parameter of a module, given its subspace and key.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
@ -295,7 +298,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
var l int
|
||||
_ = l
|
||||
{
|
||||
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
|
||||
size, err := m.Param.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
@ -341,7 +344,7 @@ func (m *QueryParamsResponse) Size() (n int) {
|
|||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = m.Params.Size()
|
||||
l = m.Param.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
return n
|
||||
}
|
||||
|
@ -500,7 +503,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
|
|||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Param", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
|
@ -527,7 +530,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
|
|||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
if err := m.Param.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
|
|
|
@ -30,9 +30,11 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryValidatorsRequest is request type for Query/Validators RPC method
|
||||
// QueryValidatorsRequest is request type for Query/Validators RPC method.
|
||||
type QueryValidatorsRequest struct {
|
||||
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// status enables to query for validators matching a given status.
|
||||
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -85,7 +87,9 @@ func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest {
|
|||
|
||||
// QueryValidatorsResponse is response type for the Query/Validators RPC method
|
||||
type QueryValidatorsResponse struct {
|
||||
Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
|
||||
// validators contains all the queried validators
|
||||
Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -138,6 +142,7 @@ func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse {
|
|||
|
||||
// QueryValidatorRequest is response type for the Query/Validator RPC method
|
||||
type QueryValidatorRequest struct {
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -183,6 +188,7 @@ func (m *QueryValidatorRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk_
|
|||
|
||||
// QueryValidatorResponse is response type for the Query/Validator RPC method
|
||||
type QueryValidatorResponse struct {
|
||||
// validator defines the the validator info.
|
||||
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
|
||||
}
|
||||
|
||||
|
@ -228,8 +234,10 @@ func (m *QueryValidatorResponse) GetValidator() Validator {
|
|||
|
||||
// QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method
|
||||
type QueryValidatorDelegationsRequest struct {
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorDelegationsRequest) Reset() { *m = QueryValidatorDelegationsRequest{} }
|
||||
|
@ -282,7 +290,8 @@ func (m *QueryValidatorDelegationsRequest) GetPagination() *query.PageRequest {
|
|||
// QueryValidatorDelegationsRequest is response type for the Query/ValidatorDelegations RPC method
|
||||
type QueryValidatorDelegationsResponse struct {
|
||||
DelegationResponses DelegationResponses `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3,castrepeated=DelegationResponses" json:"delegation_responses"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorDelegationsResponse) Reset() { *m = QueryValidatorDelegationsResponse{} }
|
||||
|
@ -334,8 +343,10 @@ func (m *QueryValidatorDelegationsResponse) GetPagination() *query.PageResponse
|
|||
|
||||
// QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method
|
||||
type QueryValidatorUnbondingDelegationsRequest struct {
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorUnbondingDelegationsRequest) Reset() {
|
||||
|
@ -389,10 +400,11 @@ func (m *QueryValidatorUnbondingDelegationsRequest) GetPagination() *query.PageR
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method
|
||||
// QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.
|
||||
type QueryValidatorUnbondingDelegationsResponse struct {
|
||||
UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryValidatorUnbondingDelegationsResponse) Reset() {
|
||||
|
@ -446,9 +458,11 @@ func (m *QueryValidatorUnbondingDelegationsResponse) GetPagination() *query.Page
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationRequest is request type for the Query/Delegation RPC method
|
||||
// QueryDelegationRequest is request type for the Query/Delegation RPC method.
|
||||
type QueryDelegationRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -499,9 +513,10 @@ func (m *QueryDelegationRequest) GetValidatorAddr() github_com_cosmos_cosmos_sdk
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationResponse is response type for the Query/Delegation RPC method
|
||||
// QueryDelegationResponse is response type for the Query/Delegation RPC method.
|
||||
type QueryDelegationResponse struct {
|
||||
DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3,casttype=DelegationResponse" json:"delegation_response,omitempty"`
|
||||
// delegation_responses defines the delegation info of a delegation.
|
||||
DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3" json:"delegation_response,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegationResponse) Reset() { *m = QueryDelegationResponse{} }
|
||||
|
@ -544,9 +559,11 @@ func (m *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method
|
||||
// QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.
|
||||
type QueryUnbondingDelegationRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -597,8 +614,9 @@ func (m *QueryUnbondingDelegationRequest) GetValidatorAddr() github_com_cosmos_c
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method
|
||||
// QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.
|
||||
type QueryUnbondingDelegationResponse struct {
|
||||
// unbond defines the unbonding information of a delegation.
|
||||
Unbond UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond"`
|
||||
}
|
||||
|
||||
|
@ -642,10 +660,12 @@ func (m *QueryUnbondingDelegationResponse) GetUnbond() UnbondingDelegation {
|
|||
return UnbondingDelegation{}
|
||||
}
|
||||
|
||||
// QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method
|
||||
// QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.
|
||||
type QueryDelegatorDelegationsRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegatorDelegationsRequest) Reset() { *m = QueryDelegatorDelegationsRequest{} }
|
||||
|
@ -695,10 +715,12 @@ func (m *QueryDelegatorDelegationsRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method
|
||||
// QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.
|
||||
type QueryDelegatorDelegationsResponse struct {
|
||||
// delegation_responses defines all the delegations' info of a delegator.
|
||||
DelegationResponses []DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegatorDelegationsResponse) Reset() { *m = QueryDelegatorDelegationsResponse{} }
|
||||
|
@ -748,10 +770,12 @@ func (m *QueryDelegatorDelegationsResponse) GetPagination() *query.PageResponse
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method
|
||||
// QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.
|
||||
type QueryDelegatorUnbondingDelegationsRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegatorUnbondingDelegationsRequest) Reset() {
|
||||
|
@ -805,10 +829,11 @@ func (m *QueryDelegatorUnbondingDelegationsRequest) GetPagination() *query.PageR
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method
|
||||
// QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.
|
||||
type QueryDelegatorUnbondingDelegationsResponse struct {
|
||||
UnbondingResponses []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegatorUnbondingDelegationsResponse) Reset() {
|
||||
|
@ -862,12 +887,16 @@ func (m *QueryDelegatorUnbondingDelegationsResponse) GetPagination() *query.Page
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryRedelegationsRequest is request type for the Query/Redelegations RPC method
|
||||
// QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.
|
||||
type QueryRedelegationsRequest struct {
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
// src_validator_addr defines the validator address to redelegate from.
|
||||
SrcValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"src_validator_addr,omitempty"`
|
||||
// dst_validator_addr defines the validator address to redelegate to.
|
||||
DstValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"dst_validator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryRedelegationsRequest) Reset() { *m = QueryRedelegationsRequest{} }
|
||||
|
@ -931,10 +960,11 @@ func (m *QueryRedelegationsRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryRedelegationsResponse is response type for the Query/Redelegations RPC method
|
||||
// QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.
|
||||
type QueryRedelegationsResponse struct {
|
||||
RedelegationResponses []RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryRedelegationsResponse) Reset() { *m = QueryRedelegationsResponse{} }
|
||||
|
@ -984,10 +1014,12 @@ func (m *QueryRedelegationsResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.
|
||||
type QueryDelegatorValidatorsRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// pagination defines an optional pagination for the request.
|
||||
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
func (m *QueryDelegatorValidatorsRequest) Reset() { *m = QueryDelegatorValidatorsRequest{} }
|
||||
|
@ -1037,9 +1069,11 @@ func (m *QueryDelegatorValidatorsRequest) GetPagination() *query.PageRequest {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method
|
||||
// QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.
|
||||
type QueryDelegatorValidatorsResponse struct {
|
||||
Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
|
||||
// validators defines the the validators' info of a delegator.
|
||||
Validators []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
|
||||
// pagination defines the pagination in the response.
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -1090,9 +1124,11 @@ func (m *QueryDelegatorValidatorsResponse) GetPagination() *query.PageResponse {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method
|
||||
// QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.
|
||||
type QueryDelegatorValidatorRequest struct {
|
||||
// delegator_addr defines the delegator address to query for.
|
||||
DelegatorAddr github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"delegator_addr,omitempty"`
|
||||
// validator_addr defines the validator address to query for.
|
||||
ValidatorAddr github_com_cosmos_cosmos_sdk_types.ValAddress `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ValAddress" json:"validator_addr,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -1143,8 +1179,9 @@ func (m *QueryDelegatorValidatorRequest) GetValidatorAddr() github_com_cosmos_co
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method
|
||||
// QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.
|
||||
type QueryDelegatorValidatorResponse struct {
|
||||
// validator defines the the validator info.
|
||||
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
|
||||
}
|
||||
|
||||
|
@ -1188,8 +1225,9 @@ func (m *QueryDelegatorValidatorResponse) GetValidator() Validator {
|
|||
return Validator{}
|
||||
}
|
||||
|
||||
// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method
|
||||
// QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.
|
||||
type QueryHistoricalInfoRequest struct {
|
||||
// height defines at which height to query the historical info.
|
||||
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -1233,8 +1271,9 @@ func (m *QueryHistoricalInfoRequest) GetHeight() int64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method
|
||||
// QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.
|
||||
type QueryHistoricalInfoResponse struct {
|
||||
// hist defines the historical info at the given height.
|
||||
Hist *HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -1278,7 +1317,7 @@ func (m *QueryHistoricalInfoResponse) GetHist() *HistoricalInfo {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryPoolRequest is request type for the Query/Pool RPC method
|
||||
// QueryPoolRequest is request type for the Query/Pool RPC method.
|
||||
type QueryPoolRequest struct {
|
||||
}
|
||||
|
||||
|
@ -1315,8 +1354,9 @@ func (m *QueryPoolRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryPoolRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryPoolResponse is response type for the Query/Pool RPC method
|
||||
// QueryPoolResponse is response type for the Query/Pool RPC method.
|
||||
type QueryPoolResponse struct {
|
||||
// pool defines the pool info.
|
||||
Pool Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
|
||||
}
|
||||
|
||||
|
@ -1360,7 +1400,7 @@ func (m *QueryPoolResponse) GetPool() Pool {
|
|||
return Pool{}
|
||||
}
|
||||
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method
|
||||
// QueryParamsRequest is request type for the Query/Params RPC method.
|
||||
type QueryParamsRequest struct {
|
||||
}
|
||||
|
||||
|
@ -1397,10 +1437,10 @@ func (m *QueryParamsRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method
|
||||
// QueryParamsResponse is response type for the Query/Params RPC method.
|
||||
type QueryParamsResponse struct {
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
||||
// params holds all the parameters of this module.
|
||||
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
|
||||
}
|
||||
|
||||
func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} }
|
||||
|
@ -1443,13 +1483,6 @@ func (m *QueryParamsResponse) GetParams() Params {
|
|||
return Params{}
|
||||
}
|
||||
|
||||
func (m *QueryParamsResponse) GetPagination() *query.PageResponse {
|
||||
if m != nil {
|
||||
return m.Pagination
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*QueryValidatorsRequest)(nil), "cosmos.staking.QueryValidatorsRequest")
|
||||
proto.RegisterType((*QueryValidatorsResponse)(nil), "cosmos.staking.QueryValidatorsResponse")
|
||||
|
@ -1484,76 +1517,75 @@ func init() {
|
|||
func init() { proto.RegisterFile("cosmos/staking/query.proto", fileDescriptor_802d43a0c79dce0e) }
|
||||
|
||||
var fileDescriptor_802d43a0c79dce0e = []byte{
|
||||
// 1099 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x41, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xf6, 0x24, 0xc1, 0x52, 0x1e, 0x6d, 0x54, 0xc6, 0xae, 0x49, 0xb7, 0xd4, 0x76, 0xb7, 0x50,
|
||||
0xda, 0x42, 0xed, 0x34, 0xf4, 0xd2, 0x4a, 0x08, 0x25, 0x54, 0x08, 0x0e, 0x48, 0xed, 0x22, 0x02,
|
||||
0x2a, 0x48, 0x66, 0xe3, 0x5d, 0xd6, 0x2b, 0x3b, 0x1e, 0x67, 0x67, 0x0d, 0x14, 0x89, 0x2b, 0x5c,
|
||||
0x39, 0x21, 0x6e, 0xdc, 0xf9, 0x01, 0x70, 0x80, 0x03, 0x07, 0x24, 0x7a, 0xe0, 0x50, 0x09, 0x90,
|
||||
0x38, 0x05, 0x94, 0xfc, 0x03, 0x8e, 0x3d, 0x21, 0xcf, 0xbe, 0x1d, 0xaf, 0x77, 0x67, 0x37, 0x9b,
|
||||
0xd8, 0xa9, 0x92, 0x93, 0xed, 0x99, 0xf7, 0xbe, 0xf7, 0xe6, 0x7b, 0x6f, 0xde, 0x7b, 0x63, 0xd0,
|
||||
0xda, 0x8c, 0x6f, 0x31, 0xde, 0xe4, 0xbe, 0xd9, 0x75, 0xfb, 0x4e, 0x73, 0x7b, 0x68, 0x7b, 0x0f,
|
||||
0x1a, 0x03, 0x8f, 0xf9, 0x8c, 0x2e, 0x05, 0x7b, 0x0d, 0xdc, 0xd3, 0x2e, 0xa0, 0xac, 0x90, 0x69,
|
||||
0x0e, 0x4c, 0xc7, 0xed, 0x9b, 0xbe, 0xcb, 0xfa, 0x81, 0xb8, 0x56, 0x76, 0x98, 0xc3, 0xc4, 0xd7,
|
||||
0xe6, 0xe8, 0x1b, 0xae, 0x3e, 0x17, 0x33, 0x80, 0x9f, 0xc1, 0xae, 0xde, 0x85, 0xca, 0xbd, 0x11,
|
||||
0xda, 0x86, 0xd9, 0x73, 0x2d, 0xd3, 0x67, 0x1e, 0x37, 0xec, 0xed, 0xa1, 0xcd, 0x7d, 0x5a, 0x81,
|
||||
0x22, 0xf7, 0x4d, 0x7f, 0xc8, 0x97, 0x49, 0x9d, 0x5c, 0x59, 0x34, 0xf0, 0x17, 0xbd, 0x05, 0x30,
|
||||
0xb6, 0xbc, 0x3c, 0x57, 0x27, 0x57, 0x9e, 0x5e, 0x3d, 0xd7, 0x40, 0x4f, 0x03, 0xef, 0xef, 0x9a,
|
||||
0x8e, 0x8d, 0x30, 0x46, 0x44, 0x58, 0xff, 0x86, 0xc0, 0xb3, 0x09, 0x6b, 0x7c, 0xc0, 0xfa, 0xdc,
|
||||
0xa6, 0xaf, 0x01, 0x7c, 0x22, 0x57, 0x97, 0x49, 0x7d, 0x3e, 0x0a, 0x1b, 0xfa, 0x2c, 0xf5, 0xd6,
|
||||
0x17, 0x1e, 0xee, 0xd4, 0x0a, 0x46, 0x44, 0x85, 0xde, 0x56, 0xf8, 0xa5, 0xa9, 0xfc, 0x0a, 0x0c,
|
||||
0x4e, 0x38, 0xb6, 0x0d, 0x67, 0x27, 0xfd, 0x0a, 0x49, 0x78, 0x1f, 0x96, 0xa4, 0x89, 0x96, 0x69,
|
||||
0x59, 0x9e, 0x20, 0xe3, 0xd4, 0xfa, 0x8d, 0xc7, 0x3b, 0xb5, 0xeb, 0x8e, 0xeb, 0x77, 0x86, 0x9b,
|
||||
0x8d, 0x36, 0xdb, 0x6a, 0x22, 0xc7, 0xc1, 0xc7, 0x75, 0x6e, 0x75, 0x9b, 0xfe, 0x83, 0x81, 0xcd,
|
||||
0x47, 0x0e, 0xaf, 0x59, 0x96, 0x67, 0x73, 0x6e, 0x9c, 0x96, 0x40, 0xa3, 0x15, 0xfd, 0xbd, 0x38,
|
||||
0xf1, 0x92, 0x89, 0x57, 0x61, 0x51, 0x8a, 0x0a, 0x73, 0x39, 0x88, 0x18, 0x6b, 0xe8, 0x3f, 0x12,
|
||||
0xa8, 0x4f, 0x22, 0xdf, 0xb1, 0x7b, 0xb6, 0x23, 0x0e, 0xca, 0x8f, 0xfc, 0x5c, 0xd3, 0xa4, 0xc7,
|
||||
0x1f, 0x04, 0x2e, 0x66, 0x78, 0x8e, 0xf4, 0x78, 0x50, 0xb6, 0xe4, 0x72, 0xcb, 0xc3, 0xe5, 0x30,
|
||||
0x65, 0xf4, 0x38, 0x53, 0x63, 0x88, 0x10, 0x61, 0xfd, 0xfc, 0x88, 0xb2, 0xef, 0xff, 0xa9, 0x95,
|
||||
0x92, 0x7b, 0xdc, 0x28, 0x59, 0xc9, 0xc5, 0xa9, 0x72, 0xeb, 0x17, 0x02, 0x57, 0x27, 0x4f, 0xf5,
|
||||
0x6e, 0x7f, 0x93, 0xf5, 0x2d, 0xb7, 0xef, 0x9c, 0x94, 0xc0, 0xfc, 0x4a, 0xe0, 0x5a, 0x9e, 0x23,
|
||||
0x60, 0x84, 0xee, 0x43, 0x69, 0x18, 0xee, 0x27, 0x02, 0x74, 0x29, 0x1e, 0x20, 0x05, 0x14, 0x26,
|
||||
0x35, 0x95, 0x28, 0xb3, 0x89, 0xc4, 0xef, 0x04, 0xef, 0x5c, 0x34, 0xee, 0x92, 0x76, 0x8c, 0xfb,
|
||||
0xe1, 0x68, 0x5f, 0x6b, 0xb7, 0x25, 0xed, 0x12, 0x48, 0xd0, 0x9e, 0x0c, 0xe8, 0xdc, 0x8c, 0x2a,
|
||||
0xc8, 0x97, 0x61, 0x35, 0x4d, 0xa6, 0x31, 0xed, 0x42, 0x49, 0x71, 0x49, 0xb0, 0x9a, 0xe4, 0xb9,
|
||||
0x23, 0x95, 0xc7, 0x3b, 0x35, 0x9a, 0x5c, 0x37, 0x68, 0xf2, 0x7a, 0xe8, 0x7f, 0x11, 0xa8, 0x09,
|
||||
0x47, 0x14, 0xa1, 0x3c, 0xc9, 0x04, 0xdb, 0x58, 0x48, 0x95, 0xc7, 0x42, 0xa2, 0xd7, 0xa0, 0x18,
|
||||
0x64, 0x29, 0x72, 0x7b, 0x80, 0xf4, 0x46, 0xc5, 0x71, 0xc1, 0xbe, 0x13, 0x9e, 0x4b, 0x5d, 0x17,
|
||||
0x8e, 0x88, 0xbf, 0x29, 0xea, 0xc2, 0xcf, 0x61, 0xc1, 0x56, 0x7b, 0x8e, 0x14, 0x7d, 0x30, 0x75,
|
||||
0xc1, 0x0e, 0xf8, 0x3a, 0xba, 0xca, 0x2c, 0xdd, 0xdf, 0xa7, 0x32, 0x1f, 0xbf, 0x08, 0xc8, 0xca,
|
||||
0xbc, 0xcf, 0x11, 0x8e, 0x79, 0x65, 0xfe, 0x6f, 0x0e, 0xce, 0x89, 0x63, 0x18, 0xb6, 0xf5, 0x24,
|
||||
0x99, 0x6f, 0x01, 0xe5, 0x5e, 0xbb, 0x35, 0xab, 0xfa, 0x71, 0x86, 0x7b, 0xed, 0x8d, 0x89, 0xa6,
|
||||
0xdb, 0x02, 0x6a, 0x71, 0x3f, 0x6e, 0x60, 0xfe, 0xd0, 0x06, 0x2c, 0xee, 0x6f, 0x64, 0x74, 0xf5,
|
||||
0x85, 0x83, 0xe4, 0xce, 0x4f, 0x04, 0x34, 0x15, 0xe9, 0x98, 0x2b, 0x26, 0x54, 0x3c, 0x3b, 0xe3,
|
||||
0xe2, 0x3e, 0x1f, 0x4f, 0x97, 0x28, 0x4c, 0xec, 0xea, 0x9e, 0xf5, 0xec, 0x59, 0x5f, 0xde, 0x1f,
|
||||
0xc2, 0xa6, 0x23, 0x33, 0x3f, 0xf9, 0x84, 0x39, 0x96, 0x57, 0xf6, 0xbb, 0x44, 0xb9, 0x3f, 0x6e,
|
||||
0xaf, 0xa1, 0x3f, 0x09, 0x54, 0x53, 0x3c, 0x3c, 0xc9, 0xed, 0xfc, 0xa3, 0xd4, 0x84, 0x99, 0xd5,
|
||||
0xd3, 0xeb, 0x26, 0x5e, 0xa8, 0x37, 0x5d, 0xee, 0x33, 0xcf, 0x6d, 0x9b, 0xbd, 0xb7, 0xfa, 0x1f,
|
||||
0xb3, 0xc8, 0x83, 0xba, 0x63, 0xbb, 0x4e, 0xc7, 0x17, 0xc8, 0xf3, 0x06, 0xfe, 0xd2, 0xef, 0xc1,
|
||||
0x79, 0xa5, 0x16, 0xfa, 0xb4, 0x0a, 0x0b, 0x1d, 0x97, 0xfb, 0xe8, 0x4e, 0x35, 0xee, 0x4e, 0x4c,
|
||||
0x4b, 0xc8, 0xea, 0x14, 0xce, 0x08, 0xc8, 0xbb, 0x8c, 0xf5, 0xd0, 0xbc, 0xfe, 0x3a, 0x3c, 0x13,
|
||||
0x59, 0x43, 0xf0, 0x06, 0x2c, 0x0c, 0x18, 0xeb, 0x21, 0x78, 0x39, 0x0e, 0x3e, 0x92, 0xc5, 0x63,
|
||||
0x0a, 0x39, 0xbd, 0x0c, 0x34, 0x00, 0x31, 0x3d, 0x73, 0x2b, 0xbc, 0x67, 0xfa, 0x57, 0x04, 0x4a,
|
||||
0x13, 0xcb, 0x88, 0x7e, 0x13, 0x8a, 0x03, 0xb1, 0x82, 0xf8, 0x95, 0x04, 0xbe, 0xd8, 0x0d, 0xe7,
|
||||
0xa1, 0x40, 0x76, 0x9a, 0xd4, 0x5d, 0xfd, 0xed, 0x14, 0x3c, 0x25, 0x3c, 0xa1, 0x2d, 0x80, 0xf1,
|
||||
0xbd, 0xa2, 0x97, 0xe3, 0x96, 0xd5, 0x7f, 0x7a, 0x68, 0x2f, 0xee, 0x2b, 0x87, 0x33, 0x6f, 0x81,
|
||||
0x7e, 0x08, 0x8b, 0x72, 0x9d, 0xbe, 0x90, 0xad, 0x17, 0xc2, 0x5f, 0xde, 0x4f, 0x4c, 0xa2, 0x7f,
|
||||
0x01, 0x65, 0xd5, 0x2b, 0x98, 0xae, 0x64, 0x23, 0x24, 0xe7, 0x16, 0xed, 0xc6, 0x01, 0x34, 0xa4,
|
||||
0xf9, 0x6f, 0x09, 0x5c, 0xc8, 0x7c, 0xec, 0xd1, 0x5b, 0xd9, 0xb0, 0x19, 0x93, 0x94, 0x76, 0xfb,
|
||||
0x30, 0xaa, 0xd2, 0xb5, 0x16, 0xc0, 0x78, 0x23, 0x25, 0xb0, 0x89, 0xf7, 0x47, 0x4a, 0x60, 0x93,
|
||||
0xb3, 0xa6, 0x5e, 0xa0, 0x9f, 0x43, 0x49, 0xe1, 0x02, 0x6d, 0x2a, 0x11, 0xd2, 0x9f, 0x3c, 0xda,
|
||||
0x4a, 0x7e, 0x85, 0x68, 0xd8, 0x55, 0xb3, 0x74, 0x4a, 0xd8, 0x33, 0x1e, 0x0c, 0x29, 0x61, 0xcf,
|
||||
0x1a, 0xd4, 0x31, 0xec, 0x99, 0x93, 0x64, 0x4a, 0xd8, 0xf3, 0x0c, 0xd0, 0x29, 0x61, 0xcf, 0x35,
|
||||
0xb8, 0xea, 0x05, 0xda, 0x81, 0xd3, 0x13, 0x73, 0x0a, 0xbd, 0xaa, 0x84, 0x53, 0x0d, 0x90, 0xda,
|
||||
0xb5, 0x3c, 0xa2, 0xd1, 0xf8, 0x2b, 0x5a, 0x73, 0x4a, 0xfc, 0xd3, 0xa7, 0x0f, 0x6d, 0x25, 0xbf,
|
||||
0x82, 0xb4, 0xfd, 0x29, 0xd0, 0xa4, 0x00, 0x6d, 0xe4, 0x44, 0x0a, 0x2d, 0x37, 0x73, 0xcb, 0x4b,
|
||||
0xc3, 0x5d, 0x58, 0x9a, 0xec, 0x24, 0x54, 0x4d, 0x9a, 0xb2, 0xb5, 0x69, 0x2f, 0xe5, 0x92, 0x95,
|
||||
0xc6, 0xde, 0x86, 0x85, 0x51, 0x67, 0xa1, 0x75, 0xa5, 0x5a, 0xa4, 0x69, 0x69, 0x17, 0x33, 0x24,
|
||||
0x24, 0xdc, 0x3b, 0x50, 0x0c, 0x1a, 0x09, 0xd5, 0xd5, 0xe2, 0xd1, 0x66, 0xa5, 0x5d, 0xca, 0x94,
|
||||
0x09, 0x41, 0xd7, 0xdf, 0x78, 0xb8, 0x5b, 0x25, 0x8f, 0x76, 0xab, 0xe4, 0xdf, 0xdd, 0x2a, 0xf9,
|
||||
0x7a, 0xaf, 0x5a, 0x78, 0xb4, 0x57, 0x2d, 0xfc, 0xbd, 0x57, 0x2d, 0xdc, 0x7f, 0x39, 0x73, 0x0a,
|
||||
0xf9, 0x4c, 0xfe, 0xd1, 0x2e, 0xe6, 0x91, 0xcd, 0xa2, 0xf8, 0x9f, 0xfd, 0x95, 0xff, 0x03, 0x00,
|
||||
0x00, 0xff, 0xff, 0x9c, 0xed, 0xaa, 0xa9, 0xe8, 0x17, 0x00, 0x00,
|
||||
// 1086 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4f, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xf7, 0x24, 0xc6, 0x52, 0x1e, 0x6d, 0x54, 0xc6, 0x6e, 0x48, 0xb7, 0xd4, 0x71, 0xb7, 0x50,
|
||||
0xda, 0x42, 0xed, 0x34, 0xf4, 0xd2, 0x4a, 0x08, 0x25, 0x54, 0x08, 0x84, 0x90, 0xda, 0xad, 0x08,
|
||||
0xa8, 0x20, 0x99, 0x8d, 0x77, 0x59, 0xaf, 0xe2, 0xec, 0x38, 0x3b, 0x6b, 0xa0, 0x48, 0x7c, 0x07,
|
||||
0x4e, 0x88, 0x1b, 0x77, 0x3e, 0x00, 0x1c, 0xe0, 0xc0, 0x01, 0x89, 0x1e, 0x38, 0x54, 0x02, 0x24,
|
||||
0x4e, 0x05, 0x25, 0xdf, 0x80, 0x23, 0x27, 0xe4, 0xd9, 0xb7, 0xe3, 0xfd, 0x33, 0xbb, 0xd9, 0x24,
|
||||
0x0e, 0x4a, 0x4e, 0xb6, 0x67, 0xde, 0xfb, 0xbd, 0x37, 0xbf, 0xf7, 0x67, 0xde, 0x18, 0xb4, 0x1e,
|
||||
0xe3, 0x5b, 0x8c, 0x77, 0x78, 0x60, 0x6e, 0xba, 0x9e, 0xd3, 0xd9, 0x1e, 0xd9, 0xfe, 0xc3, 0xf6,
|
||||
0xd0, 0x67, 0x01, 0xa3, 0xf3, 0xe1, 0x5e, 0x1b, 0xf7, 0xb4, 0x0b, 0x28, 0x2b, 0x64, 0x3a, 0x43,
|
||||
0xd3, 0x71, 0x3d, 0x33, 0x70, 0x99, 0x17, 0x8a, 0x6b, 0x0d, 0x87, 0x39, 0x4c, 0x7c, 0xed, 0x8c,
|
||||
0xbf, 0xe1, 0xea, 0x73, 0x29, 0x03, 0xf8, 0x19, 0xee, 0xea, 0x9b, 0xb0, 0x70, 0x6f, 0x8c, 0xb6,
|
||||
0x6e, 0x0e, 0x5c, 0xcb, 0x0c, 0x98, 0xcf, 0x0d, 0x7b, 0x7b, 0x64, 0xf3, 0x80, 0x2e, 0x40, 0x8d,
|
||||
0x07, 0x66, 0x30, 0xe2, 0x8b, 0xa4, 0x45, 0xae, 0xcc, 0x19, 0xf8, 0x8b, 0xde, 0x02, 0x98, 0x58,
|
||||
0x5e, 0x9c, 0x69, 0x91, 0x2b, 0x4f, 0xaf, 0x9c, 0x6b, 0xa3, 0xa7, 0xa1, 0xf7, 0x77, 0x4d, 0xc7,
|
||||
0x46, 0x18, 0x23, 0x26, 0xac, 0x7f, 0x45, 0xe0, 0xd9, 0x8c, 0x35, 0x3e, 0x64, 0x1e, 0xb7, 0xe9,
|
||||
0x6b, 0x00, 0x9f, 0xc8, 0xd5, 0x45, 0xd2, 0x9a, 0x8d, 0xc3, 0x46, 0x3e, 0x4b, 0xbd, 0xb5, 0xea,
|
||||
0xa3, 0x27, 0x4b, 0x15, 0x23, 0xa6, 0x42, 0x6f, 0x2b, 0xfc, 0xd2, 0x54, 0x7e, 0x85, 0x06, 0x13,
|
||||
0x8e, 0x6d, 0xc3, 0xd9, 0xa4, 0x5f, 0x11, 0x09, 0xef, 0xc3, 0xbc, 0x34, 0xd1, 0x35, 0x2d, 0xcb,
|
||||
0x17, 0x64, 0x9c, 0x5a, 0xbb, 0xf1, 0xef, 0x93, 0xa5, 0xeb, 0x8e, 0x1b, 0xf4, 0x47, 0x1b, 0xed,
|
||||
0x1e, 0xdb, 0xea, 0x20, 0xc7, 0xe1, 0xc7, 0x75, 0x6e, 0x6d, 0x76, 0x82, 0x87, 0x43, 0x9b, 0x8f,
|
||||
0x1d, 0x5e, 0xb5, 0x2c, 0xdf, 0xe6, 0xdc, 0x38, 0x2d, 0x81, 0xc6, 0x2b, 0xfa, 0x7b, 0x69, 0xe2,
|
||||
0x25, 0x13, 0xaf, 0xc2, 0x9c, 0x14, 0x15, 0xe6, 0x4a, 0x10, 0x31, 0xd1, 0xd0, 0xbf, 0x27, 0xd0,
|
||||
0x4a, 0x22, 0xdf, 0xb1, 0x07, 0xb6, 0x23, 0x0e, 0xca, 0x8f, 0xfc, 0x5c, 0x87, 0x49, 0x8f, 0xdf,
|
||||
0x08, 0x5c, 0x2c, 0xf0, 0x1c, 0xe9, 0xf1, 0xa1, 0x61, 0xc9, 0xe5, 0xae, 0x8f, 0xcb, 0x51, 0xca,
|
||||
0xe8, 0x69, 0xa6, 0x26, 0x10, 0x11, 0xc2, 0xda, 0xf9, 0x31, 0x65, 0xdf, 0xfe, 0xb5, 0x54, 0xcf,
|
||||
0xee, 0x71, 0xa3, 0x6e, 0x65, 0x17, 0x0f, 0x95, 0x5b, 0x3f, 0x11, 0xb8, 0x9a, 0x3c, 0xd5, 0xbb,
|
||||
0xde, 0x06, 0xf3, 0x2c, 0xd7, 0x73, 0x4e, 0x4a, 0x60, 0x7e, 0x26, 0x70, 0xad, 0xcc, 0x11, 0x30,
|
||||
0x42, 0x0f, 0xa0, 0x3e, 0x8a, 0xf6, 0x33, 0x01, 0xba, 0x94, 0x0e, 0x90, 0x02, 0x0a, 0x93, 0x9a,
|
||||
0x4a, 0x94, 0xe9, 0x44, 0xe2, 0x57, 0x82, 0x35, 0x17, 0x8f, 0xbb, 0xa4, 0x1d, 0xe3, 0x7e, 0x30,
|
||||
0xda, 0x57, 0x7b, 0x3d, 0x49, 0xbb, 0x04, 0x12, 0xb4, 0x67, 0x03, 0x3a, 0x33, 0xa5, 0x0e, 0xe2,
|
||||
0x61, 0x33, 0xcd, 0x66, 0x31, 0xbd, 0x0f, 0x75, 0x45, 0x8d, 0x60, 0x33, 0x29, 0x51, 0x22, 0x06,
|
||||
0xcd, 0x56, 0x81, 0xfe, 0x07, 0x81, 0x25, 0x61, 0x50, 0x11, 0xb1, 0x93, 0xcc, 0xa3, 0x8d, 0xfd,
|
||||
0x52, 0x79, 0x2c, 0x24, 0x74, 0x15, 0x6a, 0x61, 0x32, 0x22, 0x87, 0xfb, 0xc8, 0x62, 0x54, 0x9c,
|
||||
0xf4, 0xe5, 0x3b, 0xd1, 0xb9, 0xd4, 0xe5, 0x7f, 0x44, 0xfc, 0x1d, 0xa2, 0xfc, 0x7f, 0x8c, 0xfa,
|
||||
0xb2, 0xda, 0x73, 0xa4, 0xe8, 0x83, 0x43, 0xf7, 0xe5, 0x90, 0xaf, 0xa3, 0x6b, 0xc0, 0xd2, 0xfd,
|
||||
0x3d, 0x1a, 0xf0, 0xf1, 0x8b, 0x80, 0x6c, 0xc0, 0x7b, 0x1c, 0xe1, 0x98, 0x37, 0xe0, 0x7f, 0x66,
|
||||
0xe0, 0x9c, 0x38, 0x86, 0x61, 0x5b, 0xff, 0x27, 0xf3, 0x5d, 0xa0, 0xdc, 0xef, 0x75, 0xa7, 0xd5,
|
||||
0x3f, 0xce, 0x70, 0xbf, 0xb7, 0x9e, 0xb8, 0x5b, 0xbb, 0x40, 0x2d, 0x1e, 0xa4, 0x0d, 0xcc, 0x1e,
|
||||
0xd8, 0x80, 0xc5, 0x83, 0xf5, 0x82, 0xcb, 0xbb, 0xba, 0x9f, 0xdc, 0xf9, 0x81, 0x80, 0xa6, 0x22,
|
||||
0x1d, 0x73, 0xc5, 0x84, 0x05, 0xdf, 0x2e, 0x28, 0xdc, 0xe7, 0xd3, 0xe9, 0x12, 0x87, 0x49, 0x95,
|
||||
0xee, 0x59, 0xdf, 0x9e, 0x76, 0xf1, 0x7e, 0x17, 0x5d, 0x3a, 0x32, 0xf3, 0xb3, 0x2f, 0x95, 0x63,
|
||||
0x59, 0xb2, 0xdf, 0x64, 0xda, 0xfd, 0x71, 0x7b, 0xf4, 0xfc, 0x4e, 0xa0, 0x99, 0xe3, 0xe1, 0x49,
|
||||
0xbe, 0xce, 0x3f, 0xca, 0x4d, 0x98, 0x69, 0xbd, 0xb0, 0x6e, 0x62, 0x41, 0xbd, 0xe9, 0xf2, 0x80,
|
||||
0xf9, 0x6e, 0xcf, 0x1c, 0xbc, 0xe5, 0x7d, 0xcc, 0x62, 0xef, 0xe6, 0xbe, 0xed, 0x3a, 0xfd, 0x40,
|
||||
0x20, 0xcf, 0x1a, 0xf8, 0x4b, 0xbf, 0x07, 0xe7, 0x95, 0x5a, 0xe8, 0xd3, 0x0a, 0x54, 0xfb, 0x2e,
|
||||
0x0f, 0xd0, 0x9d, 0x66, 0xda, 0x9d, 0x94, 0x96, 0x90, 0xd5, 0x29, 0x9c, 0x11, 0x90, 0x77, 0x19,
|
||||
0x1b, 0xa0, 0x79, 0xfd, 0x75, 0x78, 0x26, 0xb6, 0x86, 0xe0, 0x6d, 0xa8, 0x0e, 0x19, 0x1b, 0x20,
|
||||
0x78, 0x23, 0x0d, 0x3e, 0x96, 0xc5, 0x63, 0x0a, 0x39, 0xbd, 0x01, 0x34, 0x04, 0x31, 0x7d, 0x73,
|
||||
0x2b, 0xaa, 0x33, 0xfd, 0x6d, 0xa8, 0x27, 0x56, 0x11, 0xfc, 0x26, 0xd4, 0x86, 0x62, 0x05, 0xe1,
|
||||
0x17, 0x32, 0xf0, 0x62, 0x37, 0x1a, 0x87, 0x42, 0xd9, 0x95, 0x5f, 0x4e, 0xc1, 0x53, 0x02, 0x8d,
|
||||
0x76, 0x01, 0x26, 0xa5, 0x41, 0x2f, 0xa7, 0xb5, 0xd5, 0x7f, 0x4f, 0x68, 0x2f, 0xee, 0x29, 0x87,
|
||||
0x63, 0x6b, 0x85, 0x7e, 0x08, 0x73, 0x72, 0x9d, 0xbe, 0x50, 0xac, 0x17, 0xc1, 0x5f, 0xde, 0x4b,
|
||||
0x4c, 0xa2, 0x7f, 0x01, 0x0d, 0xd5, 0x7b, 0x95, 0x2e, 0x17, 0x23, 0x64, 0x47, 0x0f, 0xed, 0xc6,
|
||||
0x3e, 0x34, 0xa4, 0xf9, 0xaf, 0x09, 0x5c, 0x28, 0x7c, 0x96, 0xd1, 0x5b, 0xc5, 0xb0, 0x05, 0xc3,
|
||||
0x90, 0x76, 0xfb, 0x20, 0xaa, 0xd2, 0xb5, 0x2e, 0xc0, 0x64, 0x23, 0x27, 0xb0, 0x99, 0x27, 0x44,
|
||||
0x4e, 0x60, 0xb3, 0xe3, 0xa2, 0x5e, 0xa1, 0x9f, 0x43, 0x5d, 0xe1, 0x02, 0xed, 0x28, 0x11, 0xf2,
|
||||
0x5f, 0x2d, 0xda, 0x72, 0x79, 0x85, 0x78, 0xd8, 0x55, 0xe3, 0x70, 0x4e, 0xd8, 0x0b, 0x66, 0xfe,
|
||||
0x9c, 0xb0, 0x17, 0xcd, 0xda, 0x18, 0xf6, 0xc2, 0x61, 0x30, 0x27, 0xec, 0x65, 0x66, 0xe0, 0x9c,
|
||||
0xb0, 0x97, 0x9a, 0x3d, 0xf5, 0x0a, 0xed, 0xc3, 0xe9, 0xc4, 0xa8, 0x41, 0xaf, 0x2a, 0xe1, 0x54,
|
||||
0x33, 0xa0, 0x76, 0xad, 0x8c, 0x68, 0x3c, 0xfe, 0x8a, 0xdb, 0x35, 0x27, 0xfe, 0xf9, 0x03, 0x84,
|
||||
0xb6, 0x5c, 0x5e, 0x41, 0xda, 0xfe, 0x14, 0x68, 0x56, 0x80, 0xb6, 0x4b, 0x22, 0x45, 0x96, 0x3b,
|
||||
0xa5, 0xe5, 0xa5, 0xe1, 0x4d, 0x98, 0x4f, 0x5e, 0x06, 0x54, 0x4d, 0x9a, 0xf2, 0x76, 0xd2, 0x5e,
|
||||
0x2a, 0x25, 0x2b, 0x8d, 0xbd, 0x03, 0xd5, 0xf1, 0xe5, 0x40, 0x5b, 0x4a, 0xb5, 0xd8, 0xbd, 0xa3,
|
||||
0x5d, 0x2c, 0x90, 0x90, 0x70, 0xf7, 0xa1, 0x16, 0x5e, 0x06, 0x54, 0x57, 0x8b, 0xc7, 0xef, 0x1b,
|
||||
0xed, 0x52, 0xa1, 0x4c, 0x04, 0xba, 0xf6, 0xc6, 0xa3, 0x9d, 0x26, 0x79, 0xbc, 0xd3, 0x24, 0x7f,
|
||||
0xef, 0x34, 0xc9, 0x97, 0xbb, 0xcd, 0xca, 0xe3, 0xdd, 0x66, 0xe5, 0xcf, 0xdd, 0x66, 0xe5, 0xc1,
|
||||
0xcb, 0x85, 0x83, 0xc4, 0x67, 0xf2, 0x2f, 0x71, 0x31, 0x52, 0x6c, 0xd4, 0xc4, 0x3f, 0xe2, 0xaf,
|
||||
0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0xd2, 0x82, 0x78, 0x19, 0x92, 0x17, 0x00, 0x00,
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
@ -1568,33 +1600,33 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// Validators queries all validators that match the given status
|
||||
// Validators queries all validators that match the given status.
|
||||
Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
|
||||
// Validator queries validator info for given validator addr
|
||||
// Validator queries validator info for given validator address.
|
||||
Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
|
||||
// ValidatorDelegations queries delegate info for given validator
|
||||
// ValidatorDelegations queries delegate info for given validator.
|
||||
ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
|
||||
ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
|
||||
// Delegation queries delegate info for given validator delegator pair
|
||||
// Delegation queries delegate info for given validator delegator pair.
|
||||
Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
|
||||
// UnbondingDelegation queries unbonding info for give validator delegator pair
|
||||
// UnbondingDelegation queries unbonding info for given validator delegator pair.
|
||||
UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
|
||||
// DelegatorDelegations queries all delegations of a give delegator address
|
||||
// DelegatorDelegations queries all delegations of a given delegator address.
|
||||
DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address.
|
||||
DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
|
||||
// Redelegations queries redelegations of given address
|
||||
// Redelegations queries redelegations of given address.
|
||||
Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
|
||||
// DelegatorValidators queries all validator info for given delegator address
|
||||
// DelegatorValidators queries all validator info for given delegator address.
|
||||
DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
|
||||
// DelegatorValidator queries validator info for given delegator validator pair
|
||||
// DelegatorValidator queries validator info for given delegator validator pair.
|
||||
DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error)
|
||||
// HistoricalInfo queries the historical info for given height
|
||||
// HistoricalInfo queries the historical info for given height.
|
||||
HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error)
|
||||
// Pool queries the pool info
|
||||
// Pool queries the pool info.
|
||||
Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
|
||||
// Parameters queries the staking parameters
|
||||
// Parameters queries the staking parameters.
|
||||
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
@ -1734,33 +1766,33 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts .
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// Validators queries all validators that match the given status
|
||||
// Validators queries all validators that match the given status.
|
||||
Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
|
||||
// Validator queries validator info for given validator addr
|
||||
// Validator queries validator info for given validator address.
|
||||
Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
|
||||
// ValidatorDelegations queries delegate info for given validator
|
||||
// ValidatorDelegations queries delegate info for given validator.
|
||||
ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator
|
||||
// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
|
||||
ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
|
||||
// Delegation queries delegate info for given validator delegator pair
|
||||
// Delegation queries delegate info for given validator delegator pair.
|
||||
Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
|
||||
// UnbondingDelegation queries unbonding info for give validator delegator pair
|
||||
// UnbondingDelegation queries unbonding info for given validator delegator pair.
|
||||
UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
|
||||
// DelegatorDelegations queries all delegations of a give delegator address
|
||||
// DelegatorDelegations queries all delegations of a given delegator address.
|
||||
DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address
|
||||
// DelegatorUnbondingDelegations queries all unbonding delegations of a give delegator address.
|
||||
DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
|
||||
// Redelegations queries redelegations of given address
|
||||
// Redelegations queries redelegations of given address.
|
||||
Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
|
||||
// DelegatorValidators queries all validator info for given delegator address
|
||||
// DelegatorValidators queries all validator info for given delegator address.
|
||||
DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
|
||||
// DelegatorValidator queries validator info for given delegator validator pair
|
||||
// DelegatorValidator queries validator info for given delegator validator pair.
|
||||
DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
|
||||
// HistoricalInfo queries the historical info for given height
|
||||
// HistoricalInfo queries the historical info for given height.
|
||||
HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
|
||||
// Pool queries the pool info
|
||||
// Pool queries the pool info.
|
||||
Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error)
|
||||
// Parameters queries the staking parameters
|
||||
// Parameters queries the staking parameters.
|
||||
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
|
||||
}
|
||||
|
||||
|
@ -3220,18 +3252,6 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if m.Pagination != nil {
|
||||
{
|
||||
size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintQuery(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
{
|
||||
size, err := m.Params.MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
|
@ -3688,10 +3708,6 @@ func (m *QueryParamsResponse) Size() (n int) {
|
|||
_ = l
|
||||
l = m.Params.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
if m.Pagination != nil {
|
||||
l = m.Pagination.Size()
|
||||
n += 1 + l + sovQuery(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
|
@ -6701,42 +6717,6 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error {
|
|||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowQuery
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthQuery
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
if m.Pagination == nil {
|
||||
m.Pagination = &query.PageResponse{}
|
||||
}
|
||||
if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipQuery(dAtA[iNdEx:])
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -27,7 +27,7 @@ var _ = math.Inf
|
|||
// proto package needs to be updated.
|
||||
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
||||
|
||||
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC method
|
||||
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC method.
|
||||
type QueryCurrentPlanRequest struct {
|
||||
}
|
||||
|
||||
|
@ -64,9 +64,9 @@ func (m *QueryCurrentPlanRequest) XXX_DiscardUnknown() {
|
|||
|
||||
var xxx_messageInfo_QueryCurrentPlanRequest proto.InternalMessageInfo
|
||||
|
||||
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC method
|
||||
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC method.
|
||||
type QueryCurrentPlanResponse struct {
|
||||
// plan is the current upgrade plan
|
||||
// plan is the current upgrade plan.
|
||||
Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -110,9 +110,9 @@ func (m *QueryCurrentPlanResponse) GetPlan() *Plan {
|
|||
return nil
|
||||
}
|
||||
|
||||
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC method
|
||||
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC method.
|
||||
type QueryAppliedPlanRequest struct {
|
||||
// name is the name of the applied plan to query for
|
||||
// name is the name of the applied plan to query for.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -156,9 +156,9 @@ func (m *QueryAppliedPlanRequest) GetName() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC method
|
||||
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC method.
|
||||
type QueryAppliedPlanResponse struct {
|
||||
// height is the block height at which the plan was applied
|
||||
// height is the block height at which the plan was applied.
|
||||
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -245,9 +245,9 @@ const _ = grpc.SupportPackageIsVersion4
|
|||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type QueryClient interface {
|
||||
// CurrentPlan queries the current upgrade plan
|
||||
// CurrentPlan queries the current upgrade plan.
|
||||
CurrentPlan(ctx context.Context, in *QueryCurrentPlanRequest, opts ...grpc.CallOption) (*QueryCurrentPlanResponse, error)
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name.
|
||||
AppliedPlan(ctx context.Context, in *QueryAppliedPlanRequest, opts ...grpc.CallOption) (*QueryAppliedPlanResponse, error)
|
||||
}
|
||||
|
||||
|
@ -279,9 +279,9 @@ func (c *queryClient) AppliedPlan(ctx context.Context, in *QueryAppliedPlanReque
|
|||
|
||||
// QueryServer is the server API for Query service.
|
||||
type QueryServer interface {
|
||||
// CurrentPlan queries the current upgrade plan
|
||||
// CurrentPlan queries the current upgrade plan.
|
||||
CurrentPlan(context.Context, *QueryCurrentPlanRequest) (*QueryCurrentPlanResponse, error)
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name
|
||||
// AppliedPlan queries a previously applied upgrade plan by its name.
|
||||
AppliedPlan(context.Context, *QueryAppliedPlanRequest) (*QueryAppliedPlanResponse, error)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue