Skip to content

Commit f94f2f6

Browse files
authored
feat: 4337 sdk auth server and more (#228)
1 parent 4296e24 commit f94f2f6

File tree

237 files changed

+7812
-5693
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+7812
-5693
lines changed

.firebaserc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
]
88
}
99
},
10-
"stake-demo-app": {
11-
"hosting": {
12-
"stake-demo-app": [
13-
"stake-demo-app"
14-
]
15-
}
16-
},
1710
"nft-quest-testnet": {
1811
"hosting": {
1912
"nft-quest-testnet": [

.github/workflows/ci-rust.yml

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -5,100 +5,17 @@ permissions:
55
on:
66
push:
77
paths:
8-
- "packages/contracts/**"
98
- "packages/erc4337-contracts/**"
109
- "packages/sdk-platforms/rust/**"
1110
- ".github/workflows/ci-rust.yml"
1211
pull_request:
1312
paths:
14-
- "packages/contracts/**"
1513
- "packages/erc4337-contracts/**"
1614
- "packages/sdk-platforms/rust/**"
1715
- ".github/workflows/ci-rust.yml"
1816
workflow_dispatch:
1917

2018
jobs:
21-
rust-sdk:
22-
name: Rust Legacy SDK
23-
runs-on: ubuntu-latest
24-
strategy:
25-
matrix:
26-
config:
27-
- debug
28-
steps:
29-
- uses: actions/checkout@v4
30-
with:
31-
submodules: recursive
32-
33-
- name: Run sccache-cache
34-
uses: mozilla-actions/sccache-action@v0.0.4
35-
36-
- name: Install Rust
37-
run: |
38-
rustup update stable && rustup default stable
39-
rustup toolchain install nightly
40-
41-
- name: Run rustfmt
42-
run: |
43-
rustup component add rustfmt --toolchain nightly
44-
cargo +nightly fmt --all -- --check
45-
working-directory: packages/sdk-platforms/rust/zksync-sso
46-
47-
- name: Install Anvil ZKsync Manually
48-
run: |
49-
SCRIPT_PATH=".github/workflows/scripts/install-anvil-zksync.sh"
50-
chmod +x "$SCRIPT_PATH"
51-
bash "$SCRIPT_PATH"
52-
53-
- name: Setup pnpm
54-
uses: pnpm/action-setup@v4
55-
with:
56-
version: 9.11.0
57-
58-
- name: Use Node.js
59-
uses: actions/setup-node@v4
60-
with:
61-
node-version: lts/Iron
62-
cache: pnpm
63-
64-
- name: Install dependencies
65-
run: pnpm install -r --frozen-lockfile
66-
67-
- name: Install contract dependencies
68-
run: pnpm install -r --frozen-lockfile
69-
working-directory: packages/contracts
70-
71-
- name: Build contracts
72-
run: pnpm build
73-
working-directory: packages/contracts
74-
75-
- name: Run clippy
76-
run: |
77-
rustup component add clippy --toolchain stable
78-
rustup component add --toolchain 1.90.0-x86_64-unknown-linux-gnu clippy
79-
cargo clippy --all-targets -- -D warnings
80-
working-directory: packages/sdk-platforms/rust/zksync-sso
81-
82-
- name: Start anvil-zksync node
83-
run: |
84-
anvil-zksync --cache=none run > anvil-zksync.log 2>&1 &
85-
# Wait a few seconds to ensure the node starts
86-
sleep 5
87-
# Verify it's running
88-
if ! pgrep -f "anvil-zksync"; then
89-
echo "Error: anvil-zksync failed to start"
90-
cat anvil-zksync.log
91-
exit 1
92-
fi
93-
94-
- name: Run rust tests
95-
run: cargo test -- --test-threads=1
96-
working-directory: packages/sdk-platforms/rust/zksync-sso
97-
98-
# - name: Run integration tests
99-
# run: cargo test test_complete_zksync_sso_integration -- --ignored
100-
# working-directory: packages/sdk-platforms/rust/zksync-sso
101-
10219
rust-sdk-erc4337:
10320
name: Rust 4337 SDK
10421
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)