-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
73 lines (72 loc) · 1.51 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
const HDWalletProvider = require("@truffle/hdwallet-provider");
const { env } = require("process");
require("dotenv").config();
module.exports = {
networks: {
ganache: {
host: "localhost",
port: 7545,
gas: 6000000,
network_id: "*",
},
ropsten: {
provider: () =>
new HDWalletProvider(
env.MNEMONIC,
`https://ropsten.infura.io/v3/${env.PROJECT_ID}`
),
network_id: 3,
gas: 6500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
rinkeby: {
provider: () =>
new HDWalletProvider(
env.MNEMONIC_2,
`wss://rinkeby.infura.io/ws/v3/${env.PROJECT_ID}`
),
network_id: 4,
gas: 6500000,
confirmations: 2,
timeoutBlocks: 200,
networkCheckTimeoutnetworkCheckTimeout: 10000,
skipDryRun: true,
from: `${env.MY_ADDRESS}`,
},
goerli: {
provider: () =>
new HDWalletProvider(
env.MNEMONIC_2,
`wss://goerli.infura.io/ws/v3/${env.PROJECT_ID}`
),
network_id: 5,
gas: 6500000,
confirmations: 2,
timeoutBlocks: 200,
networkCheckTimeoutnetworkCheckTimeout: 10000,
skipDryRun: true,
from: `${env.MY_ADDRESS}`,
},
matic: {
provider: () =>
new HDWalletProvider(env.MNEMONIC, `https://rpc-mumbai.maticvigil.com`),
network_id: 80001,
gas: 6500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
from: `${env.MY_ADDRESS}`,
},
},
compilers: {
solc: {
version: "0.8.17",
},
},
plugins: ["truffle-plugin-verify"],
api_keys: {
etherscan: `${env.MY_API_KEY}`,
},
};