2021-04-14 23:19:14 +00:00
|
|
|
// Buidler
|
2021-04-09 08:03:14 +00:00
|
|
|
require("@nomiclabs/hardhat-ethers");
|
2021-04-01 09:17:43 +00:00
|
|
|
require("@nomiclabs/hardhat-waffle");
|
2021-04-14 23:19:14 +00:00
|
|
|
require("@nomiclabs/hardhat-web3")
|
|
|
|
require("hardhat-deploy");
|
|
|
|
require("hardhat-deploy-ethers");
|
|
|
|
|
2021-04-09 08:03:14 +00:00
|
|
|
require("@nomiclabs/hardhat-etherscan");
|
2021-04-01 09:17:43 +00:00
|
|
|
|
2021-04-09 08:03:14 +00:00
|
|
|
require("dotenv").config();
|
2021-04-01 09:17:43 +00:00
|
|
|
|
2021-04-14 23:19:14 +00:00
|
|
|
const { utils } = require("ethers");
|
2021-04-01 09:17:43 +00:00
|
|
|
|
2021-04-14 23:19:14 +00:00
|
|
|
const ALCHEMY_ID = process.env.ALCHEMY_ID;
|
|
|
|
const PRIVATE_KEY = process.env.PRIVATE_KEY;
|
|
|
|
// ================================= CONFIG =========================================
|
2021-04-01 09:17:43 +00:00
|
|
|
module.exports = {
|
2021-04-14 23:19:14 +00:00
|
|
|
defaultNetwork: "hardhat",
|
|
|
|
tenderly: {
|
|
|
|
project: "team-development",
|
|
|
|
username: "InstaDApp",
|
|
|
|
forkNetwork: "1"
|
|
|
|
},
|
2021-04-09 08:03:14 +00:00
|
|
|
networks: {
|
|
|
|
hardhat: {
|
|
|
|
forking: {
|
|
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
2021-04-15 13:57:55 +00:00
|
|
|
blockNumber: 12240294,
|
2021-04-09 08:03:14 +00:00
|
|
|
},
|
|
|
|
blockGasLimit: 12000000,
|
|
|
|
},
|
|
|
|
kovan: {
|
|
|
|
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
2021-04-14 23:19:14 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`]
|
|
|
|
},
|
|
|
|
mainnet: {
|
|
|
|
url: `https://eth.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
2021-04-09 08:03:14 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
2021-04-14 23:19:14 +00:00
|
|
|
timeout: 150000,
|
|
|
|
gasPrice: parseInt(utils.parseUnits("93", "gwei"))
|
2021-04-09 08:03:14 +00:00
|
|
|
},
|
2021-04-14 23:19:14 +00:00
|
|
|
matic: {
|
|
|
|
url: "https://rpc-mainnet.maticvigil.com/",
|
2021-04-09 08:03:14 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
2021-04-14 23:19:14 +00:00
|
|
|
timeout: 150000,
|
|
|
|
gasPrice: parseInt(utils.parseUnits("1", "gwei"))
|
2021-04-09 08:03:14 +00:00
|
|
|
}
|
|
|
|
},
|
2021-04-14 23:19:14 +00:00
|
|
|
solidity: {
|
|
|
|
compilers: [
|
|
|
|
{
|
|
|
|
version: "0.7.6"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.7.3",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.7.0",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.6.10",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.6.8",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-04-09 08:03:14 +00:00
|
|
|
etherscan: {
|
|
|
|
apiKey: process.env.ETHERSCAN
|
2021-04-15 15:19:00 +00:00
|
|
|
},
|
|
|
|
mocha: {
|
|
|
|
timeout: 50000
|
2021-04-09 08:03:14 +00:00
|
|
|
}
|
2021-04-01 09:17:43 +00:00
|
|
|
|
2021-04-14 23:19:14 +00:00
|
|
|
};
|