Skip to content

Commit

Permalink
fix: fix queries' API endpoints (#2226)
Browse files Browse the repository at this point in the history
* endpoint fixes

* Update proto/interchain_security/ccv/provider/v1/query.proto

Co-authored-by: MSalopek <[email protected]>

* Update proto/interchain_security/ccv/provider/v1/query.proto

Co-authored-by: MSalopek <[email protected]>

* generate proto

---------

Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
sainoe and MSalopek authored Sep 5, 2024
1 parent 7994f30 commit 4660b49
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 178 deletions.
4 changes: 2 additions & 2 deletions proto/interchain_security/ccv/provider/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ service Query {
rpc QueryValidatorConsumerAddr(QueryValidatorConsumerAddrRequest)
returns (QueryValidatorConsumerAddrResponse) {
option (google.api.http).get =
"/interchain_security/ccv/provider/validator_consumer_addr";
"/interchain_security/ccv/provider/validator_consumer_addr/{consumer_id}/{provider_address}";
}

// QueryProviderAddr returns the provider chain validator
// given a consumer chain validator address
rpc QueryValidatorProviderAddr(QueryValidatorProviderAddrRequest)
returns (QueryValidatorProviderAddrResponse) {
option (google.api.http).get =
"/interchain_security/ccv/provider/validator_provider_addr";
"/interchain_security/ccv/provider/validator_provider_addr/{consumer_id}/{consumer_address}";
}

// QueryThrottleState returns the main on-chain state relevant to currently
Expand Down
Loading

0 comments on commit 4660b49

Please sign in to comment.