Skip to content

Commit

Permalink
feat(zetatools): cli command to fetch inbound ballot from inbound h…
Browse files Browse the repository at this point in the history
…ash and move to zetatools (#3368)

* add solana support

* remove filterdeposit

* add configuration for testnet and mainnet

* improve error messages

* add changelog

* resolve comments 1

* format files and rename ChainId to ChainID

* add readme

* add warning for unconfirmed inbound

* fix spellings

* fix format for error messages

* add sample config and update btc client

* add sample config and update btc client

* handle solana errors

* remove unused imports

* format log lines

* update readme based on comments

* adding auto generated cli.md

* replace tool with CLI in readme file

* remove clone and build statement from readme.md

* add check for nil logger

* add extra arguments to function FilterInboundEvents directly so the debug tool can use it

---------

Co-authored-by: Charlie Chen <charliec@zetachain.com>
  • Loading branch information
kingpinXD and ws4charlie authored Jan 24, 2025
1 parent 367e4aa commit 840b6e7
Show file tree
Hide file tree
Showing 19 changed files with 1,128 additions and 1,084 deletions.
4 changes: 1 addition & 3 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
### Features

* [3353](https://github.com/zeta-chain/node/pull/3353) - add liquidity cap parameter to ZRC20 creation

## Features

* [3357](https://github.com/zeta-chain/node/pull/3357) - cosmos-sdk v.50.x upgrade
* [3368](https://github.com/zeta-chain/node/pull/3368) - cli command to fetch inbound ballot from inbound hash added to zetatools.

### Refactor

Expand Down
244 changes: 0 additions & 244 deletions cmd/zetaclientd/inbound.go

This file was deleted.

11 changes: 0 additions & 11 deletions cmd/zetaclientd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ var (
Short: "Show relayer address",
RunE: RelayerShowAddress,
}

InboundCmd = &cobra.Command{Use: "inbound", Short: "Inbound transactions"}
InboundGetBallotCmd = &cobra.Command{
Use: "get-ballot [inboundHash] [chainID]",
Short: "Get the ballot status for the tx hash",
RunE: InboundGetBallot,
}
)

// globalOptions defines the global options for all commands.
Expand All @@ -89,7 +82,6 @@ func init() {
setupGlobalOptions()
setupInitializeConfigOptions()
setupRelayerOptions()
setupInboundOptions()

// Define commands
RootCmd.AddCommand(VersionCmd)
Expand All @@ -103,9 +95,6 @@ func init() {
RootCmd.AddCommand(RelayerCmd)
RelayerCmd.AddCommand(RelayerImportKeyCmd)
RelayerCmd.AddCommand(RelayerShowAddressCmd)

RootCmd.AddCommand(InboundCmd)
InboundCmd.AddCommand(InboundGetBallotCmd)
}

func main() {
Expand Down
Loading

0 comments on commit 840b6e7

Please sign in to comment.