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