-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aabundler: docs and ex config (#344)
- Loading branch information
Showing
3 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
``` |
2 changes: 1 addition & 1 deletion
2
etc/aa-bundler/aa-bundler.config.json → apps/aabundler/etc/aabundler.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|