Skip to content

Commit

Permalink
added rollupEventInbox and challengeManager addresses to event
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatSoshiant committed Jul 1, 2023
1 parent 7d30d19 commit 668b11a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 6 additions & 7 deletions scripts/rollupCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import '@nomiclabs/hardhat-ethers'
import { run } from 'hardhat'
import { abi as rollupCreatorAbi } from '../build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json'
import { rollupConfig } from './config'
import { abi as rollupCoreAbi } from '../build/contracts/src/rollup/RollupCore.sol/RollupCore.json'

interface RollupCreatedEvent {
event: string
Expand All @@ -12,6 +11,8 @@ interface RollupCreatedEvent {
rollupAddress: string
inboxAddress: string
outbox: string
rollupEventInbox: string
challengeManager: string
adminProxy: string
sequencerInbox: string
bridge: string
Expand Down Expand Up @@ -61,19 +62,15 @@ async function main() {
const rollupAddress = rollupCreatedEvent.args?.rollupAddress
const inboxAddress = rollupCreatedEvent.args?.inboxAddress
const outbox = rollupCreatedEvent.args?.outbox
const rollupEventInbox = rollupCreatedEvent.args?.rollupEventInbox
const challengeManager = rollupCreatedEvent.args?.challengeManager
const adminProxy = rollupCreatedEvent.args?.adminProxy
const sequencerInbox = rollupCreatedEvent.args?.sequencerInbox
const bridge = rollupCreatedEvent.args?.bridge
const validatorUtils = rollupCreatedEvent.args?.validatorUtils
const validatorWalletCreator =
rollupCreatedEvent.args?.validatorWalletCreator

const rollupCore = new ethers.Contract(
rollupAddress,
rollupCoreAbi,
signer
)

console.log("Congratulations! 🎉🎉🎉 All DONE! Here's your addresses:")
console.log('RollupProxy Contract created at address:', rollupAddress)
console.log(
Expand All @@ -96,6 +93,8 @@ async function main() {
}
console.log('Inbox (proxy) Contract created at address:', inboxAddress)
console.log('Outbox (proxy) Contract created at address:', outbox)
console.log('rollupEventInbox (proxy) Contract created at address:', rollupEventInbox)
console.log('challengeManager (proxy) Contract created at address:', challengeManager)
console.log('AdminProxy Contract created at address:', adminProxy)
console.log('SequencerInbox (proxy) created at address:', sequencerInbox)
console.log('Bridge (proxy) Contract created at address:', bridge)
Expand Down
4 changes: 4 additions & 0 deletions src/rollup/RollupCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ contract RollupCreator is Ownable {
address indexed rollupAddress,
address inboxAddress,
address outbox,
address rollupEventInbox,
address challengeManager,
address adminProxy,
address sequencerInbox,
address bridge,
Expand Down Expand Up @@ -116,6 +118,8 @@ contract RollupCreator is Ownable {
address(rollup),
address(inbox),
address(outbox),
address(rollupEventInbox),
address(challengeManager),
address(proxyAdmin),
address(sequencerInbox),
address(bridge),
Expand Down
2 changes: 1 addition & 1 deletion test/contract/arbRollup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { ethers, run, network } from 'hardhat'
import { Signer } from '@ethersproject/abstract-signer'
import { BigNumberish, BigNumber } from '@ethersproject/bignumber'
import { BytesLike, hexConcat, zeroPad } from '@ethersproject/bytes'
import { BytesLike } from '@ethersproject/bytes'
import { ContractTransaction } from '@ethersproject/contracts'
import { assert, expect } from 'chai'
import {
Expand Down

0 comments on commit 668b11a

Please sign in to comment.