Skip to content

Commit 2cfb616

Browse files
authored
refactor: move AccountStorage under account/ (#25)
1 parent 0481d80 commit 2cfb616

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/account/AccountLoupe.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import {UUPSUpgradeable} from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeab
55
import {EnumerableMap} from "@openzeppelin/contracts/utils/structs/EnumerableMap.sol";
66
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
77

8-
import {IAccountLoupe} from "../interfaces/IAccountLoupe.sol";
9-
import {IPluginManager} from "../interfaces/IPluginManager.sol";
10-
import {IStandardExecutor} from "../interfaces/IStandardExecutor.sol";
118
import {
129
AccountStorage,
1310
getAccountStorage,
1411
getPermittedCallKey,
1512
HookGroup,
1613
toFunctionReferenceArray
17-
} from "../libraries/AccountStorage.sol";
14+
} from "./AccountStorage.sol";
15+
import {IAccountLoupe} from "../interfaces/IAccountLoupe.sol";
16+
import {IPluginManager} from "../interfaces/IPluginManager.sol";
17+
import {IStandardExecutor} from "../interfaces/IStandardExecutor.sol";
1818
import {FunctionReference} from "../libraries/FunctionReferenceLib.sol";
1919

2020
abstract contract AccountLoupe is IAccountLoupe {
File renamed without changes.

src/account/AccountStorageInitializable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity ^0.8.19;
33

44
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
55

6-
import {AccountStorage, getAccountStorage} from "../libraries/AccountStorage.sol";
6+
import {AccountStorage, getAccountStorage} from "./AccountStorage.sol";
77

88
abstract contract AccountStorageInitializable {
99
error AlreadyInitialized();

src/account/PluginManagerInternals.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
HookGroup,
1515
PermittedExternalCallData,
1616
StoredInjectedHook
17-
} from "../libraries/AccountStorage.sol";
17+
} from "./AccountStorage.sol";
1818
import {FunctionReference, FunctionReferenceLib} from "../libraries/FunctionReferenceLib.sol";
1919
import {IPluginManager} from "../interfaces/IPluginManager.sol";
2020
import {

src/account/UpgradeableModularAccount.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {UUPSUpgradeable} from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeab
1111

1212
import {AccountExecutor} from "./AccountExecutor.sol";
1313
import {AccountLoupe} from "./AccountLoupe.sol";
14-
import {AccountStorage, HookGroup, getAccountStorage, getPermittedCallKey} from "../libraries/AccountStorage.sol";
14+
import {AccountStorage, HookGroup, getAccountStorage, getPermittedCallKey} from "./AccountStorage.sol";
1515
import {AccountStorageInitializable} from "./AccountStorageInitializable.sol";
1616
import {FunctionReference, FunctionReferenceLib} from "../libraries/FunctionReferenceLib.sol";
1717
import {IPlugin, PluginManifest} from "../interfaces/IPlugin.sol";

test/libraries/AccountStorage.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pragma solidity ^0.8.19;
33

44
import {Test} from "forge-std/Test.sol";
5-
import {_ACCOUNT_STORAGE_SLOT, getPermittedCallKey} from "../../src/libraries/AccountStorage.sol";
5+
import {_ACCOUNT_STORAGE_SLOT, getPermittedCallKey} from "../../src/account/AccountStorage.sol";
66
import {AccountStorageInitializable} from "../../src/account/AccountStorageInitializable.sol";
77
import {MockDiamondStorageContract} from "../mocks/MockDiamondStorageContract.sol";
88
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";

0 commit comments

Comments
 (0)