mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
87 lines
2.0 KiB
JavaScript
87 lines
2.0 KiB
JavaScript
require("@nomiclabs/hardhat-waffle");
|
|
require("@nomiclabs/hardhat-ethers");
|
|
require("@tenderly/hardhat-tenderly");
|
|
require("@nomiclabs/hardhat-etherscan");
|
|
require("@nomiclabs/hardhat-web3");
|
|
require("hardhat-deploy");
|
|
require("hardhat-deploy-ethers");
|
|
require("dotenv").config();
|
|
|
|
const { utils } = require("ethers");
|
|
|
|
const PRIVATE_KEY = process.env.PRIVATE_KEY;
|
|
const ALCHEMY_ID = process.env.ALCHEMY_ID;
|
|
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
|
|
|
|
if (!process.env.ALCHEMY_ID) {
|
|
throw new Error("ENV Variable ALCHEMY_ID not set!");
|
|
}
|
|
|
|
/**
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
*/
|
|
module.exports = {
|
|
solidity: {
|
|
compilers: [
|
|
{
|
|
version: "0.7.6",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
version: "0.6.0",
|
|
},
|
|
{
|
|
version: "0.6.2",
|
|
},
|
|
{
|
|
version: "0.6.5",
|
|
},
|
|
],
|
|
},
|
|
networks: {
|
|
// defaultNetwork: "hardhat",
|
|
kovan: {
|
|
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
|
},
|
|
mainnet: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
|
timeout: 150000,
|
|
gasPrice: parseInt(utils.parseUnits("30", "gwei")),
|
|
},
|
|
rinkeby: {
|
|
url: `https://eth-rinkeby.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
|
timeout: 150000,
|
|
},
|
|
hardhat: {
|
|
forking: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
|
blockNumber: 12696000,
|
|
},
|
|
blockGasLimit: 12000000,
|
|
},
|
|
matic: {
|
|
url: "https://rpc-mainnet.maticvigil.com/",
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
|
timeout: 150000,
|
|
gasPrice: parseInt(utils.parseUnits("1", "gwei")),
|
|
},
|
|
},
|
|
etherscan: {
|
|
apiKey: ETHERSCAN_API_KEY,
|
|
},
|
|
tenderly: {
|
|
project: process.env.TENDERLY_PROJECT,
|
|
username: process.env.TENDERLY_USERNAME,
|
|
},
|
|
mocha: {
|
|
timeout: 100 * 1000,
|
|
},
|
|
}; |