https://github.com/bscript07/erc-4337
https://github.com/bscript07/erc-4337
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bscript07/erc-4337
- Owner: bscript07
- Created: 2025-06-23T17:50:02.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-23T18:00:37.000Z (7 months ago)
- Last Synced: 2025-06-23T19:19:47.328Z (7 months ago)
- Language: Solidity
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MinimalAccount (ERC-4337 Minimal Smart Contract Wallet)
This repository contains a minimal implementation of an [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337)-compatible smart contract account written in Solidity.
The `MinimalAccount` contract allows an EOA (Externally Owned Account) to operate as a smart wallet, enabling programmable transaction logic, meta-transactions, and user operations through an `EntryPoint`.
---
## โจ Features
- ๐ Ownable smart account with custom `owner` logic
- ๐ฆ Compatible with ERC-4337 Bundler & EntryPoint
- โ
Signature validation using EIP-191 (via `ECDSA`)
- ๐ ๏ธ Manual execution of arbitrary calls via `execute()`
- โ๏ธ Minimal `UserOperation` validation flow
---
## ๐ง Tech Stack
- Solidity `0.8.30`
- [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts)
- [ERC-4337 Account Abstraction SDK](https://github.com/eth-infinitism/account-abstraction)
- Foundry (`forge`, `cast`, `anvil`) for testing & scripting
---
## ๐งช Contract Overview
### MinimalAccount.sol