diff --git a/hardhat.config.ts b/hardhat.config.ts index f0cecf1f..e482766d 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -7,73 +7,73 @@ import "@nomiclabs/hardhat-etherscan"; require("dotenv").config(); const { - PRIVATE_KEY, - POLYGON_URL, - ETHEREUM_URL, - POLYGONSCAN_API_KEY, - ETHERSCAN_API_KEY, - SEPOLIA_URL, - POLYGON_AMOY_URL, + PRIVATE_KEY, + POLYGON_URL, + ETHEREUM_URL, + POLYGONSCAN_API_KEY, + ETHERSCAN_API_KEY, + SEPOLIA_URL, + POLYGON_AMOY_URL, } = process.env; export const config = { - networks: { - // Running 'hardhat test' will use this network, which forks mainnet using the "london" hardfork - hardhat: { - blockGasLimit: 100000000, - allowUnlimitedContractSize: true, - hardfork: "london", - }, - matic: { - url: POLYGON_URL || "", - accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 141900000000, - }, - ethereum: { - url: ETHEREUM_URL || "", - accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 22000000000, - }, - sepolia: { - chainId: 11155111, - url: SEPOLIA_URL || "", - accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 22000000000, - }, - amoy: { - chainId: 80002, - url: POLYGON_AMOY_URL || "", - accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - gasPrice: 22000000000, - }, - - // arbitrumSepolia: { - // url: ARBITRUM_SEPOLIA_URL || "", - // accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], - // gasPrice: 22000000000, - // }, + networks: { + // Running 'hardhat test' will use this network, which forks mainnet using the "london" hardfork + hardhat: { + blockGasLimit: 100000000, + allowUnlimitedContractSize: true, + hardfork: "london", + }, + matic: { + url: POLYGON_URL || "", + accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + gasPrice: 141900000000, }, - solidity: { - compilers: [ - { - version: "0.8.17", - settings: { - optimizer: { - enabled: true, - runs: 100000, - }, - }, - }, - ], + ethereum: { + url: ETHEREUM_URL || "", + accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + gasPrice: 22000000000, }, - etherscan: { - // Your API key for Etherscan - // Obtain one at https://etherscan.io/ - apiKey: ETHERSCAN_API_KEY, + sepolia: { + chainId: 11155111, + url: SEPOLIA_URL || "", + accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + gasPrice: 22000000000, }, - gasReporter: { - currency: "USD", - gasPrice: 10, + amoy: { + chainId: 80002, + url: POLYGON_AMOY_URL || "", + accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + gasPrice: 22000000000, }, + + // arbitrumSepolia: { + // url: ARBITRUM_SEPOLIA_URL || "", + // accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : [], + // gasPrice: 22000000000, + // }, + }, + solidity: { + compilers: [ + { + version: "0.8.17", + settings: { + optimizer: { + enabled: true, + runs: 100000, + }, + }, + }, + ], + }, + etherscan: { + // Your API key for Etherscan + // Obtain one at https://etherscan.io/ + apiKey: ETHERSCAN_API_KEY, + }, + gasReporter: { + currency: "USD", + gasPrice: 10, + }, }; export default config;