From c22bbb12da286172740a6517306c65dd7f673ae8 Mon Sep 17 00:00:00 2001 From: highskore Date: Tue, 29 Jul 2025 18:44:21 +0200 Subject: [PATCH] feat: make factory vars public --- src/accounts/erc7579/ERC7579Factory.sol | 4 ++-- src/accounts/kernel/KernelFactory.sol | 4 ++-- src/accounts/nexus/NexusFactory.sol | 6 +++--- src/accounts/safe/SafeFactory.sol | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/accounts/erc7579/ERC7579Factory.sol b/src/accounts/erc7579/ERC7579Factory.sol index 21db05d3..073078d8 100644 --- a/src/accounts/erc7579/ERC7579Factory.sol +++ b/src/accounts/erc7579/ERC7579Factory.sol @@ -14,8 +14,8 @@ import { import { ERC7579Precompiles } from "../../deployment/precompiles/ERC7579Precompiles.sol"; contract ERC7579Factory is IAccountFactory, ERC7579Precompiles { - IERC7579Account internal implementation; - IERC7579Bootstrap internal bootstrapDefault; + IERC7579Account public implementation; + IERC7579Bootstrap public bootstrapDefault; function init() public override { implementation = deployERC7579Account(); diff --git a/src/accounts/kernel/KernelFactory.sol b/src/accounts/kernel/KernelFactory.sol index dfa65c87..3803ae9c 100644 --- a/src/accounts/kernel/KernelFactory.sol +++ b/src/accounts/kernel/KernelFactory.sol @@ -24,8 +24,8 @@ struct ModuleBootstrapConfig { } contract KernelFactory is IAccountFactory, KernelPrecompiles { - IKernelAccountFactory internal factory; - IKernel internal kernelImpl; + IKernelAccountFactory public factory; + IKernel public kernelImpl; MockHookMultiPlexer public hookMultiPlexer; function init() public override { diff --git a/src/accounts/nexus/NexusFactory.sol b/src/accounts/nexus/NexusFactory.sol index d9df9f57..14582c0d 100644 --- a/src/accounts/nexus/NexusFactory.sol +++ b/src/accounts/nexus/NexusFactory.sol @@ -19,9 +19,9 @@ import { REGISTRY_ADDR } from "../../deployment/predeploy/Registry.sol"; import { NexusPrecompiles } from "../../deployment/precompiles/NexusPrecompiles.sol"; contract NexusFactory is IAccountFactory, NexusPrecompiles { - INexusAccountFactory internal factory; - INexusBootstrap internal bootstrapDefault; - address internal nexusImpl; + INexusAccountFactory public factory; + INexusBootstrap public bootstrapDefault; + address public nexusImpl; function init() public override { // Deploy precompiled contracts diff --git a/src/accounts/safe/SafeFactory.sol b/src/accounts/safe/SafeFactory.sol index 0b9a0256..58f55965 100644 --- a/src/accounts/safe/SafeFactory.sol +++ b/src/accounts/safe/SafeFactory.sol @@ -20,10 +20,10 @@ import { Safe7579Precompiles } from "../../deployment/precompiles/Safe7579Precom contract SafeFactory is IAccountFactory, Safe7579Precompiles { // singletons - ISafe7579 internal safe7579; - ISafe7579Launchpad internal launchpad; - address internal safeSingleton; - ISafeProxyFactory internal safeProxyFactory; + ISafe7579 public safe7579; + ISafe7579Launchpad public launchpad; + address public safeSingleton; + ISafeProxyFactory public safeProxyFactory; function init() public override { safe7579 = deploySafe7579();