forked from unstoppabledomains/dot-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
69 lines (68 loc) · 1.36 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
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')
module.exports = {
networks: {
development: {
host: 'localhost',
port: 7545,
network_id: '*',
},
live: {
host: 'localhost',
port: 8545,
network_id: '1',
},
ganache: {
host: 'localhost',
port: 7545,
network_id: '4447',
gas: 6721975,
},
devgeth: {
host: 'localhost',
port: 7545,
network_id: '1337',
gas: 4401670,
},
rinkeby: {
provider: () =>
new HDWalletProvider(
process.env.RINKEBY_UD_PRIVATE_KEY,
`https://rinkeby.infura.io/v3/${process.env.INFURA_TEST_KEY}`,
),
network_id: '4',
},
coverage: {
host: '127.0.0.1',
port: 7555,
network_id: '*',
gas: 0xfffffffffff,
gasPrice: 0x01,
},
},
compilers: {
solc: {
version: '0.5.12',
optimizer: {
enabled: true,
runs: 200,
},
},
},
contracts_build_directory: 'truffle-artifacts',
plugins: [
'solidity-coverage',
'truffle-plugin-verify',
],
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
excludeContracts: ['Migrations', 'Simple'],
showMethodSig: true,
showTimeSpent: true,
},
},
api_keys: {
etherscan: process.env.ETHERSCAN_API_KEY
},
}