@@ -22,20 +22,20 @@ import "./GraphTokenGateway.sol";
22
22
contract L1GraphTokenGateway is Initializable , GraphTokenGateway , L1ArbitrumMessenger {
23
23
using SafeMath for uint256 ;
24
24
25
- // Address of the Graph Token contract on L2
25
+ /// Address of the Graph Token contract on L2
26
26
address public l2GRT;
27
- // Address of the Arbitrum Inbox
27
+ /// Address of the Arbitrum Inbox
28
28
address public inbox;
29
- // Address of the Arbitrum Gateway Router on L1
29
+ /// Address of the Arbitrum Gateway Router on L1
30
30
address public l1Router;
31
- // Address of the L2GraphTokenGateway on L2 that is the counterpart of this gateway
31
+ /// Address of the L2GraphTokenGateway on L2 that is the counterpart of this gateway
32
32
address public l2Counterpart;
33
- // Address of the BridgeEscrow contract that holds the GRT in the bridge
33
+ /// Address of the BridgeEscrow contract that holds the GRT in the bridge
34
34
address public escrow;
35
- // Addresses for which this mapping is true are allowed to send callhooks in outbound transfers
35
+ /// Addresses for which this mapping is true are allowed to send callhooks in outbound transfers
36
36
mapping (address => bool ) public callhookWhitelist;
37
37
38
- // Emitted when an outbound transfer is initiated, i.e. tokens are deposited from L1 to L2
38
+ /// Emitted when an outbound transfer is initiated, i.e. tokens are deposited from L1 to L2
39
39
event DepositInitiated (
40
40
address l1Token ,
41
41
address indexed from ,
@@ -44,7 +44,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
44
44
uint256 amount
45
45
);
46
46
47
- // Emitted when an incoming transfer is finalized, i.e tokens are withdrawn from L2 to L1
47
+ /// Emitted when an incoming transfer is finalized, i.e tokens are withdrawn from L2 to L1
48
48
event WithdrawalFinalized (
49
49
address l1Token ,
50
50
address indexed from ,
@@ -53,17 +53,17 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
53
53
uint256 amount
54
54
);
55
55
56
- // Emitted when the Arbitrum Inbox and Gateway Router addresses have been updated
56
+ /// Emitted when the Arbitrum Inbox and Gateway Router addresses have been updated
57
57
event ArbitrumAddressesSet (address inbox , address l1Router );
58
- // Emitted when the L2 GRT address has been updated
58
+ /// Emitted when the L2 GRT address has been updated
59
59
event L2TokenAddressSet (address l2GRT );
60
- // Emitted when the counterpart L2GraphTokenGateway address has been updated
60
+ /// Emitted when the counterpart L2GraphTokenGateway address has been updated
61
61
event L2CounterpartAddressSet (address l2Counterpart );
62
- // Emitted when the escrow address has been updated
62
+ /// Emitted when the escrow address has been updated
63
63
event EscrowAddressSet (address escrow );
64
- // Emitted when an address is added to the callhook whitelist
64
+ /// Emitted when an address is added to the callhook whitelist
65
65
event AddedToCallhookWhitelist (address newWhitelisted );
66
- // Emitted when an address is removed from the callhook whitelist
66
+ /// Emitted when an address is removed from the callhook whitelist
67
67
event RemovedFromCallhookWhitelist (address notWhitelisted );
68
68
69
69
/**
@@ -86,8 +86,8 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
86
86
}
87
87
88
88
/**
89
- * @dev Initialize this contract.
90
- * The contract will be paused.
89
+ * @notice Initialize the L1GraphTokenGateway contract.
90
+ * @dev The contract will be paused.
91
91
* Note some parameters have to be set separately as they are generally
92
92
* not expected to be available at initialization time:
93
93
* - inbox and l1Router using setArbitrumAddresses
@@ -104,7 +104,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
104
104
}
105
105
106
106
/**
107
- * @dev Sets the addresses for L1 contracts provided by Arbitrum
107
+ * @notice Sets the addresses for L1 contracts provided by Arbitrum
108
108
* @param _inbox Address of the Inbox that is part of the Arbitrum Bridge
109
109
* @param _l1Router Address of the Gateway Router
110
110
*/
@@ -119,7 +119,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
119
119
}
120
120
121
121
/**
122
- * @dev Sets the address of the L2 Graph Token
122
+ * @notice Sets the address of the L2 Graph Token
123
123
* @param _l2GRT Address of the GRT contract on L2
124
124
*/
125
125
function setL2TokenAddress (address _l2GRT ) external onlyGovernor {
@@ -129,7 +129,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
129
129
}
130
130
131
131
/**
132
- * @dev Sets the address of the counterpart gateway on L2
132
+ * @notice Sets the address of the counterpart gateway on L2
133
133
* @param _l2Counterpart Address of the corresponding L2GraphTokenGateway on Arbitrum
134
134
*/
135
135
function setL2CounterpartAddress (address _l2Counterpart ) external onlyGovernor {
@@ -139,7 +139,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
139
139
}
140
140
141
141
/**
142
- * @dev Sets the address of the escrow contract on L1
142
+ * @notice Sets the address of the escrow contract on L1
143
143
* @param _escrow Address of the BridgeEscrow
144
144
*/
145
145
function setEscrowAddress (address _escrow ) external onlyGovernor {
@@ -150,7 +150,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
150
150
}
151
151
152
152
/**
153
- * @dev Adds an address to the callhook whitelist.
153
+ * @notice Adds an address to the callhook whitelist.
154
154
* This address will be allowed to include callhooks when transferring tokens.
155
155
* @param _newWhitelisted Address to add to the whitelist
156
156
*/
@@ -163,7 +163,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
163
163
}
164
164
165
165
/**
166
- * @dev Removes an address from the callhook whitelist.
166
+ * @notice Removes an address from the callhook whitelist.
167
167
* This address will no longer be allowed to include callhooks when transferring tokens.
168
168
* @param _notWhitelisted Address to remove from the whitelist
169
169
*/
0 commit comments