-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
47 lines (44 loc) · 1.4 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
require("dotenv").config();
const { PROJECT_ID, MNEMONIC } = process.env;
module.exports = {
networks: {
development: {
host: "localhost",
port: 7545,
network_id: "*", // Match any network id
gas: 5000000,
},
sepolia: {
provider: () =>
new HDWalletProvider(
MNEMONIC,
`https://eth-sepolia.g.alchemy.com/v2/${PROJECT_ID}`
),
network_id: 11155111, // Goerli's id
confirmations: 2, // # of confirmations to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
},
mainnet: {
provider: () =>
new HDWalletProvider(
MNEMONIC,
`https://eth-mainnet.g.alchemy.com/v2/${PROJECT_ID_MAIN}`
),
network_id: 11155111, // Goerli's id
confirmations: 2, // # of confirmations to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
},
},
compilers: {
solc: {
version: "0.8.13",
optimizer: {
enabled: true,
runs: 200,
},
},
},
};