You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: claim_contracts/base/README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ make verify L2_TOKEN=<address> RPC_URL=https://sepolia.base.org
26
26
27
27
## Bridge (L1 -> Base)
28
28
29
-
Approve + deposit in one command. `AMOUNT` is in wei (1e18 = 1 ALIGN).
29
+
Approve + deposit in one command. `AMOUNT` is the token amount with 18 decimals (1000000000000000000 = 1 ALIGN).
30
30
31
31
```bash
32
32
make bridge-l1-to-base-sepolia AMOUNT=1000000000000000000
@@ -35,6 +35,13 @@ make bridge-l1-to-base-mainnet AMOUNT=1000000000000000000
35
35
36
36
Tokens appear on Base after ~20 minutes.
37
37
38
+
To bridge to a different L2 address, use the `TO` parameter:
39
+
40
+
```bash
41
+
make bridge-l1-to-base-sepolia-to AMOUNT=1000000000000000000 TO=0x...
42
+
make bridge-l1-to-base-mainnet-to AMOUNT=1000000000000000000 TO=0x...
43
+
```
44
+
38
45
## Withdraw (Base -> L1)
39
46
40
47
Withdrawals are a [multi-step process](https://docs.optimism.io/app-developers/tutorials/bridging/cross-dom-bridge-erc20#withdraw-tokens). No approval is needed. All three steps use the same `TX_HASH` — the **L2 initiation tx hash** from step 1.
@@ -46,6 +53,13 @@ Withdrawals are a [multi-step process](https://docs.optimism.io/app-developers/t
46
53
make withdraw-base-to-l1-mainnet AMOUNT=1000000000000000000
47
54
```
48
55
56
+
To withdraw to a different L1 address, use the `TO` parameter:
57
+
58
+
```bash
59
+
make withdraw-base-to-l1-sepolia-to AMOUNT=1000000000000000000 TO=0x...
60
+
make withdraw-base-to-l1-mainnet-to AMOUNT=1000000000000000000 TO=0x...
61
+
```
62
+
49
63
Save the tx hash from this step — it's needed for prove and finalize.
50
64
51
65
2.**Prove** on L1 — wait ~1 hour for the L2 output to be proposed, then prove:
0 commit comments