-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
41 lines (39 loc) · 918 Bytes
/
hardhat.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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 31337
},
goerli: {
url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_GOERLI_API_KEY}`,
chainId: 5
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_SEPOLIA_API_KEY}`,
chainId: 11155111,
accounts: [`0x${process.env.PRIVATE_KEY_OWNER}`, `0x${process.env.PRIVATE_KEY_DONOR}`]
}
},
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: "./contracts",
artifacts: "./artifacts",
cache: "./cache"
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API_KEY
}
}
};