/* eslint-disable indent, no-undef */ require('@typechain/hardhat') require('@nomiclabs/hardhat-ethers') require('@nomiclabs/hardhat-waffle') require('@nomiclabs/hardhat-etherscan') require('dotenv').config() task('hasher', 'Compile Poseidon hasher', () => { require('./scripts/compileHasher') }) const config = { solidity: { compilers: [ { version: '0.4.24', settings: { optimizer: { enabled: true, runs: 200, }, }, }, { version: '0.6.2', settings: { optimizer: { enabled: true, runs: 200, }, }, }, { version: '0.7.5', settings: { optimizer: { enabled: true, runs: 200, }, }, }, { version: '0.7.6', settings: { optimizer: { enabled: true, runs: 200, }, }, }, ], }, networks: { hardhat: { forking: { url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`, blockNumber: 13685625, }, chainId: 1, initialBaseFeePerGas: 5, loggingEnabled: false, allowUnlimitedContractSize: false, blockGasLimit: 50000000, }, rinkeby: { url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`, accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : { mnemonic: 'test test test test test test test test test test test junk', }, }, xdai: { url: process.env.ETH_RPC || 'https://rpc.xdaichain.com/', accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : { mnemonic: 'test test test test test test test test test test test junk', }, gasPrice: 25000000000, }, bsc: { url: process.env.ETH_RPC || 'https://bsc-dataseed.binance.org/', accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : { mnemonic: 'test test test test test test test test test test test junk', }, }, mainnet: { url: process.env.ETH_RPC || '', accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : { mnemonic: 'test test test test test test test test test test test junk', }, }, }, etherscan: { apiKey: process.env.ETHERSCAN_KEY, }, mocha: { timeout: 600000000, }, typechain: { outDir: 'src/types', }, } module.exports = config