-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtruffle.js
69 lines (67 loc) · 2.19 KB
/
truffle.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const HDWalletProvider = require("@truffle/hdwallet-provider");
const config = require('./environments');
module.exports = {
compilers: {
solc: {
version: "0.5.14",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
from: "0xd9D45b75ac74962d74dc5F24Dd02E1e1E828A7d0",
gas: 8000000
},
rinkeby: {
provider: () => new HDWalletProvider(
config[config.ENV.TEST.NAME].mnemonic,
config[config.ENV.TEST.NAME].url,
0, 10, true, // 0 = start with first address, 10 = derive 10 addresses, true = sharedNonce
"m/44'/60'/0'/0/",
),
network_id: "4",
skipDryRun: true,
gasPrice: 12000000000, // 12 GWei
gas: 8000000
},
ropsten: {
provider: () => new HDWalletProvider(
config[config.ENV.TEST2.NAME].mnemonic,
config[config.ENV.TEST2.NAME].url,
0, 10, true, // 0 = start with first address, 10 = derive 10 addresses, true = sharedNonce
"m/44'/60'/0'/0/",
),
network_id: "3",
skipDryRun: true,
gasPrice: 12000000000, // 12 GWei
gas: 8000000
},
mainnet: {
provider: () => new HDWalletProvider(
config[config.ENV.PROD.NAME].mnemonic,
config[config.ENV.PROD.NAME].url,
0, 10, true, // 0 = start with first address, 10 = derive 10 addresses, true = sharedNonce
"m/44'/60'/0'/0/" // BIP44 derivation path that is used for main net
),
network_id: "1",
skipDryRun: true,
gasPrice: 12000000000, // 12 GWei
gas: 9900000
}
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions : {
excludeContracts: ['Migrations'],
currency: "USD"
}
},
};