-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
40 lines (38 loc) · 978 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
require("@nomicfoundation/hardhat-toolbox");
require("@chainlink/env-enc").config()
require("./tasks")
require("hardhat-deploy")
const INFURA_KEY = process.env.INFURA_KEY
const PRIVATE_KEY = process.env.PRIVATE_KEY
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.28",
defaultNetwork: "localhost",
networks: {
localhost: {
url: "http://127.0.0.1:8545/",
accounts: ["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"]
},
sepolia:{
url: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
accounts: PRIVATE_KEY ? [PRIVATE_KEY]: []
}
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_KEY
}
},
namedAccounts: {
firstAccount: {
default: 0
},
secondAccount: {
default: 1
}
},
gasReporter: {
enabled: true
}
};