From 80fd7e5f7cfcbc66794ed3250eff43b752d376bb Mon Sep 17 00:00:00 2001 From: Vid Kersic Date: Mon, 30 Jan 2023 10:42:55 +0100 Subject: [PATCH] chore: update Makefile --- .github/workflows/ci.yml | 4 ++-- Makefile | 12 +++++------- README.md | 6 ++++++ 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3983f5e4..f1335899 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index 67061d47..90fbf7b3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ build: - make fetch-thirdparty - cd thirdparty/account-abstraction && yarn install && yarn compile && cd ../.. cargo build run-bundler: @@ -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 diff --git a/README.md b/README.md index 6abeb609..5d1338d0 100644 --- a/README.md +++ b/README.md @@ -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