-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa37065
commit 83da0a4
Showing
10 changed files
with
164 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.13; | ||
|
||
/// @author Matter Labs | ||
interface IL1WethBridge { | ||
event DepositInitiated( | ||
bytes32 indexed l2DepositTxHash, | ||
address indexed from, | ||
address indexed to, | ||
address l1Token, | ||
uint256 amount | ||
); | ||
|
||
event WithdrawalFinalized(address indexed to, address indexed l1Token, uint256 amount); | ||
|
||
event ClaimedFailedDeposit(address indexed to, address indexed l1Token, uint256 amount); | ||
|
||
function isWithdrawalFinalized(uint256 _l2BlockNumber, uint256 _l2MessageIndex) external view returns (bool); | ||
|
||
function deposit( | ||
address _l2Receiver, | ||
address _l1Token, | ||
uint256 _amount, | ||
uint256 _l2TxGasLimit, | ||
uint256 _l2TxGasPerPubdataByte, | ||
address _refundRecipient | ||
) external payable returns (bytes32 txHash); | ||
|
||
function claimFailedDeposit( | ||
address _depositSender, | ||
address _l1Token, | ||
bytes32 _l2TxHash, | ||
uint256 _l2BlockNumber, | ||
uint256 _l2MessageIndex, | ||
uint16 _l2TxNumberInBlock, | ||
bytes32[] calldata _merkleProof | ||
) external; | ||
|
||
function finalizeWithdrawal( | ||
uint256 _l2BlockNumber, | ||
uint256 _l2MessageIndex, | ||
uint16 _l2TxNumberInBlock, | ||
bytes calldata _message, | ||
bytes32[] calldata _merkleProof | ||
) external; | ||
|
||
function l2TokenAddress(address _l1Token) external view returns (address); | ||
|
||
function l2Bridge() external view returns (address); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.