@@ -6,8 +6,10 @@ import "@nomiclabs/hardhat-waffle";
66import "@typechain/hardhat" ;
77import "hardhat-gas-reporter" ;
88import "solidity-coverage" ;
9- import "hardhat-deploy"
10- import "hardhat-deploy-ethers"
9+ import "hardhat-deploy" ;
10+ import "hardhat-deploy-ethers" ;
11+ import "hardhat-watcher" ;
12+ import "hardhat-docgen" ;
1113
1214dotenv . config ( ) ;
1315
@@ -43,6 +45,18 @@ const config: HardhatUserConfig = {
4345 saveDeployments : false ,
4446 tags : [ "test" , "local" ] ,
4547 } ,
48+ mainnetFork : {
49+ url : `http://127.0.0.1:8545` ,
50+ chainId : 1 ,
51+ forking : {
52+ url : `https://mainnet.infura.io/v3/${ process . env . INFURA_API_KEY } ` ,
53+ } ,
54+ accounts : process . env . MAINNET_PRIVATE_KEY !== undefined ? [ process . env . MAINNET_PRIVATE_KEY ] : [ ] ,
55+ live : false ,
56+ saveDeployments : false ,
57+ tags : [ "test" , "local" ] ,
58+ } ,
59+
4660 // Home chain ---------------------------------------------------------------------------------
4761 arbitrumRinkeby : {
4862 chainId : 421611 ,
@@ -101,6 +115,25 @@ const config: HardhatUserConfig = {
101115 etherscan : {
102116 apiKey : process . env . ETHERSCAN_API_KEY ,
103117 } ,
118+ watcher : {
119+ compilation : {
120+ tasks : [ "compile" ] ,
121+ files : [ "./contracts" ] ,
122+ verbose : true ,
123+ } ,
124+ testArbitration : {
125+ tasks : [
126+ { command : "compile" , params : { quiet : true } } ,
127+ { command : "test" , params : { noCompile : true , testFiles : [ "./test/arbitration/index.ts" ] } } ,
128+ ] ,
129+ files : [ "./test/**/*" , "./src/**/*" ] ,
130+ } ,
131+ } ,
132+ docgen : {
133+ path : './docs' ,
134+ clear : true ,
135+ runOnCompile : false ,
136+ } ,
104137} ;
105138
106139export default config ;
0 commit comments