diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-27 14:58:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-27 14:58:38 +0800 |
commit | fae78fb230b1b7e508aeaa07dde6d6b53ccbdab3 (patch) | |
tree | 58529fcd03404c49ebe50e2dc44e1aacf4312d16 | |
parent | 82dfd61fb1f6b21d1863176cb6447f0806984126 (diff) | |
download | tangerine-governance-abi-master.tar.gz tangerine-governance-abi-master.tar.zst tangerine-governance-abi-master.zip |
-rw-r--r-- | truffle.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,5 @@ +const HDWalletProvider = require("truffle-hdwallet-provider"); + /* * NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a * function when declaring them. Failure to do so will cause commands to hang. ex: @@ -19,6 +21,20 @@ module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> // to customize your Truffle configuration! networks: { + "tangerine-mainnet": { + network_id: 373, + gasPrice: 24e9, + provider: function() { + return new HDWalletProvider(mnemonic, "https://mainnet-rpc.tangerine-network.io"); + }, + }, + "tangerine-testnet": { + network_id: 374, + gasPrice: 24e9, + provider: function() { + return new HDWalletProvider(mnemonic, "https://testnet-rpc.tangerine-network.io"); + }, + }, mainnet: { network_id: 1, gas: 4000000, |