generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
42 lines (39 loc) · 1.13 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
compilers: {
solc: {
version: "0.6.10", // A version or constraint - Ex. "^0.5.0"
// Can also be set to "native" to use a native solc
docker: false,
parser: "solcjs", // Leverages solc-js purely for speedy parsing
settings: {
optimizer: {
enabled: false,
runs: 200, // Optimize for how many times you intend to run the code
},
evmVersion: "istanbul", // Default: "istanbul"
},
},
},
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(process.env.MNEMONIC, "https://ropsten.infura.io/v3/bec77b2c1b174308bcaa3e622828448f")
},
network_id: 3
},
matic: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://rpc-mumbai.matic.today`),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
},
};