Skip to content

Commit

Permalink
feat: AvailDABridge for mock
Browse files Browse the repository at this point in the history
  • Loading branch information
RISHABHAGRAWALZRA committed Aug 23, 2024
1 parent fba33d4 commit c6b53d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/mocks/AvailDABridgeUnproxied.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2021-2022, Offchain Labs, Inc.
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.0;

import "../data-availability/AvailDABridge.sol";

contract AvailDABridgeUnproxied is AvailDABridge {
constructor() {}
}
3 changes: 3 additions & 0 deletions src/mocks/SequencerInboxStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ pragma solidity ^0.8.0;

import "../bridge/SequencerInbox.sol";
import "../bridge/IEthBridge.sol";
import "../data-availability/IDABridge.sol";
import {INITIALIZATION_MSG_TYPE} from "../libraries/MessageTypes.sol";

contract SequencerInboxStub is SequencerInbox {
constructor(
IBridge bridge_,
IDABridge daBridge_,
address sequencer_,
ISequencerInbox.MaxTimeVariation memory maxTimeVariation_,
uint256 maxDataSize_,
IReader4844 reader4844_,
bool isUsingFeeToken_
) SequencerInbox(maxDataSize_, reader4844_, isUsingFeeToken_) {
bridge = bridge_;
daBridge = daBridge_;
rollup = IOwnable(msg.sender);
delayBlocks = uint64(maxTimeVariation_.delayBlocks);
futureBlocks = uint64(maxTimeVariation_.futureBlocks);
Expand Down

0 comments on commit c6b53d3

Please sign in to comment.