forked from Machu-Pichu/ETHOnline-hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
36 lines (35 loc) · 1.08 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
const path = require("path");
var HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
port: 7545,
},
kovan: {
provider: new HDWalletProvider(
"abuse culture whale flight narrow panther garage sail crime snack custom you",
"https://kovan.infura.io/v3/50c1b6482c9f47b08dcab7b1500f5e24"
),
network_id: 42,
// networkCheckTimeout: 10
gas: 4500000,
gasPrice: 10000000000,
},
},
compilers: {
solc: {
version: "^0.6.6", // A version or constraint - Ex. "^0.5.0"
// Can also be set to "native" to use a native solc
// settings: {
// optimizer: {
// enabled: <boolean>,
// runs: <number> // Optimize for how many times you intend to run the code
// },
// evmVersion: <string> // Default: "petersburg"
// }
},
},
};