constants.ts 1.95 KB
Newer Older
1 2
import { ethers } from 'ethers'

3 4 5
/**
 * Predeploys are Solidity contracts that are injected into the initial L2 state and provide
 * various useful functions.
6 7 8 9
 * Notes:
 * 0x42...04 was the address of the OVM_ProxySequencerEntrypoint. This contract is no longer in
 * use and has therefore been removed. We may place a new predeployed contract at this address
 * in the future. See https://github.com/ethereum-optimism/optimism/pull/549 for more info.
10
 */
11
export const predeploys = {
12
  L2ToL1MessagePasser: '0x4200000000000000000000000000000000000016',
13 14 15 16 17
  DeployerWhitelist: '0x4200000000000000000000000000000000000002',
  L2CrossDomainMessenger: '0x4200000000000000000000000000000000000007',
  GasPriceOracle: '0x420000000000000000000000000000000000000F',
  L2StandardBridge: '0x4200000000000000000000000000000000000010',
  SequencerFeeVault: '0x4200000000000000000000000000000000000011',
18
  OptimismMintableERC20Factory: '0x4200000000000000000000000000000000000012',
19 20
  L1BlockNumber: '0x4200000000000000000000000000000000000013',
  L1Block: '0x4200000000000000000000000000000000000015',
21
  LegacyERC20ETH: '0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000',
22 23
  WETH9: '0x4200000000000000000000000000000000000006',
  GovernanceToken: '0x4200000000000000000000000000000000000042',
24
  LegacyMessagePasser: '0x4200000000000000000000000000000000000000',
25 26
  L2ERC721Bridge: '0x4200000000000000000000000000000000000014',
  OptimismMintableERC721Factory: '0x4200000000000000000000000000000000000017',
27
  ProxyAdmin: '0x4200000000000000000000000000000000000018',
28 29
  BaseFeeVault: '0x4200000000000000000000000000000000000019',
  L1FeeVault: '0x420000000000000000000000000000000000001a',
30
}
31 32 33 34 35 36 37 38 39 40 41

const uint128Max = ethers.BigNumber.from('0xffffffffffffffffffffffffffffffff')

export const defaultResourceConfig = {
  maxResourceLimit: 20_000_000,
  elasticityMultiplier: 10,
  baseFeeMaxChangeDenominator: 8,
  minimumBaseFee: ethers.utils.parseUnits('1', 'gwei'),
  systemTxMaxGas: 1_000_000,
  maximumBaseFee: uint128Max,
}