Updated hardhat.config

This commit is contained in:
Thrilok Kumar 2021-04-15 04:49:14 +05:30
parent f423cafd9a
commit 335244a7bb
3 changed files with 6786 additions and 3536 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ cache
artifacts artifacts
.env .env
flatten

View File

@ -1,39 +1,72 @@
// Buidler
require("@nomiclabs/hardhat-ethers"); require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-waffle"); require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3")
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("@nomiclabs/hardhat-etherscan"); require("@nomiclabs/hardhat-etherscan");
require("dotenv").config(); require("dotenv").config();
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;
// ================================= CONFIG =========================================
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = { module.exports = {
solidity: "0.7.3", defaultNetwork: "hardhat",
tenderly: {
project: "team-development",
username: "InstaDApp",
forkNetwork: "1"
},
networks: { networks: {
hardhat: { hardhat: {
forking: { forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 12070498, blockNumber: 12068005,
}, },
blockGasLimit: 12000000, blockGasLimit: 12000000,
}, },
kovan: { kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`], accounts: [`0x${PRIVATE_KEY}`]
gas: 12500000,
}, },
polygon: { mainnet: {
url: 'https://rpc-mainnet.matic.network', url: `https://eth.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`], accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000,
gasPrice: parseInt(utils.parseUnits("93", "gwei"))
},
matic: {
url: "https://rpc-mainnet.maticvigil.com/",
accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000,
gasPrice: parseInt(utils.parseUnits("1", "gwei"))
} }
}, },
solidity: {
compilers: [
{
version: "0.7.6"
},
{
version: "0.7.3",
},
{
version: "0.7.0",
},
{
version: "0.6.10",
},
{
version: "0.6.8",
}
]
},
etherscan: { etherscan: {
apiKey: process.env.ETHERSCAN apiKey: process.env.ETHERSCAN
} }
};
};

10256
package-lock.json generated

File diff suppressed because it is too large Load Diff