Skip to content

Commit

Permalink
fix: add chain id to get tss address rpc (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD authored Jan 12, 2024
1 parent 329b96b commit b3b608d
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 174 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* PendingNonces :Changed from `/zeta-chain/crosschain/pendingNonces/{chain_id}/{address}` to `/zeta-chain/observer/pendingNonces/{chain_id}/{address}` . It returns all the pending nonces for a chain id and address. This returns the current pending nonces for the chain.
* ChainNonces : Changed from `/zeta-chain/criosschain/chainNonces/{chain_id}` to`/zeta-chain/observer/chainNonces/{chain_id}` . It returns all the chain nonces for a chain id. This returns the current nonce oof the TSS address for the chain.
* ChainNoncesAll :Changed from `/zeta-chain/observer/chainNonces` to `/zeta-chain/observer/chainNonces` . It returns all the chain nonces for all chains. This returns the current nonce of the TSS address for all chains.
* GetTssAddress : Changed from `/zeta-chain/observer/get_tss_address/` to `/zeta-chain/observer/getTssAddress/{bitcoin_chain_id}` . Optional bitcoing chain id can now now passed as a parameter to fetch the correct tss for required BTC chain.This parameter only affects the BTC tss address in the response.

### Features
* [1498](https://github.com/zeta-chain/node/pull/1498) - Add monitoring(grafana, prometheus, ethbalance) for localnet testing
Expand Down Expand Up @@ -41,6 +42,7 @@
* [1536](https://github.com/zeta-chain/node/pull/1536) - add index to check previously finalized inbounds
* [1556](https://github.com/zeta-chain/node/pull/1556) - add emptiness check for topic array in event parsing
* [1555](https://github.com/zeta-chain/node/pull/1555) - Reduce websocket message limit to 10MB
* [1567](https://github.com/zeta-chain/node/pull/1567) - add bitcoin chain id to fetch the tss address rpc endpoint

### Refactoring

Expand Down
6 changes: 3 additions & 3 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27817,7 +27817,7 @@ paths:
format: int64
tags:
- Query
/zeta-chain/observer/get_tss_address:
/zeta-chain/observer/get_tss_address/{bitcoin_chain_id}:
get:
summary: Queries a list of GetTssAddress items.
operationId: Query_GetTssAddress
Expand All @@ -27832,8 +27832,8 @@ paths:
$ref: '#/definitions/googlerpcStatus'
parameters:
- name: bitcoin_chain_id
in: query
required: false
in: path
required: true
type: string
format: int64
tags:
Expand Down
2 changes: 1 addition & 1 deletion proto/observer/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ service Query {

// Queries a list of GetTssAddress items.
rpc GetTssAddress(QueryGetTssAddressRequest) returns (QueryGetTssAddressResponse) {
option (google.api.http).get = "/zeta-chain/observer/get_tss_address";
option (google.api.http).get = "/zeta-chain/observer/get_tss_address/{bitcoin_chain_id}";
}

rpc GetTssAddressByFinalizedHeight(QueryGetTssAddressByFinalizedHeightRequest) returns (QueryGetTssAddressByFinalizedHeightResponse) {
Expand Down
Loading

0 comments on commit b3b608d

Please sign in to comment.