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
- Host: GitHub
- URL: https://github.com/eth-infinitism/bundler-spec-tests
- Owner: eth-infinitism
- Created: 2022-11-13T16:12:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-11T18:51:02.000Z (3 months ago)
- Last Synced: 2024-04-12T00:06:44.960Z (3 months ago)
- Language: Python
- Size: 218 KB
- Stars: 64
- Watchers: 9
- Forks: 34
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Lists
- awesome-account-abstraction - Bundler Compatibility Test Suite
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.