-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (30 loc) · 956 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
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-tracer");
const fs = require("fs");
task("simulateTx","Simulates the transaction")
.addPositionalParam("contractAddr")
.addPositionalParam("param2")
.setAction(async (taskArgs,hre)=>{
console.log("Task Args: ",taskArgs);
//Write to argument file
fs.writeFileSync('./scripts/argument.json',JSON.stringify(taskArgs));
});
//DYOR SEPOLIA: https://eth-sepolia.g.alchemy.com/v2/GxMLyxi4tXxfrtIHBBQyXZhORKs_ChAP
//DYOR MAINNET : https://eth-mainnet.g.alchemy.com/v2/jqgmhlIy4fIg1SrqLptgOsCba0sf-40B
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
networks:{
hardhat:{
forking:{
url:"https://eth-sepolia.g.alchemy.com/v2/GxMLyxi4tXxfrtIHBBQyXZhORKs_ChAP",
blockNumber:4546278
},
mining:{
auto:true,
},
allowUnlimitedContractSize:true,
gas:"auto"
}
}
};