Ecosyste.ms: Awesome

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

https://github.com/eth-infinitism/bundler-spec-tests

Bundler specification test suites
https://github.com/eth-infinitism/bundler-spec-tests

Last synced: 3 months ago
JSON representation

Bundler specification test suites

Lists

README

        

# EIP4337 bundler compatibility tests.

For more information on the motivation and importance of having a compatibility test suite, see https://notes.ethereum.org/@yoav/unified-erc-4337-mempool

For the formal schema EIP-4337 bundler RPC API spec, see https://github.com/eth-infinitism/bundler-spec

#### Prerequisites

Python version 3.8+
PDM - python package and dependency manager version 2.2.1+

#### Installation
Run `pdm install && pdm run update-deps`

#### Running the tests

##### Running with an up and running Ethereum node and bundler
Assuming you already have an Ethereum node running, EntryPoint deployed and your bundler running and ready for requests, you can run the test suite with:
```shell script
pdm run pytest -rA -W ignore::DeprecationWarning --url --entry-point --ethereum-node
```

##### Running with a launcher script
You can provide a launcher script by adding the option `--launcher-script` to the command:
```shell script
pdm run pytest -rA -W ignore::DeprecationWarning --url --entry-point --ethereum-node --launcher-script
```

Your launcher script will be invoked by shell with:
```shell script
{start|stop|restart}
```
where:
- `start` should start an Ethereum node, deploy an EntryPoint contract and start your bundler.
- `stop` should terminate both the Ethereum node and your bundler processes, and cleanup if necessary.
- `restart` should stop and start atomically.