An open API service indexing awesome lists of open source software.

https://github.com/bscript07/erc-4337


https://github.com/bscript07/erc-4337

Last synced: 7 months ago
JSON representation

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