-
Notifications
You must be signed in to change notification settings - Fork 43
103 lines (88 loc) · 2.8 KB
/
compliance.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: compliance
on:
push:
branches:
- josh/*
jobs:
compliance:
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:
repository: alchemyplatform/bundler-spec-tests
ref: master
path: ./bundler-spec-tests
submodules: true
- name: Setup bundler spec test
working-directory: ./bundler-spec-tests
run: |
pdm install && \
cd @account-abstraction && \
yarn install --frozen-lockfile && \
yarn compile && \
cd ../spec && \
yarn install --frozen-lockfile && \
yarn build
- 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 protobuf
run: sudo apt-get install -y protobuf-compiler
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.71.0
- 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 Rundler
run: cargo run node &
env:
BUILDER_PRIVATE_KEY: 0x0000000000000000000000000000000000000000000000000000000000000002
ENTRY_POINTS: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
METRICS_HOST: 127.0.0.1
MIN_UNSTAKE_DELAY: 2
NODE_HTTP: http://127.0.0.1:8545
RPC_API: eth,debug
RPC_HOST: 127.0.0.1
RUST_LOG: info
- name: Run test
working-directory: ./bundler-spec-tests
run: pdm test