OpenSubaccounts

Git Source

Inherits: MultiChainSignaturesModule, SubaccountFactory, AllowanceManager

Author: Ultrasound Labs

Top-level contract that bundles the Subaccount factory, Multi-Chain Signature module and Allowance Manager into a single deployment for convenience.

Note: security-contact: security@ultrasoundlabs.org

Functions

constructor

Constructs a new OpenSubaccounts instance wiring together the SubaccountFactory, MultiChainSignaturesModule and AllowanceManager modules.

constructor(
    address _siglessTransactionExecutor,
    address _safeSingleton,
    address _safeProxyFactory,
    address _safeModuleSetup,
    address _permit2
)
    MultiChainSignaturesModule(_siglessTransactionExecutor)
    SubaccountFactory(_safeSingleton, _safeProxyFactory, _safeModuleSetup, address(this), address(this))
    AllowanceManager(_permit2, address(this));

Parameters

NameTypeDescription
_siglessTransactionExecutoraddressAddress of the SiglessTransactionExecutor library.
_safeSingletonaddressCanonical Safe singleton implementation.
_safeProxyFactoryaddressSafe proxy factory address.
_safeModuleSetupaddressHelper used to enable modules during Safe setup.
_permit2addressPermit2 contract used by AllowanceManager.