-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
29 lines (29 loc) · 964 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
maticTestnet: {
provider: () => new HDWalletProvider(mnemonic, `https://testnet2.matic.network`),
network_id: "8995",
gas: 8000000,
gasPrice: 0,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
maticBetaMainnet: {
provider: () => new HDWalletProvider(mnemonic, `https://beta.matic.network`),
network_id: "15001",
gas: 8000000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
}
}
}