Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions contracts/Nexus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { PackedUserOperation } from "account-abstraction/interfaces/PackedUserOp
import { ExecLib } from "./lib/ExecLib.sol";
import { INexus } from "./interfaces/INexus.sol";
import { BaseAccount } from "./base/BaseAccount.sol";
import { IERC7484 } from "./interfaces/IERC7484.sol";
import { ModuleManager } from "./base/ModuleManager.sol";
import { ExecutionHelper } from "./base/ExecutionHelper.sol";
import { IValidator } from "./interfaces/modules/IValidator.sol";
Expand Down Expand Up @@ -167,7 +166,6 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
payable
onlyExecutorModule
withHook
withRegistry(msg.sender, MODULE_TYPE_EXECUTOR)
returns (bytes[] memory returnData)
{
(CallType callType, ExecType execType) = mode.decodeBasic();
Expand Down Expand Up @@ -355,16 +353,6 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
}
}

/// @notice Sets the registry for the smart account.
/// @param newRegistry The new registry to set.
/// @param attesters The attesters to set.
/// @param threshold The threshold to set.
/// @dev This function can only be called by the EntryPoint or the account itself.
function setRegistry(IERC7484 newRegistry, address[] calldata attesters, uint8 threshold) external payable {
require(msg.sender == address(this), AccountAccessUnauthorized());
_configureRegistry(newRegistry, attesters, threshold);
}

/// @notice Validates a signature according to ERC-1271 standards.
/// @param hash The hash of the data being validated.
/// @param signature Signature data that needs to be validated.
Expand Down
8 changes: 1 addition & 7 deletions contracts/base/ModuleManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import {
import { EIP712 } from "solady/utils/EIP712.sol";
import { ExcessivelySafeCall } from "excessively-safe-call/ExcessivelySafeCall.sol";
import { PackedUserOperation } from "account-abstraction/interfaces/PackedUserOperation.sol";
import { RegistryAdapter } from "./RegistryAdapter.sol";
import { EmergencyUninstall } from "../types/DataTypes.sol";
import { ECDSA } from "solady/utils/ECDSA.sol";

Expand All @@ -51,7 +50,7 @@ import { ECDSA } from "solady/utils/ECDSA.sol";
/// @author @filmakarov | Biconomy | filipp.makarov@biconomy.io
/// @author @zeroknots | Rhinestone.wtf | zeroknots.eth
/// Special thanks to the Solady team for foundational contributions: https://github.com/Vectorized/solady
abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdapter {
abstract contract ModuleManager is Storage, EIP712, IModuleManager {
using SentinelListLib for SentinelListLib.SentinelList;
using LocalCallDataParserLib for bytes;
using ExecLib for address;
Expand Down Expand Up @@ -220,7 +219,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
internal
virtual
withHook
withRegistry(validator, MODULE_TYPE_VALIDATOR)
{
if (!IValidator(validator).isModuleType(MODULE_TYPE_VALIDATOR)) revert MismatchModuleTypeId();
if (validator == _DEFAULT_VALIDATOR) {
Expand Down Expand Up @@ -254,7 +252,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
internal
virtual
withHook
withRegistry(executor, MODULE_TYPE_EXECUTOR)
{
if (!IExecutor(executor).isModuleType(MODULE_TYPE_EXECUTOR)) revert MismatchModuleTypeId();
_getAccountStorage().executors.push(executor);
Expand All @@ -280,7 +277,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
internal
virtual
withHook
withRegistry(hook, MODULE_TYPE_HOOK)
{
if (!IHook(hook).isModuleType(MODULE_TYPE_HOOK)) revert MismatchModuleTypeId();
address currentHook = _getHook();
Expand Down Expand Up @@ -318,7 +314,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
internal
virtual
withHook
withRegistry(handler, MODULE_TYPE_FALLBACK)
{
if (!IFallback(handler).isModuleType(MODULE_TYPE_FALLBACK)) revert MismatchModuleTypeId();
// Extract the function selector from the provided parameters.
Expand Down Expand Up @@ -373,7 +368,6 @@ abstract contract ModuleManager is Storage, EIP712, IModuleManager, RegistryAdap
internal
virtual
withHook
withRegistry(preValidationHook, preValidationHookType)
{
if (!IModule(preValidationHook).isModuleType(preValidationHookType)) revert MismatchModuleTypeId();
address currentPreValidationHook = _getPreValidationHook(preValidationHookType);
Expand Down
53 changes: 0 additions & 53 deletions contracts/base/RegistryAdapter.sol

This file was deleted.

89 changes: 0 additions & 89 deletions contracts/factory/BiconomyMetaFactory.sol

This file was deleted.

135 changes: 0 additions & 135 deletions contracts/factory/K1ValidatorFactory.sol

This file was deleted.

Loading
Loading