Skip to content

Commit

Permalink
refactor: evm signer - tryprocessout (#1809)
Browse files Browse the repository at this point in the history
* initial commit

* fix lint errors

* add changelog entry

* fix e2e test case

* merge develop

* update mocks and test files

* fix tryprocessout test case

* complete evm_signer test cases and remove hardcoded private key

* make generate and lint

* print error in mock tss signer

* integrate develop changes and fix test cases

* ran go imports

* addressed comments

* fix e2e test

* addressed more comments

* fix unit tests

* address comments

* renamed file

* added test cases and converted SetTransactionData into constructor

* update comments

* add unit test

* add more unit tests
  • Loading branch information
kevinssgh authored Mar 7, 2024
1 parent 9c1139e commit 09f99eb
Show file tree
Hide file tree
Showing 14 changed files with 1,239 additions and 376 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
* [1766](https://github.com/zeta-chain/node/pull/1766) - Refactors the `PostTxProcessing` EVM hook functionality to deal with invalid withdraw events
* [1630](https://github.com/zeta-chain/node/pull/1630) - added password prompts for hotkey and tss keyshare in zetaclient
* [1760](https://github.com/zeta-chain/node/pull/1760) - Make staking keeper private in crosschain module
* [1809](https://github.com/zeta-chain/node/pull/1809) - Refactored tryprocessout function in evm signer

### Fixes

Expand Down
5 changes: 3 additions & 2 deletions zetaclient/bitcoin/bitcoin_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ import (
crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types"
observertypes "github.com/zeta-chain/zetacore/x/observer/types"
"github.com/zeta-chain/zetacore/zetaclient/testutils"
"github.com/zeta-chain/zetacore/zetaclient/testutils/stub"
)

func MockBTCClientMainnet() *BTCChainClient {
return &BTCChainClient{
chain: common.BtcMainnetChain(),
zetaClient: testutils.MockCoreBridge(),
Tss: testutils.NewMockTSSMainnet(),
zetaClient: stub.NewZetaCoreBridge(),
Tss: stub.NewTSSMainnet(),
}
}

Expand Down
3 changes: 2 additions & 1 deletion zetaclient/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ type Config struct {

func NewConfig() *Config {
return &Config{
cfgLock: &sync.RWMutex{},
cfgLock: &sync.RWMutex{},
EVMChainConfigs: make(map[int64]*EVMConfig),
}
}

Expand Down
Loading

0 comments on commit 09f99eb

Please sign in to comment.