dsa-polygon-migration/hardhat.config.js

83 lines
1.9 KiB
JavaScript
Raw Permalink Normal View History

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;
2021-04-15 22:41:35 +00:00
const QUIKNODE_ID = process.env.QUIKNODE_ID;
2021-04-14 23:19:14 +00:00
// ================================= CONFIG =========================================
2021-04-01 09:17:43 +00:00
module.exports = {
2021-04-15 22:41:35 +00:00
// defaultNetwork: "hardhat",
2021-04-14 23:19:14 +00:00
tenderly: {
project: "team-development",
username: "InstaDApp",
forkNetwork: "1"
},
2021-04-09 08:03:14 +00:00
networks: {
2021-04-16 09:38:16 +00:00
// hardhat: { // mainnet forking
2021-04-16 08:37:57 +00:00
// forking: {
2021-04-16 09:38:16 +00:00
// url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
// blockNumber: 12240294,
2021-04-16 08:37:57 +00:00
// },
// blockGasLimit: 12000000,
// },
2021-04-16 09:38:16 +00:00
hardhat: { // matic forking
forking: {
url: `https://cold-red-river.matic.quiknode.pro/${QUIKNODE_ID}/`,
2021-04-18 07:45:20 +00:00
blockNumber: 13418393,
2021-04-16 09:38:16 +00:00
},
blockGasLimit: 12000000,
},
2021-04-09 08:03:14 +00:00
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,
2021-04-16 21:29:22 +00:00
gasPrice: parseInt(utils.parseUnits("131", "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
};