forked from cerc-io/stack-orchestrator
fc522140ba
* Initial version * Update readme * Build op-geth container * Add optimism go code containers * Add optimism contracts container * Update optimism contracts container build * Add fixturenet-optimism-contracts service to deploy L1 contracts * Add fixturenet-optimism op-node and op-geth * Avoid reading addresses from a file when sending balances * Fixes for running op-geth container * Fix image name and command in optimism-contracts service * Add a healthcheck to lighthouse bootnode to avoid failing eth txs * Avoid using hardhat ethers to send balances from an account * Update script to send balance to L1 bridge proxy contract * Implement op-node container * Wait for a finalized L1 block to exist * Fix for running op-batcher * Add a todo for restart support * Integrate optimism-contracts service and update instructions * Update clean-up to remove docker volumes * Update volume access permissions * Add a todo to replace foundry usage with web3 js * Add known issues * Fix README * Fix indentation * Update known issues --------- Co-authored-by: David Boreham <david@bozemanpas.com> Co-authored-by: David Boreham <david@bozemanpass.com> Co-authored-by: nabarun <nabarun@deepstacksoft.com>
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
const fs = require('fs')
|
|
|
|
// Get the command-line argument
|
|
const configFile = process.argv[2]
|
|
const adminAddress = process.argv[3]
|
|
const proposerAddress = process.argv[4]
|
|
const batcherAddress = process.argv[5]
|
|
const sequencerAddress = process.argv[6]
|
|
const blockHash = process.argv[7]
|
|
|
|
// Read the JSON file
|
|
const configData = fs.readFileSync(configFile)
|
|
const configObj = JSON.parse(configData)
|
|
|
|
// Update the finalSystemOwner property with the ADMIN_ADDRESS value
|
|
configObj.finalSystemOwner =
|
|
configObj.portalGuardian =
|
|
configObj.controller =
|
|
configObj.l2OutputOracleChallenger =
|
|
configObj.proxyAdminOwner =
|
|
configObj.baseFeeVaultRecipient =
|
|
configObj.l1FeeVaultRecipient =
|
|
configObj.sequencerFeeVaultRecipient =
|
|
configObj.governanceTokenOwner =
|
|
adminAddress
|
|
|
|
configObj.l2OutputOracleProposer = proposerAddress
|
|
|
|
configObj.batchSenderAddress = batcherAddress
|
|
|
|
configObj.p2pSequencerAddress = sequencerAddress
|
|
|
|
configObj.l1StartingBlockTag = blockHash
|
|
|
|
// Write the updated JSON object back to the file
|
|
fs.writeFileSync(configFile, JSON.stringify(configObj, null, 2))
|