Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Voltaire erc-4337 bundler integration #298

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions integrations/voltaire/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Voltaire Bundler
Modular and lighting-fast Python Bundler for Ethereum EIP-4337 Account Abstraction

## Deployment
Run a Voltaire bundler docker container for each of the 3 chains by running the start_bundlers.sh script
```
source start_bundlers.sh
```
## See logs

### see L1Chain bundler logs:
```docker logs -f L1Chain_Bundler```

### see OPChainA bundler logs:
```docker logs -f OPChainA_Bundler```

### see OPChainb bundler logs:
```docker logs -f OPChainB_Bundler```

## Stop the 3 bundlers

Stop Voltaire bundler docker container for each of the 3 chains by running the stop_bundlers.sh script

```
source stop_bundlers.sh
```

If you are using fork mode, you can modify the start_bundlers.sh script for the target chains.

## rpc url

### L1Chain bundler rpc url: http://127.0.0.1:3000/rpc

### OpChainA bundler rpc url: http://127.0.0.1:3001/rpc

### OpChainB bundler rpc url: http://127.0.0.1:3002/rpc

# docs

Voltaire github: https://github.com/candidelabs/voltaire

Candide Atelier: https://docs.candide.dev/

Bundler rpc docs: https://docs.candide.dev/wallet/bundler/rpc-methods/

# Notes
* Voltaire supports both Entrypoint v0.6.0 and v0.7.0
* Bundlers are running in the unsafe mode as debug_traceCall with javascript tracer is not supported in anvil currently
45 changes: 45 additions & 0 deletions integrations/voltaire/start_bundlers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
IMAGE_NAME=ghcr.io/candidelabs/voltaire/voltaire-bundler:0.1.0a36
RPC_URL=127.0.0.1
SECRET=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

L1Chain_PORT=3000
L1Chain_NODE=http://127.0.0.1:8545
L1Chain_CHAIN_ID=900

docker run --name L1Chain_Bundler --rm --net=host \
-d $IMAGE_NAME \
--bundler_secret $SECRET \
--rpc_url $RPC_URL \
--rpc_port $L1Chain_PORT \
--ethereum_node_url $L1Chain_NODE \
--chain_id $L1Chain_CHAIN_ID \
--unsafe \
--verbose

OPChainA_PORT=3001
OPChainA_NODE=http://127.0.0.1:9545
OPChainA_CHAIN_ID=901

docker run --name OPChainA_Bundler --rm --net=host \
-d $IMAGE_NAME \
--bundler_secret $SECRET \
--rpc_url $RPC_URL \
--rpc_port $OPChainA_PORT \
--ethereum_node_url $OPChainA_NODE \
--chain_id $OPChainA_CHAIN_ID \
--unsafe \
--verbose

OPChainB_PORT=3002
OPChainB_NODE=http://127.0.0.1:9546
OPChainB_CHAIN_ID=902

docker run --name OPChainB_Bundler --rm --net=host \
-d $IMAGE_NAME \
--bundler_secret $SECRET \
--rpc_url $RPC_URL \
--rpc_port $OPChainB_PORT \
--ethereum_node_url $OPChainB_NODE \
--chain_id $OPChainB_CHAIN_ID \
--unsafe \
--verbose
1 change: 1 addition & 0 deletions integrations/voltaire/stop_bundlers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker stop L1Chain_Bundler OPChainA_Bundler OPChainB_Bundler
Loading