-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
38 lines (32 loc) · 780 Bytes
/
hardhat.config.js
File metadata and controls
38 lines (32 loc) · 780 Bytes
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
require("@nomiclabs/hardhat-waffle");
require('dotenv').config();
module.exports = {
solidity: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
paths: {
artifacts: "./src/backend/artifacts",
cache: "./src/backend/cache",
sources: "./src/backend/contracts",
},
namedAccounts: {
// By default, it will take the first Hardhat account as the deployer
deployer: {
default: 0
}
},
networks: {
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
}
}
};