@@ -5,6 +5,7 @@ import { vars } from "hardhat/config";
5
5
import type { NetworkUserConfig } from "hardhat/types" ;
6
6
7
7
import "./tasks/accounts" ;
8
+ import "./deploy/deploy" ;
8
9
9
10
// Run 'npx hardhat vars setup' to see the list of variables that need to be set
10
11
@@ -22,6 +23,7 @@ const chainIds = {
22
23
"polygon-mainnet" : 137 ,
23
24
"polygon-mumbai" : 80001 ,
24
25
sepolia : 11155111 ,
26
+ base : 8453 ,
25
27
} ;
26
28
27
29
function getChainConfig ( chain : keyof typeof chainIds ) : NetworkUserConfig {
@@ -33,6 +35,9 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
33
35
case "bsc" :
34
36
jsonRpcUrl = "https://bsc-dataseed1.binance.org" ;
35
37
break ;
38
+ case "base" :
39
+ jsonRpcUrl = vars . get ( "BASE_FORK_URL" )
40
+ break ;
36
41
default :
37
42
jsonRpcUrl = "https://" + chain + ".infura.io/v3/" + infuraApiKey ;
38
43
}
@@ -62,6 +67,7 @@ const config: HardhatUserConfig = {
62
67
polygon : vars . get ( "POLYGONSCAN_API_KEY" , "" ) ,
63
68
polygonMumbai : vars . get ( "POLYGONSCAN_API_KEY" , "" ) ,
64
69
sepolia : vars . get ( "ETHERSCAN_API_KEY" , "" ) ,
70
+ base : vars . get ( "BASESCAN_API_KEY" , "" ) ,
65
71
} ,
66
72
} ,
67
73
gasReporter : {
@@ -92,6 +98,7 @@ const config: HardhatUserConfig = {
92
98
"polygon-mainnet" : getChainConfig ( "polygon-mainnet" ) ,
93
99
"polygon-mumbai" : getChainConfig ( "polygon-mumbai" ) ,
94
100
sepolia : getChainConfig ( "sepolia" ) ,
101
+ base : getChainConfig ( "base" ) ,
95
102
} ,
96
103
paths : {
97
104
artifacts : "./artifacts" ,
0 commit comments