-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
32 lines (30 loc) · 994 Bytes
/
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
const HDWalletProvider = require("truffle-hdwallet-provider");
const infuraKey = "a99d52a2ca9540f395c2bc10a738c5ee";
const mnemonic =
"detect apple naive snow knee copper company daring scorpion flight short club";
module.exports = {
contracts_build_directory: "src/abis",
networks: {
ropsten: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://ropsten.infura.io/v3/${infuraKey}`
),
network_id: 3, // Ropsten's id
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
}
},
compilers: {
solc: {
version: "0.5.8", // 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
},
}
}
}
};