-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle-config.js
63 lines (61 loc) · 1.54 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
54
55
56
57
58
59
60
61
62
63
const PrivateKeyProvider = require("truffle-privatekey-provider");
const privateKey = '';
module.exports = {
compilers: {
solc: {
version: "0.7.4",
settings: {
optimizer: {
enabled: true,
runs: 300
}
},
}
},
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: 5777
},
matic: {
provider: () => new PrivateKeyProvider(
privateKey,
'https://testnetv3.matic.network'
),
network_id: 15001,
gasPrice: '0x0',
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
mumbai: {
provider: () => new PrivateKeyProvider(
privateKey,
'https://rpc-mumbai.matic.today'
),
network_id: 80001,
confirmations: 1,
timeoutBlocks: 300,
skipDryRun: true
},
maticmain: {
provider: () => new PrivateKeyProvider(
privateKey,
'https://rpc-mainnet.matic.network'
),
network_id: 137,
confirmations: 1,
timeoutBlocks: 300,
skipDryRun: true
}
},
mocha: {
useColors: true,
reporter: "eth-gas-reporter",
reporterOptions: {
currency: "USD",
gasPrice: 10
}
}
};