Skip to content

Commit

Permalink
more mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
afkbyte committed May 15, 2024
1 parent 9b44d0f commit 7eac99b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
2 changes: 1 addition & 1 deletion deploy/SequencerInbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ module.exports = async hre => {
}

module.exports.tags = ['SequencerInbox']
module.exports.dependencies = []
module.exports.dependencies = ['EigenDARollupUtils']
Empty file added src/mocks/AvsDirectoryStub.sol
Empty file.
6 changes: 0 additions & 6 deletions src/mocks/EigenDAServiceManagerStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,5 @@ contract EigenDAServiceManagerStub is EigenDAServiceManager {
__registryCoordinator,
__stakeRegistry
) {
initialize(
_pauserRegistry,
_initialPausedStatus,
_initialOwner,
_batchConfirmers
);
}
}
Empty file.
30 changes: 27 additions & 3 deletions test/contract/sequencerInboxForceInclude.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
Inbox__factory,
MessageTester,
RollupMock__factory,
EigenDAServiceManagerStub__factory,
SequencerInbox,
SequencerInbox__factory,
TransparentUpgradeableProxy__factory,
Expand Down Expand Up @@ -226,19 +227,42 @@ describe('SequencerInboxForceInclude', async () => {
const rollupOwner = accounts[3]
const batchPoster = accounts[4]
// const batchPosterManager = accounts[5]
const dummyAVSContract= accounts[6]
const dummyAVSContractAddress = await dummyAVSContract.getAddress()

const rollupMockFac = (await ethers.getContractFactory(
'RollupMock'
)) as RollupMock__factory
const rollup = await rollupMockFac.deploy(await rollupOwner.getAddress())

const EigenDARollupUtils = await ethers.getContractFactory("EigenDARollupUtils");
const eigenDARollupUtils = await EigenDARollupUtils.deploy();
await eigenDARollupUtils.deployed();

const EigenDAServiceManagerStub = await ethers.getContractFactory("EigenDAServiceManagerStub");

const eigenDAServiceManagerStub = await EigenDAServiceManagerStub.deploy(
dummyAVSContractAddress,
dummyAVSContractAddress,
dummyAVSContractAddress,
dummyAVSContractAddress,
dummyAVSContractAddress,
0,
adminAddr,
[adminAddr]
);
await eigenDAServiceManagerStub.deployed();

const reader4844 = await Toolkit4844.deployReader4844(admin)
const sequencerInboxFac = (await ethers.getContractFactory(
'SequencerInbox'
)) as SequencerInbox__factory
const sequencerInboxFac = await ethers.getContractFactory("SequencerInbox", {
libraries: {
EigenDARollupUtils: eigenDARollupUtils.address
}
}) as SequencerInbox__factory
const seqInboxTemplate = await sequencerInboxFac.deploy(
117964,
reader4844.address,
eigenDAServiceManagerStub.address,
false
)
const inboxFac = (await ethers.getContractFactory(
Expand Down

0 comments on commit 7eac99b

Please sign in to comment.