Skip to content

Commit 557fc92

Browse files
authored
Eth: Upgrade scripts (wormhole-foundation#3921)
* Eth: Upgrade scripts * Code review rework
1 parent e2693f2 commit 557fc92

20 files changed

+222
-12
lines changed

ethereum/env/.env.acala.testnet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Acala testnet env
22
# Rename to .env to use with truffle migrations
33

4+
# Gas price generated with ./sh/acala-gas-prices.sh
5+
FORGE_ARGS="--legacy --with-gas-price 213314634730"
6+
47
# Wormhole Core Migrations
58
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
69
INIT_CHAIN_ID=0xc
File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Avalanche mainnet env
2+
3+
# Wormhole Core Migrations
4+
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
5+
INIT_CHAIN_ID=6
6+
INIT_GOV_CHAIN_ID=0x1
7+
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
8+
INIT_EVM_CHAIN_ID=43114
9+
10+
# Bridge Migrations
11+
BRIDGE_INIT_CHAIN_ID=6
12+
BRIDGE_INIT_GOV_CHAIN_ID=0x1
13+
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
14+
BRIDGE_INIT_WETH=0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7
15+
BRIDGE_INIT_FINALITY=1
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Avalanche testnet env
2+
# Rename to .env to use with forge deployment
3+
4+
# Common config for forge deployment
5+
RPC_URL=https://api.avax-test.network/ext/bc/C/rpc
6+
7+
# Wormhole Core Migrations
8+
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
9+
INIT_CHAIN_ID=6
10+
INIT_GOV_CHAIN_ID=0x1
11+
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
12+
INIT_EVM_CHAIN_ID=43113
13+
14+
# Bridge Migrations
15+
BRIDGE_INIT_CHAIN_ID=6
16+
BRIDGE_INIT_GOV_CHAIN_ID=0x1
17+
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
18+
BRIDGE_INIT_WETH=0xd00ae08403B9bbb9124bB305C09058E32C39A48c
19+
BRIDGE_INIT_FINALITY=1
File renamed without changes.

ethereum/env/.env.bsc.mainnet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BSC mainnet env
2+
3+
# Wormhole Core Migrations
4+
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
5+
INIT_CHAIN_ID=4
6+
INIT_GOV_CHAIN_ID=0x1
7+
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
8+
INIT_EVM_CHAIN_ID=56
9+
10+
# Bridge Migrations
11+
BRIDGE_INIT_CHAIN_ID=4
12+
BRIDGE_INIT_GOV_CHAIN_ID=0x1
13+
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
14+
BRIDGE_INIT_WETH=0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
15+
BRIDGE_INIT_FINALITY=1

ethereum/env/.env.bsc.testnet

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# BSC testnet env
2+
# Rename to .env to use with forge deployment
3+
4+
# Common config for forge deployment
5+
RPC_URL=https://data-seed-prebsc-1-s1.binance.org:8545/
6+
7+
# Wormhole Core Migrations
8+
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
9+
INIT_CHAIN_ID=4
10+
INIT_GOV_CHAIN_ID=0x1
11+
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
12+
INIT_EVM_CHAIN_ID=97
13+
14+
# Bridge Migrations
15+
BRIDGE_INIT_CHAIN_ID=4
16+
BRIDGE_INIT_GOV_CHAIN_ID=0x1
17+
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
18+
BRIDGE_INIT_WETH=0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd
19+
BRIDGE_INIT_FINALITY=1

ethereum/env/.env.ethereum.mainnet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ethereum mainnet env
2+
3+
# Wormhole Core Migrations
4+
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
5+
INIT_CHAIN_ID=2
6+
INIT_GOV_CHAIN_ID=0x1
7+
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
8+
INIT_EVM_CHAIN_ID=1
9+
10+
# Bridge Migrations
11+
BRIDGE_INIT_CHAIN_ID=2
12+
BRIDGE_INIT_GOV_CHAIN_ID=0x1
13+
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
14+
BRIDGE_INIT_WETH=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
15+
BRIDGE_INIT_FINALITY=1

ethereum/env/.env.fantom.testnet

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# Fantom testnet env
2-
# Rename to .env to use with truffle migrations
1+
# Fantom testnet env. To use for forge deployment, do:
2+
# ethereum$ ln -s env/.env.fantom.testnet .env
3+
4+
# Common config for forge deployment
5+
RPC_URL=https://rpc.testnet.fantom.network/
36

47
# Wormhole Core Migrations
58
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]

ethereum/env/.env.karura.testnet

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# Karura testnet env
2-
# Rename to .env to use with truffle migrations
1+
# Karura testnet env. To use for forge deployment, do:
2+
# ethereum$ ln -s env/.env.karura.testnet .env
33

4+
# Gas price generated with ./sh/karura-gas-prices.sh
5+
RPC_URL=https://eth-rpc-karura.aca-api.network/
6+
FORGE_ARGS="--legacy --with-gas-price 214844572650"
7+
48
# Wormhole Core Migrations
59
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
610
INIT_CHAIN_ID=0xb

0 commit comments

Comments
 (0)