Commit c848c41c authored by Andreas Bigger's avatar Andreas Bigger

Updates the mainnet typescript deploy config to re-export json

to de-duplicate hard-coded values, allow for backwards typescript
compatibility, and maintain the use of comments.
parent 0b942749
import { DeployConfig } from '../src/deploy-config' import { DeployConfig } from '../src/deploy-config'
import mainnetJson from './mainnet.json'
// NOTE: The 'mainnet' network is currently being used for bedrock migration rehearsals. // NOTE: The 'mainnet' network is currently being used for bedrock migration rehearsals.
// The system configured below is not yet live on mainnet, and many of the addresses used are // The system configured below is not yet live on mainnet, and many of the addresses used are
// unsafe for a production system. // unsafe for a production system.
// The following addresses are assigned to multiples roles in the system, therfore we save them // Re-export the mainnet json as a DeployConfig object.
// as constants to avoid having to change them in multiple places. //
const foundationMultisig = '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266' // hh test signer 0 // Notice, the following roles in the system are assigned to the:
const feeRecipient = '0x70997970C51812dc3A010C7d01b50e0d17dc79C8' // hh test signer 1 // Optimism Foundation Mulitisig:
const mintManager = '0x5C4e7Ba1E219E47948e6e3F55019A647bA501005' // - finalSystemOwner
// - controller
const config: DeployConfig = { // - portalGuardian
finalSystemOwner: foundationMultisig, // - proxyAdminOwner
controller: foundationMultisig, // - l2OutputOracleChallenger
portalGuardian: foundationMultisig, //
proxyAdminOwner: foundationMultisig, // The following roles are assigned to the same fee recipient:
// - baseFeeVaultRecipient
l1StartingBlockTag: // - l1FeeVaultRecipient
'0x126e52a0cc0ae18948f567ee9443f4a8f0db67c437706e35baee424eb314a0d0', // - sequencerFeeVaultRecipient
l1ChainID: 1, //
l2ChainID: 10, // The following role is assigned to the Mint Manager contract:
l2BlockTime: 2, // - governanceTokenOwner
const config: DeployConfig = mainnetJson
maxSequencerDrift: 600,
sequencerWindowSize: 3600,
channelTimeout: 300,
p2pSequencerAddress: '0x15d34AAf54267DB7D7c367839AAf71A00a2C6A65',
batchInboxAddress: '0xff00000000000000000000000000000000000010',
batchSenderAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
l2OutputOracleSubmissionInterval: 20,
l2OutputOracleStartingTimestamp: 1679069195,
l2OutputOracleStartingBlockNumber: 79149704,
l2OutputOracleProposer: '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
l2OutputOracleChallenger: foundationMultisig,
finalizationPeriodSeconds: 2,
baseFeeVaultRecipient: feeRecipient,
l1FeeVaultRecipient: feeRecipient,
sequencerFeeVaultRecipient: feeRecipient,
governanceTokenName: 'Optimism',
governanceTokenSymbol: 'OP',
governanceTokenOwner: mintManager,
l2GenesisBlockGasLimit: '0x1c9c380',
l2GenesisBlockCoinbase: '0x4200000000000000000000000000000000000011',
l2GenesisBlockBaseFeePerGas: '0x3b9aca00',
gasPriceOracleOverhead: 2100,
gasPriceOracleScalar: 1000000,
eip1559Denominator: 50,
eip1559Elasticity: 10,
l2GenesisRegolithTimeOffset: '0x0',
}
export default config export default config
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment