Skip to content

Commit

Permalink
chore: revert query changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed May 21, 2024
1 parent 82f26c3 commit 99e3231
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 131 deletions.
145 changes: 76 additions & 69 deletions modules/rate-limiting/api/ratelimit/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/rate-limiting/api/ratelimit/v1/query_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions modules/rate-limiting/proto/ratelimit/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,36 @@ option go_package = "github.com/cosmos/ibc-apps/modules/rate-limiting/v8/types";
service Query {
// Queries all rate limits
rpc AllRateLimits(QueryAllRateLimitsRequest) returns (QueryAllRateLimitsResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/rate_limits";
option (google.api.http).get = "/Stride-Labs/ibc-rate-limiting/ratelimit/ratelimits";
}

// Queries a specific rate limit by channel ID and denom
// Ex:
// - /rate-limit/{channel_id}/by_denom?denom={denom}
// - /ratelimit/{channel_id}/by_denom?denom={denom}
rpc RateLimit(QueryRateLimitRequest) returns (QueryRateLimitResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/rate_limit/{channel_id}/by_denom";
option (google.api.http).get =
"/Stride-Labs/ibc-rate-limiting/ratelimit/"
"ratelimit/{channel_id}/by_denom";
}

// Queries all the rate limits for a given chain
rpc RateLimitsByChainId(QueryRateLimitsByChainIdRequest) returns (QueryRateLimitsByChainIdResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/rate_limits/{chain_id}";
option (google.api.http).get = "/Stride-Labs/ibc-rate-limiting/ratelimit/ratelimits/{chain_id}";
}

// Queries all the rate limits for a given channel ID
rpc RateLimitsByChannelId(QueryRateLimitsByChannelIdRequest) returns (QueryRateLimitsByChannelIdResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/rate_limits/{channel_id}";
option (google.api.http).get = "/Stride-Labs/ibc-rate-limiting/ratelimit/ratelimits/{channel_id}";
}

// Queries all blacklisted denoms
rpc AllBlacklistedDenoms(QueryAllBlacklistedDenomsRequest) returns (QueryAllBlacklistedDenomsResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/blacklisted_denoms";
option (google.api.http).get = "/Stride-Labs/ibc-rate-limiting/ratelimit/blacklisted_denoms";
}

// Queries all whitelisted address pairs
rpc AllWhitelistedAddresses(QueryAllWhitelistedAddressesRequest) returns (QueryAllWhitelistedAddressesResponse) {
option (google.api.http).get = "/ibc-rate-limiting/v1/whitelisted_addresses";
option (google.api.http).get = "/Stride-Labs/ibc-rate-limiting/ratelimit/whitelisted_addresses";
}
}

Expand Down
Loading

0 comments on commit 99e3231

Please sign in to comment.