UNPKG

dkg-evm-module

Version:
82 lines (77 loc) 1.93 kB
import 'hardhat-deploy'; import 'hardhat-deploy-ethers'; import { extendEnvironment } from 'hardhat/config'; import { lazyObject } from 'hardhat/plugins'; import { HardhatRuntimeEnvironment, HardhatUserConfig } from 'hardhat/types'; import { Helpers } from './utils/helpers'; import { rpc } from './utils/network'; extendEnvironment((hre: HardhatRuntimeEnvironment) => { hre.helpers = lazyObject(() => new Helpers(hre)); }); const config: HardhatUserConfig = { defaultNetwork: 'hardhat', namedAccounts: { deployer: 0, minter: 0, }, networks: { localhost: { environment: 'development', url: rpc('localhost'), saveDeployments: false, }, hardhat: { environment: 'development', chainId: 31337, gas: 15_000_000, gasMultiplier: 1, blockGasLimit: 30_000_000, hardfork: 'shanghai', accounts: { count: 200 }, throwOnTransactionFailures: true, throwOnCallFailures: true, loggingEnabled: false, allowUnlimitedContractSize: false, saveDeployments: false, mining: { auto: true, interval: [3000, 5000], }, }, }, solidity: { compilers: [ { version: '0.8.20', settings: { evmVersion: 'london', optimizer: { enabled: true, runs: 200, details: { peephole: true, inliner: true, jumpdestRemover: true, orderLiterals: true, deduplicate: true, cse: true, constantOptimizer: true, yul: true, yulDetails: { stackAllocation: true, }, }, }, viaIR: true, }, }, ], }, paths: { sources: './contracts', tests: './test', cache: './cache', artifacts: './artifacts', }, }; export default config;