-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(protocol): shorten imports in solidity files (#18221)
- Loading branch information
Showing
85 changed files
with
227 additions
and
238 deletions.
There are no files selected for viewing
29 changes: 12 additions & 17 deletions
29
packages/protocol/contracts/layer1/automata-attestation/AutomataDcapV3Attestation.sol
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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import { V3Struct } from "./lib/QuoteV3Auth/V3Struct.sol"; | ||
import { V3Parser } from "./lib/QuoteV3Auth/V3Parser.sol"; | ||
import { IPEMCertChainLib } from "./lib/interfaces/IPEMCertChainLib.sol"; | ||
import { PEMCertChainLib } from "./lib/PEMCertChainLib.sol"; | ||
import { TCBInfoStruct } from "./lib/TCBInfoStruct.sol"; | ||
import { EnclaveIdStruct } from "./lib/EnclaveIdStruct.sol"; | ||
import { IAttestation } from "./interfaces/IAttestation.sol"; | ||
|
||
// Internal Libraries | ||
import { Base64 } from "solady/src/utils/Base64.sol"; | ||
import { LibString } from "solady/src/utils/LibString.sol"; | ||
import { BytesUtils } from "./utils/BytesUtils.sol"; | ||
|
||
// External Libraries | ||
import { ISigVerifyLib } from "./interfaces/ISigVerifyLib.sol"; | ||
|
||
import { EssentialContract } from "../../shared/common/EssentialContract.sol"; | ||
import "solady/src/utils/Base64.sol"; | ||
import "solady/src/utils/LibString.sol"; | ||
import "src/shared/common/EssentialContract.sol"; | ||
import "./lib/QuoteV3Auth/V3Struct.sol"; | ||
import "./lib/QuoteV3Auth/V3Parser.sol"; | ||
import "./lib/interfaces/IPEMCertChainLib.sol"; | ||
import "./lib/PEMCertChainLib.sol"; | ||
import "./lib/TCBInfoStruct.sol"; | ||
import "./lib/EnclaveIdStruct.sol"; | ||
import "./interfaces/IAttestation.sol"; | ||
import "./utils/BytesUtils.sol"; | ||
import "./interfaces/ISigVerifyLib.sol"; | ||
|
||
/// @title AutomataDcapV3Attestation | ||
/// @custom:security-contact [email protected] | ||
|
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/automata-attestation/interfaces/IAttestation.sol
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import { V3Struct } from "../lib/QuoteV3Auth/V3Struct.sol"; | ||
import "../lib/QuoteV3Auth/V3Struct.sol"; | ||
|
||
/// @title IAttestation | ||
/// @custom:security-contact [email protected] | ||
|
10 changes: 5 additions & 5 deletions
10
packages/protocol/contracts/layer1/automata-attestation/lib/PEMCertChainLib.sol
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import { LibString } from "solady/src/utils/LibString.sol"; | ||
import { Asn1Decode, NodePtr } from "../utils/Asn1Decode.sol"; | ||
import { BytesUtils } from "../utils/BytesUtils.sol"; | ||
import { X509DateUtils } from "../utils/X509DateUtils.sol"; | ||
import { IPEMCertChainLib } from "./interfaces/IPEMCertChainLib.sol"; | ||
import "solady/src/utils/LibString.sol"; | ||
import "../utils/Asn1Decode.sol"; | ||
import "../utils/BytesUtils.sol"; | ||
import "../utils/X509DateUtils.sol"; | ||
import "./interfaces/IPEMCertChainLib.sol"; | ||
|
||
/// @title PEMCertChainLib | ||
/// @custom:security-contact [email protected] | ||
|
8 changes: 4 additions & 4 deletions
8
packages/protocol/contracts/layer1/automata-attestation/lib/QuoteV3Auth/V3Parser.sol
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
import { Base64 } from "solady/src/utils/Base64.sol"; | ||
import { BytesUtils } from "../../utils/BytesUtils.sol"; | ||
import { IPEMCertChainLib, PEMCertChainLib } from "../../lib/PEMCertChainLib.sol"; | ||
import { V3Struct } from "./V3Struct.sol"; | ||
import "solady/src/utils/Base64.sol"; | ||
import "../../utils/BytesUtils.sol"; | ||
import "../../lib/PEMCertChainLib.sol"; | ||
import "./V3Struct.sol"; | ||
|
||
/// @title V3Parser | ||
/// @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 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
4 changes: 2 additions & 2 deletions
4
packages/protocol/contracts/layer1/mainnet/addrcache/RollupAddressCache.sol
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
4 changes: 2 additions & 2 deletions
4
packages/protocol/contracts/layer1/mainnet/addrcache/SharedAddressCache.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetBridge.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetERC1155Vault.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetERC20Vault.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetERC721Vault.sol
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
4 changes: 2 additions & 2 deletions
4
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetSharedAddressManager.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/multirollup/MainnetSignalService.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/rollup/MainnetGuardianProver.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/rollup/MainnetProverSet.sol
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
4 changes: 2 additions & 2 deletions
4
packages/protocol/contracts/layer1/mainnet/rollup/MainnetRollupAddressManager.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/rollup/MainnetTaikoL1.sol
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
2 changes: 1 addition & 1 deletion
2
packages/protocol/contracts/layer1/mainnet/rollup/MainnetTierRouter.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetRisc0Verifier.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetSP1Verifier.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetSgxVerifier.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetTeeAnyVerifier.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetZkAndTeeVerifier.sol
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
6 changes: 3 additions & 3 deletions
6
packages/protocol/contracts/layer1/mainnet/rollup/verifiers/MainnetZkAnyVerifier.sol
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
Oops, something went wrong.