-
Notifications
You must be signed in to change notification settings - Fork 9
/
truffle-config.js
40 lines (38 loc) · 1.17 KB
/
truffle-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'use strict'
const HDWalletProvider = require('@truffle/hdwallet-provider')
const NonceTrackerSubprovider = require('web3-provider-engine/subproviders/nonce-tracker')
const config = require('config')
const TestRPC = require('ganache-cli')
module.exports = {
networks: {
development: {
provider: TestRPC.provider(),
network_id: '*'
},
local: {
host: 'localhost',
port: 8545,
gas: 4000000,
network_id: '*'
},
XDC: {
provider: function () {
let w = new HDWalletProvider(config.get('truffle.mnemonic'), config.get('blockchain.rpc'))
let nonceTracker = new NonceTrackerSubprovider()
w.engine._providers.unshift(nonceTracker)
nonceTracker.setEngine(w.engine)
return w
},
network_id: config.get('blockchain.networkId'),
gas: 4000000,
gasPrice: 10000000000000
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8555,
gas: 0xfffffffffff,
gasPrice: 0x01
}
}
}