devnetL1.ts 1.75 KB
Newer Older
1 2
import { ethers } from 'ethers'

3 4 5 6 7
const { env } = process

const startingTimestamp =
  typeof env.L2OO_STARTING_BLOCK_TIMESTAMP === 'string'
    ? ethers.BigNumber.from(env.L2OO_STARTING_BLOCK_TIMESTAMP).toNumber()
8
    : Math.floor(Date.now() / 1000)
9

10 11 12 13
const config = {
  submissionInterval: 6,
  genesisOutput: ethers.constants.HashZero,
  historicalBlocks: 0,
14 15
  startingBlockNumber: 0,
  l2BlockTime: 2,
16 17

  startingTimestamp,
18
  sequencerAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

  l2CrossDomainMessengerOwner: ethers.constants.AddressZero,
  gasPriceOracleOwner: ethers.constants.AddressZero,
  gasPriceOracleOverhead: 2100,
  gasPriceOracleScalar: 1000000,
  gasPriceOracleDecimals: 6,

  l1BlockInitialNumber: 0,
  l1BlockInitialTimestamp: 0,
  l1BlockInitialBasefee: 10,
  l1BlockInitialHash: ethers.constants.HashZero,
  l1BlockInitialSequenceNumber: 0,

  proxyAdmin: '0x829BD824B016326A401d083B33D092293333A830',
  genesisBlockExtradata: ethers.utils.hexConcat([
    ethers.constants.HashZero,
    '0xca062b0fd91172d89bcd4bb084ac4e21972cc467',
    ethers.utils.hexZeroPad('0x', 65),
  ]),
  genesisBlockGasLimit: ethers.BigNumber.from(15000000).toHexString(),

  genesisBlockChainid: 901,
  fundDevAccounts: true,
42
  optimismBaseFeeRecipient: '0xBcd4042DE499D14e55001CcbB24a551F3b954096',
43 44
  optimismL1FeeRecipient: '0x71bE63f3384f5fb98995898A86B02Fb2426c5788',

45 46
  p2pSequencerAddress: '0x9965507D1a55bcC2695C58ba16FB37d819B0A4dc',

47 48
  deploymentWaitConfirmations: 1,

49
  maxSequencerDrift: 100,
protolambda's avatar
protolambda committed
50 51
  sequencerWindowSize: 4,
  channelTimeout: 40,
52

53
  outputOracleOwner: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
54 55
  optimismL2FeeRecipient: '0xd9c09e21b57c98e58a80552c170989b426766aa7',
  batchSenderAddress: '0xDe3829A23DF1479438622a08a116E8Eb3f620BB5',
56 57 58
}

export default config