aboutsummaryrefslogtreecommitdiffstats
path: root/truffle.js
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-10 16:23:04 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2018-11-10 16:34:14 +0800
commitb3f8c45724e06ffa1f5330a1998f00765e5b4986 (patch)
treedc4da7a817ed098e0abee2dadff24d85adf83e31 /truffle.js
parent505f557f6ef5267798721116d34c5fe9b4bdc3f1 (diff)
downloaddexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar.gz
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar.bz2
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar.lz
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar.xz
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.tar.zst
dexon-lottery-b3f8c45724e06ffa1f5330a1998f00765e5b4986.zip
Add DEXON testnet for migration
Diffstat (limited to 'truffle.js')
-rw-r--r--truffle.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/truffle.js b/truffle.js
index 0855df1..6fb4b09 100644
--- a/truffle.js
+++ b/truffle.js
@@ -12,7 +12,18 @@
* },
*/
+var HDWalletProvider = require("truffle-hdwallet-provider");
+var secret = require('./secret');
+var mnemonic = secret.mnemonic;
+
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
+ networks: {
+ testnet: {
+ provider: new HDWalletProvider(mnemonic,
+ "http://testnet.dexon.org:8545"),
+ network_id: "*"
+ }
+ }
};