-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e0734b
commit df43911
Showing
13 changed files
with
70 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,24 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | ||
|
||
import "./interfaces/IL1BridgeLegacy.sol"; | ||
import "./interfaces/IL1Bridge.sol"; | ||
import "./interfaces/IL2Bridge.sol"; | ||
import "./interfaces/IL2ERC20Bridge.sol"; | ||
|
||
import "./libraries/BridgeInitializationHelper.sol"; | ||
|
||
import "../zksync/interfaces/IZkSync.sol"; | ||
import "../common/libraries/UnsafeBytes.sol"; | ||
import "../common/libraries/L2ContractHelper.sol"; | ||
import "../common/ReentrancyGuard.sol"; | ||
import "../vendor/AddressAliasHelper.sol"; | ||
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; | ||
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | ||
|
||
import {IL1BridgeLegacy} from "./interfaces/IL1BridgeLegacy.sol"; | ||
import {IL1Bridge} from "./interfaces/IL1Bridge.sol"; | ||
import {IL2Bridge} from "./interfaces/IL2Bridge.sol"; | ||
import {IL2ERC20Bridge} from "./interfaces/IL2ERC20Bridge.sol"; | ||
|
||
import {BridgeInitializationHelper} from "./libraries/BridgeInitializationHelper.sol"; | ||
|
||
import {IZkSync} from "../zksync/interfaces/IZkSync.sol"; | ||
import {TxStatus} from "../zksync/interfaces/IMailbox.sol"; | ||
import {L2Message} from "../zksync/Storage.sol"; | ||
import {UnsafeBytes} from "../common/libraries/UnsafeBytes.sol"; | ||
import {L2ContractHelper} from "../common/libraries/L2ContractHelper.sol"; | ||
import {ReentrancyGuard} from "../common/ReentrancyGuard.sol"; | ||
import {AddressAliasHelper} from "../vendor/AddressAliasHelper.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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 |
---|---|---|
|
@@ -2,21 +2,25 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | ||
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | ||
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
import "./interfaces/IL1Bridge.sol"; | ||
import "./interfaces/IL2WethBridge.sol"; | ||
import "./interfaces/IL2Bridge.sol"; | ||
import "./interfaces/IWETH9.sol"; | ||
import "../zksync/interfaces/IZkSync.sol"; | ||
import {IL1Bridge} from "./interfaces/IL1Bridge.sol"; | ||
import {IL2WethBridge} from "./interfaces/IL2WethBridge.sol"; | ||
import {IL2Bridge} from "./interfaces/IL2Bridge.sol"; | ||
import {IWETH9} from "./interfaces/IWETH9.sol"; | ||
import {IZkSync} from "../zksync/interfaces/IZkSync.sol"; | ||
|
||
import "./libraries/BridgeInitializationHelper.sol"; | ||
import {BridgeInitializationHelper} from "./libraries/BridgeInitializationHelper.sol"; | ||
|
||
import "../common/libraries/UnsafeBytes.sol"; | ||
import "../common/ReentrancyGuard.sol"; | ||
import "../common/libraries/L2ContractHelper.sol"; | ||
import {IMailbox} from "../zksync/interfaces/IMailbox.sol"; | ||
import {L2Message} from "../zksync/Storage.sol"; | ||
|
||
import {UnsafeBytes} from "../common/libraries/UnsafeBytes.sol"; | ||
import {ReentrancyGuard} from "../common/ReentrancyGuard.sol"; | ||
import {L2ContractHelper} from "../common/libraries/L2ContractHelper.sol"; | ||
import {L2_ETH_TOKEN_SYSTEM_CONTRACT_ADDR} from "../common/L2ContractAddresses.sol"; | ||
import "../vendor/AddressAliasHelper.sol"; | ||
import {AddressAliasHelper} from "../vendor/AddressAliasHelper.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "../zksync/libraries/Diamond.sol"; | ||
import "./BaseZkSyncUpgrade.sol"; | ||
import {Diamond} from "../zksync/libraries/Diamond.sol"; | ||
import {BaseZkSyncUpgrade} from "./BaseZkSyncUpgrade.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts/access/Ownable2Step.sol"; | ||
import "./libraries/LibMap.sol"; | ||
import "./interfaces/IExecutor.sol"; | ||
import {Ownable2Step} from "@openzeppelin/contracts/access/Ownable2Step.sol"; | ||
import {LibMap} from "./libraries/LibMap.sol"; | ||
import {IExecutor} from "./interfaces/IExecutor.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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 |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts/utils/math/SafeCast.sol"; | ||
import "../../common/libraries/UncheckedMath.sol"; | ||
import {SafeCast} from "@openzeppelin/contracts/utils/math/SafeCast.sol"; | ||
import {UncheckedMath} from "../../common/libraries/UncheckedMath.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "../../common/libraries/UncheckedMath.sol"; | ||
import {UncheckedMath} from "../../common/libraries/UncheckedMath.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; | ||
import "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; | ||
import "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; | ||
import {ERC20PermitUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; | ||
import {UpgradeableBeacon} from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol"; | ||
import {ERC1967Upgrade} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol"; | ||
|
||
import "./interfaces/IL2StandardToken.sol"; | ||
import {IL2StandardToken} from "./interfaces/IL2StandardToken.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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 |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; | ||
import {ERC20PermitUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol"; | ||
|
||
import "./interfaces/IL2Weth.sol"; | ||
import "./interfaces/IL2StandardToken.sol"; | ||
import {IL2Weth} from "./interfaces/IL2Weth.sol"; | ||
import {IL2StandardToken} from "./interfaces/IL2StandardToken.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @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 |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
pragma solidity 0.8.20; | ||
|
||
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
|
||
import "./interfaces/IL2Bridge.sol"; | ||
import "./interfaces/IL2Weth.sol"; | ||
import "./interfaces/IL2StandardToken.sol"; | ||
import {IL2Bridge} from "./interfaces/IL2Bridge.sol"; | ||
import {IL2Weth} from "./interfaces/IL2Weth.sol"; | ||
import {IL2StandardToken} from "./interfaces/IL2StandardToken.sol"; | ||
|
||
import {L2_ETH_ADDRESS} from "../L2ContractHelper.sol"; | ||
import "../vendor/AddressAliasHelper.sol"; | ||
import {AddressAliasHelper} from "../vendor/AddressAliasHelper.sol"; | ||
|
||
/// @author Matter Labs | ||
/// @custom:security-contact [email protected] | ||
|