-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
59 lines (54 loc) · 1.34 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
const HDWalletProvider = require("truffle-hdwallet-provider");
const infuraKey = "fd41d288d6cc45b1933a89b788a0fa63";
const mnemonic =
"sight valid real punch history tumble board oval bitter cover code protect";
module.exports = {
// Set contract directories
contracts_build_directory: "src/abis",
test_directory: "test/contracts",
// Configure networks
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
ropsten: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://ropsten.infura.io/v3/${infuraKey}`
),
network_id: 3,
skipDryRun: true,
gas: 6721975
},
kovan: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://kovan.infura.io/v3/${infuraKey}`
),
network_id: 42,
skipDryRun: true
}
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure compilers
compilers: {
solc: {
version: "0.4.26", // Fetch exact version from solc-bin (default: truffle's version)
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "byzantium"
}
}
}
};