@@ -33,7 +33,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
3333 /// Address of the BridgeEscrow contract that holds the GRT in the bridge
3434 address public escrow;
3535 /// Addresses for which this mapping is true are allowed to send callhooks in outbound transfers
36- mapping (address => bool ) public callhookWhitelist ;
36+ mapping (address => bool ) public callhookAllowlist ;
3737
3838 /// Emitted when an outbound transfer is initiated, i.e. tokens are deposited from L1 to L2
3939 event DepositInitiated (
@@ -61,10 +61,10 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
6161 event L2CounterpartAddressSet (address l2Counterpart );
6262 /// Emitted when the escrow address has been updated
6363 event EscrowAddressSet (address escrow );
64- /// Emitted when an address is added to the callhook whitelist
65- event AddedToCallhookWhitelist (address newWhitelisted );
66- /// Emitted when an address is removed from the callhook whitelist
67- event RemovedFromCallhookWhitelist (address notWhitelisted );
64+ /// Emitted when an address is added to the callhook allowlist
65+ event AddedToCallhookAllowlist (address newAllowlisted );
66+ /// Emitted when an address is removed from the callhook allowlist
67+ event RemovedFromCallhookAllowlist (address notAllowlisted );
6868
6969 /**
7070 * @dev Allows a function to be called only by the gateway's L2 counterpart.
@@ -94,7 +94,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
9494 * - l2GRT using setL2TokenAddress
9595 * - l2Counterpart using setL2CounterpartAddress
9696 * - escrow using setEscrowAddress
97- * - whitelisted callhook callers using addToCallhookWhitelist
97+ * - allowlisted callhook callers using addToCallhookAllowlist
9898 * - pauseGuardian using setPauseGuardian
9999 * @param _controller Address of the Controller that manages this contract
100100 */
@@ -150,28 +150,28 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
150150 }
151151
152152 /**
153- * @notice Adds an address to the callhook whitelist .
153+ * @notice Adds an address to the callhook allowlist .
154154 * This address will be allowed to include callhooks when transferring tokens.
155- * @param _newWhitelisted Address to add to the whitelist
155+ * @param _newAllowlisted Address to add to the allowlist
156156 */
157- function addToCallhookWhitelist (address _newWhitelisted ) external onlyGovernor {
158- require (_newWhitelisted != address (0 ), "INVALID_ADDRESS " );
159- require (Address.isContract (_newWhitelisted ), "MUST_BE_CONTRACT " );
160- require (! callhookWhitelist[_newWhitelisted ], "ALREADY_WHITELISTED " );
161- callhookWhitelist[_newWhitelisted ] = true ;
162- emit AddedToCallhookWhitelist (_newWhitelisted );
157+ function addToCallhookAllowlist (address _newAllowlisted ) external onlyGovernor {
158+ require (_newAllowlisted != address (0 ), "INVALID_ADDRESS " );
159+ require (Address.isContract (_newAllowlisted ), "MUST_BE_CONTRACT " );
160+ require (! callhookAllowlist[_newAllowlisted ], "ALREADY_ALLOWLISTED " );
161+ callhookAllowlist[_newAllowlisted ] = true ;
162+ emit AddedToCallhookAllowlist (_newAllowlisted );
163163 }
164164
165165 /**
166- * @notice Removes an address from the callhook whitelist .
166+ * @notice Removes an address from the callhook allowlist .
167167 * This address will no longer be allowed to include callhooks when transferring tokens.
168- * @param _notWhitelisted Address to remove from the whitelist
168+ * @param _notAllowlisted Address to remove from the allowlist
169169 */
170- function removeFromCallhookWhitelist (address _notWhitelisted ) external onlyGovernor {
171- require (_notWhitelisted != address (0 ), "INVALID_ADDRESS " );
172- require (callhookWhitelist[_notWhitelisted ], "NOT_WHITELISTED " );
173- callhookWhitelist[_notWhitelisted ] = false ;
174- emit RemovedFromCallhookWhitelist (_notWhitelisted );
170+ function removeFromCallhookAllowlist (address _notAllowlisted ) external onlyGovernor {
171+ require (_notAllowlisted != address (0 ), "INVALID_ADDRESS " );
172+ require (callhookAllowlist[_notAllowlisted ], "NOT_ALLOWLISTED " );
173+ callhookAllowlist[_notAllowlisted ] = false ;
174+ emit RemovedFromCallhookAllowlist (_notAllowlisted );
175175 }
176176
177177 /**
@@ -180,10 +180,10 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
180180 * The ticket must be redeemed on L2 to receive tokens at the specified address.
181181 * Note that the caller must previously allow the gateway to spend the specified amount of GRT.
182182 * @dev maxGas and gasPriceBid must be set using Arbitrum's NodeInterface.estimateRetryableTicket method.
183- * Also note that whitelisted senders (some protocol contracts) can include additional calldata
183+ * Also note that allowlisted senders (some protocol contracts) can include additional calldata
184184 * for a callhook to be executed on the L2 side when the tokens are received. In this case, the L2 transaction
185185 * can revert if the callhook reverts, potentially locking the tokens on the bridge if the callhook
186- * never succeeds. This requires extra care when adding contracts to the whitelist , but is necessary to ensure that
186+ * never succeeds. This requires extra care when adding contracts to the allowlist , but is necessary to ensure that
187187 * the tickets can be retried in the case of a temporary failure, and to ensure the atomicity of callhooks
188188 * with token transfers.
189189 * @param _l1Token L1 Address of the GRT contract (needed for compatibility with Arbitrum Gateway Router)
@@ -217,7 +217,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
217217 bytes memory extraData;
218218 (from, maxSubmissionCost, extraData) = parseOutboundData (_data);
219219 require (
220- extraData.length == 0 || callhookWhitelist [msg .sender ] == true ,
220+ extraData.length == 0 || callhookAllowlist [msg .sender ] == true ,
221221 "CALL_HOOK_DATA_NOT_ALLOWED "
222222 );
223223 require (maxSubmissionCost != 0 , "NO_SUBMISSION_COST " );
@@ -318,7 +318,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
318318 * @param _from Address on L1 from which we're transferring tokens
319319 * @param _to Address on L2 to which we're transferring tokens
320320 * @param _amount Amount of GRT to transfer
321- * @param _data Additional call data for the L2 transaction, which must be empty unless the caller is whitelisted
321+ * @param _data Additional call data for the L2 transaction, which must be empty unless the caller is allowlisted
322322 * @return Encoded calldata (including function selector) for the L2 transaction
323323 */
324324 function getOutboundCalldata (
0 commit comments