-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathIL2Bridge.sol
40 lines (32 loc) · 965 Bytes
/
IL2Bridge.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.0;
/// @author Matter Labs
interface IL2Bridge {
event FinalizeDeposit(
address indexed l1Sender,
address indexed l2Receiver,
address indexed l2Token,
uint256 amount
);
event WithdrawalInitiated(
address indexed l2Sender,
address indexed l1Receiver,
address indexed l2Token,
uint256 amount
);
function finalizeDeposit(
address _l1Sender,
address _l2Receiver,
address _l1Token,
uint256 _amount,
bytes calldata _data
) external;
function withdraw(
address _l1Receiver,
address _l2Token,
uint256 _amount
) external;
function l1TokenAddress(address _l2Token) external view returns (address);
function l2TokenAddress(address _l1Token) external view returns (address);
function l1Bridge() external view returns (address);
}