@@ -5,62 +5,62 @@ pragma solidity ^0.8.0;
5
5
import { IScrollMessenger } from "../libraries/IScrollMessenger.sol " ;
6
6
7
7
interface IL1ScrollMessenger is IScrollMessenger {
8
- /***********
9
- * Structs *
10
- ***********/
8
+ /***********
9
+ * Structs *
10
+ ***********/
11
11
12
- struct L2MessageProof {
13
- uint256 batchIndex;
14
- bytes merkleProof;
15
- }
12
+ struct L2MessageProof {
13
+ uint256 batchIndex;
14
+ bytes merkleProof;
15
+ }
16
16
17
- / ****************************
18
- * Public Mutated Functions *
19
- ****************************/
17
+ /* ****************************
18
+ * Public Mutation Functions *
19
+ * ****************************/
20
20
21
- /// @notice Send cross chain message from L1 to L2.
22
- /// @param target The address of account who recieve the message.
23
- /// @param value The amount of ether passed when call target contract.
24
- /// @param message The content of the message.
25
- /// @param gasLimit Gas limit required to complete the message relay on L2.
26
- function sendMessage (
27
- address target ,
28
- uint256 value ,
29
- bytes calldata message ,
30
- uint256 gasLimit
31
- ) external payable ;
21
+ /// @notice Send cross chain message from L1 to L2.
22
+ /// @param target The address of account who recieve the message.
23
+ /// @param value The amount of ether passed when call target contract.
24
+ /// @param message The content of the message.
25
+ /// @param gasLimit Gas limit required to complete the message relay on L2.
26
+ function sendMessage (
27
+ address target ,
28
+ uint256 value ,
29
+ bytes calldata message ,
30
+ uint256 gasLimit
31
+ ) external payable ;
32
32
33
- /// @notice Relay a L2 => L1 message with message proof.
34
- /// @param from The address of the sender of the message.
35
- /// @param to The address of the recipient of the message.
36
- /// @param value The msg.value passed to the message call.
37
- /// @param nonce The nonce of the message to avoid replay attack.
38
- /// @param message The content of the message.
39
- /// @param proof The proof used to verify the correctness of the transaction.
40
- function relayMessageWithProof (
41
- address from ,
42
- address to ,
43
- uint256 value ,
44
- uint256 nonce ,
45
- bytes memory message ,
46
- L2MessageProof memory proof
47
- ) external ;
33
+ /// @notice Relay a L2 => L1 message with message proof.
34
+ /// @param from The address of the sender of the message.
35
+ /// @param to The address of the recipient of the message.
36
+ /// @param value The msg.value passed to the message call.
37
+ /// @param nonce The nonce of the message to avoid replay attack.
38
+ /// @param message The content of the message.
39
+ /// @param proof The proof used to verify the correctness of the transaction.
40
+ function relayMessageWithProof (
41
+ address from ,
42
+ address to ,
43
+ uint256 value ,
44
+ uint256 nonce ,
45
+ bytes memory message ,
46
+ L2MessageProof memory proof
47
+ ) external ;
48
48
49
- /// @notice Replay an exsisting message.
50
- /// @param from The address of the sender of the message.
51
- /// @param to The address of the recipient of the message.
52
- /// @param value The msg.value passed to the message call.
53
- /// @param message The content of the message.
54
- /// @param queueIndex The queue index for the message to replay.
55
- /// @param oldGasLimit Original gas limit used to send the message.
56
- /// @param newGasLimit New gas limit to be used for this message.
57
- function replayMessage (
58
- address from ,
59
- address to ,
60
- uint256 value ,
61
- bytes memory message ,
62
- uint256 queueIndex ,
63
- uint32 oldGasLimit ,
64
- uint32 newGasLimit
65
- ) external ;
49
+ /// @notice Replay an exsisting message.
50
+ /// @param from The address of the sender of the message.
51
+ /// @param to The address of the recipient of the message.
52
+ /// @param value The msg.value passed to the message call.
53
+ /// @param message The content of the message.
54
+ /// @param queueIndex The queue index for the message to replay.
55
+ /// @param oldGasLimit Original gas limit used to send the message.
56
+ /// @param newGasLimit New gas limit to be used for this message.
57
+ function replayMessage (
58
+ address from ,
59
+ address to ,
60
+ uint256 value ,
61
+ bytes memory message ,
62
+ uint256 queueIndex ,
63
+ uint32 oldGasLimit ,
64
+ uint32 newGasLimit
65
+ ) external ;
66
66
}
0 commit comments