5afe / playground-4337

ERC-4337 Playground for Testing Account Implementations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

docker compose up

This will start:

Playground

Additionally, a playground script is provided to execute a user operation with skeleton the ERC-4337 account contract:

npm run playground

About

ERC-4337 Playground for Testing Account Implementations


Languages

Language:JavaScript 78.9%Language:Solidity 17.5%Language:Dockerfile 3.6%