-
Notifications
You must be signed in to change notification settings - Fork 13
/
truffle-config.js
35 lines (34 loc) · 1.06 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
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: '*'
},
tomo: {
provider: function () {
let w = new HDWalletProvider(config.get('truffle.privateKey'), 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
}
},
compilers: {
solc: {
version: '^0.4.24',
settings: {
optimizer: {
enabled: true
}
}
}
}
}