Skip to content

Commit

Permalink
aabundler: docs and ex config (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBigBoss authored Apr 23, 2024
1 parent f140b63 commit dd03d89
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -454,14 +454,14 @@ local_resource(
docker run --rm \
--name aa-bundler \
--add-host=host.docker.internal:host-gateway \
-p 3030:3030 \
-p 127.0.0.1:3030:3030 \
-v ./keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266:/app/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
-v ./etc/aa-bundler:/app/etc/aa-bundler \
-v ./apps/aabundler/etc:/app/etc/aabundler \
-e "DEBUG={bundler_debug}" \
-e "DEBUG_COLORS=true" \
docker.io/0xbigboss/bundler:0.7.0 \
--port 3030 \
--config /app/etc/aa-bundler/aa-bundler.config.json \
--config /app/etc/aabundler/aabundler.config.json \
--mnemonic /app/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
--network http://host.docker.internal:8546 \
--entryPoint 0x0000000071727De22E5E9d8BAf0edAc6f37da032 \
Expand Down
43 changes: 43 additions & 0 deletions apps/aabundler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Account Abstraction Bundler

The account abstraction bundler is responsible for writing user operations onchain via the Entrypoint contract.

## Usage

```shell
docker run --rm \
--name aa-bundler \
--add-host=host.docker.internal:host-gateway \
-p 127.0.0.1:3030:3030 \
-v ./keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266:/app/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
-v ./etc/aabundler:/app/etc/aabundler \
-e "DEBUG=aa.rpc" \
-e "DEBUG_COLORS=true" \
accountabstraction/bundler:0.7.0 \
--port 3030 \
--config /app/etc/aabundler/aabundler.config.json \
--mnemonic /app/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
--network http://host.docker.internal:8546 \
--entryPoint 0x0000000071727De22E5E9d8BAf0edAc6f37da032 \
--beneficiary 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
```

## Configuration

The bundler is configured via a JSON file or command line arguments. Below is an example configuration file.

```json
{
"gasFactor": "1",
"minBalance": "50000000000000",
"maxBundleGas": 5e6,
"minStake": "50000000000000",
"minUnstakeDelay": 86400,
"autoBundleInterval": 2,
"autoBundleMempoolSize": 10,
"mnemonic": "/app/keys/0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"network": "http://host.docker.internal:8546",
"entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"beneficiary": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
}
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"gasFactor": "1",
"gasFactor": "1.1",
"minBalance": "1",
"maxBundleGas": 5e6,
"minStake": "1",
Expand Down

0 comments on commit dd03d89

Please sign in to comment.