-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
55 lines (52 loc) · 1.28 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
require("dotenv").config();
module.exports = {
contracts_build_directory: "./client/src/contracts",
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
},
matic_testnet: {
provider: function () {
return new HDWalletProvider(
process.env.REACT_APP_MNEMONIC,
process.env.REACT_APP_INFURA_MATIC_TESTNET
);
},
network_id: 80001,
gas: 6000000,
gasPrice: 10000000000,
},
rinkeby: {
provider: function () {
return new HDWalletProvider(
process.env.REACT_APP_MNEMONIC,
process.env.REACT_APP_INFURA_RINKEBY
);
},
network_id: 4,
gas: 6000000,
gasPrice: 10000000000,
},
},
// Set default mocha options here, use special reporters, etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "^0.8.4",
// docker: true,
// settings: {
// optimizer: {
// enabled: false,
// runs: 200
// },
// evmVersion: "byzantium"
// }
},
}
};