Smart contract infrastructure for Etherspot Prime, supporting both ERC4337 (V1) and ERC7579 Modular (V2) implementations.
npm run setup
Set up your .env
file following the example found in .env.example
.
npx hardhat deploy --network <NETWORK_NAME> --tags 'etherspot-wallet-factory'
npx hardhat deploy --network <NETWORK_NAME> --tags 'etherspot-paymaster'
npx hardhat deploy --network <NETWORK_NAME> --tags 'required'
npx hardhat test
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "@etherspot/prime-contracts/src/etherspot-wallet-v1/wallet/EtherspotWallet.sol";
// ...
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/prime-contracts/src/modular-etherspot-wallet/wallet/ModularEtherspotWallet.sol";
// ...
MIT