Skip to content

Commit

Permalink
update rollupCreation script
Browse files Browse the repository at this point in the history
  • Loading branch information
ethenotethan committed Jul 9, 2024
1 parent 9595d1c commit 37383c2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/EigenDARollupManagerStubCreator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = async hre => {
const { deployments, getNamedAccounts, ethers } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

await deploy('EigenDADummyManager', { from: deployer, args: [] })
}

module.exports.tags = ['EigenDADummyManager']
module.exports.dependencies = []

3 changes: 3 additions & 0 deletions scripts/deploymentUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export async function deployAllContracts(
): Promise<Record<string, Contract>> {
const isOnArb = await _isRunningOnArbitrum(signer)

const eigenDARollupManager = await deployContract('EigenDADummyManager', signer, [], verify)

const ethBridge = await deployContract('Bridge', signer, [], verify)
const reader4844 = isOnArb
? ethers.constants.AddressZero
Expand Down Expand Up @@ -233,6 +235,7 @@ export async function deployAllContracts(
validatorWalletCreator,
rollupCreator,
deployHelper,
eigenDARollupManager,
}
}

Expand Down
3 changes: 3 additions & 0 deletions scripts/local-deployment/deployCreatorAndCreateRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ async function main() {
feeToken
)

console.log("Binding rollup manager to the SequencerInbox")
await contracts.sequencerInbox.setEigenDARollupManager(contracts.eigenDARollupManager.address)

if (!result) {
throw new Error('Rollup creation failed')
}
Expand Down

0 comments on commit 37383c2

Please sign in to comment.