From 673219ef47e2de39a510ea5519d46c837280baa0 Mon Sep 17 00:00:00 2001 From: ducnt131 <62016666+anhductn2001@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:46:08 +0700 Subject: [PATCH] Fix tests (#550) Co-authored-by: hungdinh82 --- tests/admc_test.go | 24 ++++++++++++ tests/automated_denommetadata_test.go | 18 +++++++++ tests/bridging_fee_test.go | 3 ++ tests/canonical_light_client_test.go | 3 ++ tests/eibc_ack_error_test.go | 21 +++++++++++ tests/eibc_client_test.go | 6 +++ tests/eibc_corrupted_memo_test.go | 3 ++ tests/eibc_fee_market_test.go | 12 ++++++ tests/eibc_fee_test.go | 3 ++ tests/eibc_feemarket_test.go | 24 ++++++++++++ tests/eibc_fulfillment_test.go | 27 ++++++++++++++ tests/eibc_invariant_test.go | 6 +++ tests/eibc_nobalance_test.go | 3 ++ tests/eibc_not_fulfillment_test.go | 6 +++ tests/eibc_pfm_test.go | 6 +++ tests/eibc_timeout_test.go | 9 +++++ tests/erc20_ibc_transfer_test.go | 6 +++ tests/frozen_test.go | 42 +++++++++++++++++++++ tests/genesis_bridge_test.go | 51 +++++++++++++++++++++----- tests/hardfork_test.go | 16 +++++--- tests/ibc_finalize_block_test.go | 18 +++++++++ tests/ibc_grace_period_test.go | 18 +++++++++ tests/ibc_timeout_test.go | 3 ++ tests/ibc_transfer_test.go | 6 +++ tests/rollapp_invariant_test.go | 6 +++ tests/rollapp_state_update_test.go | 18 +++++++++ tests/rollapp_upgrade_test.go | 6 +++ tests/sequencer_reward_address_test.go | 6 +++ tests/sequencer_rotation_test.go | 22 ++++++----- tests/setup.go | 4 ++ tests/time_upgrade_test.go | 46 +++++++++-------------- tests/zero_fee_relay_test.go | 6 +++ 32 files changed, 396 insertions(+), 52 deletions(-) diff --git a/tests/admc_test.go b/tests/admc_test.go index a5fa6d98..ac41c6ef 100644 --- a/tests/admc_test.go +++ b/tests/admc_test.go @@ -120,6 +120,9 @@ func TestADMC_Originates_HubtoRA_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -320,6 +323,9 @@ func TestADMC_Migrate_Empty_User_Memo_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -598,6 +604,9 @@ func TestADMC_Migrate_With_User_Memo_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -882,6 +891,9 @@ func TestADMC_Originates_HubtoRA_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1082,6 +1094,9 @@ func TestADMC_Migrate_Empty_User_Memo_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1357,6 +1372,9 @@ func TestADMC_Migrate_With_User_Memo_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1666,6 +1684,9 @@ func TestADMC_MetaData_NotFound_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1896,6 +1917,9 @@ func TestADMC_MetaData_NotFound_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/automated_denommetadata_test.go b/tests/automated_denommetadata_test.go index 69be7328..4d3f1765 100644 --- a/tests/automated_denommetadata_test.go +++ b/tests/automated_denommetadata_test.go @@ -191,6 +191,9 @@ func TestADMC_Hub_to_RA_reserved_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -506,6 +509,9 @@ func TestADMC_Hub_to_RA_3rd_Party_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -834,6 +840,9 @@ func TestADMC_Hub_to_RA_reserved_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1196,6 +1205,9 @@ func TestADMC_Hub_to_RA_3rd_Party_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1481,6 +1493,9 @@ func TestADMC_Hub_to_RA_Migrate_Dym_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1704,6 +1719,9 @@ func TestADMC_Hub_to_RA_Migrate_Dym_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/bridging_fee_test.go b/tests/bridging_fee_test.go index dd75cbe1..9234e143 100644 --- a/tests/bridging_fee_test.go +++ b/tests/bridging_fee_test.go @@ -324,6 +324,9 @@ func TestChangeBridgeFeeParam_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/canonical_light_client_test.go b/tests/canonical_light_client_test.go index dd5e0ab4..9cd15cf1 100644 --- a/tests/canonical_light_client_test.go +++ b/tests/canonical_light_client_test.go @@ -356,6 +356,9 @@ func TestIBCTransferRA_3rdSameChainID_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_ack_error_test.go b/tests/eibc_ack_error_test.go index aa3420bf..39e2e4a1 100644 --- a/tests/eibc_ack_error_test.go +++ b/tests/eibc_ack_error_test.go @@ -186,6 +186,12 @@ func TestEIBC_AckError_Dym_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -694,6 +700,9 @@ func TestEIBC_AckError_RA_Token_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1177,6 +1186,9 @@ func TestEIBC_AckError_3rd_Party_Token_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1733,6 +1745,9 @@ func TestEIBC_AckError_Dym_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -2237,6 +2252,9 @@ func TestEIBC_AckError_RA_Token_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -2718,6 +2736,9 @@ func TestEIBC_AckError_3rd_Party_Token_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_client_test.go b/tests/eibc_client_test.go index 42678423..b101cd73 100644 --- a/tests/eibc_client_test.go +++ b/tests/eibc_client_test.go @@ -393,6 +393,9 @@ func Test_EIBC_Client_Success_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -974,6 +977,9 @@ func Test_EIBC_Client_NoFulfillRollapp_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_corrupted_memo_test.go b/tests/eibc_corrupted_memo_test.go index c4a80213..3a26e8c9 100644 --- a/tests/eibc_corrupted_memo_test.go +++ b/tests/eibc_corrupted_memo_test.go @@ -137,6 +137,9 @@ func TestEIBCCorruptedMemoNegative_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_fee_market_test.go b/tests/eibc_fee_market_test.go index f4f5ccbd..24a25376 100644 --- a/tests/eibc_fee_market_test.go +++ b/tests/eibc_fee_market_test.go @@ -168,6 +168,9 @@ func TestEIBCFulfillAlreadyFulfilledDemand_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -564,6 +567,9 @@ func TestEIBCAlreadyFulfilledDemand_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -960,6 +966,9 @@ func TestEIBCUnallowedSigner_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1264,6 +1273,9 @@ func TestEIBCUnallowedSigner_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_fee_test.go b/tests/eibc_fee_test.go index 28a051bc..a59bb082 100644 --- a/tests/eibc_fee_test.go +++ b/tests/eibc_fee_test.go @@ -137,6 +137,9 @@ func TestEIBCFeeTooHigh_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_feemarket_test.go b/tests/eibc_feemarket_test.go index 66333ddf..8dddae77 100644 --- a/tests/eibc_feemarket_test.go +++ b/tests/eibc_feemarket_test.go @@ -180,6 +180,9 @@ func TestEIBC_Fee_Market_Success_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -531,6 +534,9 @@ func TestEIBC_Fee_Market_Success_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -896,6 +902,9 @@ func TestEIBC_Fee_Market_Auto_Created_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1245,6 +1254,9 @@ func TestEIBC_Fee_Market_Auto_Created_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1555,6 +1567,9 @@ func TestEIBCUpdateOnAckErrAndTimeout_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1835,6 +1850,9 @@ func TestEIBCUpdateOnAckErrAndTimeout_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -2137,6 +2155,9 @@ func TestEIBCUpdateOnTimeout_Unallowed_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -2387,6 +2408,9 @@ func TestEIBCUpdateOnTimeout_Unallowed_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_fulfillment_test.go b/tests/eibc_fulfillment_test.go index 515ef95e..de3980d2 100644 --- a/tests/eibc_fulfillment_test.go +++ b/tests/eibc_fulfillment_test.go @@ -185,6 +185,9 @@ func TestEIBCFulfillOnOneRollApp_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -661,6 +664,9 @@ func TestEIBCFulfillOnOneRollApp_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1151,6 +1157,9 @@ func TestEIBCFulfillment_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1498,6 +1507,9 @@ func TestEIBCFulfillment_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1855,6 +1867,9 @@ func TestEIBCFulfillment_two_rollapps_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -2306,6 +2321,9 @@ func TestEIBCFulfillment_ThirdParty_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -2781,6 +2799,9 @@ func TestEIBCFulfillment_ThirdParty_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -3232,6 +3253,9 @@ func TestEIBCFulfillment_ignore_hub_to_RA_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -3527,6 +3551,9 @@ func TestEIBCFulfillment_ignore_hub_to_RA_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_invariant_test.go b/tests/eibc_invariant_test.go index 1e48dbdb..4a9598aa 100644 --- a/tests/eibc_invariant_test.go +++ b/tests/eibc_invariant_test.go @@ -142,6 +142,9 @@ func TestEIBCInvariant_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -544,6 +547,9 @@ func TestEIBCInvariant_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_nobalance_test.go b/tests/eibc_nobalance_test.go index d3a8a131..07cbe7cc 100644 --- a/tests/eibc_nobalance_test.go +++ b/tests/eibc_nobalance_test.go @@ -138,6 +138,9 @@ func TestEIBCNoBalanceToFulfillOrder_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_not_fulfillment_test.go b/tests/eibc_not_fulfillment_test.go index 959728cf..b79fbe7c 100644 --- a/tests/eibc_not_fulfillment_test.go +++ b/tests/eibc_not_fulfillment_test.go @@ -182,6 +182,9 @@ func TestEIBCNotFulfillment_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -516,6 +519,9 @@ func TestEIBCNotFulfillment_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_pfm_test.go b/tests/eibc_pfm_test.go index 80e8fdbc..d5cb6714 100644 --- a/tests/eibc_pfm_test.go +++ b/tests/eibc_pfm_test.go @@ -183,6 +183,9 @@ func TestEIBCPFM_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -502,6 +505,9 @@ func TestEIBCPFM_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/eibc_timeout_test.go b/tests/eibc_timeout_test.go index aa217885..83088411 100644 --- a/tests/eibc_timeout_test.go +++ b/tests/eibc_timeout_test.go @@ -137,6 +137,9 @@ func TestEIBCTimeoutDymToRollapp_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -504,6 +507,9 @@ func TestEIBCTimeoutFulFillDymToRollapp_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -943,6 +949,9 @@ func TestEIBCTimeoutFulFillDymToRollapp_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/erc20_ibc_transfer_test.go b/tests/erc20_ibc_transfer_test.go index 74bf5417..a494cb14 100644 --- a/tests/erc20_ibc_transfer_test.go +++ b/tests/erc20_ibc_transfer_test.go @@ -137,6 +137,9 @@ func TestERC20HubToRollAppWithoutRegister_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -389,6 +392,9 @@ func TestERC20RollAppToHubWithRegister_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/frozen_test.go b/tests/frozen_test.go index 5f8e9fa9..59021483 100644 --- a/tests/frozen_test.go +++ b/tests/frozen_test.go @@ -189,6 +189,9 @@ func TestRollAppFreeze_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -597,6 +600,9 @@ func TestRollAppFreeze_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -996,6 +1002,9 @@ func TestOtherRollappNotAffected_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1520,6 +1529,9 @@ func TestOtherRollappNotAffected_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1988,6 +2000,9 @@ func TestPacketRollbacked_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -2372,6 +2387,9 @@ func TestPacketRollbacked_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -2815,6 +2833,9 @@ func TestRollAppFreezeNoBrokenInvariants_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -3218,6 +3239,9 @@ func TestRollAppFreezeNoBrokenInvariants_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -3621,6 +3645,9 @@ func TestRollAppSqcSlashedJailed_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -4099,6 +4126,9 @@ func TestRollAppSqcSlashedJailed_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -4532,6 +4562,9 @@ func TestRollAppFreezeStateNotProgressing_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -4889,6 +4922,9 @@ func TestRollAppFreezeStateNotProgressing_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -5246,6 +5282,9 @@ func TestRollAppFreezeEibcPending_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -5618,6 +5657,9 @@ func TestRollAppFreezeEibcPending_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/genesis_bridge_test.go b/tests/genesis_bridge_test.go index 2dee3415..8e265b06 100644 --- a/tests/genesis_bridge_test.go +++ b/tests/genesis_bridge_test.go @@ -123,6 +123,9 @@ func TestGenesisTransferBridgeBlocking_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -286,6 +289,9 @@ func TestGenesisTransferBridgeBlocking_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -449,6 +455,9 @@ func TestGenesisTransferConnectionBlock_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -643,6 +652,9 @@ func TestGenesisTransferConnectionBlock_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1054,6 +1066,9 @@ func TestGenesisBridgeNoRelayAck_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1207,6 +1222,9 @@ func TestGenesisBridgeNoRelayAck_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1388,6 +1406,9 @@ func TestGenesisBridgeBeforeChannelSet_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1587,6 +1608,9 @@ func TestGenesisBridgeWithoutGenesisAcc_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1746,6 +1770,9 @@ func TestGenesisTransferBridgeUnBond_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1923,6 +1950,9 @@ func TestGenesisTransferBridgeUnBond_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -2018,12 +2048,16 @@ func TestGenTransferBridgeKickProposer_EVM(t *testing.T) { modifyHubGenesisKV := append( dymensionGenesisKV, + // cosmos.GenesisKV{ + // Key: "app_state.sequencer.params.kick_threshold", + // Value: map[string]interface{}{ + // "denom": "adym", + // "amount": "99999999999999999999", + // }, + // }, cosmos.GenesisKV{ - Key: "app_state.sequencer.params.kick_threshold", - Value: map[string]interface{}{ - "denom": "adym", - "amount": "99999999999999999999", - }, + Key: "app_state.sequencer.params.dishonor_kick_threshold", + Value: "1", }, cosmos.GenesisKV{ Key: "app_state.rollapp.params.liveness_slash_blocks", @@ -2235,11 +2269,8 @@ func TestGenTransferBridgeKickProposer_Wasm(t *testing.T) { modifyHubGenesisKV := append( dymensionGenesisKV, cosmos.GenesisKV{ - Key: "app_state.sequencer.params.kick_threshold", - Value: map[string]interface{}{ - "denom": "adym", - "amount": "99999999999999999999", - }, + Key: "app_state.sequencer.params.dishonor_kick_threshold", + Value: "1", }, cosmos.GenesisKV{ Key: "app_state.rollapp.params.liveness_slash_blocks", diff --git a/tests/hardfork_test.go b/tests/hardfork_test.go index 3cf9fb15..877d7806 100644 --- a/tests/hardfork_test.go +++ b/tests/hardfork_test.go @@ -208,6 +208,9 @@ func TestHardForkDueToFraud_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -483,11 +486,8 @@ func Test_HardFork_KickProposer_EVM(t *testing.T) { modifyHubGenesisKV := append( dymensionGenesisKV, cosmos.GenesisKV{ - Key: "app_state.sequencer.params.kick_threshold", - Value: map[string]interface{}{ - "denom": "adym", - "amount": "99999999999999999999", - }, + Key: "app_state.sequencer.params.dishonor_kick_threshold", + Value: "1", }, cosmos.GenesisKV{ Key: "app_state.rollapp.params.liveness_slash_blocks", @@ -607,6 +607,9 @@ func Test_HardFork_KickProposer_EVM(t *testing.T) { err = testutil.WaitForBlocks(ctx, 5, dymension) require.NoError(t, err) + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1083,6 +1086,9 @@ func TestHardForkDueToDrs_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/ibc_finalize_block_test.go b/tests/ibc_finalize_block_test.go index 7179d994..8a673bd2 100644 --- a/tests/ibc_finalize_block_test.go +++ b/tests/ibc_finalize_block_test.go @@ -124,6 +124,9 @@ func TestDymFinalizeBlock_OnRecvPacket_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -404,6 +407,9 @@ func TestDymFinalizeBlock_OnAckPacket_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -590,6 +596,9 @@ func TestDymFinalizeBlock_OnTimeOutPacket_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -832,6 +841,9 @@ func TestDymFinalizeBlock_OnRecvPacket_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1117,6 +1129,9 @@ func TestDymFinalizeBlock_OnAckPacket_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -1304,6 +1319,9 @@ func TestDymFinalizeBlock_OnTimeOutPacket_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/ibc_grace_period_test.go b/tests/ibc_grace_period_test.go index b00a17f4..f17a4e16 100644 --- a/tests/ibc_grace_period_test.go +++ b/tests/ibc_grace_period_test.go @@ -181,6 +181,9 @@ func TestIBCGracePeriodCompliance_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -533,6 +536,9 @@ func TestIBCGracePeriodCompliance_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -888,6 +894,9 @@ func TestDelayedAck_NoFinalizedStates_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1187,6 +1196,9 @@ func TestDelayedAck_NoFinalizedStates_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1479,6 +1491,9 @@ func TestDelayedAck_RelayerDown_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1828,6 +1843,9 @@ func TestDelayedAck_RelayerDown_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/ibc_timeout_test.go b/tests/ibc_timeout_test.go index d755d213..cd8b84fe 100644 --- a/tests/ibc_timeout_test.go +++ b/tests/ibc_timeout_test.go @@ -136,6 +136,9 @@ func TestIBCTransferTimeout_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/ibc_transfer_test.go b/tests/ibc_transfer_test.go index 25f972b9..62dc6789 100644 --- a/tests/ibc_transfer_test.go +++ b/tests/ibc_transfer_test.go @@ -204,6 +204,9 @@ func TestIBCTransferSuccess_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -412,6 +415,9 @@ func TestIBCTransferSuccess_Wasm(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/rollapp_invariant_test.go b/tests/rollapp_invariant_test.go index cba8d36c..6020c05c 100644 --- a/tests/rollapp_invariant_test.go +++ b/tests/rollapp_invariant_test.go @@ -176,6 +176,9 @@ func TestRollappInvariant_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -451,6 +454,9 @@ func TestRollappInvariant_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/rollapp_state_update_test.go b/tests/rollapp_state_update_test.go index 94598764..cce66811 100644 --- a/tests/rollapp_state_update_test.go +++ b/tests/rollapp_state_update_test.go @@ -197,6 +197,9 @@ func Test_RollAppStateUpdateSuccess_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -539,6 +542,9 @@ func Test_RollAppStateUpdateSuccess_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -897,6 +903,9 @@ func Test_RollAppStateUpdateFail_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1269,6 +1278,9 @@ func Test_RollAppStateUpdateFail_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -1811,6 +1823,9 @@ func Test_RollAppStateUpdateFail_Celes_EVM(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) @@ -2293,6 +2308,9 @@ func Test_RollAppStateUpdateFail_Celes_Wasm(t *testing.T) { require.NoError(t, err) keyPath2 := keyDir2 + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet1.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/rollapp_upgrade_test.go b/tests/rollapp_upgrade_test.go index a71d2ed4..650f44aa 100644 --- a/tests/rollapp_upgrade_test.go +++ b/tests/rollapp_upgrade_test.go @@ -126,6 +126,9 @@ func TestRollapp_EVM_Upgrade(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -413,6 +416,9 @@ func TestRollapp_Wasm_Upgrade(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/sequencer_reward_address_test.go b/tests/sequencer_reward_address_test.go index 7df0c5ad..ef2d1c4d 100644 --- a/tests/sequencer_reward_address_test.go +++ b/tests/sequencer_reward_address_test.go @@ -229,6 +229,9 @@ func Test_SeqRewardsAddress_Register_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -648,6 +651,9 @@ func Test_SeqRewardsAddress_Update_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) diff --git a/tests/sequencer_rotation_test.go b/tests/sequencer_rotation_test.go index d94db30e..2800c51c 100644 --- a/tests/sequencer_rotation_test.go +++ b/tests/sequencer_rotation_test.go @@ -2460,7 +2460,7 @@ func Test_SeqRotation_NoSeq_P2P_Wasm(t *testing.T) { require.NoError(t, err) } - containerID = fmt.Sprintf("ra-rollappevm_1234-1-fn-0-%s", t.Name()) + containerID = fmt.Sprintf("ra-rollappwasm_1234-1-fn-0-%s", t.Name()) // Get the container details containerJSON, err = client.ContainerInspect(context.Background(), containerID) @@ -2986,7 +2986,7 @@ func Test_SqcRotation_OneSqc_P2P_EVM(t *testing.T) { lastBlock, err := rollapp1.Height(ctx) require.NoError(t, err) - time.Sleep(200 * time.Second) + time.Sleep(250 * time.Second) currentProposer, err = dymension.GetNode().GetProposerByRollapp(ctx, rollapp1.Config().ChainID, dymensionUserAddr) require.NoError(t, err) @@ -3506,7 +3506,7 @@ func Test_SqcRotation_OneSqc_P2P_Wasm(t *testing.T) { lastBlock, err := rollapp1.Height(ctx) require.NoError(t, err) - time.Sleep(200 * time.Second) + time.Sleep(250 * time.Second) currentProposer, err = dymension.GetNode().GetProposerByRollapp(ctx, rollapp1.Config().ChainID, dymensionUserAddr) require.NoError(t, err) @@ -6802,12 +6802,16 @@ func Test_SeqRotation_Forced_DA_EVM(t *testing.T) { modifyHubGenesisKV := append( dymensionGenesisKV, + // cosmos.GenesisKV{ + // Key: "app_state.sequencer.params.kick_threshold", + // Value: map[string]interface{}{ + // "denom": "adym", + // "amount": "99999999999999999999", + // }, + // }, cosmos.GenesisKV{ - Key: "app_state.sequencer.params.kick_threshold", - Value: map[string]interface{}{ - "denom": "adym", - "amount": "99999999999999999999", - }, + Key: "app_state.sequencer.params.dishonor_kick_threshold", + Value: "1", }, cosmos.GenesisKV{ Key: "app_state.rollapp.params.liveness_slash_blocks", @@ -7216,7 +7220,7 @@ func Test_SeqRotation_Forced_DA_EVM(t *testing.T) { wallet, found = r.GetWallet(rollapp1.Config().ChainID) require.True(t, found) - err = testutil.WaitForBlocks(ctx, 5, dymension) + err = testutil.WaitForBlocks(ctx, 10, dymension) require.NoError(t, err) //Update white listed relayers diff --git a/tests/setup.go b/tests/setup.go index 214aa505..e22c778d 100644 --- a/tests/setup.go +++ b/tests/setup.go @@ -200,6 +200,10 @@ var ( } rollappEVMGenesisKV = []cosmos.GenesisKV{ + { + Key: "app_state.rollappparams.params.drs_version", + Value: 2, + }, { Key: "consensus_params.block.max_gas", Value: "400000000", diff --git a/tests/time_upgrade_test.go b/tests/time_upgrade_test.go index cb63afc7..0b1050e9 100644 --- a/tests/time_upgrade_test.go +++ b/tests/time_upgrade_test.go @@ -204,6 +204,9 @@ func Test_TimeBaseUpgrade_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -253,17 +256,9 @@ func Test_TimeBaseUpgrade_EVM(t *testing.T) { fmt.Println("Upgrade Time:", upgradeTime) msg := map[string]interface{}{ "@type": "/rollapp.timeupgrade.types.MsgSoftwareUpgrade", - "original_upgrade": map[string]interface{}{ - "authority": "ethm10d07y265gmmuvt4z0w9aw880jnsr700jpva843", - "plan": map[string]interface{}{ - "name": "v0.2.1", - "time": "0001-01-01T00:00:00Z", - "height": haltHeight, - "info": "{}", - "upgraded_client_state": nil, - }, - }, - "upgrade_time": upgradeTime, + "authority": "ethm10d07y265gmmuvt4z0w9aw880jnsr700jpva843", + "drs": 2, + "upgrade_time": upgradeTime, } rawMsg, err := json.Marshal(msg) @@ -273,9 +268,9 @@ func Test_TimeBaseUpgrade_EVM(t *testing.T) { proposal := cosmos.TxProposalV1{ Deposit: "500000000000" + rollapp1.Config().Denom, - Title: "rollapp Upgrade 1", - Summary: "test", - Description: "First software upgrade", + Title: "Update Dymension to DRS-2", + Summary: "This proposal aims to upgrade the Dymension rollapp to DRS 2, implementing new features and improvements, with a scheduled upgrade time.", + Description: "Upgrade Dymension to DRS-2 version with scheduled upgrade time", Messages: []json.RawMessage{rawMsg}, Expedited: true, } @@ -540,6 +535,9 @@ func Test_TimeBaseUpgradeInPast_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -591,17 +589,9 @@ func Test_TimeBaseUpgradeInPast_EVM(t *testing.T) { fmt.Println("Upgrade Time:", upgradeTime) msg := map[string]interface{}{ "@type": "/rollapp.timeupgrade.types.MsgSoftwareUpgrade", - "original_upgrade": map[string]interface{}{ - "authority": "ethm10d07y265gmmuvt4z0w9aw880jnsr700jpva843", - "plan": map[string]interface{}{ - "name": "v0.2.1", - "time": "0001-01-01T00:00:00Z", - "height": "1800", - "info": "{}", - "upgraded_client_state": nil, - }, - }, - "upgrade_time": upgradeTime, + "authority": "ethm10d07y265gmmuvt4z0w9aw880jnsr700jpva843", + "drs": 2, + "upgrade_time": upgradeTime, } rawMsg, err := json.Marshal(msg) @@ -611,9 +601,9 @@ func Test_TimeBaseUpgradeInPast_EVM(t *testing.T) { proposal := cosmos.TxProposalV1{ Deposit: "500000000000" + rollapp1.Config().Denom, - Title: "rollapp Upgrade 1", - Summary: "test", - Description: "First software upgrade", + Title: "Update Dymension to DRS-2", + Summary: "This proposal aims to upgrade the Dymension rollapp to DRS 2, implementing new features and improvements, with a scheduled upgrade time.", + Description: "Upgrade Dymension to DRS-2 version with scheduled upgrade time", Messages: []json.RawMessage{rawMsg}, Expedited: true, } diff --git a/tests/zero_fee_relay_test.go b/tests/zero_fee_relay_test.go index 94ff3932..b5f73121 100644 --- a/tests/zero_fee_relay_test.go +++ b/tests/zero_fee_relay_test.go @@ -136,6 +136,9 @@ func TestZeroFee_RelaySuccess_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err) @@ -473,6 +476,9 @@ func TestZeroFee_RotatedSequencer_EVM(t *testing.T) { keyDir := dymension.GetRollApps()[0].GetSequencerKeyDir() keyPath := keyDir + "/sequencer_keys" + err = testutil.WaitForBlocks(ctx, 5, dymension) + require.NoError(t, err) + //Update white listed relayers _, err = dymension.GetNode().UpdateWhitelistedRelayers(ctx, "sequencer", keyPath, []string{wallet.FormattedAddress()}) require.NoError(t, err)