Skip to content

Commit ed34991

Browse files
authored
Merge pull request #295 from bcnmy/chore/rm-registry-support
Cleanup
2 parents 0031b70 + 1e594b8 commit ed34991

38 files changed

+293
-1829
lines changed

contracts/Nexus.sol

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { PackedUserOperation } from "account-abstraction/interfaces/PackedUserOp
1717
import { ExecLib } from "./lib/ExecLib.sol";
1818
import { INexus } from "./interfaces/INexus.sol";
1919
import { BaseAccount } from "./base/BaseAccount.sol";
20-
import { IERC7484 } from "./interfaces/IERC7484.sol";
2120
import { ModuleManager } from "./base/ModuleManager.sol";
2221
import { ExecutionHelper } from "./base/ExecutionHelper.sol";
2322
import { IValidator } from "./interfaces/modules/IValidator.sol";
@@ -167,7 +166,6 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
167166
payable
168167
onlyExecutorModule
169168
withHook
170-
withRegistry(msg.sender, MODULE_TYPE_EXECUTOR)
171169
returns (bytes[] memory returnData)
172170
{
173171
(CallType callType, ExecType execType) = mode.decodeBasic();
@@ -355,16 +353,6 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
355353
}
356354
}
357355

358-
/// @notice Sets the registry for the smart account.
359-
/// @param newRegistry The new registry to set.
360-
/// @param attesters The attesters to set.
361-
/// @param threshold The threshold to set.
362-
/// @dev This function can only be called by the EntryPoint or the account itself.
363-
function setRegistry(IERC7484 newRegistry, address[] calldata attesters, uint8 threshold) external payable {
364-
require(msg.sender == address(this), AccountAccessUnauthorized());
365-
_configureRegistry(newRegistry, attesters, threshold);
366-
}
367-
368356
/// @notice Validates a signature according to ERC-1271 standards.
369357
/// @param hash The hash of the data being validated.
370358
/// @param signature Signature data that needs to be validated.

contracts/base/ModuleManager.sol

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import {
3939
import { EIP712 } from "solady/utils/EIP712.sol";
4040
import { ExcessivelySafeCall } from "excessively-safe-call/ExcessivelySafeCall.sol";
4141
import { PackedUserOperation } from "account-abstraction/interfaces/PackedUserOperation.sol";
42-
import { RegistryAdapter } from "./RegistryAdapter.sol";
4342
import { EmergencyUninstall } from "../types/DataTypes.sol";
4443
import { ECDSA } from "solady/utils/ECDSA.sol";
4544

@@ -51,7 +50,7 @@ import { ECDSA } from "solady/utils/ECDSA.sol";
5150
/// @author @filmakarov | Biconomy | [email protected]
5251
/// @author @zeroknots | Rhinestone.wtf | zeroknots.eth
5352
/// Special thanks to the Solady team for foundational contributions: https://github.com/Vectorized/solady
54-
abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdapter {
53+
abstract contract ModuleManager is Storage, EIP712, IModuleManager {
5554
using SentinelListLib for SentinelListLib.SentinelList;
5655
using LocalCallDataParserLib for bytes;
5756
using ExecLib for address;
@@ -220,7 +219,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
220219
internal
221220
virtual
222221
withHook
223-
withRegistry(validator, MODULE_TYPE_VALIDATOR)
224222
{
225223
if (!IValidator(validator).isModuleType(MODULE_TYPE_VALIDATOR)) revert MismatchModuleTypeId();
226224
if (validator == _DEFAULT_VALIDATOR) {
@@ -254,7 +252,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
254252
internal
255253
virtual
256254
withHook
257-
withRegistry(executor, MODULE_TYPE_EXECUTOR)
258255
{
259256
if (!IExecutor(executor).isModuleType(MODULE_TYPE_EXECUTOR)) revert MismatchModuleTypeId();
260257
_getAccountStorage().executors.push(executor);
@@ -280,7 +277,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
280277
internal
281278
virtual
282279
withHook
283-
withRegistry(hook, MODULE_TYPE_HOOK)
284280
{
285281
if (!IHook(hook).isModuleType(MODULE_TYPE_HOOK)) revert MismatchModuleTypeId();
286282
address currentHook = _getHook();
@@ -318,7 +314,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
318314
internal
319315
virtual
320316
withHook
321-
withRegistry(handler, MODULE_TYPE_FALLBACK)
322317
{
323318
if (!IFallback(handler).isModuleType(MODULE_TYPE_FALLBACK)) revert MismatchModuleTypeId();
324319
// Extract the function selector from the provided parameters.
@@ -373,7 +368,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
373368
internal
374369
virtual
375370
withHook
376-
withRegistry(preValidationHook, preValidationHookType)
377371
{
378372
if (!IModule(preValidationHook).isModuleType(preValidationHookType)) revert MismatchModuleTypeId();
379373
address currentPreValidationHook = _getPreValidationHook(preValidationHookType);

contracts/base/RegistryAdapter.sol

Lines changed: 0 additions & 53 deletions
This file was deleted.

contracts/factory/BiconomyMetaFactory.sol

Lines changed: 0 additions & 89 deletions
This file was deleted.

contracts/factory/K1ValidatorFactory.sol

Lines changed: 0 additions & 135 deletions
This file was deleted.

0 commit comments

Comments
 (0)