-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
41 lines (38 loc) · 1012 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("dotenv").config()
require("@nomiclabs/hardhat-etherscan")
require("@nomiclabs/hardhat-waffle")
require("@nomiclabs/hardhat-ethers")
require("hardhat-gas-reporter")
require("solidity-coverage")
require("hardhat-deploy")
require("hardhat-contract-sizer")
const MAINNET_RPC_URL = process.env.MAINNET_RPC_URL
const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL
const PRIVATE_KEY = process.env.PRIVATE_KEY
let historicalBlock = 13292066
module.exports = {
solidity: {
compilers: [
{ version: "0.8.2" },
{ version: "0.6.2" },
{ version: "0.6.0" },
{ version: "0.6.12" },
{ version: "0.4.19" },
],
},
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
forking: {
url: MAINNET_RPC_URL,
// blockNumber: historicalBlock,
},
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
}