Smart contract infrastructure for Etherspot Modular Accounts, supporting ERC7579 modular implementations.
Ensure that Foundry is installed.
forge install
forge build
forge test
Uses Solidity native dependency manager Soldeer as package manager.
To install dependencies:
forge soldeer install
Set up your .env
file following the example found in .env.example
.
Can be found in /script
folder.
There are scripts for individual contract deployments and for staking/unstaking the wallet factory.
There is also an all in one script to deploy all required contracts and stake the wallet factory.
To run all in one script:
forge script script/DeployAllAndSetup.s.sol:DeployAllAndSetupScript --broadcast -vvvv --rpc-url <NETWORK_NAME>
For individual deployment scripts (example):
forge script script/ModularEtherspotWallet.s.sol:ModularEtherspotWalletScript --broadcast -vvvv --rpc-url <NETWORK_NAME>
forge test
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import "@etherspot/modular-accounts/src/wallet/ModularEtherspotWallet.sol";
// ...
MIT
v1.0.0
Name | Address |
---|---|
ModularEtherspotWallet | 0x339eAB59e54fE25125AceC3225254a0cBD305A7b |
ModularEtherspotWalletFactory | 0x2A40091f044e48DEB5C0FCbc442E443F3341B451 |
Bootstrap | 0x0D5154d7751b6e2fDaa06F0cC9B400549394C8AA |
MultipleOwnerECDSAValidator | 0x0740Ed7c11b9da33d9C80Bd76b826e4E90CC1906 |