Skip to content

Commit

Permalink
Merging last two commits of the celestia-integration branch (#35)
Browse files Browse the repository at this point in the history
* add names (#33)

(cherry picked from commit 998a437)

* Add names to the deprecated functions to not break abi (#34)

* Add names to the deprecated functions to not break abi

* remove unwanted changes

(cherry picked from commit 418efec)
  • Loading branch information
Sneh1999 authored Dec 9, 2024
1 parent 100536b commit 35e3e4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
23 changes: 13 additions & 10 deletions src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
Deprecated because we created another `initialize` function that accepts the `EspressoTEEVerifier` contract
address as a parameter which is used by the `SequencerInbox` contract to verify the TEE attestation quote.
*/
function initialize(IBridge, ISequencerInbox.MaxTimeVariation calldata) external onlyDelegated {
function initialize(
IBridge bridge_,
ISequencerInbox.MaxTimeVariation calldata maxTimeVariation_
) external onlyDelegated {
revert Deprecated();
}

Expand Down Expand Up @@ -335,10 +338,10 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox

/// @dev Deprecated, kept for abi generation and will be removed in the future
function addSequencerL2BatchFromOrigin(
uint256,
bytes calldata,
uint256,
IGasRefunder
uint256 sequencerNumber,
bytes calldata data,
uint256 afterDelayedMessagesRead,
IGasRefunder gasRefunder
) external pure {
revert Deprecated();
}
Expand All @@ -348,12 +351,12 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
to verify that the batch is posted by the batch poster running in TEE.
*/
function addSequencerL2BatchFromOrigin(
uint256,
bytes calldata,
uint256,
uint256 sequenceNumber,
bytes calldata data,
uint256 afterDelayedMessagesRead,
IGasRefunder gasRefunder,
uint256,
uint256
uint256 prevMessageCount,
uint256 newMessageCount
) external refundsGas(gasRefunder, IReader4844(address(0))) {
revert Deprecated();
}
Expand Down
8 changes: 4 additions & 4 deletions src/rollup/BridgeCreator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ contract BridgeCreator is Ownable {
* been posted by a batch poster running in the TEE.
*/
function createBridge(
address,
address,
address,
ISequencerInbox.MaxTimeVariation calldata
address adminProxy,
address rollup,
address nativeToken,
ISequencerInbox.MaxTimeVariation calldata maxTimeVariation
) external returns (BridgeContracts memory) {
revert Deprecated();
}
Expand Down

0 comments on commit 35e3e4b

Please sign in to comment.