-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
44 lines (42 loc) · 888 Bytes
/
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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const {
PRIVATE_KEY,
INFURA_ID,
} = process.env;
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
rinkeby: {
provider: () => new HDWalletProvider(PRIVATE_KEY, `https://rinkeby.infura.io/v3/${INFURA_ID}`),
network_id: 4,
gas: 5500000,
timeoutBlocks: 200,
},
mumbai: {
provider: () => new HDWalletProvider(PRIVATE_KEY, 'https://rpc-mumbai.matic.today,'),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
},
mocha: {
timeout: 100000,
},
compilers: {
solc: {
version: '0.7.1',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};