ethereum: Add fantom testnet & aurora testnet to truffle-config

This commit is contained in:
Csongor Kiss 2022-01-31 20:48:37 +00:00 committed by Evan Gray
parent 91af50ee5d
commit 3484921b70
5 changed files with 52 additions and 1 deletions

View File

@ -0,0 +1,14 @@
# Fantom testnet env
# Rename to .env to use with truffle migrations
# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=0xa
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
# Bridge Migrations
BRIDGE_INIT_CHAIN_ID=0xa
BRIDGE_INIT_GOV_CHAIN_ID=0x1
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
BRIDGE_INIT_WETH=0xf1277d1Ed8AD466beddF92ef448A132661956621

View File

@ -0,0 +1,5 @@
var WETH9 = artifacts.require("MockWETH9");
module.exports = function(deployer) {
deployer.deploy(WETH9);
};

View File

@ -20,8 +20,9 @@
"scripts": {
"build": "truffle compile",
"test": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle test",
"migrate": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate",
"migrate": "mkdir -p build/contracts && cp node_modules/@openzeppelin/contracts/build/contracts/* build/contracts/ && truffle migrate --to 5",
"flatten": "mkdir -p node_modules/@poanet/solidity-flattener/contracts && cp -r contracts/* node_modules/@poanet/solidity-flattener/contracts/ && poa-solidity-flattener",
"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"
},
"author": "",

View File

@ -66,6 +66,37 @@ module.exports = {
gas: 4465030,
gasPrice: 30000000000,
},
aurora: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://mainnet.aurora.dev"
);
},
network_id: 1313161554,
},
aurora_testnet: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://testnet.aurora.dev"
)
},
network_id: 0x4e454153,
gas: 70000000,
gasPrice: 8000000000,
},
fantom_testnet: {
provider: () => {
return new HDWalletProvider(
process.env.MNEMONIC,
"https://rpc.testnet.fantom.network/"
)
},
network_id: 0xfa2,
gas: 4465030,
gasPrice: 300000000000,
},
},
compilers: {