-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle-config.js
53 lines (48 loc) · 1.38 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
require("dotenv").config()
const HDWalletProvider = require("@truffle/hdwallet-provider")
privatekeys = [process.env.DEPLOYMENT_KEY, process.env.OWNER_KEY]
module.exports = {
networks: {
test: {
host: "localhost",
port: 8545,
gas: 6000000,
network_id: "*"
},
dev: {
host: "127.0.0.1",
port: 8545,
gas: 6000000,
network_id: "*" // Match any network id
},
volta: {
network_id: "73799",
gas: 6000000,
gasPrice: "2",
provider: privatekeys[0] && privatekeys[1] ? new HDWalletProvider(privatekeys, "https://volta-rpc.energyweb.org", 0, 2): undefined
},
ewc: {
network_id: "246",
gas: 6000000,
gasPrice: "1000",
provider: privatekeys[0] && privatekeys[1] ? new HDWalletProvider(privatekeys, "https://rpc.energyweb.org", 0, 2): undefined
}
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "0.6.7", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: false,
runs: 200
}
}
}
}
}