-
Notifications
You must be signed in to change notification settings - Fork 110
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
test: add crosschain and observer operations #3207
Open
kingpinXD
wants to merge
81
commits into
develop
Choose a base branch
from
crosschain-simulation-outbound
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
9369869
add crosschain decoders
kingpinXD 873153d
decoders test
kingpinXD 422d03b
add oeprations
kingpinXD 39d9863
add fungible deploy contracts
kingpinXD 84d2089
add fungible deploy contracts
kingpinXD 5d68917
add simulation for observer module
kingpinXD c4dfcd7
add comments for crosschain operations
kingpinXD fa1234f
add comments for observer and fungible operations
kingpinXD 9e3c7b3
rebase develop
kingpinXD 9f976c0
generate files
kingpinXD bacd4b2
debug import export test
kingpinXD 2b0509a
fix import export tests
kingpinXD d03ed5f
fix import export tests
kingpinXD 7070211
fix app determinism test
kingpinXD cda3f22
update codecov.yml
kingpinXD 9172df7
reduce weight for DeployedSystemContracts operation
kingpinXD 8526eab
add new function to generate eth address from provided randomness
kingpinXD ea92069
Update x/fungible/simulation/decoders.go
kingpinXD 977a22c
Update testutil/sample/sample.go
kingpinXD 863cf0b
add validations
kingpinXD 44abb89
add validations
kingpinXD 94ecd5e
add randmoness to tss
kingpinXD 13f919f
make requested changes 1
kingpinXD 4975947
update state.go file
kingpinXD eea9fd4
update state.go file
kingpinXD 083d861
change chains.IsEVMChain to chains.IsEthereumChain in deposit tests
kingpinXD dee623d
add basic structure for outbound vote message
kingpinXD 111b0d3
add randomised outbound message
kingpinXD 5c958d0
add cointype randomisation to inbound message
kingpinXD a1940b9
add cointype gas
kingpinXD 734fcde
add cointype erc20
kingpinXD a3fb140
add outbound tracker
kingpinXD 1dc5135
improve outbound tracker nonce selection
kingpinXD bbb2e0b
remove block limit for outbound tracker
kingpinXD f6f02c6
add operation remove outbound tracker
kingpinXD 1b1331b
add operation whitelist erc20
kingpinXD a8adac6
fix unit tests
kingpinXD de55103
fix unit tests
kingpinXD e5c5fc7
fix Abort CCTX test
kingpinXD 6bb4c02
add operation refund aborted cctx
kingpinXD d0b7fc8
add operation update rate limiter flags
kingpinXD 8bf7a94
add operation UpdateErc20PauseStatus
kingpinXD 7b973d0
add additional checks to whitelist erc20
kingpinXD 84979bc
add default gas prices to the state
kingpinXD 0189453
add default gas prices to the state
kingpinXD df1b22c
update zeta accounting genesis
kingpinXD 48e5392
update operation whitelist erc20 to not try whitelisting duplicate as…
kingpinXD 5d3be6e
add check for aborted status when finalizing an outbound
kingpinXD 7ee9138
add check for aborted status when finalizing an outbound
kingpinXD 658c59e
reduce errors for RefundAbortedCCTX
kingpinXD d612907
reduce errors for RefundAbortedCCTX
kingpinXD 41aa11b
reafactor update TSS to use existing cctx
kingpinXD 8ecf2dd
remove setting nonce to cctx twice
kingpinXD 863b4cd
set observe count for even is observer set is empty
kingpinXD ede755b
add updte keygen message
kingpinXD adf2c12
add update chain params
kingpinXD 010ecb6
add SimulateMsgResetChainNonces
kingpinXD f6852b2
add more operations from observer module
kingpinXD 038df39
add helper functions
kingpinXD 1d3ff29
format code
kingpinXD 7c14f50
add additional check to voting messages to for existing ballots
kingpinXD b5181d5
add msg vote tss
kingpinXD 31b233b
add msg vote tss
kingpinXD 2de15bf
rebase develop
kingpinXD 25fef78
remove isPending check for aborted cctx
kingpinXD 5c05afe
fix unit tests
kingpinXD 30f1e65
add comments to simulation_test.go
kingpinXD f32e676
add comments and unit tests
kingpinXD a90a6eb
add comments to operations
kingpinXD 1d431cc
refactor based on comments
kingpinXD 42d1389
fix formating
kingpinXD 42bf24d
improve formating for decoders.go
kingpinXD fd1dec3
remove overflow check when not needed
kingpinXD 2be31f2
resolve comments 2
kingpinXD c6c8000
add protocol v2
kingpinXD 507b430
generate files 2
kingpinXD 7504de4
reduce weight of message enable CCTX
kingpinXD 9f249f6
add solana address from rand
kingpinXD 456d59a
make changes based on feedback
kingpinXD 8fea9b0
refacctor updateCrossChainState to updateCrosschainState
kingpinXD fb46049
rename Maxed to MaxReached
kingpinXD File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package coin_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/zeta-chain/node/pkg/coin" | ||
) | ||
|
||
func TestCoinType_SupportsRefund(t *testing.T) { | ||
tests := []struct { | ||
name string | ||
c coin.CoinType | ||
want bool | ||
}{ | ||
{"ERC20", coin.CoinType_ERC20, true}, | ||
{"Gas", coin.CoinType_Gas, true}, | ||
{"Zeta", coin.CoinType_Zeta, true}, | ||
{"Cmd", coin.CoinType_Cmd, false}, | ||
{"Unknown", coin.CoinType(100), false}, | ||
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
if got := tt.c.SupportsRefund(); got != tt.want { | ||
t.Errorf("CoinType.SupportsRefund() = %v, want %v", got, tt.want) | ||
} | ||
}) | ||
} | ||
} |
This file contains 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 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test name full lowercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to keep this as it is , since these are all proper nouns