Skip to content

Commit

Permalink
refactor: update go-tss (#2094)
Browse files Browse the repository at this point in the history
* Remove unused params from fungible module

* Make generate

* Changelog

* Lint fix

* Lint fix

* Migrate emissions params to store

* Migrate observer params to its own store

* Make generate

* Changelog

* Lint fixes

* Add observer slash amount param to migrate script

* Fix tests

* Lint fixes

* Fixes

* Lint fixes

* Fixes

* Tests

* Small cleanup

* Try upgrade with simapp change

* Remove not needed params store mock

* fix compile errors

* proto changes

* Fixes

* Upgrade handler changes

* Fixes

* Fix e2e test

* Fixes after merge

* Add found flag to get params method

* Move ballot maturity blocks param to emissions module

* Remove params from observer module

* Fix build

* Regen proto

* Fixes for e2e tests

* Fix some unit tests

* Fix some lint errors

* Fix more unit tests

* PR comments

* Proto paths fixes

* Linters

* make typescript

* proto format

* make specs

* make docs

* make gen

* lint

* Fix some unit tests

* Fix cli test suites

* Fix lints

* Tmp comment unit test

* lint

* Use latest ethermint change and fix test

* PR comment

* PR comments

* Fix one more import

* Cleanup

* Lint fix

* Bump zetachain ethermint

* Remove cometbft replace

* go mod tidy

* bump ethermint

* Revert replace

* Bump ethermint

* Proto files updates after merge

* Make generate

* Bump ethermint

* Fix PR comments

* Formatting

* Mention observer params removal in breaking changes in changelog

* bump ethermint

* Remove tendermint dep after go-tss upgrade

* go mod tidy

* bump go-tss

* changelog

* changelog
  • Loading branch information
skosito authored May 2, 2024
1 parent a430d7b commit bddee34
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 59 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* [2032](https://github.com/zeta-chain/node/pull/2032) - improve some general structure of the ZetaClient codebase
* [2100](https://github.com/zeta-chain/node/pull/2100) - cosmos v0.47 upgrade

### Refactor
* [2094](https://github.com/zeta-chain/node/pull/2094) - upgrade go-tss to use cosmos v0.47

## Unreleased
### Breaking Changes

Expand Down
4 changes: 2 additions & 2 deletions cmd/zetaclientd/keygen_tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
appcontext "github.com/zeta-chain/zetacore/zetaclient/app_context"
mc "github.com/zeta-chain/zetacore/zetaclient/tss"
"github.com/zeta-chain/zetacore/zetaclient/zetabridge"
"golang.org/x/crypto/sha3"

"github.com/cometbft/cometbft/crypto/secp256k1"
"github.com/rs/zerolog"
"github.com/tendermint/crypto/sha3"
"github.com/tendermint/tendermint/crypto/secp256k1"
tsscommon "github.com/zeta-chain/go-tss/common"
"github.com/zeta-chain/go-tss/keygen"
"github.com/zeta-chain/go-tss/p2p"
Expand Down
2 changes: 1 addition & 1 deletion cmd/zetaclientd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
"syscall"
"time"

"github.com/cometbft/cometbft/crypto/secp256k1"
ethcommon "github.com/ethereum/go-ethereum/common"
"github.com/libp2p/go-libp2p/core"
maddr "github.com/multiformats/go-multiaddr"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/tendermint/tendermint/crypto/secp256k1"
"github.com/zeta-chain/go-tss/p2p"
"github.com/zeta-chain/zetacore/pkg/authz"
"github.com/zeta-chain/zetacore/pkg/constant"
Expand Down
6 changes: 1 addition & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ require (
github.com/frumioj/crypto11 v1.2.5-0.20210823151709-946ce662cc0e
github.com/pkg/errors v0.9.1
github.com/rakyll/statik v0.1.7
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15
github.com/zeta-chain/go-tss v0.1.1-0.20240208222330-f3be0d4a0d98
github.com/zeta-chain/go-tss v0.1.1-0.20240430111318-1785e48eb127
github.com/zeta-chain/keystone/keys v0.0.0-20231105174229-903bc9405da2
github.com/zeta-chain/protocol-contracts v1.0.2-athens3.0.20240418181724-c222fd3ae1f5
google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0
Expand All @@ -64,7 +63,6 @@ require (
github.com/cometbft/cometbft-db v0.8.0
github.com/nanmu42/etherscan-api v1.10.0
github.com/onrik/ethrpc v1.2.0
github.com/tendermint/tendermint v0.34.14
go.nhat.io/grpcmock v0.25.0
)

Expand Down Expand Up @@ -308,7 +306,6 @@ require (
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/stretchr/objx v0.5.1 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/tendermint/btcd v0.1.1 // indirect
github.com/tendermint/go-amino v0.16.0 // indirect
github.com/tidwall/btree v1.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
Expand All @@ -318,7 +315,6 @@ require (
github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
gitlab.com/thorchain/binance-sdk v1.2.3-0.20210117202539-d569b6b9ba5d // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
Expand Down
Loading

0 comments on commit bddee34

Please sign in to comment.