Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ethereum/env/.env.hydration.mainnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Hydration mainnet env
CHAIN_NAME=Hydration

RPC_URL=https://rpc.coke.hydration.cloud
FORGE_ARGS="--gas-estimate-multiplier 200"

# Wormhole Core Migrations
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
INIT_CHAIN_ID=73
INIT_EVM_CHAIN_ID=222222

WORMHOLE_ADDRESS=0x3792a6d63c31941B2805181771795D9176fA82A1
1 change: 1 addition & 0 deletions node/cmd/guardiand/adminnodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ func runListNodes(cmd *cobra.Command, args []string) {
{"Nexus", vaa.ChainIDNexus},
{"Tron", vaa.ChainIDTron},
{"Arc", vaa.ChainIDArc},
{"Hydration", vaa.ChainIDHydration},
// The IBC chains (4000 range) are not included here.
{"Sepolia", vaa.ChainIDSepolia},
{"ArbitrumSepolia", vaa.ChainIDArbitrumSepolia},
Expand Down
18 changes: 18 additions & 0 deletions node/cmd/guardiand/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ var (
arcRPC *string
arcContract *string

hydrationRPC *string
hydrationContract *string

sepoliaRPC *string
sepoliaContract *string

Expand Down Expand Up @@ -509,6 +512,9 @@ func init() {
arcRPC = node.RegisterFlagWithValidationOrFail(NodeCmd, "arcRPC", "Arc RPC URL", "http://eth-devnet:8545", []string{"http", "https", "ws", "wss"})
arcContract = NodeCmd.Flags().String("arcContract", "", "Arc contract address")

hydrationRPC = node.RegisterFlagWithValidationOrFail(NodeCmd, "hydrationRPC", "Hydration RPC URL", "http://eth-devnet:8545", []string{"http", "https", "ws", "wss"})
hydrationContract = NodeCmd.Flags().String("hydrationContract", "", "Hydration contract address")

arbitrumSepoliaRPC = node.RegisterFlagWithValidationOrFail(NodeCmd, "arbitrumSepoliaRPC", "Arbitrum on Sepolia RPC URL", "ws://eth-devnet:8545", []string{"ws", "wss"})
arbitrumSepoliaContract = NodeCmd.Flags().String("arbitrumSepoliaContract", "", "Arbitrum on Sepolia contract address")

Expand Down Expand Up @@ -933,6 +939,7 @@ func runNode(cmd *cobra.Command, args []string) {
*tempoContract = checkEvmArgs(logger, *tempoRPC, *tempoContract, vaa.ChainIDTempo)
*nexusContract = checkEvmArgs(logger, *nexusRPC, *nexusContract, vaa.ChainIDNexus)
*arcContract = checkEvmArgs(logger, *arcRPC, *arcContract, vaa.ChainIDArc)
*hydrationContract = checkEvmArgs(logger, *hydrationRPC, *hydrationContract, vaa.ChainIDHydration)

if !argsConsistent([]string{*solanaContract, *solanaRPC}) {
logger.Fatal("Both --solanaContract and --solanaRPC must be set or both unset")
Expand Down Expand Up @@ -1685,6 +1692,17 @@ func runNode(cmd *cobra.Command, args []string) {
watcherConfigs = append(watcherConfigs, wc)
}

if shouldStart(hydrationRPC) {
wc := &evm.WatcherConfig{
NetworkID: "hydration",
ChainID: vaa.ChainIDHydration,
Rpc: *hydrationRPC,
Contract: *hydrationContract,
CcqBackfillCache: *ccqBackfillCache,
}
watcherConfigs = append(watcherConfigs, wc)
}

if shouldStart(terra2WS) {
if env != common.UnsafeDevNet {
logger.Fatal("Terra2 classic is only allowed in unsafe dev mode")
Expand Down
279 changes: 142 additions & 137 deletions node/pkg/proto/publicrpc/v1/publicrpc.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions node/pkg/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ var perChainConfig = map[vaa.ChainID]PerChainConfig{
vaa.ChainIDNexus: {NumWorkers: 1, TimestampCacheSupported: true},
vaa.ChainIDTron: {NumWorkers: 1, TimestampCacheSupported: true},
vaa.ChainIDArc: {NumWorkers: 1, TimestampCacheSupported: true},
vaa.ChainIDHydration: {NumWorkers: 1, TimestampCacheSupported: true},
}

// GetPerChainConfig returns the config for the specified chain. If the chain is not configured it returns an empty struct,
Expand Down
1 change: 1 addition & 0 deletions node/pkg/watchers/evm/chain_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ var (
vaa.ChainIDNexus: {Finalized: true, Safe: true, EvmChainID: 3946, PublicRPC: "https://mainnet.rpc.nexus.xyz", ContractAddr: "0xC8aD24fC6063c41cB5C12a8e3851AafC3b3CF027"},
vaa.ChainIDTempo: {Finalized: true, Safe: true, EvmChainID: 4217, PublicRPC: "https://rpc.tempo.xyz", ContractAddr: "0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6"},
vaa.ChainIDArc: {Finalized: true, Safe: true, EvmChainID: 5042, PublicRPC: "https://rpc.arc.network", ContractAddr: "0xC8aD24fC6063c41cB5C12a8e3851AafC3b3CF027"},
vaa.ChainIDHydration: {Finalized: true, Safe: true, EvmChainID: 222222, PublicRPC: "https://rpc.coke.hydration.cloud", ContractAddr: "0x3792a6d63c31941B2805181771795D9176fA82A1"},
}

// testnetChainConfig specifies the configuration for all chains enabled in Testnet.
Expand Down
1 change: 1 addition & 0 deletions proto/publicrpc/v1/publicrpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ enum ChainID {
CHAIN_ID_TRON = 70;
CHAIN_ID_ARC = 71;
CHAIN_ID_ROBINHOOD_CHAIN = 72;
CHAIN_ID_HYDRATION = 73;
CHAIN_ID_WORMCHAIN = 3104;
CHAIN_ID_COSMOSHUB = 4000;
CHAIN_ID_EVMOS = 4001;
Expand Down
5 changes: 5 additions & 0 deletions sdk/vaa/chainid_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions sdk/vaa/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ const (
ChainIDArc ChainID = 71
// ChainIDRobinhoodChain is the ChainID of Robinhood Chain
ChainIDRobinhoodChain ChainID = 72
// ChainIDHydration is the ChainID of Hydration
ChainIDHydration ChainID = 73

// ChainIDWormchain is the ChainID of Wormchain and is in its own range.
ChainIDWormchain ChainID = 3104
Expand Down
Loading