-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
53 lines (50 loc) · 1.1 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
const path = require("path");
require("dotenv").config();
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
port: 8545,
},
rinkeby: {
provider: function () {
return new HDWalletProvider(
process.env.MNEMONIC,
process.env.RINKEBY_WSS
);
},
network_id: 4,
gas: 5000000,
gasPrice: 45000000000,
},
mumbai: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: process.env.MNEMONIC,
},
providerOrUrl: process.env.VIGIL_WSS,
}),
network_id: 80001,
confirmations: 1,
timeoutBlocks: 200,
skipDryRun: true,
chainId: 80001,
networkCheckTimeoutnetworkCheckTimeout: 10000,
gas: 5000000,
gasPrice: 45000000000,
},
},
compilers: {
solc: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};