Skip to content

Commit d749daa

Browse files
committed
change indent from 2 to 4
1 parent bc207b0 commit d749daa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+6686
-6561
lines changed

contracts/src/L1/IL1ScrollMessenger.sol

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5,62 +5,62 @@ pragma solidity ^0.8.0;
55
import { IScrollMessenger } from "../libraries/IScrollMessenger.sol";
66

77
interface IL1ScrollMessenger is IScrollMessenger {
8-
/***********
9-
* Structs *
10-
***********/
8+
/***********
9+
* Structs *
10+
***********/
1111

12-
struct L2MessageProof {
13-
uint256 batchIndex;
14-
bytes merkleProof;
15-
}
12+
struct L2MessageProof {
13+
uint256 batchIndex;
14+
bytes merkleProof;
15+
}
1616

17-
/****************************
18-
* Public Mutated Functions *
19-
****************************/
17+
/*****************************
18+
* Public Mutation Functions *
19+
*****************************/
2020

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;
3232

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;
4848

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;
6666
}

0 commit comments

Comments
 (0)