Skip to content

Commit

Permalink
Deploy Holesky Testnet (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored Jan 8, 2024
1 parent 838566e commit b7631bf
Show file tree
Hide file tree
Showing 15 changed files with 190 additions and 93 deletions.
2 changes: 2 additions & 0 deletions devnet/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ spec:
- ws://eth-devnet:8545
- --sepoliaRPC
- ws://eth-devnet:8545
- --holeskyRPC
- ws://eth-devnet:8545
- --arbitrumSepoliaRPC
- ws://eth-devnet:8545
- --baseSepoliaRPC
Expand Down
16 changes: 16 additions & 0 deletions ethereum/.env.holesky.testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Holesky testnet env
# Rename to .env to use with truffle migrations

# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=10006
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
INIT_EVM_CHAIN_ID=17000

# Bridge Migrations
BRIDGE_INIT_CHAIN_ID=10006
BRIDGE_INIT_GOV_CHAIN_ID=0x1
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
BRIDGE_INIT_WETH=0x94373a4919B3240D86eA41593D5eBa789FEF3848
BRIDGE_INIT_FINALITY=1
9 changes: 9 additions & 0 deletions ethereum/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,15 @@ module.exports = {
},
network_id: "11155111",
},
holesky_testnet: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://rpc.ankr.com/eth_holesky"
);
},
network_id: "17000",
},
},

compilers: {
Expand Down
1 change: 1 addition & 0 deletions node/cmd/guardiand/adminnodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func runListNodes(cmd *cobra.Command, args []string) {
{"Mantle", vaa.ChainIDMantle},
{"Wormchain", vaa.ChainIDWormchain},
{"Sepolia", vaa.ChainIDSepolia},
{"Holesky", vaa.ChainIDHolesky},
{"ArbitrumSepolia", vaa.ChainIDArbitrumSepolia},
{"BaseSepolia", vaa.ChainIDBaseSepolia},
{"OptimismSepolia", vaa.ChainIDOptimismSepolia},
Expand Down
25 changes: 25 additions & 0 deletions node/cmd/guardiand/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ var (
sepoliaRPC *string
sepoliaContract *string

holeskyRPC *string
holeskyContract *string

arbitrumSepoliaRPC *string
arbitrumSepoliaContract *string

Expand Down Expand Up @@ -348,6 +351,9 @@ func init() {
sepoliaRPC = NodeCmd.Flags().String("sepoliaRPC", "", "Sepolia RPC URL.\nFormat: WebSocket (ws://) or WebSocket Secure (wss://). Example: 'ws://eth-devnet:8545'")
sepoliaContract = NodeCmd.Flags().String("sepoliaContract", "", "Sepolia contract address")

holeskyRPC = NodeCmd.Flags().String("holeskyRPC", "", "Holesky RPC URL.\nFormat: WebSocket (ws://) or WebSocket Secure (wss://). Example: 'ws://eth-devnet:8545'")
holeskyContract = NodeCmd.Flags().String("holeskyContract", "", "Holesky contract address")

optimismRPC = NodeCmd.Flags().String("optimismRPC", "", "Optimism RPC URL.\nFormat: WebSocket (ws://) or WebSocket Secure (wss://). Example: 'ws://eth-devnet:8545'")
optimismContract = NodeCmd.Flags().String("optimismContract", "", "Optimism contract address")

Expand Down Expand Up @@ -520,6 +526,7 @@ func runNode(cmd *cobra.Command, args []string) {
*optimismContract = unsafeDevModeEvmContractAddress(*optimismContract)
*baseContract = unsafeDevModeEvmContractAddress(*baseContract)
*sepoliaContract = unsafeDevModeEvmContractAddress(*sepoliaContract)
*holeskyContract = unsafeDevModeEvmContractAddress(*holeskyContract)
*scrollContract = unsafeDevModeEvmContractAddress(*scrollContract)
*mantleContract = unsafeDevModeEvmContractAddress(*mantleContract)
*arbitrumSepoliaContract = unsafeDevModeEvmContractAddress(*arbitrumSepoliaContract)
Expand Down Expand Up @@ -693,6 +700,9 @@ func runNode(cmd *cobra.Command, args []string) {
if (*sepoliaRPC == "") != (*sepoliaContract == "") {
logger.Fatal("Both --sepoliaRPC and --sepoliaContract must be set together or both unset")
}
if (*holeskyRPC == "") != (*holeskyContract == "") {
logger.Fatal("Both --holeskyRPC and --holeskyContract must be set together or both unset")
}
if (*arbitrumSepoliaRPC == "") != (*arbitrumSepoliaContract == "") {
logger.Fatal("Both --arbitrumSepoliaRPC and --arbitrumSepoliaContract must be set together or both unset")
}
Expand All @@ -709,6 +719,9 @@ func runNode(cmd *cobra.Command, args []string) {
if *sepoliaRPC != "" || *sepoliaContract != "" {
logger.Fatal("Please do not specify --sepoliaRPC or --sepoliaContract")
}
if *holeskyRPC != "" || *holeskyContract != "" {
logger.Fatal("Please do not specify --holeskyRPC or --holeskyContract")
}
if *arbitrumSepoliaRPC != "" || *arbitrumSepoliaContract != "" {
logger.Fatal("Please do not specify --arbitrumSepoliaRPC or --arbitrumSepoliaContract")
}
Expand Down Expand Up @@ -923,6 +936,7 @@ func runNode(cmd *cobra.Command, args []string) {
rpcMap["pythnetWS"] = *pythnetWS
if env == common.TestNet {
rpcMap["sepoliaRPC"] = *sepoliaRPC
rpcMap["holeskyRPC"] = *holeskyRPC
rpcMap["arbitrumSepoliaRPC"] = *arbitrumSepoliaRPC
rpcMap["baseSepoliaRPC"] = *baseSepoliaRPC
rpcMap["optimismSepoliaRPC"] = *optimismSepoliaRPC
Expand Down Expand Up @@ -1490,6 +1504,17 @@ func runNode(cmd *cobra.Command, args []string) {
watcherConfigs = append(watcherConfigs, wc)
}

if shouldStart(holeskyRPC) {
wc := &evm.WatcherConfig{
NetworkID: "holesky",
ChainID: vaa.ChainIDHolesky,
Rpc: *holeskyRPC,
Contract: *holeskyContract,
}

watcherConfigs = append(watcherConfigs, wc)
}

if shouldStart(arbitrumSepoliaRPC) {
wc := &evm.WatcherConfig{
NetworkID: "arbitrum_sepolia",
Expand Down
Loading

0 comments on commit b7631bf

Please sign in to comment.