-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
47 lines (44 loc) · 1.04 KB
/
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
42
43
44
45
46
47
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-chai-matchers");
require("solidity-coverage");
require("chai");
require("hardhat-deploy");
require("dotenv").config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
const GOERLI_URL = process.env.GOERLI_URL;
const PRIVATE_KEY1 = process.env.PRIVATE_KEY1;
const PRIVATE_KEY2 = process.env.PRIVATE_KEY2;
const ETHERSCAN_APIKEY = process.env.ETHERSCAN_APIKEY;
module.exports = {
solidity: "0.8.17",
networks: {
hardhat: {
chainId: 31337,
},
},
networks: {
hardhat: {
chainId: 31337,
},
goerli: {
chainId: 5,
url: GOERLI_URL,
accounts: [PRIVATE_KEY1, PRIVATE_KEY2],
},
},
namedAccounts: {
deployer: {
default: 0,
},
helper: {
default: 1,
},
},
etherscan: {
apiKey: ETHERSCAN_APIKEY,
},
mocha: {
timeout: 100000000,
},
};