hardhat.config.ts 735 Bytes
Newer Older
1 2 3 4 5 6 7 8
import '@nomiclabs/hardhat-waffle'
import { HardhatUserConfig } from 'hardhat/config'

import {
  DEFAULT_ACCOUNTS_HARDHAT,
  RUN_OVM_TEST_GAS,
} from './test/helpers/constants'

9 10
import '@nomiclabs/hardhat-ethers'

11 12 13 14 15 16 17 18 19 20 21
const config: HardhatUserConfig = {
  networks: {
    hardhat: {
      accounts: DEFAULT_ACCOUNTS_HARDHAT,
      blockGasLimit: RUN_OVM_TEST_GAS * 2,
    },
  },
  mocha: {
    timeout: 50000,
  },
  solidity: {
22
    version: '0.7.0',
23 24 25 26 27
    settings: {
      optimizer: {
        enabled: true,
        runs: 200,
      },
28 29 30
      metadata: {
        bytecodeHash: 'none',
      },
31 32
      outputSelection: {
        '*': {
33
          '*': ['metadata', 'storageLayout'],
34 35 36 37 38 39 40
        },
      },
    },
  },
}

export default config