-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
40 lines (38 loc) · 894 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("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("@nomicfoundation/hardhat-verify");
require('dotenv').config();
const { PRIVATE_KEY, ETHERSCAN_API_KEY, GOERLI_NETWORK_AUX, MENMONIC} = process.env;
console.log(MENMONIC);
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
defaultNetwork:"hardhat",
etherscan: {
apiKey: ETHERSCAN_API_KEY
},
solidity: {
version: "0.8.20",
settings: {
},
},
networks:{
hardhat: {
forking: {
url: "https://eth.llamarpc.com",
}
},
localhost: {
url: "http://localhost:8545"
},
goerli: {
url: `${GOERLI_NETWORK_AUX}`,
accounts: [PRIVATE_KEY],
chainId: 5,
},
mainnet: {
url: "https://mainnet.infura.io/v3/af866b3a78ea49b3b95d7765f609e388",
chainId: 1,
accounts: [PRIVATE_KEY]
},
}
};