summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-06-27 14:58:38 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-27 14:58:38 +0800
commitfae78fb230b1b7e508aeaa07dde6d6b53ccbdab3 (patch)
tree58529fcd03404c49ebe50e2dc44e1aacf4312d16
parent82dfd61fb1f6b21d1863176cb6447f0806984126 (diff)
downloadtangerine-governance-abi-master.tar.gz
tangerine-governance-abi-master.tar.zst
tangerine-governance-abi-master.zip
config: add tangerine network configHEADmaster
-rw-r--r--truffle.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/truffle.js b/truffle.js
index 40122fb..55ee83a 100644
--- a/truffle.js
+++ b/truffle.js
@@ -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,