Skip to content

Commit

Permalink
test: base standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Nov 26, 2024
1 parent d0b84ac commit 486737b
Showing 1 changed file with 23 additions and 27 deletions.
50 changes: 23 additions & 27 deletions interchaintest/ics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,24 @@ var (
icsPath = "ics-path"
// cd testing/consumer && DOCKER_BUILDKIT=0 docker build . --tag consumer:local
ConsumerTestingChain = interchaintest.ChainSpec{
Name: "consumer",
Version: "local",
ChainName: "consumer",
Name: "ics-consumer",
Version: "v5.0.0",
NumValidators: &vals, NumFullNodes: &fNodes,
ChainConfig: ibc.ChainConfig{
GasAdjustment: 3.0,
TrustingPeriod: "504h",
Type: "cosmos",
Name: "consumer",
ChainID: "localchain-2",
Bin: "consumerd",
Denom: "utoken",
CoinType: "118",
Bech32Prefix: "cosmos",
GasPrices: "0.0" + "utoken",
InterchainSecurityConfig: ibc.ICSConfig{
ProviderVerOverride: "v0.0.0",
ConsumerVerOverride: "v0.0.0",
},
Images: []ibc.DockerImage{
ibc.NewDockerImage("consumer", "local", "1026:1026"),
},
// Name: "consumer",
ChainID: "localchain-2",
// Bin: "consumerd",
// Denom: "utoken",
// CoinType: "118",
// Bech32Prefix: "cosmos",
// GasPrices: "0.0" + "utoken",
// InterchainSecurityConfig: ibc.ICSConfig{
// ProviderVerOverride: "v0.0.0",
// ConsumerVerOverride: "v0.0.0",
// },
ModifyGenesis: cosmos.ModifyGenesis([]cosmos.GenesisKV{
cosmos.NewGenesisKV("app_state.gov.params.voting_period", VotingPeriod),
cosmos.NewGenesisKV("app_state.gov.params.max_deposit_period", MaxDepositPeriod),
Expand All @@ -57,14 +53,14 @@ func TestICSConnection(t *testing.T) {

cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
&DefaultChainSpec,
&ConsumerTestingChain,
// &ConsumerTestingChain,
})

chains, err := cf.Chains(t.Name())
require.NoError(t, err)

provider := chains[0].(*cosmos.CosmosChain)
consumer := chains[1].(*cosmos.CosmosChain)
// consumer := chains[1].(*cosmos.CosmosChain)

// Relayer Factory
r := interchaintest.NewBuiltinRelayerFactory(
Expand All @@ -77,14 +73,14 @@ func TestICSConnection(t *testing.T) {
// Setup Interchain
ic := interchaintest.NewInterchain().
AddChain(provider).
AddChain(consumer).
AddRelayer(r, "rly").
AddProviderConsumerLink(interchaintest.ProviderConsumerLink{
Provider: provider,
Consumer: consumer,
Relayer: r,
Path: icsPath,
})
// AddChain(consumer).
AddRelayer(r, "rly")
// AddProviderConsumerLink(interchaintest.ProviderConsumerLink{
// Provider: provider,
// Consumer: consumer,
// Relayer: r,
// Path: icsPath,
// })

// failed to start chains: failed to start provider chain prysm: failed to submit consumer addition proposal: exit
// use Violets latest patch>?
Expand Down

0 comments on commit 486737b

Please sign in to comment.