Skip to content

Commit 4975590

Browse files
committed
fix: prettier linting
1 parent f94a310 commit 4975590

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
lines changed

INTEROP_SETUP.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Interop Testing - Local Chain Setup
22

3-
This guide explains how to set up local ZKsync chains for testing cross-chain (interop) functionality.
3+
This guide explains how to set up local ZKsync chains for testing cross-chain
4+
(interop) functionality.
45

56
## Overview
67

@@ -46,7 +47,8 @@ git checkout kl/interop-type-b
4647

4748
### Step 2: Start Local Chains
4849

49-
You need **3 separate terminal windows**, all in the `zksync-os-server` directory:
50+
You need **3 separate terminal windows**, all in the `zksync-os-server`
51+
directory:
5052

5153
#### Terminal 1: Start L1 (Anvil)
5254

@@ -89,10 +91,12 @@ cargo run -- --config ./local-chains/v31/multiple-chains/chain2.json
8991

9092
### Step 3: Start Interop Watcher (Optional)
9193

92-
The interop watcher synchronizes interop roots between chains, enabling cross-chain message verification.
94+
The interop watcher synchronizes interop roots between chains, enabling
95+
cross-chain message verification.
9396

94-
**Note:** The passkey wallet app already includes watcher functionality, so this step is optional for
95-
basic testing. Use it if you want to inspect how the synchronization works.
97+
**Note:** The passkey wallet app already includes watcher functionality, so this
98+
step is optional for basic testing. Use it if you want to inspect how the
99+
synchronization works.
96100

97101
```bash
98102
# In a separate directory (not in zksync-os-server)
@@ -196,7 +200,8 @@ This is Anvil's default rich account #1.
196200

197201
### Interop transfers timing out
198202

199-
- Make sure the watcher is running (or the wallet app is handling root synchronization)
203+
- Make sure the watcher is running (or the wallet app is handling root
204+
synchronization)
200205
- Wait for batches to be created on both chains (~10-30 seconds)
201206
- Check that both chains are producing blocks
202207

@@ -230,4 +235,6 @@ pkill -f "cargo run"
230235

231236
- See [SETUP.md](SETUP.md) for full application setup
232237
- See [QUICKSTART.md](QUICKSTART.md) for quick start guide
233-
- See [passkey-wallet-app/INTEROP_TESTING.md](passkey-wallet-app/INTEROP_TESTING.md) for detailed interop testing guide
238+
- See
239+
[passkey-wallet-app/INTEROP_TESTING.md](passkey-wallet-app/INTEROP_TESTING.md)
240+
for detailed interop testing guide

QUICKSTART.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ L1_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_ACTUAL_ALCHEMY_KEY_HERE
4848

4949
## What Gets Started
5050

51-
| Service | Port | URL |
52-
|---------|------|-----|
53-
| Wallet App | 3000 | <http://localhost:3000> |
54-
| Bundler | 4337 | <http://localhost:4337> |
51+
| Service | Port | URL |
52+
| -------------- | ---- | ------------------------------ |
53+
| Wallet App | 3000 | <http://localhost:3000> |
54+
| Bundler | 4337 | <http://localhost:4337> |
5555
| Relayer Status | 4340 | <http://localhost:4340/status> |
5656

5757
## Common Commands
@@ -84,11 +84,13 @@ cd passkey-wallet-app && ./deploy-usd.sh
8484

8585
The app includes an **Interop** tab for cross-chain token transfers. To use it:
8686

87-
1. **Set up local chains** - See [INTEROP_SETUP.md](INTEROP_SETUP.md) for detailed instructions
87+
1. **Set up local chains** - See [INTEROP_SETUP.md](INTEROP_SETUP.md) for
88+
detailed instructions
8889
2. **Deploy token**: `./start-passkey-wallet-app.sh --deploy-token`
8990
3. **Use Interop tab** in the wallet UI
9091

91-
**Note**: Interop features require local ZKsync chains running on ports 3050 & 3051.
92+
**Note**: Interop features require local ZKsync chains running on ports 3050
93+
& 3051.
9294

9395
## Need Help?
9496

SETUP.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ZKsync SSO Demo - Setup Guide
22

3-
This guide provides instructions for setting up and running the ZKsync SSO Demo application.
3+
This guide provides instructions for setting up and running the ZKsync SSO Demo
4+
application.
45

56
## Table of Contents
67

@@ -57,6 +58,7 @@ That's it! The wallet app will be available at <http://localhost:3000>
5758
1. **Private Key with Funds**
5859

5960
- You need a private key with ETH on:
61+
6062
- **L1 (Sepolia)** - for L2-to-L1 finalization
6163
- **L2 (ZKsync OS Testnet)** - for bundler operations
6264

@@ -275,9 +277,11 @@ The deployed token address will be automatically saved to both:
275277

276278
## Interop Testing
277279

278-
The interop features allow you to test cross-chain token transfers between two local ZKsync chains.
280+
The interop features allow you to test cross-chain token transfers between two
281+
local ZKsync chains.
279282

280-
> **📖 For detailed local chain setup, see [INTEROP_SETUP.md](INTEROP_SETUP.md)**
283+
> **📖 For detailed local chain setup, see
284+
> [INTEROP_SETUP.md](INTEROP_SETUP.md)**
281285
282286
### Prerequisites
283287

@@ -334,7 +338,8 @@ cargo run -- --config ./local-chains/v31/multiple-chains/chain2.json
334338

335339
#### Step 3: Start Interop Watcher (Optional)
336340

337-
The watcher synchronizes interop roots between chains. If you want to inspect how it works:
341+
The watcher synchronizes interop roots between chains. If you want to inspect
342+
how it works:
338343

339344
```bash
340345
# In a separate directory
@@ -346,7 +351,8 @@ git checkout deniallugo-create-2-chains
346351
./start-watcher.sh
347352
```
348353

349-
**Note:** The UI already includes the same watcher code, so this step is optional for basic testing.
354+
**Note:** The UI already includes the same watcher code, so this step is
355+
optional for basic testing.
350356

351357
### Setup
352358

@@ -384,7 +390,8 @@ git checkout deniallugo-create-2-chains
384390
4. Use **Transfer Tokens** to test cross-chain token transfers
385391
5. Monitor the **Activity** tab to see L2-to-L1 finalization progress
386392

387-
> **📖 For detailed interop setup and troubleshooting, see [INTEROP_SETUP.md](INTEROP_SETUP.md)**
393+
> **📖 For detailed interop setup and troubleshooting, see
394+
> [INTEROP_SETUP.md](INTEROP_SETUP.md)**
388395
389396
## Troubleshooting
390397

@@ -444,8 +451,7 @@ git checkout deniallugo-create-2-chains
444451

445452
**Problem**: Service fails to start due to port already in use
446453

447-
**Solution**:
448-
Edit `.env` and change the conflicting port:
454+
**Solution**: Edit `.env` and change the conflicting port:
449455

450456
```bash
451457
BUNDLER_PORT=4337 # Change to another port like 4338

0 commit comments

Comments
 (0)