-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
52 lines (50 loc) · 1.05 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-privkey')
const PRIVATE_KEYS = JSON.parse(process.env.PRIVATE_KEYS)
module.exports = {
compilers: {
solc: {
version: '0.4.26',
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
},
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 8000000,
},
matic: {
provider: function () {
return new HDWalletProvider(
[PRIVATE_KEYS['matic']],
'https://rpc-mainnet.matic.network'
)
},
network_id: 137,
gas: 10000000,
gasPrice: 1000000000,
},
mumbai: {
provider: function () {
return new HDWalletProvider(
[PRIVATE_KEYS['mumbai']],
'https://rpc-mumbai.matic.today'
)
},
network_id: '80001',
gas: 10000000,
gasPrice: 1000000000,
},
},
plugins: [
// "truffle-contract-size",
'truffle-plugin-verify',
],
}