-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
39 lines (37 loc) · 939 Bytes
/
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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const infuraProjectId = "your-infura-project-id";
const privateKey = "your-private-key";
module.exports = {
networks: {
// development: {
// host: "127.0.0.1",
// port: 7545,
// network_id: "*" // Match any network id
// },
sepolia: {
provider: () =>
new HDWalletProvider({
privateKeys: [privateKey],
providerOrUrl: `https://sepolia.infura.io/v3/${infuraProjectId}`,
numberOfAddresses: 1,
}),
network_id: 11155111,
gas: 5500000,
timeoutBlocks: 200,
skipDryRun: true,
networkCheckTimeout: 1000000,
UV_THREADPOOL_SIZE: 20,
},
},
contracts_directory: "./contracts/",
contracts_build_directory: "./src/abis/",
compilers: {
solc: {
version: "0.8.21",
optimizer: {
enabled: true,
runs: 200,
},
},
},
};