-
Notifications
You must be signed in to change notification settings - Fork 114
/
chains.go
74 lines (68 loc) · 2 KB
/
chains.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
package types
import (
"github.com/strangelove-ventures/interchaintest/v8/ibc"
"github.com/strangelove-ventures/interchaintest/v8/testutil"
)
func ChainCosmosHub(chainID string) *Chain {
chain := NewChainBuilder("gaia", chainID, "gaiad", "uatom", "cosmos").SetDebugging(true)
chain.SetBech32Prefix("cosmos")
chain.SetBlockTime("500ms")
chain.SetDockerImage(ibc.DockerImage{
Version: "v16.0.0",
})
chain.SetDefaultSDKv47Genesis(5)
return chain
}
func ChainEthereum() *Chain {
eth := NewChainBuilder("ethereum", "31337", "anvil", "wei", "0x").SetDebugging(true)
eth.SetChainType("ethereum").
SetCoinType(60).
SetBech32Prefix("0x").
SetGasPrices("0").
SetTrustingPeriod("0").
SetGasAdjustment(0).
SetDockerImage(ibc.DockerImage{
Repository: "ghcr.io/foundry-rs/foundry",
Version: "latest",
}).
SetHostPortOverride(map[string]string{
"8545": "8545",
}).
SetGenesis(Genesis{}).
SetConfigFileOverrides([]ConfigFileOverrides{
{
Paths: testutil.Toml{
"--load-state": "../../chains/state/avs-and-eigenlayer-deployed-anvil-state.json",
},
},
})
return eth
}
func ChainJuno(chainID string) *Chain {
chain := NewChainBuilder("juno", chainID, "junod", "ujuno", "juno").SetDebugging(true)
chain.SetBlockTime("500ms")
chain.SetDockerImage(ibc.DockerImage{
Version: "v21.0.0",
})
chain.SetDefaultSDKv47Genesis(5)
chain.SetStartupCommands("%BIN% keys add example-key-after --keyring-backend test --home %HOME%")
return chain
}
func ChainStargaze() *Chain {
chain := NewChainBuilder("stargaze", "localstars-1", "starsd", "ustars", "stars").SetDebugging(true)
chain.SetBlockTime("500ms")
chain.SetDockerImage(ibc.DockerImage{
Version: "v13.0.0",
})
chain.SetDefaultSDKv47Genesis(5)
return chain
}
func ChainOsmosis() *Chain {
chain := NewChainBuilder("osmosis", "localosmo-1", "osmosisd", "uosmo", "osmo").SetDebugging(true)
chain.SetBlockTime("500ms")
chain.SetDockerImage(ibc.DockerImage{
Version: "v25.0.0",
})
chain.SetDefaultSDKv47Genesis(5)
return chain
}