@@ -22,20 +22,20 @@ import "./GraphTokenGateway.sol";
2222contract L1GraphTokenGateway is Initializable , GraphTokenGateway , L1ArbitrumMessenger {
2323 using SafeMath for uint256 ;
2424
25- // Address of the Graph Token contract on L2
25+ /// Address of the Graph Token contract on L2
2626 address public l2GRT;
27- // Address of the Arbitrum Inbox
27+ /// Address of the Arbitrum Inbox
2828 address public inbox;
29- // Address of the Arbitrum Gateway Router on L1
29+ /// Address of the Arbitrum Gateway Router on L1
3030 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
3232 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
3434 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
3636 mapping (address => bool ) public callhookWhitelist;
3737
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
3939 event DepositInitiated (
4040 address l1Token ,
4141 address indexed from ,
@@ -44,7 +44,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
4444 uint256 amount
4545 );
4646
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
4848 event WithdrawalFinalized (
4949 address l1Token ,
5050 address indexed from ,
@@ -53,17 +53,17 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
5353 uint256 amount
5454 );
5555
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
5757 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
5959 event L2TokenAddressSet (address l2GRT );
60- // Emitted when the counterpart L2GraphTokenGateway address has been updated
60+ /// Emitted when the counterpart L2GraphTokenGateway address has been updated
6161 event L2CounterpartAddressSet (address l2Counterpart );
62- // Emitted when the escrow address has been updated
62+ /// Emitted when the escrow address has been updated
6363 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
6565 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
6767 event RemovedFromCallhookWhitelist (address notWhitelisted );
6868
6969 /**
@@ -86,8 +86,8 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
8686 }
8787
8888 /**
89- * @dev Initialize this contract.
90- * The contract will be paused.
89+ * @notice Initialize the L1GraphTokenGateway contract.
90+ * @dev The contract will be paused.
9191 * Note some parameters have to be set separately as they are generally
9292 * not expected to be available at initialization time:
9393 * - inbox and l1Router using setArbitrumAddresses
@@ -104,7 +104,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
104104 }
105105
106106 /**
107- * @dev Sets the addresses for L1 contracts provided by Arbitrum
107+ * @notice Sets the addresses for L1 contracts provided by Arbitrum
108108 * @param _inbox Address of the Inbox that is part of the Arbitrum Bridge
109109 * @param _l1Router Address of the Gateway Router
110110 */
@@ -119,7 +119,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
119119 }
120120
121121 /**
122- * @dev Sets the address of the L2 Graph Token
122+ * @notice Sets the address of the L2 Graph Token
123123 * @param _l2GRT Address of the GRT contract on L2
124124 */
125125 function setL2TokenAddress (address _l2GRT ) external onlyGovernor {
@@ -129,7 +129,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
129129 }
130130
131131 /**
132- * @dev Sets the address of the counterpart gateway on L2
132+ * @notice Sets the address of the counterpart gateway on L2
133133 * @param _l2Counterpart Address of the corresponding L2GraphTokenGateway on Arbitrum
134134 */
135135 function setL2CounterpartAddress (address _l2Counterpart ) external onlyGovernor {
@@ -139,7 +139,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
139139 }
140140
141141 /**
142- * @dev Sets the address of the escrow contract on L1
142+ * @notice Sets the address of the escrow contract on L1
143143 * @param _escrow Address of the BridgeEscrow
144144 */
145145 function setEscrowAddress (address _escrow ) external onlyGovernor {
@@ -150,7 +150,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
150150 }
151151
152152 /**
153- * @dev Adds an address to the callhook whitelist.
153+ * @notice Adds an address to the callhook whitelist.
154154 * This address will be allowed to include callhooks when transferring tokens.
155155 * @param _newWhitelisted Address to add to the whitelist
156156 */
@@ -163,7 +163,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
163163 }
164164
165165 /**
166- * @dev Removes an address from the callhook whitelist.
166+ * @notice Removes an address from the callhook whitelist.
167167 * This address will no longer be allowed to include callhooks when transferring tokens.
168168 * @param _notWhitelisted Address to remove from the whitelist
169169 */
0 commit comments