hardhat.config.ts 1.56 KB
Newer Older
1
import { HardhatUserConfig } from 'hardhat/types'
2
import { ethers } from 'ethers'
3 4 5

import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
6 7
import 'hardhat-deploy'

8
import './tasks'
9 10 11 12 13 14 15 16

const config: HardhatUserConfig = {
  solidity: {
    version: '0.8.9',
  },
  paths: {
    sources: './test/contracts',
  },
17 18 19 20 21 22 23
  networks: {
    devnetL1: {
      url: 'http://localhost:8545',
      accounts: [
        'ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80',
      ],
    },
24 25 26 27
    hivenet: {
      url: process.env.L1_RPC || '',
      accounts: [process.env.PRIVATE_KEY_DEPLOYER || ethers.constants.HashZero],
    },
28 29 30 31
    goerli: {
      url: process.env.L1_RPC || '',
      accounts: [process.env.PRIVATE_KEY_DEPLOYER || ethers.constants.HashZero],
    },
32 33 34 35 36 37
    'final-migration-rehearsal': {
      chainId: 5,
      url: process.env.L1_RPC || '',
      accounts: [process.env.PRIVATE_KEY_DEPLOYER || ethers.constants.HashZero],
      live: true,
    },
38 39 40 41 42 43 44 45
  },
  external: {
    contracts: [
      {
        artifacts: '../contracts-bedrock/artifacts',
      },
    ],
    deployments: {
46
      hivenet: ['../contracts-bedrock/deployments/hivenet'],
47
      devnetL1: ['../contracts-bedrock/deployments/devnetL1'],
48 49 50 51
      goerli: [
        '../contracts-bedrock/deployments/goerli',
        '../contracts/deployments/goerli',
      ],
52 53 54 55 56
      'final-migration-rehearsal': [
        '../contracts-bedrock/deployments/final-migration-rehearsal',
        '../contracts/deployments/goerli',
        '../contracts-periphery/deployments/goerli',
      ],
57 58
    },
  },
59 60 61
}

export default config