diff --git a/go.mod b/go.mod index 24457f88..80b68a5d 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( cosmossdk.io/math v1.0.0-rc.0 github.com/cosmos/cosmos-sdk v0.46.16-0.20231025193730-41d2a21c1348 github.com/cosmos/ibc-go/v6 v6.2.1 - github.com/decentrio/rollup-e2e-testing v0.0.0-20240217042554-3b5f78dba876 + github.com/decentrio/rollup-e2e-testing v0.0.0-20240226065125-246da844cabf github.com/evmos/ethermint v0.0.0-00010101000000-000000000000 github.com/stretchr/testify v1.8.4 go.uber.org/zap v1.24.0 diff --git a/go.sum b/go.sum index ee0c845f..0eea0003 100644 --- a/go.sum +++ b/go.sum @@ -319,6 +319,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/decentrio/rollup-e2e-testing v0.0.0-20240217042554-3b5f78dba876 h1:09ApxSVYDJhdkfENKoOOOZDVo9leMbMuLPiEGHdC9TQ= github.com/decentrio/rollup-e2e-testing v0.0.0-20240217042554-3b5f78dba876/go.mod h1:Hy/8P41OEKrlAatPG5NcD/BOWTa2s+laECwpZpmA9f0= +github.com/decentrio/rollup-e2e-testing v0.0.0-20240226065125-246da844cabf h1:yx8AVPUPphUcQxwxD2OVvJCitiRXr0SxnhNV0BXvoWY= +github.com/decentrio/rollup-e2e-testing v0.0.0-20240226065125-246da844cabf/go.mod h1:Hy/8P41OEKrlAatPG5NcD/BOWTa2s+laECwpZpmA9f0= 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.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= diff --git a/tests/ibc_timeout_test.go b/tests/ibc_timeout_test.go index e0e63f2f..a8a7657c 100644 --- a/tests/ibc_timeout_test.go +++ b/tests/ibc_timeout_test.go @@ -8,7 +8,8 @@ import ( "cosmossdk.io/math" transfertypes "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types" test "github.com/decentrio/rollup-e2e-testing" - "github.com/decentrio/rollup-e2e-testing/cosmos" + "github.com/decentrio/rollup-e2e-testing/cosmos/hub/dym_hub" + "github.com/decentrio/rollup-e2e-testing/cosmos/rollapp/dym_rollapp" "github.com/decentrio/rollup-e2e-testing/ibc" "github.com/decentrio/rollup-e2e-testing/relayer" @@ -38,11 +39,11 @@ func TestIBCTransferTimeout(t *testing.T) { numHubFullNodes := 1 numRollAppFn := 0 numRollAppVals := 1 - cf := cosmos.NewBuiltinChainFactory(zaptest.NewLogger(t), []*cosmos.ChainSpec{ + cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{ { Name: "rollapp1", ChainConfig: ibc.ChainConfig{ - Type: "rollapp", + Type: "rollapp-dym", Name: "rollapp-test", ChainID: "demo-dymension-rollapp", Images: []ibc.DockerImage{rollappImage}, @@ -71,18 +72,17 @@ func TestIBCTransferTimeout(t *testing.T) { chains, err := cf.Chains(t.Name()) require.NoError(t, err) - rollapp1 := chains[0].(*cosmos.CosmosChain) - dymension := chains[1].(*cosmos.CosmosChain) + rollapp1 := chains[0].(*dym_rollapp.DymRollApp) + dymension := chains[1].(*dym_hub.DymHub) // Relayer Factory client, network := test.DockerSetup(t) - r := relayer.NewBuiltinRelayerFactory(ibc.CosmosRly, zaptest.NewLogger(t), + r := test.NewBuiltinRelayerFactory(ibc.CosmosRly, zaptest.NewLogger(t), relayer.CustomDockerImage("ghcr.io/cosmos/relayer", "reece-v2.3.1-ethermint", "100:1000"), ).Build(t, client, network) const ibcPath = "ibc-path" ic := test.NewSetup(). - AddChain(rollapp1). - AddChain(dymension). + AddRollUp(dymension, rollapp1). AddRelayer(r, "relayer"). AddLink(test.InterchainLink{ Chain1: dymension, diff --git a/tests/ibc_transfer_test.go b/tests/ibc_transfer_test.go index ecc64bef..07237f95 100644 --- a/tests/ibc_transfer_test.go +++ b/tests/ibc_transfer_test.go @@ -7,7 +7,8 @@ import ( "cosmossdk.io/math" test "github.com/decentrio/rollup-e2e-testing" - "github.com/decentrio/rollup-e2e-testing/cosmos" + "github.com/decentrio/rollup-e2e-testing/cosmos/hub/dym_hub" + "github.com/decentrio/rollup-e2e-testing/cosmos/rollapp/dym_rollapp" "github.com/decentrio/rollup-e2e-testing/ibc" "github.com/decentrio/rollup-e2e-testing/relayer" "github.com/decentrio/rollup-e2e-testing/testreporter" @@ -38,11 +39,11 @@ func TestIBCTransferSuccess(t *testing.T) { numHubFullNodes := 1 numRollAppFn := 0 numRollAppVals := 1 - cf := cosmos.NewBuiltinChainFactory(zaptest.NewLogger(t), []*cosmos.ChainSpec{ + cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{ { Name: "rollapp1", ChainConfig: ibc.ChainConfig{ - Type: "rollapp", + Type: "rollapp-dym", Name: "rollapp-temp", ChainID: "demo-dymension-rollapp", Images: []ibc.DockerImage{rollappImage}, @@ -72,19 +73,18 @@ func TestIBCTransferSuccess(t *testing.T) { chains, err := cf.Chains(t.Name()) require.NoError(t, err) - rollapp1 := chains[0].(*cosmos.CosmosChain) - dymension := chains[1].(*cosmos.CosmosChain) + rollapp1 := chains[0].(*dym_rollapp.DymRollApp) + dymension := chains[1].(*dym_hub.DymHub) // Relayer Factory client, network := test.DockerSetup(t) - r := relayer.NewBuiltinRelayerFactory(ibc.CosmosRly, zaptest.NewLogger(t), + r := test.NewBuiltinRelayerFactory(ibc.CosmosRly, zaptest.NewLogger(t), relayer.CustomDockerImage("ghcr.io/cosmos/relayer", "reece-v2.3.1-ethermint", "100:1000"), ).Build(t, client, network) ic := test.NewSetup(). - AddChain(rollapp1). - AddChain(dymension). + AddRollUp(dymension, rollapp1). AddRelayer(r, "relayer"). AddLink(test.InterchainLink{ Chain1: dymension, diff --git a/tests/setup.go b/tests/setup.go index ed9d901a..c6669b13 100644 --- a/tests/setup.go +++ b/tests/setup.go @@ -31,7 +31,7 @@ var ( } dymensionConfig = ibc.ChainConfig{ - Type: "hub", + Type: "hub-dym", Name: "dymension", ChainID: "dymension_100-1", Images: []ibc.DockerImage{dymensionImage},