Commit 23fbf03
feat(zones): add zones (#4510)
* chore: wip
* u
* chore: wip
* fix: zone auth token support
- Update ox to 72b35e0 (29-byte token format, no zonePortal)
- Remove zonePortal from signAuthorizationToken action
- Make defaultStorage() a singleton for shared transport/action storage
- Point tests at private RPC (rpc-zone-006-private.tempoxyz.dev)
- Remove batching test (deduplication, not batching)
- Remove decorator tests
Amp-Thread-ID: https://ampcode.com/threads/T-019d65ea-63c9-75f9-970f-7a7f58b73417
* chore: remove skipIf from signAuthorizationToken test
Amp-Thread-ID: https://ampcode.com/threads/T-019d65ea-63c9-75f9-970f-7a7f58b73417
* refactor: add JSDoc to zone factory, mark exports as pure
Amp-Thread-ID: https://ampcode.com/threads/T-019d65ea-63c9-75f9-970f-7a7f58b73417
* feat: zones docs, client extension pattern, alphabetize sidebar, pin TS 5.9.3 for twoslash
* feat: storage utility docs, tempo index export
* feat: async Storage with MaybePromise and request deduplication
Amp-Thread-ID: https://ampcode.com/threads/T-019d6693-eb27-72df-bf47-72f10f94214e
* feat: zone deposit and withdrawal actions
- Add deposit/depositSync actions (ZonePortal on parent chain)
- Add requestWithdrawal/requestWithdrawalSync actions (ZoneOutbox on zone chain)
- Add getWithdrawalFee action (reads withdrawal fee from ZoneOutbox)
- Add ZonePortal and ZoneOutbox ABIs in tempo/zones/Abis.ts
- Add zoneOutbox address to tempo/Addresses.ts
- Add e2e tests for all new actions with error branch coverage
- Add docs pages for deposit, requestWithdrawal, getWithdrawalFee
Amp-Thread-ID: https://ampcode.com/threads/T-019d66ca-2622-70c9-89c2-b1fbce9b393c
* feat: add encrypted deposit and withdrawal zone actions
- encryptedDeposit / encryptedDepositSync: ECIES-encrypted deposits (recipient + memo)
- requestEncryptedWithdrawal / requestEncryptedWithdrawalSync: withdrawal with revealTo pubkey
- encryptDepositPayload: ECDH + HKDF-SHA256 + AES-256-GCM encryption
- Zone ABIs: depositEncrypted, sequencerEncryptionKey, encryptionKeyCount, requestEncryptedWithdrawal
- Decorator bindings, tests, and docs
Amp-Thread-ID: https://ampcode.com/threads/T-019d6740-e918-736a-886a-9ed8e4abb12d
* chore: update ox to pkg.pr.new/ox@72b35e0
Amp-Thread-ID: https://ampcode.com/threads/T-019d696d-dac9-770b-9ac9-80592b6d79d7
* chore: fmt
* chore: skip encryptedDeposit and requestVerifiableWithdrawal tests
Amp-Thread-ID: https://ampcode.com/threads/T-019d6a5f-815c-70ed-ad2c-d4ac7c83d687
* fix: encrypted -> verifiable for withdrawals
* fix: withdrawal ABIs
* fix: encryption key index
* fix: deps
* fix: trusted setup
* fix: exports
* fix: fmt
* fix: tests
* chore: changeset
* fix: update ox dep
---------
Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
Co-authored-by: tmm <tmm@tmm.dev>1 parent 84e1062 commit 23fbf03
40 files changed
Lines changed: 3812 additions & 502 deletions
File tree
- .changeset
- site
- pages/tempo
- actions
- utilities
- zones
- snippets/tempo
- src
- tempo
- actions
- zones
- test
- src/tempo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| |||
0 commit comments