Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Reduce the diff between tracing and binary search estimation #172

Reduce the diff between tracing and binary search estimation

Reduce the diff between tracing and binary search estimation #172

Workflow file for this run

name: compliance
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PDM
run: curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
- name: "Setup Node.js"
uses: "actions/setup-node@v3"
with:
node-version: 18.15
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
cache: true
- name: Checkout bundler spec test
uses: actions/checkout@v3
with:
# TODO: Revert back to eth-infinitism/bundler-spec-tests once PR #23 and #24 merged.
repository: hazim-j/bundler-spec-tests
ref: develop
path: ./bundler-spec-tests
submodules: true
- name: Setup bundler spec test
working-directory: ./bundler-spec-tests
run: pdm install && pdm run update-deps
- name: Install Geth
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum && \
sudo apt-get update && \
sudo apt-get install ethereum
- name: Run Geth
run: |
geth \
--verbosity 1 \
--http.vhosts '*,localhost,host.docker.internal' \
--http \
--http.api eth,net,web3,debug \
--http.corsdomain '*' \
--http.addr "0.0.0.0" \
--nodiscover --maxpeers 0 --mine \
--networkid 1337 \
--dev \
--allow-insecure-unlock \
--rpc.allow-unprotected-txs \
--miner.gaslimit 12000000 &
- name: Install bundler dependencies
run: go mod download
- name: Build bundler binary
run: go build -o ./tmp/stackup-bundler main.go
- name: Deploy ERC-4337 contracts
working-directory: ./bundler-spec-tests
run: |
cd @account-abstraction && \
yarn deploy --network localhost
- name: Fund bundler
run: |
geth \
--exec "eth.sendTransaction({from: eth.accounts[0], to: \"0x43378ff8C70109Ee4Dbe85aF34428ab0615EBd23\", value: web3.toWei(10000, \"ether\")})" \
attach http://localhost:8545/
- name: Run Stackup Bundler
run: ./tmp/stackup-bundler start --mode private &
env:
ERC4337_BUNDLER_ETH_CLIENT_URL: http://localhost:8545/
ERC4337_BUNDLER_PORT: 3000
ERC4337_BUNDLER_DEBUG_MODE: true
ERC4337_BUNDLER_MAX_BATCH_GAS_LIMIT: 12000000
# This key is for testing purposes only. Do not use for anything else.
ERC4337_BUNDLER_PRIVATE_KEY: c6cbc5ffad570fdad0544d1b5358a36edeb98d163b6567912ac4754e144d4edb
- name: Run test
working-directory: ./bundler-spec-tests
run: pdm test