Skip to content

Commit

Permalink
Merge branch 'eigenda-v2.1.0' of github.com:Layr-Labs/nitro-contracts…
Browse files Browse the repository at this point in the history
… into epociask--fix-EDAA-04
  • Loading branch information
epociask committed Oct 25, 2024
2 parents c313f6f + 637e477 commit 5ed286d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eigenda/nitro-contracts",
"version": "2.1.0-rc",
"version": "2.1.0-pr-1",
"description": "Layer 2 precompiles and rollup for Arbitrum Nitro x EigenDA",
"author": "Offchain Labs, Inc.",
"license": "BUSL-1.1",
Expand Down
10 changes: 5 additions & 5 deletions src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox

mapping(bytes32 => DasKeySetInfo) public dasKeySetInfo;

/// @inheritdoc ISequencerInbox
bytes1 public constant EIGENDA_MESSAGE_HEADER_FLAG = 0xed;

IRollupManager public eigenDARollupManager;

modifier onlyRollupOwner() {
if (msg.sender != rollup.owner()) revert NotOwner(msg.sender, rollup.owner());
_;
Expand Down Expand Up @@ -132,6 +127,11 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
// True if the chain this SequencerInbox is deployed on uses custom fee token
bool public immutable isUsingFeeToken;

/// @inheritdoc ISequencerInbox
bytes1 public constant EIGENDA_MESSAGE_HEADER_FLAG = 0xed;

IRollupManager public eigenDARollupManager;

constructor(
uint256 _maxDataSize,
IReader4844 reader4844_,
Expand Down
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 5ed286d

Please sign in to comment.