Skip to content

Commit

Permalink
🎨 foundry: sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed May 17, 2024
1 parent abdcc07 commit a899d77
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ isolate = true

[fmt]
tab_width = 2
sort_imports = true
bracket_spacing = true
number_underscore = "thousands"

Expand Down
6 changes: 3 additions & 3 deletions src/WebauthnModularAccountFactory.sol
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

import { Ownable2Step, Ownable } from "openzeppelin-contracts/contracts/access/Ownable2Step.sol";
import { Ownable, Ownable2Step } from "openzeppelin-contracts/contracts/access/Ownable2Step.sol";

import { FactoryHelpers } from "modular-account/src/helpers/FactoryHelpers.sol";
import { IEntryPoint } from "modular-account/src/interfaces/erc4337/IEntryPoint.sol";
import { IAccountInitializable } from "modular-account/src/interfaces/IAccountInitializable.sol";
import { IEntryPoint } from "modular-account/src/interfaces/erc4337/IEntryPoint.sol";

import { LibClone } from "solady/utils/LibClone.sol";
import { SafeTransferLib } from "solady/utils/SafeTransferLib.sol";

import { IMultiOwnerPlugin, IWebauthnOwnerPlugin, PublicKey } from "./IWebauthnOwnerPlugin.sol";
import { OwnersLib } from "./OwnersLib.sol";
import { IWebauthnOwnerPlugin, IMultiOwnerPlugin, PublicKey } from "./IWebauthnOwnerPlugin.sol";

/// @title Webauthn Owner Plugin Modular Account Factory
/// @author Exactly
Expand Down
8 changes: 4 additions & 4 deletions src/WebauthnOwnerPlugin.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.18;

import { UpgradeableModularAccount, UUPSUpgradeable } from "modular-account/src/account/UpgradeableModularAccount.sol";
import { UUPSUpgradeable, UpgradeableModularAccount } from "modular-account/src/account/UpgradeableModularAccount.sol";

import {
ManifestAssociatedFunction,
Expand All @@ -13,7 +13,7 @@ import {
} from "modular-account-libs/interfaces/IPlugin.sol";
import { IStandardExecutor } from "modular-account-libs/interfaces/IStandardExecutor.sol";
import { UserOperation } from "modular-account-libs/interfaces/UserOperation.sol";
import { SIG_VALIDATION_PASSED, SIG_VALIDATION_FAILED } from "modular-account-libs/libraries/Constants.sol";
import { SIG_VALIDATION_FAILED, SIG_VALIDATION_PASSED } from "modular-account-libs/libraries/Constants.sol";
import { BasePlugin } from "modular-account-libs/plugins/BasePlugin.sol";

import { IERC1271 } from "openzeppelin-contracts/contracts/interfaces/IERC1271.sol";
Expand All @@ -23,8 +23,8 @@ import { SignatureCheckerLib } from "solady/utils/SignatureCheckerLib.sol";

import { WebAuthn } from "webauthn-sol/WebAuthn.sol";

import { OwnersLib, Owners } from "./OwnersLib.sol";
import { IWebauthnOwnerPlugin, IMultiOwnerPlugin, PublicKey, SignatureWrapper } from "./IWebauthnOwnerPlugin.sol";
import { IMultiOwnerPlugin, IWebauthnOwnerPlugin, PublicKey, SignatureWrapper } from "./IWebauthnOwnerPlugin.sol";
import { Owners, OwnersLib } from "./OwnersLib.sol";

contract WebauthnOwnerPlugin is BasePlugin, IWebauthnOwnerPlugin, IERC1271 {
using SignatureCheckerLib for address;
Expand Down
4 changes: 2 additions & 2 deletions test/WebauthnModularAccountFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { UpgradeableModularAccount } from "modular-account/src/account/Upgradeab

import { ECDSA } from "solady/utils/ECDSA.sol";

import { OwnersLib } from "../src/OwnersLib.sol";
import { DeployScript } from "../script/Deploy.s.sol";
import { OwnersLib } from "../src/OwnersLib.sol";
import { WebauthnModularAccountFactory } from "../src/WebauthnModularAccountFactory.sol";
import { WebauthnOwnerPlugin, IWebauthnOwnerPlugin, IMultiOwnerPlugin, PublicKey } from "../src/WebauthnOwnerPlugin.sol";
import { IMultiOwnerPlugin, IWebauthnOwnerPlugin, PublicKey, WebauthnOwnerPlugin } from "../src/WebauthnOwnerPlugin.sol";

// solhint-disable func-name-mixedcase
contract WebauthnModularAccountFactoryTest is Test {
Expand Down
4 changes: 2 additions & 2 deletions test/WebauthnOwnerPlugin.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { UserOperation } from "modular-account-libs/interfaces/UserOperation.sol

import { ECDSA } from "solady/utils/ECDSA.sol";

import { WebAuthn } from "webauthn-sol/WebAuthn.sol";
import { Utils, WebAuthnInfo } from "webauthn-sol/../test/Utils.sol";
import { WebAuthn } from "webauthn-sol/WebAuthn.sol";

import { DeployScript } from "../script/Deploy.s.sol";
import { OwnersLib } from "../src/OwnersLib.sol";
import { WebauthnOwnerPlugin, IWebauthnOwnerPlugin, PublicKey, SignatureWrapper } from "../src/WebauthnOwnerPlugin.sol";
import { IWebauthnOwnerPlugin, PublicKey, SignatureWrapper, WebauthnOwnerPlugin } from "../src/WebauthnOwnerPlugin.sol";

import { TestLib } from "./utils/TestLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/WebauthnPluginIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { ECDSA } from "solady/utils/ECDSA.sol";
import { DeployScript } from "../script/Deploy.s.sol";
import { OwnersLib } from "../src/OwnersLib.sol";
import { WebauthnModularAccountFactory } from "../src/WebauthnModularAccountFactory.sol";
import { WebauthnOwnerPlugin, SignatureWrapper } from "../src/WebauthnOwnerPlugin.sol";
import { SignatureWrapper, WebauthnOwnerPlugin } from "../src/WebauthnOwnerPlugin.sol";

import { TestLib } from "./utils/TestLib.sol";

Expand Down

0 comments on commit a899d77

Please sign in to comment.