hardhat.ts 699 Bytes
Newer Older
1 2
import { ethers } from 'ethers'

3 4
const { env } = process

5 6 7
const l1GenesisTimestamp =
  typeof env.L1_GENESIS_TIMESTAMP === 'string'
    ? ethers.BigNumber.from(env.L1_GENESIS_TIMESTAMP).toNumber()
8
    : Math.floor(Date.now() / 1000)
9

10 11 12 13
const config = {
  submissionInterval: 6,
  genesisOutput: ethers.constants.HashZero,
  historicalBlocks: 0,
14
  startingBlockNumber: 0,
15
  l1StartingBlockTag: 'earliest',
16
  l2BlockTime: 2,
17
  l1GenesisTimestamp,
18
  sequencerAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
19
  maxSequencerDrift: 10,
protolambda's avatar
protolambda committed
20 21
  sequencerWindowSize: 4,
  channelTimeout: 40,
22
  outputOracleOwner: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
23
  fundDevAccounts: true,
24 25 26
}

export default config