From dcf2061f69a53e7570dd3669bec6bb68ac67e77b Mon Sep 17 00:00:00 2001 From: anhductn2001 Date: Mon, 5 Aug 2024 17:05:35 +0700 Subject: [PATCH] Sequencer type --- go.mod | 2 +- go.sum | 4 ++-- tests/disconnection_test.go | 3 +++ tests/sequencer_invariant_test.go | 8 ++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index f68ccd03..497af5cd 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index d06fead2..b2751a28 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/tests/disconnection_test.go b/tests/disconnection_test.go index d5d42f7d..8c28b74e 100644 --- a/tests/disconnection_test.go +++ b/tests/disconnection_test.go @@ -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) } diff --git a/tests/sequencer_invariant_test.go b/tests/sequencer_invariant_test.go index 0fbde6db..064b4666 100644 --- a/tests/sequencer_invariant_test.go +++ b/tests/sequencer_invariant_test.go @@ -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...) @@ -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...)