Deploy read only chains

This commit is contained in:
Bruce Riley 2022-07-20 18:38:16 +00:00 committed by Evan Gray
parent f50586ad86
commit d40f969d47
10 changed files with 121 additions and 18 deletions

View File

@ -112,16 +112,16 @@ const MAINNET = {
key: get_env_var("TERRA_MNEMONIC"),
},
arbitrum: {
rpc: undefined,
key: undefined,
rpc: "https://arb1.arbitrum.io/rpc",
key: get_env_var("ETH_KEY"),
},
optimism: {
rpc: undefined,
key: undefined,
rpc: "https://mainnet.optimism.io",
key: get_env_var("ETH_KEY"),
},
gnosis: {
rpc: undefined,
key: undefined,
rpc: "https://rpc.gnosischain.com/",
key: get_env_var("ETH_KEY"),
},
ropsten: {
rpc: `https://rpc.ankr.com/eth_ropsten`,
@ -225,16 +225,16 @@ const TESTNET = {
key: get_env_var("TERRA_MNEMONIC"),
},
arbitrum: {
rpc: undefined,
key: undefined,
rpc: "https://rinkeby.arbitrum.io/rpc",
key: get_env_var("ETH_KEY_TESTNET"),
},
optimism: {
rpc: undefined,
key: undefined,
rpc: "https://goerli.optimism.io",
key: get_env_var("ETH_KEY_TESTNET"),
},
gnosis: {
rpc: undefined,
key: undefined,
rpc: "https://sokol.poa.network/",
key: get_env_var("ETH_KEY_TESTNET"),
},
ropsten: {
rpc: `https://rpc.ankr.com/eth_ropsten`,

View File

@ -0,0 +1,8 @@
# Arbitrum mainnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
INIT_CHAIN_ID=23
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -0,0 +1,8 @@
# Arbitrum testnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=23
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -0,0 +1,8 @@
# Gnosis mainnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
INIT_CHAIN_ID=25
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -0,0 +1,8 @@
# Gnosis testnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=25
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -0,0 +1,8 @@
# Optimism mainnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x58CC3AE5C097b213cE3c81979e1B9f9570746AA5"]
INIT_CHAIN_ID=24
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -0,0 +1,8 @@
# Optimism testnet read only env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=24
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004

View File

@ -23,6 +23,7 @@
"migrate": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --to 4",
"flatten": "mkdir -p node_modules/@poanet/solidity-flattener/contracts && cp -r contracts/* node_modules/@poanet/solidity-flattener/contracts/ && poa-solidity-flattener",
"deploy-bridge-implementation-only": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --f 6 --to 6",
"deploy-read-only": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --f 1 --to 2",
"deploy_weth9": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --f 9",
"verify": "patch -u -f node_modules/truffle-plugin-verify/constants.js -i truffle-verify-constants.patch; truffle run verify $npm_config_module@$npm_config_contract_address --network $npm_config_network",
"abigen": "truffle run abigen"

View File

@ -281,6 +281,60 @@ module.exports = {
gas: 3000000000,
gasPrice: 443065000000,
},
arbitrum: { // Note that arbitrum did not work with our standard version of truffle (5.3.14), but it did work with the latest (5.5.22)
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://arb1.arbitrum.io/rpc"
);
},
network_id: 42161,
},
arbitrum_testnet: { // Note that arbitrum did not work with our standard version of truffle (5.3.14), but it did work with the latest (5.5.22)
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://rinkeby.arbitrum.io/rpc"
);
},
network_id: '*',
},
optimism: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://mainnet.optimism.io"
);
},
network_id: 10,
},
optimism_goerli: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://goerli.optimism.io"
);
},
network_id: 420,
},
gnosis: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://rpc.gnosischain.com/"
);
},
network_id: 100,
},
gnosis_testnet: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://sokol.poa.network/"
);
},
network_id: 77,
},
},
compilers: {

View File

@ -184,17 +184,17 @@ const MAINNET = {
nft_bridge: undefined,
},
arbitrum: {
core: undefined,
core: "0xa5f208e072434bC67592E4C49C1B991BA79BCA46",
token_bridge: undefined,
nft_bridge: undefined,
},
optimism: {
core: undefined,
core: "0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722",
token_bridge: undefined,
nft_bridge: undefined,
},
gnosis: {
core: undefined,
core: "0xa321448d90d4e5b0A732867c18eA198e75CAC48E",
token_bridge: undefined,
nft_bridge: undefined,
},
@ -323,17 +323,17 @@ const TESTNET = {
nft_bridge: undefined,
},
arbitrum: {
core: undefined,
core: "0xE4eacc10990ba3308DdCC72d985f2a27D20c7d03",
token_bridge: undefined,
nft_bridge: undefined,
},
optimism: {
core: undefined,
core: "0xE4eacc10990ba3308DdCC72d985f2a27D20c7d03",
token_bridge: undefined,
nft_bridge: undefined,
},
gnosis: {
core: undefined,
core: "0xE4eacc10990ba3308DdCC72d985f2a27D20c7d03",
token_bridge: undefined,
nft_bridge: undefined,
},