-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle-config.js
53 lines (51 loc) · 1.06 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
require('dotenv/config')
const HDWalletProvider = require('truffle-hdwallet-provider-privkey')
const PRIVATE_KEYS = JSON.parse(process.env.PRIVATE_KEYS)
module.exports = {
compilers: {
solc: {
version: '0.4.26',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 8000000,
},
xdai: {
provider: function () {
return new HDWalletProvider(
[PRIVATE_KEYS['xdai']],
'https://rpc.xdaichain.com/'
)
},
network_id: 100,
gas: 10000000,
gasPrice: 10000000000,
},
sokol: {
provider: function () {
return new HDWalletProvider(
[PRIVATE_KEYS['sokol-fork']],
'https://sokol.poa.network'
)
},
network_id: '77',
gas: 10000000,
gasPrice: 1000000000,
skipDryRun: true,
},
},
plugins: [
// "truffle-contract-size",
'truffle-plugin-verify',
],
}