Skip to content

Commit

Permalink
chore: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Jan 30, 2023
1 parent 46733fa commit 80fd7e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- name: Setup third party dependencies
- name: Setup third-party dependencies
run: |
make fetch-thirdparty
make setup-thirdparty
- name: Install Geth and solc
run: |
sudo add-apt-repository ppa:ethereum/ethereum
Expand Down
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
build:
make fetch-thirdparty
cd thirdparty/account-abstraction && yarn install && yarn compile && cd ../..
cargo build

run-bundler:
Expand All @@ -15,18 +13,18 @@ run-bundler-rpc:
run-create-wallet:
cargo run --bin create-wallet -- --output-path ${HOME}/.aa-bundler

fetch-thirdparty:
git submodule update --init

test:
setup-thirdparty:
git submodule update --init
cd thirdparty/account-abstraction && yarn install && yarn compile && cd ../..
cd thirdparty/bundler && yarn install && yarn preprocess && cd ../..

test:
cargo test

format:
cargo fmt --all

lint:
cd thirdparty/bundler && yarn install && yarn preprocess && cd ../..
cargo fmt --all -- --check
cargo clippy -- -D warnings -A clippy::derive_partial_eq_without_eq -D clippy::unwrap_used

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ For more information: https://hackmd.io/@Vid201/aa-bundler-rust

## How to run?

Set up third-party dependencies (EIP-4337 smart contracts and bundler tests):

```bash
make setup-thirdparty
```

Create wallet for bundler:

```bash
Expand Down

0 comments on commit 80fd7e5

Please sign in to comment.