https://github.com/5afe/playground-4337
ERC-4337 Playground for Testing Account Implementations
https://github.com/5afe/playground-4337
Last synced: about 1 month ago
JSON representation
ERC-4337 Playground for Testing Account Implementations
- Host: GitHub
- URL: https://github.com/5afe/playground-4337
- Owner: 5afe
- Created: 2023-11-04T14:33:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T13:19:58.000Z (over 2 years ago)
- Last Synced: 2025-03-30T08:32:57.774Z (about 1 year ago)
- Language: JavaScript
- Size: 108 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ERC-4337 Playground
The ERC-4337 bundler logic for what it accepts for user operations is quite
complex, and iterating on it with external bundlers on test networks is slow and
painful.
This repository provides a simple playground for testing ERC-4337 related
things. It provides:
- A skeleton ERC-4337 factory and account implementation
- A Docker compose file for running a local test node and bundler
- Scripts for executing user operations
## Setup
In order to start a local node and reference ERC-4337 bundler implementation:
```shell
docker compose up
```
This will start:
- development Geth node on `http://localhost:8545`
- [reference ERC-4337 bundler](https://github.com/eth-infinitism/bundler) on
`http://localhost:3000/rpc`
- deployment of the
[reference ERC-4337 `EntryPoint` contract](https://github.com/eth-infinitism/account-abstraction/tree/develop)
## Playground
Additionally, a `playground` script is provided to execute a user operation with
skeleton the ERC-4337 account contract:
```shell
npm run playground
```