-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into staterecovery-part-13-blockhash-fixes
- Loading branch information
Showing
40 changed files
with
177 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule constraints
updated
from e23c58 to 92ec1b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ import { ERC20PermitUpgradeable } from "@openzeppelin/contracts-upgradeable/toke | |
|
||
/** | ||
* @title BridgedToken Contract | ||
* @notice ERC20 token created when a native token is bridged to a target chain. | ||
* @notice ERC-20 token created when a native token is bridged to a target chain. | ||
* @custom:security-contact [email protected] | ||
*/ | ||
contract BridgedToken is ERC20PermitUpgradeable { | ||
|
@@ -61,7 +61,7 @@ contract BridgedToken is ERC20PermitUpgradeable { | |
} | ||
|
||
/** | ||
* @dev Overrides ERC20 default function to support tokens with different decimals. | ||
* @dev Overrides ERC-20 default function to support tokens with different decimals. | ||
* @return The number of decimal. | ||
*/ | ||
function decimals() public view override returns (uint8) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ import { PermissionsManager } from "../../security/access/PermissionsManager.sol | |
import { EfficientLeftRightKeccak } from "../../libraries/EfficientLeftRightKeccak.sol"; | ||
/** | ||
* @title Linea Canonical Token Bridge | ||
* @notice Contract to manage cross-chain ERC20 bridging. | ||
* @notice Contract to manage cross-chain ERC-20 bridging. | ||
* @author ConsenSys Software Inc. | ||
* @custom:security-contact [email protected] | ||
*/ | ||
|
@@ -221,7 +221,7 @@ contract TokenBridge is | |
/** | ||
* @notice This function is the single entry point to bridge tokens to the | ||
* other chain, both for native and already bridged tokens. You can use it | ||
* to bridge any ERC20. If the token is bridged for the first time an ERC20 | ||
* to bridge any ERC-20. If the token is bridged for the first time an ERC-20 | ||
* (BridgedToken.sol) will be automatically deployed on the target chain. | ||
* @dev User should first allow the bridge to transfer tokens on his behalf. | ||
* Alternatively, you can use BridgeTokenWithPermit to do so in a single | ||
|
@@ -233,7 +233,7 @@ contract TokenBridge is | |
* Linea can pause the bridge for security reason. In this case new bridge | ||
* transaction would revert. | ||
* @dev Note: If, when bridging an unbridged token and decimals are unknown, | ||
* the call will revert to prevent mismatched decimals. Only those ERC20s, | ||
* the call will revert to prevent mismatched decimals. Only those ERC-20s, | ||
* with a decimals function are supported. | ||
* @param _token The address of the token to be bridged. | ||
* @param _amount The amount of the token to be bridged. | ||
|
@@ -291,7 +291,7 @@ contract TokenBridge is | |
|
||
/** | ||
* @notice Similar to `bridgeToken` function but allows to pass additional | ||
* permit data to do the ERC20 approval in a single transaction. | ||
* permit data to do the ERC-20 approval in a single transaction. | ||
* @notice _permit can fail silently, don't rely on this function passing as a form | ||
* of authentication | ||
* @dev There is no need for validation at this level as the validation on pausing, | ||
|
@@ -482,7 +482,7 @@ contract TokenBridge is | |
} | ||
|
||
/** | ||
* @dev Linea can set a custom ERC20 contract for specific ERC20. | ||
* @dev Linea can set a custom ERC-20 contract for specific ERC-20. | ||
* For security purpose, Linea can only call this function if the token has | ||
* not been bridged yet. | ||
* @dev SET_CUSTOM_CONTRACT_ROLE is required to execute. | ||
|
@@ -521,7 +521,7 @@ contract TokenBridge is | |
// https://github.com/traderjoe-xyz/joe-core/blob/main/contracts/MasterChefJoeV3.sol#L55-L95 | ||
|
||
/** | ||
* @dev Provides a safe ERC20.name version which returns 'NO_NAME' as fallback string. | ||
* @dev Provides a safe ERC-20.name version which returns 'NO_NAME' as fallback string. | ||
* @param _token The address of the ERC-20 token contract | ||
* @return tokenName Returns the string of the token name. | ||
*/ | ||
|
@@ -531,7 +531,7 @@ contract TokenBridge is | |
} | ||
|
||
/** | ||
* @dev Provides a safe ERC20.symbol version which returns 'NO_SYMBOL' as fallback string | ||
* @dev Provides a safe ERC-20.symbol version which returns 'NO_SYMBOL' as fallback string | ||
* @param _token The address of the ERC-20 token contract | ||
* @return symbol Returns the string of the symbol. | ||
*/ | ||
|
@@ -541,7 +541,7 @@ contract TokenBridge is | |
} | ||
|
||
/** | ||
* @notice Provides a safe ERC20.decimals version which reverts when decimals are unknown | ||
* @notice Provides a safe ERC-20.decimals version which reverts when decimals are unknown | ||
* Note Tokens with (decimals > 255) are not supported | ||
* @param _token The address of the ERC-20 token contract | ||
* @return Returns the token's decimals value. | ||
|
@@ -592,9 +592,9 @@ contract TokenBridge is | |
} | ||
|
||
/** | ||
* @notice Call the token permit method of extended ERC20 | ||
* @notice Call the token permit method of extended ERC-20 | ||
* @notice Only support tokens implementing ERC-2612 | ||
* @param _token ERC20 token address | ||
* @param _token ERC-20 token address | ||
* @param _permitData Raw data of the call `permit` of the token | ||
*/ | ||
function _permit(address _token, bytes calldata _permitData) internal { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol"; | ||
|
||
/** | ||
* @title ERC20 contract for Linea Surge XP (LXP-L) tokens. | ||
* @title ERC-20 contract for Linea Surge XP (LXP-L) tokens. | ||
* @author ConsenSys Software Inc. | ||
* @custom:security-contact [email protected] | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol"; | ||
|
||
/** | ||
* @title Soulbound ERC20 contract for Linea Voyage XP tokens. | ||
* @title Soulbound ERC-20 contract for Linea Voyage XP tokens. | ||
* @author ConsenSys Software Inc. | ||
* @custom:security-contact [email protected] | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.