Skip to content

Commit

Permalink
refactor: move pending nonces, chain nonces and nonce to cctx to obse…
Browse files Browse the repository at this point in the history
…rver (#97)
  • Loading branch information
kingpinXD authored and lumtis committed Dec 19, 2023
1 parent 43c9753 commit ef8639d
Show file tree
Hide file tree
Showing 89 changed files with 5,071 additions and 4,566 deletions.
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Breaking Changes
- 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.

### Features
* [1395](https://github.com/zeta-chain/node/pull/1395) - Add state variable to track aborted zeta amount
* [1387](https://github.com/zeta-chain/node/pull/1387) - Add HSM capability for zetaclient hot key
Expand Down Expand Up @@ -30,7 +35,8 @@
* refactor cctx scheduler - decouple evm cctx scheduler from btc cctx scheduler
* [1391](https://github.com/zeta-chain/node/pull/1391) - consolidate node builds
* update `MsgUpdateContractBytecode` to use code hash instead of contract address
* move tss state date from crosschain to observer
* move tss state from crosschain to observer
* move pending nonces, chain nonces and nonce to cctx to observer
* move tss related cli from crosschain to observer
* reorganize smoke tests structure
* Add pagination to queries which iterate over large data sets InTxTrackerAll ,PendingNoncesAll ,AllBlameRecord ,TssHistory
Expand Down
3 changes: 0 additions & 3 deletions docs/cli/zetacored/zetacored_query_crosschain.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,13 @@ zetacored query crosschain [flags]
* [zetacored query crosschain last-zeta-height](zetacored_query_crosschain_last-zeta-height.md) - Query last Zeta Height
* [zetacored query crosschain list-all-in-tx-trackers](zetacored_query_crosschain_list-all-in-tx-trackers.md) - shows all inTxTrackers
* [zetacored query crosschain list-cctx](zetacored_query_crosschain_list-cctx.md) - list all CCTX
* [zetacored query crosschain list-chain-nonces](zetacored_query_crosschain_list-chain-nonces.md) - list all chainNonces
* [zetacored query crosschain list-gas-price](zetacored_query_crosschain_list-gas-price.md) - list all gasPrice
* [zetacored query crosschain list-in-tx-hash-to-cctx](zetacored_query_crosschain_list-in-tx-hash-to-cctx.md) - list all inTxHashToCctx
* [zetacored query crosschain list-in-tx-tracker](zetacored_query_crosschain_list-in-tx-tracker.md) - shows a list of in tx tracker by chainId
* [zetacored query crosschain list-out-tx-tracker](zetacored_query_crosschain_list-out-tx-tracker.md) - list all OutTxTracker
* [zetacored query crosschain list-pending-cctx](zetacored_query_crosschain_list-pending-cctx.md) - shows pending CCTX
* [zetacored query crosschain list-pending-nonces](zetacored_query_crosschain_list-pending-nonces.md) - shows a chainNonces
* [zetacored query crosschain params](zetacored_query_crosschain_params.md) - shows the parameters of the module
* [zetacored query crosschain show-cctx](zetacored_query_crosschain_show-cctx.md) - shows a CCTX
* [zetacored query crosschain show-chain-nonces](zetacored_query_crosschain_show-chain-nonces.md) - shows a chainNonces
* [zetacored query crosschain show-gas-price](zetacored_query_crosschain_show-gas-price.md) - shows a gasPrice
* [zetacored query crosschain show-in-tx-hash-to-cctx](zetacored_query_crosschain_show-in-tx-hash-to-cctx.md) - shows a inTxHashToCctx
* [zetacored query crosschain show-out-tx-tracker](zetacored_query_crosschain_show-out-tx-tracker.md) - shows a OutTxTracker
Expand Down
3 changes: 3 additions & 0 deletions docs/cli/zetacored/zetacored_query_observer.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ zetacored query observer [flags]
* [zetacored query observer get-tss-address](zetacored_query_observer_get-tss-address.md) - Query current tss address
* [zetacored query observer list-blame](zetacored_query_observer_list-blame.md) - Query AllBlameRecords
* [zetacored query observer list-blame-by-msg](zetacored_query_observer_list-blame-by-msg.md) - Query AllBlameRecords
* [zetacored query observer list-chain-nonces](zetacored_query_observer_list-chain-nonces.md) - list all chainNonces
* [zetacored query observer list-chains](zetacored_query_observer_list-chains.md) - list all SupportedChains
* [zetacored query observer list-core-params](zetacored_query_observer_list-core-params.md) - Query GetCoreParams
* [zetacored query observer list-node-account](zetacored_query_observer_list-node-account.md) - list all NodeAccount
* [zetacored query observer list-observer](zetacored_query_observer_list-observer.md) - Query All Observer Mappers
* [zetacored query observer list-pending-nonces](zetacored_query_observer_list-pending-nonces.md) - shows a chainNonces
* [zetacored query observer list-tss-history](zetacored_query_observer_list-tss-history.md) - show historical list of TSS
* [zetacored query observer params](zetacored_query_observer_params.md) - shows the parameters of the module
* [zetacored query observer show-ballot](zetacored_query_observer_show-ballot.md) - Query BallotByIdentifier
* [zetacored query observer show-blame](zetacored_query_observer_show-blame.md) - Query BlameByIdentifier
* [zetacored query observer show-chain-nonces](zetacored_query_observer_show-chain-nonces.md) - shows a chainNonces
* [zetacored query observer show-core-params](zetacored_query_observer_show-core-params.md) - Query GetCoreParamsForChain
* [zetacored query observer show-crosschain-flags](zetacored_query_observer_show-crosschain-flags.md) - shows the crosschain flags
* [zetacored query observer show-keygen](zetacored_query_observer_show-keygen.md) - shows keygen
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# query crosschain list-chain-nonces
# query observer list-chain-nonces

list all chainNonces

```
zetacored query crosschain list-chain-nonces [flags]
zetacored query observer list-chain-nonces [flags]
```

### Options
Expand Down Expand Up @@ -35,5 +35,5 @@ zetacored query crosschain list-chain-nonces [flags]

### SEE ALSO

* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module
* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# query crosschain list-pending-nonces
# query observer list-pending-nonces

shows a chainNonces

```
zetacored query crosschain list-pending-nonces [flags]
zetacored query observer list-pending-nonces [flags]
```

### Options
Expand All @@ -29,5 +29,5 @@ zetacored query crosschain list-pending-nonces [flags]

### SEE ALSO

* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module
* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# query crosschain show-chain-nonces
# query observer show-chain-nonces

shows a chainNonces

```
zetacored query crosschain show-chain-nonces [index] [flags]
zetacored query observer show-chain-nonces [index] [flags]
```

### Options
Expand All @@ -29,5 +29,5 @@ zetacored query crosschain show-chain-nonces [index] [flags]

### SEE ALSO

* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module
* [zetacored query observer](zetacored_query_observer.md) - Querying commands for the observer module

Loading

0 comments on commit ef8639d

Please sign in to comment.