Skip to content

Commit

Permalink
Sequencer type
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Aug 5, 2024
1 parent 7bff63d commit dcf2061
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ replace (

require (
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805081742-5f0ce01286f7
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805094848-68d57d56ae62
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20240717194206-54c0fca5fada
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869 h1:qWpUYGOsrSC+1Vmd2TjhbsSpntvvx9PsX3AoeMunFxc=
github.com/decentrio/e2e-testing-live v0.0.0-20240718080249-ee255229c869/go.mod h1:HZNYnPwmSxkwTPjSD5yolauc1Vx1ZzKL4FFMxTq4H5Y=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805081742-5f0ce01286f7 h1:OiJr7bAE+8XGuodE7ohDSChUGEIWxHy1KOjJeMcTeMs=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805081742-5f0ce01286f7/go.mod h1:NwTceYVxAaIZI65g/PdibVnGRMXuZzqzhDIkWsqJaQM=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805094848-68d57d56ae62 h1:9FL0ehOjknP7jgDXYlJ91MytI02CyYJOwtIZfelqypM=
github.com/decentrio/rollup-e2e-testing v0.0.0-20240805094848-68d57d56ae62/go.mod h1:NwTceYVxAaIZI65g/PdibVnGRMXuZzqzhDIkWsqJaQM=
github.com/deckarep/golang-set v1.8.0 h1:sk9/l/KqpunDwP7pSjUg0keiOOLEnOBHzykLrsPppp4=
github.com/deckarep/golang-set v1.8.0/go.mod h1:5nI87KwE7wgsBU1F4GKAw2Qod7p5kyS383rP6+o6qqo=
github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y=
Expand Down
3 changes: 3 additions & 0 deletions tests/disconnection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func customConfig() ibc.ChainConfig {
if err := dyno.Set(g, "10000000000", "app_state", "gov", "params", "min_deposit", 0, "amount"); err != nil {
return nil, fmt.Errorf("failed to set amount on gov min_deposit in genesis json: %w", err)
}
if err := dyno.Set(g, "1000000000000", "app_state", "rollapp", "params", "registration_fee", "amount"); err != nil {
return nil, fmt.Errorf("failed to set registration_fee in genesis json: %w", err)
}
if err := dyno.Set(g, "adym", "app_state", "gamm", "params", "pool_creation_fee", 0, "denom"); err != nil {
return nil, fmt.Errorf("failed to set amount on gov min_deposit in genesis json: %w", err)
}
Expand Down
8 changes: 4 additions & 4 deletions tests/sequencer_invariant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ func TestSequencerInvariant_EVM(t *testing.T) {
rollappUserAddr := rollappUser.FormattedAddress()

command = []string{}
command = append(command, "sequencer", "create-sequencer", string(pub1), rollapp1.Config().ChainID, "{\"Moniker\":\"myrollapp-sequencer\",\"Identity\":\"\",\"Website\":\"\",\"SecurityContact\":\"\",\"Details\":\"\"}", "1000000000adym",
command = append(command, "sequencer", "create-sequencer", string(pub1), rollapp1.Config().ChainID, rollapp1.GetSequencerKeyDir()+"/metadata.json", "1000000000adym",
"--broadcast-mode", "async")

_, err = dymension.GetNode().ExecTx(ctx, sequencer1.KeyName(), command...)
require.NoError(t, err)

command = []string{}
command = append(command, "sequencer", "create-sequencer", string(pub2), rollapp1.Config().ChainID, "{\"Moniker\":\"myrollapp-sequencer\",\"Identity\":\"\",\"Website\":\"\",\"SecurityContact\":\"\",\"Details\":\"\"}", "1000000000adym",
command = append(command, "sequencer", "create-sequencer", string(pub2), rollapp1.Config().ChainID, rollapp1.GetSequencerKeyDir()+"/metadata.json", "1000000000adym",
"--broadcast-mode", "async")

_, err = dymension.GetNode().ExecTx(ctx, sequencer2.KeyName(), command...)
Expand Down Expand Up @@ -467,14 +467,14 @@ func TestSequencerInvariant_Wasm(t *testing.T) {
rollappUserAddr := rollappUser.FormattedAddress()

command = []string{}
command = append(command, "sequencer", "create-sequencer", string(pub1), rollapp1.Config().ChainID, "{\"Moniker\":\"myrollapp-sequencer\",\"Identity\":\"\",\"Website\":\"\",\"SecurityContact\":\"\",\"Details\":\"\"}", "1000000000adym",
command = append(command, "sequencer", "create-sequencer", string(pub1), rollapp1.Config().ChainID, rollapp1.GetSequencerKeyDir()+"/metadata.json", "1000000000adym",
"--broadcast-mode", "async")

_, err = dymension.GetNode().ExecTx(ctx, sequencer1.KeyName(), command...)
require.NoError(t, err)

command = []string{}
command = append(command, "sequencer", "create-sequencer", string(pub2), rollapp1.Config().ChainID, "{\"Moniker\":\"myrollapp-sequencer\",\"Identity\":\"\",\"Website\":\"\",\"SecurityContact\":\"\",\"Details\":\"\"}", "1000000000adym",
command = append(command, "sequencer", "create-sequencer", string(pub2), rollapp1.Config().ChainID, rollapp1.GetSequencerKeyDir()+"/metadata.json", "1000000000adym",
"--broadcast-mode", "async")

_, err = dymension.GetNode().ExecTx(ctx, sequencer2.KeyName(), command...)
Expand Down

0 comments on commit dcf2061

Please sign in to comment.