diff --git a/x/distribution/proto/cosmos/distribution/v1beta1/query.proto b/x/distribution/proto/cosmos/distribution/v1beta1/query.proto index e5ef87be17ea..bc528489b1ee 100644 --- a/x/distribution/proto/cosmos/distribution/v1beta1/query.proto +++ b/x/distribution/proto/cosmos/distribution/v1beta1/query.proto @@ -7,6 +7,7 @@ import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/distribution/v1beta1/distribution.proto"; import "cosmos_proto/cosmos.proto"; +import "cosmos/query/v1/query.proto"; import "amino/amino.proto"; option go_package = "cosmossdk.io/x/distribution/types"; @@ -15,35 +16,41 @@ option go_package = "cosmossdk.io/x/distribution/types"; service Query { // Params queries params of the distribution module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/params"; } // ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator rpc ValidatorDistributionInfo(QueryValidatorDistributionInfoRequest) returns (QueryValidatorDistributionInfoResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/validators/{validator_address}"; } // ValidatorOutstandingRewards queries rewards of a validator address. rpc ValidatorOutstandingRewards(QueryValidatorOutstandingRewardsRequest) returns (QueryValidatorOutstandingRewardsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/validators/" "{validator_address}/outstanding_rewards"; } // ValidatorCommission queries accumulated commission for a validator. rpc ValidatorCommission(QueryValidatorCommissionRequest) returns (QueryValidatorCommissionResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/validators/" "{validator_address}/commission"; } // ValidatorSlashes queries slash events of a validator. rpc ValidatorSlashes(QueryValidatorSlashesRequest) returns (QueryValidatorSlashesResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/validators/{validator_address}/slashes"; } // DelegationRewards queries the total rewards accrued by a delegation. rpc DelegationRewards(QueryDelegationRewardsRequest) returns (QueryDelegationRewardsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards/" "{validator_address}"; } @@ -51,17 +58,20 @@ service Query { // DelegationTotalRewards queries the total rewards accrued by each // validator. rpc DelegationTotalRewards(QueryDelegationTotalRewardsRequest) returns (QueryDelegationTotalRewardsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/delegators/{delegator_address}/rewards"; } // DelegatorValidators queries the validators of a delegator. rpc DelegatorValidators(QueryDelegatorValidatorsRequest) returns (QueryDelegatorValidatorsResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/delegators/" "{delegator_address}/validators"; } // DelegatorWithdrawAddress queries withdraw address of a delegator. rpc DelegatorWithdrawAddress(QueryDelegatorWithdrawAddressRequest) returns (QueryDelegatorWithdrawAddressResponse) { + option (cosmos.query.v1.module_query_safe) = true; option (google.api.http).get = "/cosmos/distribution/v1beta1/delegators/" "{delegator_address}/withdraw_address"; } @@ -265,4 +275,4 @@ message QueryCommunityPoolResponse { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; -} +} \ No newline at end of file