-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtruffle-config.js
More file actions
62 lines (57 loc) · 1.62 KB
/
truffle-config.js
File metadata and controls
62 lines (57 loc) · 1.62 KB
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const keys = require("./keys");
const providers = require('./providers');
const info = require('./info.json');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
network_id: "*",
port: 7245,
gas: 4000000,
gasPrice: 10000000000, // 10 gwei
},
kovan: {
provider: function () {
return new HDWalletProvider({
privateKeys: keys.privateKeys,
providerOrUrl: providers.kovan,
numberOfAddresses: keys.privateKeys.length,
pollingInterval: 60000
})
},
network_id: 42,
gas: 10000000,
gasPrice : 10000000000, //10 GWei
networkCheckTimeout: 10000000
},
mainnet: {
provider: function () {
return new HDWalletProvider({
privateKeys: keys.privateKeys,
providerOrUrl: providers.mainnet,
numberOfAddresses: keys.privateKeys.length,
pollingInterval: 60000
})
},
network_id: 1,
gas: 1000000,
gasPrice : 70000000000, //70 GWei
networkCheckTimeout: 10000000
}
},
mocha: {
enableTimeouts: false
},
compilers: {
solc: {
version: "0.5.16"
}
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: info.api_etherscan
}
};