File tree Expand file tree Collapse file tree 6 files changed +44
-44
lines changed Expand file tree Collapse file tree 6 files changed +44
-44
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ Emitted when the address of default ERC20 Gateway is updated.
486
486
487
487
| Name | Type | Description |
488
488
| ---| ---| ---|
489
- | defaultERC20Gateway ` indexed ` | address | The address of new default ERC20 Gateway. |
489
+ | defaultERC20Gateway ` indexed ` | address | undefined |
490
490
491
491
### SetERC20Gateway
492
492
@@ -502,8 +502,8 @@ Emitted when the `gateway` for `token` is updated.
502
502
503
503
| Name | Type | Description |
504
504
| ---| ---| ---|
505
- | token ` indexed ` | address | The address of token updated. |
506
- | gateway ` indexed ` | address | The corresponding address of gateway updated. |
505
+ | token ` indexed ` | address | undefined |
506
+ | gateway ` indexed ` | address | undefined |
507
507
508
508
### SetETHGateway
509
509
@@ -519,7 +519,7 @@ Emitted when the address of ETH Gateway is updated.
519
519
520
520
| Name | Type | Description |
521
521
| ---| ---| ---|
522
- | ethGateway ` indexed ` | address | The address of new ETH Gateway. |
522
+ | ethGateway ` indexed ` | address | undefined |
523
523
524
524
525
525
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ Emitted when the address of default ERC20 Gateway is updated.
468
468
469
469
| Name | Type | Description |
470
470
| ---| ---| ---|
471
- | defaultERC20Gateway ` indexed ` | address | The address of new default ERC20 Gateway. |
471
+ | defaultERC20Gateway ` indexed ` | address | undefined |
472
472
473
473
### SetERC20Gateway
474
474
@@ -484,8 +484,8 @@ Emitted when the `gateway` for `token` is updated.
484
484
485
485
| Name | Type | Description |
486
486
| ---| ---| ---|
487
- | token ` indexed ` | address | The address of token updated. |
488
- | gateway ` indexed ` | address | The corresponding address of gateway updated. |
487
+ | token ` indexed ` | address | undefined |
488
+ | gateway ` indexed ` | address | undefined |
489
489
490
490
### SetETHGateway
491
491
@@ -501,7 +501,7 @@ Emitted when the address of ETH Gateway is updated.
501
501
502
502
| Name | Type | Description |
503
503
| ---| ---| ---|
504
- | ethGateway ` indexed ` | address | The address of new ETH Gateway. |
504
+ | ethGateway ` indexed ` | address | undefined |
505
505
506
506
### WithdrawERC20
507
507
Original file line number Diff line number Diff line change @@ -5,4 +5,21 @@ pragma solidity ^0.8.0;
5
5
import { IL1ETHGateway } from "./IL1ETHGateway.sol " ;
6
6
import { IL1ERC20Gateway } from "./IL1ERC20Gateway.sol " ;
7
7
8
- interface IL1GatewayRouter is IL1ETHGateway , IL1ERC20Gateway {}
8
+ interface IL1GatewayRouter is IL1ETHGateway , IL1ERC20Gateway {
9
+ /**********
10
+ * Events *
11
+ **********/
12
+
13
+ /// @notice Emitted when the address of ETH Gateway is updated.
14
+ /// @param ethGateway The address of new ETH Gateway.
15
+ event SetETHGateway (address indexed ethGateway );
16
+
17
+ /// @notice Emitted when the address of default ERC20 Gateway is updated.
18
+ /// @param defaultERC20Gateway The address of new default ERC20 Gateway.
19
+ event SetDefaultERC20Gateway (address indexed defaultERC20Gateway );
20
+
21
+ /// @notice Emitted when the `gateway` for `token` is updated.
22
+ /// @param token The address of token updated.
23
+ /// @param gateway The corresponding address of gateway updated.
24
+ event SetERC20Gateway (address indexed token , address indexed gateway );
25
+ }
Original file line number Diff line number Diff line change @@ -17,23 +17,6 @@ import { IL1GatewayRouter } from "./IL1GatewayRouter.sol";
17
17
/// @dev One can also use this contract to query L1/L2 token address mapping.
18
18
/// In the future, ERC-721 and ERC-1155 tokens will be added to the router too.
19
19
contract L1GatewayRouter is OwnableUpgradeable , IL1GatewayRouter {
20
- /**********
21
- * Events *
22
- **********/
23
-
24
- /// @notice Emitted when the address of ETH Gateway is updated.
25
- /// @param ethGateway The address of new ETH Gateway.
26
- event SetETHGateway (address indexed ethGateway );
27
-
28
- /// @notice Emitted when the address of default ERC20 Gateway is updated.
29
- /// @param defaultERC20Gateway The address of new default ERC20 Gateway.
30
- event SetDefaultERC20Gateway (address indexed defaultERC20Gateway );
31
-
32
- /// @notice Emitted when the `gateway` for `token` is updated.
33
- /// @param token The address of token updated.
34
- /// @param gateway The corresponding address of gateway updated.
35
- event SetERC20Gateway (address indexed token , address indexed gateway );
36
-
37
20
/*************
38
21
* Variables *
39
22
*************/
Original file line number Diff line number Diff line change @@ -5,4 +5,21 @@ pragma solidity ^0.8.0;
5
5
import { IL2ETHGateway } from "./IL2ETHGateway.sol " ;
6
6
import { IL2ERC20Gateway } from "./IL2ERC20Gateway.sol " ;
7
7
8
- interface IL2GatewayRouter is IL2ETHGateway , IL2ERC20Gateway {}
8
+ interface IL2GatewayRouter is IL2ETHGateway , IL2ERC20Gateway {
9
+ /**********
10
+ * Events *
11
+ **********/
12
+
13
+ /// @notice Emitted when the address of ETH Gateway is updated.
14
+ /// @param ethGateway The address of new ETH Gateway.
15
+ event SetETHGateway (address indexed ethGateway );
16
+
17
+ /// @notice Emitted when the address of default ERC20 Gateway is updated.
18
+ /// @param defaultERC20Gateway The address of new default ERC20 Gateway.
19
+ event SetDefaultERC20Gateway (address indexed defaultERC20Gateway );
20
+
21
+ /// @notice Emitted when the `gateway` for `token` is updated.
22
+ /// @param token The address of token updated.
23
+ /// @param gateway The corresponding address of gateway updated.
24
+ event SetERC20Gateway (address indexed token , address indexed gateway );
25
+ }
Original file line number Diff line number Diff line change @@ -18,23 +18,6 @@ import { IScrollStandardERC20 } from "../../libraries/token/IScrollStandardERC20
18
18
/// @dev One can also use this contract to query L1/L2 token address mapping.
19
19
/// In the future, ERC-721 and ERC-1155 tokens will be added to the router too.
20
20
contract L2GatewayRouter is OwnableUpgradeable , IL2GatewayRouter {
21
- /**********
22
- * Events *
23
- **********/
24
-
25
- /// @notice Emitted when the address of ETH Gateway is updated.
26
- /// @param ethGateway The address of new ETH Gateway.
27
- event SetETHGateway (address indexed ethGateway );
28
-
29
- /// @notice Emitted when the address of default ERC20 Gateway is updated.
30
- /// @param defaultERC20Gateway The address of new default ERC20 Gateway.
31
- event SetDefaultERC20Gateway (address indexed defaultERC20Gateway );
32
-
33
- /// @notice Emitted when the `gateway` for `token` is updated.
34
- /// @param token The address of token updated.
35
- /// @param gateway The corresponding address of gateway updated.
36
- event SetERC20Gateway (address indexed token , address indexed gateway );
37
-
38
21
/*************
39
22
* Variables *
40
23
*************/
You can’t perform that action at this time.
0 commit comments