Added hardhat config

This commit is contained in:
Thrilok Kumar 2021-04-16 04:11:35 +05:30
parent 1498fd61a1
commit d3315d0f25
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,4 @@
ALCHEMY_ID="<>" ALCHEMY_ID="<>"
QUIKNODE_ID="<>"
ETHERSCAN="<>" ETHERSCAN="<>"
PRIVATE_KEY="<>" PRIVATE_KEY="<>"

View File

@ -13,19 +13,27 @@ const { utils } = require("ethers");
const ALCHEMY_ID = process.env.ALCHEMY_ID; const ALCHEMY_ID = process.env.ALCHEMY_ID;
const PRIVATE_KEY = process.env.PRIVATE_KEY; const PRIVATE_KEY = process.env.PRIVATE_KEY;
const QUIKNODE_ID = process.env.QUIKNODE_ID;
// ================================= CONFIG ========================================= // ================================= CONFIG =========================================
module.exports = { module.exports = {
defaultNetwork: "hardhat", // defaultNetwork: "hardhat",
tenderly: { tenderly: {
project: "team-development", project: "team-development",
username: "InstaDApp", username: "InstaDApp",
forkNetwork: "1" forkNetwork: "1"
}, },
networks: { networks: {
hardhat: { // hardhat: { // mainnet forking
// forking: {
// url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
// blockNumber: 12240294,
// },
// blockGasLimit: 12000000,
// },
hardhat: { // matic forking
forking: { forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
blockNumber: 12240294, blockNumber: 13317966,
}, },
blockGasLimit: 12000000, blockGasLimit: 12000000,
}, },