Skip to content

Commit

Permalink
chore: Update sequencer inbox stub to use EigenDA blob verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
EthenNotEthan committed Oct 20, 2024
1 parent b2462fd commit 9d17ba2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mocks/SequencerInboxStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
pragma solidity ^0.8.0;

import "../bridge/SequencerInbox.sol";
import "../bridge/EigenDABlobVerifierL2.sol";

import "../bridge/IEthBridge.sol";
import {INITIALIZATION_MSG_TYPE} from "../libraries/MessageTypes.sol";

import "../bridge/IRollupManager.sol";

contract SequencerInboxStub is SequencerInbox {
constructor(
IBridge bridge_,
Expand All @@ -24,6 +28,10 @@ contract SequencerInboxStub is SequencerInbox {
delaySeconds = uint64(maxTimeVariation_.delaySeconds);
futureSeconds = uint64(maxTimeVariation_.futureSeconds);
isBatchPoster[sequencer_] = true;

// inject dummy rollup manager dependency for testing
IRollupManager bv = new EigenDABlobVerifierL2();
eigenDARollupManager = bv;
}

function addInitMessage(uint256 chainId) external {
Expand Down Expand Up @@ -58,4 +66,4 @@ contract SequencerInboxStub is SequencerInbox {
this; // silence warning about function not being view
return bounds;
}
}
}

0 comments on commit 9d17ba2

Please sign in to comment.