-
Notifications
You must be signed in to change notification settings - Fork 169
chore: merge main into develop #4512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
be79663
fix: ratelimiting race condition vuln (#4072)
0xM3R 5377ccf
refactor: remove support for v1 revert address for BTC (#4070)
kingpinXD 7f56eb5
feat: add support for withdraw using v2 connector contract (#4064)
kingpinXD 7bca703
fix: print error message in detail if unable to decode Bitcoin memo (…
ws4charlie e41fe49
test(e2e): update admin e2e tests to use v2 connector (#4071)
kingpinXD 0954b4a
test: fix eth deposit test to check balance after deposit (#4118)
morde08 5fa9f94
test: fix flaky Solana depositAndCall tests (#4113)
ws4charlie f054d1b
chore: bump cosmos evm to support querying legacy proposals of type M…
kingpinXD 03d3566
fix: error when deploying contracts on testnet (#4112)
skosito d41507c
feat: support hostname in addition to public IP for zetaclient to con…
ws4charlie 22e88b4
fix: dbg trace block by number gas limit legacy (#4121)
skosito f773a73
fix(cherry-pick): cancel solana WaC if tx size is too large (#4111)
ws4charlie 0bf3da5
chore: remove tx suffix in vote inbound and outbound message names (#…
lumtis 93805bb
fix(`crosschain`): remove confirmation mode from outbound and inbound…
lumtis 21d5375
refactor(zetacore): overwrite consensus config values for all timeout…
kingpinXD 5e34c8c
refactor: replace []byte(fmt.Sprintf) with fmt.Appendf (#4131)
yinwenyu6 397e971
feat: Sui message context ID as dynamic field (#4087)
ws4charlie 9b263ac
chore: fix some function names in comment (#4129)
pxwanglu bceb38d
chore: fix some observer message names (#4141)
lumtis 3d76519
test: fix flaky Solana SPL deposit balance check (#4142)
ws4charlie 6425302
refactor: remove intx and outtx deprecated queries (#4150)
lumtis 614234c
chore: remove redundant word in comment (#4149)
wmypku 9a2b163
test(`e2e`): improve logs for CCTX status assertion (#4147)
lumtis 9095fc9
chore: fix some typos in comment (#4146)
tzchenxixi 62d5528
chore: set v35 as upgrade test reference and various clean up (#4115)
lumtis 62e7d1c
feat: make the gas limit used for gateway calls on ZEVM a configurabl…
kingpinXD 3f38428
test(`e2e`): add a gas limit option for ZEVM to EVM call tests (#4145)
lumtis 43c76d6
test: use pre-deployed example dapp V2 contract in e2e tests (#4158)
ws4charlie 6ccd700
chore(`e2e`): cleanup unused contracts (#4161)
lumtis c201c89
test: fix flaky depositAndCall test that failed on sender assertion (…
ws4charlie 51dce6d
chore(deps): bump github.com/hashicorp/go-getter from 1.7.8 to 1.7.9 …
dependabot[bot] 87733fe
chore(deps): bump github.com/ulikunitz/xz from 0.5.11 to 0.5.14 (#4172)
dependabot[bot] 03b43be
chore(deps): bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2…
dependabot[bot] c2973cc
refactor: standardize zetaclient logging (#4144)
renan061 1745709
fix: improve zetatool (#4175)
kingpinXD ed6d729
test(`e2e`): add a E2E test to test depositAndCall with high gas cons…
lumtis ca1b106
test(`e2e`): add all chains by default in `start-localnet` (#4163)
lumtis 79e92e6
chore: remove redundant words (#4179)
keeghcet 0a84952
refactor: omit unnecessary reassignment (#4184)
fengyuchuanshen 95afe86
fix: force rescan if inbound vote monitoring fails (#4183)
kingpinXD c46cd66
fix: remove duplicate solana post-gas-price goroutine (#4194)
renan061 18c1a48
feat: observe inbound from previous gateway package after upgrade (#4…
ws4charlie c906101
refactor: remove unused loggers and log fields (#4180)
renan061 861c996
fix: unpack bitcoin revert message without considering 'CallOnRevert'…
ws4charlie 65f227b
fix: add timeout to monitoring routine (#4196)
kingpinXD 5112e8d
refactor: use maps.Copy for cleaner map handling (#4198)
joemicky f09cb7b
chore: fix some comments (#4208)
zhoujiaweii e72df93
fix: update evm version for missing tx types (#4216)
lumtis 58f2b1e
refactor: replace HasPrefix+TrimPrefix with CutPrefix (#4215)
quantpoet abbefbe
refactor: remove `LastBlockHeight` state variable (#4200)
lumtis 1c4112c
refactor: add documentation for ZetaClient logging fields (#4174)
renan061 dc35251
fix: remove ZetaChain chain ID from GasStabilityPoolBalances query (#…
lumtis 00674cb
refactor: remove index field in ballot (#4205)
lumtis 873011f
refactor: remove `MsgUpdateERC20CustodyPauseStatus` and `MsgMigrateER…
lumtis 44bef07
refactor: rename whitelistERC20 into whitelistAsset (#4203)
lumtis 19857e4
feat: provide error information in CCTX struct when Bitcoin deposit f…
ws4charlie e789c7d
fix: re-check for finalized ballot when executing inbound vote to cre…
kingpinXD a4eca89
fix: set zeta ante to true in upgrade tests (#4225)
kingpinXD 5a43f88
chore: resync changelogs with v36 changes (#4223)
lumtis 9899743
fix: skip writing config file to the filesystem (#4210)
kingpinXD 0da0a38
refactor(`observer`): remove deprecated code (#4192)
lumtis 72bf04f
refactor: prepare the client interfaces used by the observer-signers …
renan061 38bcdd0
feat: enable NoAssetCall from Bitcoin (#4218)
ws4charlie fde0b61
feat: multiple evm calls in single tx (#4157)
skosito dda8e9e
chore: fix function name in comment (#4238)
russcoss ffdf12b
revert: add timeout to monitoring routine" (#4244)
lumtis c6e0008
fix(e2e): check test contracts deployment (#4251)
lumtis 9ea65f6
revert: force rescan if inbound vote monitoring fails (#4250)
lumtis a4d4fac
feat: refund a portion of remaining unused tokens to user (#3734)
kingpinXD 2b84f94
test: add zetaclient only upgrade tests (#4310)
kingpinXD 8df6b33
fix(`zetatool`): add missing networks (#4424)
kingpinXD 91c86dd
rebase main
kingpinXD 8cda400
update tests
kingpinXD 8d81a07
add zetaclient changes from main
kingpinXD 6bd0328
disable e2e tests not working in the first test run
kingpinXD d4aecf4
set light upgrade tests as default for zetaclient label
kingpinXD bca8e6f
update rpc import
kingpinXD 14977ba
update contract copy
kingpinXD 04b549c
fix update for removing nonces only if the tx is finalized
kingpinXD 502cbe6
fix update for removing nonces only if the tx is finalized
kingpinXD 591f52e
Merge remote-tracking branch 'origin/merge-main-develop' into merge-m…
kingpinXD 6426427
update changelog
kingpinXD 8019de6
rebase develop
kingpinXD 5f528f3
rebase develop
kingpinXD 7d0eaf4
Merge branch 'merge-main-develop' of github.com:zeta-chain/zeta-node …
kingpinXD 9945dd3
rebase develop to add changes for gas price multiplier
kingpinXD 382393b
generate files
kingpinXD 838b011
reduced upgrade height for connector-migration-test
kingpinXD 8848213
update comment for tss migration test
kingpinXD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,67 +1,59 @@ | ||
| package app | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
||
| storetypes "cosmossdk.io/store/types" | ||
| erc20types "github.com/cosmos/evm/x/erc20/types" | ||
| "github.com/stretchr/testify/require" | ||
| ) | ||
|
|
||
| func Test_CreateUpgrades(t *testing.T) { | ||
|
|
||
| addErc20ModuleUpgrade := upgradeTrackerItem{ | ||
| index: 1752528615, | ||
| storeUpgrade: &storetypes.StoreUpgrades{ | ||
| Added: []string{erc20types.ModuleName}, | ||
| }, | ||
| } | ||
| tests := []struct { | ||
| name string | ||
| chainID string | ||
| result []upgradeTrackerItem | ||
| panic bool | ||
| }{ | ||
| { | ||
| name: "mainnet chain ID", | ||
| chainID: "zetachain_7000-1", | ||
| result: []upgradeTrackerItem{addErc20ModuleUpgrade}, | ||
| panic: false, | ||
| }, | ||
| { | ||
| name: "testnet chain ID", | ||
| chainID: "zetachain_7001-1", | ||
| result: []upgradeTrackerItem{}, | ||
| panic: false, | ||
| }, | ||
| { | ||
| name: "invalid chain ID", | ||
| chainID: "zetachain-7001-1", | ||
| result: []upgradeTrackerItem{}, | ||
| panic: true, | ||
| }, | ||
| { | ||
| name: "empty chain ID", | ||
| chainID: "", | ||
| result: []upgradeTrackerItem{}, | ||
| panic: false, | ||
| }, | ||
| } | ||
| for _, tt := range tests { | ||
| t.Run(tt.name, func(t *testing.T) { | ||
| if tt.panic { | ||
| require.Panics(t, func() { | ||
| createUpgrades(tt.chainID) | ||
| }, "createUpgrades(%s) should panic", tt.chainID) | ||
| return | ||
| } else { | ||
| require.NotPanics(t, func() { | ||
| createUpgrades(tt.chainID) | ||
| }, "createUpgrades(%s) should not panic", tt.chainID) | ||
| } | ||
|
|
||
| result := createUpgrades(tt.chainID) | ||
| require.Equal(t, tt.result, result, "createUpgrades(%s) = %v, want %v", tt.chainID, result, tt.result) | ||
| }) | ||
| } | ||
| } | ||
| //func Test_CreateUpgrades(t *testing.T) { | ||
| // | ||
| // addErc20ModuleUpgrade := upgradeTrackerItem{ | ||
| // index: 1752528615, | ||
| // storeUpgrade: &storetypes.StoreUpgrades{ | ||
| // Added: []string{erc20types.ModuleName}, | ||
| // }, | ||
| // } | ||
| // tests := []struct { | ||
| // name string | ||
| // chainID string | ||
| // result []upgradeTrackerItem | ||
| // panic bool | ||
| // }{ | ||
| // { | ||
| // name: "mainnet chain ID", | ||
| // chainID: "zetachain_7000-1", | ||
| // result: []upgradeTrackerItem{addErc20ModuleUpgrade}, | ||
| // panic: false, | ||
| // }, | ||
| // { | ||
| // name: "testnet chain ID", | ||
| // chainID: "zetachain_7001-1", | ||
| // result: []upgradeTrackerItem{}, | ||
| // panic: false, | ||
| // }, | ||
| // { | ||
| // name: "invalid chain ID", | ||
| // chainID: "zetachain-7001-1", | ||
| // result: []upgradeTrackerItem{}, | ||
| // panic: true, | ||
| // }, | ||
| // { | ||
| // name: "empty chain ID", | ||
| // chainID: "", | ||
| // result: []upgradeTrackerItem{}, | ||
| // panic: false, | ||
| // }, | ||
| // } | ||
| // for _, tt := range tests { | ||
| // t.Run(tt.name, func(t *testing.T) { | ||
| // if tt.panic { | ||
| // require.Panics(t, func() { | ||
| // createUpgrades(tt.chainID) | ||
| // }, "createUpgrades(%s) should panic", tt.chainID) | ||
| // return | ||
| // } else { | ||
| // require.NotPanics(t, func() { | ||
| // createUpgrades(tt.chainID) | ||
| // }, "createUpgrades(%s) should not panic", tt.chainID) | ||
| // } | ||
| // | ||
| // result := createUpgrades(tt.chainID) | ||
| // require.Equal(t, tt.result, result, "createUpgrades(%s) = %v, want %v", tt.chainID, result, tt.result) | ||
| // }) | ||
| // } | ||
| //} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kingpinXD marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.