@glacislabs/stablegenie-zerodelta 4.22.1 → 4.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +134 -120
- package/dist/{chunk-WVDRVGBA.js → chunk-FGSHHECR.js} +7 -10
- package/dist/{chunk-6TCVZRNB.js → chunk-S34RDOSI.js} +2 -2
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +8 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-GOYY_jNr.d.ts → mount-BaT3yd9W.d.ts} +1 -1
- package/dist/{mount-DC_JT0cE.d.cts → mount-XNvmclF1.d.cts} +1 -1
- package/dist/mount.cjs +8 -11
- package/dist/mount.d.cts +2 -2
- package/dist/mount.d.ts +2 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +7 -7
- package/dist/{verify-mpglrU7n.d.cts → verify-CrR7FBtq.d.cts} +5 -3
- package/dist/{verify-mpglrU7n.d.ts → verify-CrR7FBtq.d.ts} +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,297 +1,311 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 4.22.3 (2026-12-02)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
*
|
|
8
|
+
* write the changelog without links and reword three old entries (#101) 17ae438
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 4.22.2 (2026-12-02)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **exchange:** the Fee row is ZeroDelta's margin only; fee.native is the network fee f1ce543
|
|
16
|
+
|
|
17
|
+
## 4.22.1 (2026-12-02)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* ship CHANGELOG.md in the npm package (#100) 999c096
|
|
23
|
+
|
|
24
|
+
# 4.22.0 (2026-12-02)
|
|
11
25
|
|
|
12
26
|
|
|
13
27
|
### Features
|
|
14
28
|
|
|
15
|
-
* **zdheavy:** cancel and claim a ZD Heavy order from the transaction history (
|
|
29
|
+
* **zdheavy:** cancel and claim a ZD Heavy order from the transaction history (#94) 4d63d5e, closes glacislabs/zd-dapp#674 #679 #674
|
|
16
30
|
|
|
17
|
-
#
|
|
31
|
+
# 4.21.0 (2026-12-02)
|
|
18
32
|
|
|
19
33
|
|
|
20
34
|
### Bug Fixes
|
|
21
35
|
|
|
22
|
-
* **zdheavy:** re-quote before a ZD Heavy quote expires and say when it did (
|
|
36
|
+
* **zdheavy:** re-quote before a ZD Heavy quote expires and say when it did (#97) f05573a
|
|
23
37
|
|
|
24
38
|
|
|
25
39
|
### Features
|
|
26
40
|
|
|
27
|
-
* **zdheavy:** detect ZD Heavy at runtime from the gateway's lane catalogue (
|
|
41
|
+
* **zdheavy:** detect ZD Heavy at runtime from the gateway's lane catalogue (#96) 11ad40b
|
|
28
42
|
|
|
29
|
-
##
|
|
43
|
+
## 4.20.1 (2026-12-02)
|
|
30
44
|
|
|
31
45
|
|
|
32
46
|
### Bug Fixes
|
|
33
47
|
|
|
34
|
-
* accept the gateway's ZD Lite deadline when its clock runs a little ahead (
|
|
48
|
+
* accept the gateway's ZD Lite deadline when its clock runs a little ahead (#95) e010220
|
|
35
49
|
|
|
36
|
-
#
|
|
50
|
+
# 4.20.0 (2026-12-01)
|
|
37
51
|
|
|
38
52
|
|
|
39
53
|
### Features
|
|
40
54
|
|
|
41
|
-
* **exchange:** plain refusal copy for the gateway's first-line route gate (
|
|
42
|
-
* **playground:** land Compare quotes, Compliance details and the netting Best return card on main (
|
|
55
|
+
* **exchange:** plain refusal copy for the gateway's first-line route gate (#86) 99b4a57
|
|
56
|
+
* **playground:** land Compare quotes, Compliance details and the netting Best return card on main (#83, #84) (#90) b77c6ab, closes #4f24b4
|
|
43
57
|
|
|
44
|
-
#
|
|
58
|
+
# 4.19.0 (2026-12-01)
|
|
45
59
|
|
|
46
60
|
|
|
47
61
|
### Features
|
|
48
62
|
|
|
49
|
-
* **delivery:** read ZD Heavy orders like the dapp: delivered from the stored payout, worded steps (
|
|
50
|
-
* **engine:** execute ZD Heavy router orders, verified byte for byte before signing (
|
|
63
|
+
* **delivery:** read ZD Heavy orders like the dapp: delivered from the stored payout, worded steps (#81) 3264db4
|
|
64
|
+
* **engine:** execute ZD Heavy router orders, verified byte for byte before signing (#80) a5ae98f, closes #82
|
|
51
65
|
|
|
52
|
-
##
|
|
66
|
+
## 4.18.2 (2026-11-10)
|
|
53
67
|
|
|
54
68
|
|
|
55
69
|
### Bug Fixes
|
|
56
70
|
|
|
57
|
-
* **delivery:** an expired order reads "Waiting to be claimed", as zd-dapp does (
|
|
71
|
+
* **delivery:** an expired order reads "Waiting to be claimed", as zd-dapp does (#79) 63a3ff1
|
|
58
72
|
|
|
59
|
-
##
|
|
73
|
+
## 4.18.1 (2026-11-09)
|
|
60
74
|
|
|
61
75
|
|
|
62
76
|
### Bug Fixes
|
|
63
77
|
|
|
64
|
-
* **catalogue:** a registry read that failed must not look like one still loading (
|
|
78
|
+
* **catalogue:** a registry read that failed must not look like one still loading (#78) c1543d6, closes #39
|
|
65
79
|
|
|
66
|
-
#
|
|
80
|
+
# 4.18.0 (2026-11-09)
|
|
67
81
|
|
|
68
82
|
|
|
69
83
|
### Features
|
|
70
84
|
|
|
71
|
-
* **catalogue:** admit execution-chain and chained stables to the stable exchange (
|
|
85
|
+
* **catalogue:** admit execution-chain and chained stables to the stable exchange (#77) 7b8f6d0
|
|
72
86
|
|
|
73
|
-
#
|
|
87
|
+
# 4.17.0 (2026-11-09)
|
|
74
88
|
|
|
75
89
|
|
|
76
90
|
### Features
|
|
77
91
|
|
|
78
|
-
* **widget:** call Solana RPC from the browser, with the proxy relay as last resort (
|
|
92
|
+
* **widget:** call Solana RPC from the browser, with the proxy relay as last resort (#76) 94575f2
|
|
79
93
|
|
|
80
|
-
#
|
|
94
|
+
# 4.16.0 (2026-11-06)
|
|
81
95
|
|
|
82
96
|
|
|
83
97
|
### Features
|
|
84
98
|
|
|
85
|
-
* **widget:** show ZeroDelta's own fee and match the dapp's picker and chain names (
|
|
99
|
+
* **widget:** show ZeroDelta's own fee and match the dapp's picker and chain names (#70) 50f1749, closes zd-dapp#654 zd-dapp#604 #627 zd-dapp#582 zd-dapp#588
|
|
86
100
|
|
|
87
|
-
##
|
|
101
|
+
## 4.15.1 (2026-10-29)
|
|
88
102
|
|
|
89
103
|
|
|
90
104
|
### Bug Fixes
|
|
91
105
|
|
|
92
|
-
* **solana:**
|
|
106
|
+
* **solana:** clearer message when a quote's partner id does not match its order (#69) ddc6452
|
|
93
107
|
|
|
94
|
-
#
|
|
108
|
+
# 4.15.0 (2026-10-29)
|
|
95
109
|
|
|
96
110
|
|
|
97
111
|
### Features
|
|
98
112
|
|
|
99
|
-
* **widget:** recipient row, wallet and address states from the updated Figma; playground header and scrollbars (
|
|
113
|
+
* **widget:** recipient row, wallet and address states from the updated Figma; playground header and scrollbars (#68) 8213982
|
|
100
114
|
|
|
101
|
-
##
|
|
115
|
+
## 4.14.2 (2026-10-28)
|
|
102
116
|
|
|
103
117
|
|
|
104
118
|
### Bug Fixes
|
|
105
119
|
|
|
106
|
-
* **widget:** mark the steps the order's status already proves (
|
|
120
|
+
* **widget:** mark the steps the order's status already proves (#64) b71a66b
|
|
107
121
|
|
|
108
|
-
##
|
|
122
|
+
## 4.14.1 (2026-10-28)
|
|
109
123
|
|
|
110
124
|
|
|
111
125
|
### Bug Fixes
|
|
112
126
|
|
|
113
|
-
* **widget:** Nest vault shares are buy-only on the RWA card (
|
|
127
|
+
* **widget:** Nest vault shares are buy-only on the RWA card (#66) 0e1d440, closes 612/#614
|
|
114
128
|
|
|
115
|
-
#
|
|
129
|
+
# 4.14.0 (2026-10-28)
|
|
116
130
|
|
|
117
131
|
|
|
118
132
|
### Features
|
|
119
133
|
|
|
120
|
-
* **widget:** wallets sheet and recipient sheet from the Figma designs (
|
|
134
|
+
* **widget:** wallets sheet and recipient sheet from the Figma designs (#65) e623ba2
|
|
121
135
|
|
|
122
|
-
##
|
|
136
|
+
## 4.13.1 (2026-10-28)
|
|
123
137
|
|
|
124
138
|
|
|
125
139
|
### Bug Fixes
|
|
126
140
|
|
|
127
|
-
* **widget:** show delivery, not the source receipt, and stop a Solana payment the wallet cannot fund (
|
|
141
|
+
* **widget:** show delivery, not the source receipt, and stop a Solana payment the wallet cannot fund (#60) 15a146a, closes #59
|
|
128
142
|
|
|
129
|
-
#
|
|
143
|
+
# 4.13.0 (2026-10-27)
|
|
130
144
|
|
|
131
145
|
|
|
132
146
|
### Features
|
|
133
147
|
|
|
134
|
-
* **widget:** pay from Solana in the exchange card (
|
|
135
|
-
* **widget:** receive on Solana with locally verified delivery, and per-chain LayerZero fee caps (
|
|
148
|
+
* **widget:** pay from Solana in the exchange card (#58) f1e9bd7
|
|
149
|
+
* **widget:** receive on Solana with locally verified delivery, and per-chain LayerZero fee caps (#57) 4d155f0
|
|
136
150
|
|
|
137
|
-
#
|
|
151
|
+
# 4.12.0 (2026-10-15)
|
|
138
152
|
|
|
139
153
|
|
|
140
154
|
### Features
|
|
141
155
|
|
|
142
|
-
* **widget:** pick the token first, then the network, like the ZeroDelta app (
|
|
156
|
+
* **widget:** pick the token first, then the network, like the ZeroDelta app (#56) 3367664, closes #599
|
|
143
157
|
|
|
144
|
-
#
|
|
158
|
+
# 4.11.0 (2026-10-15)
|
|
145
159
|
|
|
146
160
|
|
|
147
161
|
### Features
|
|
148
162
|
|
|
149
|
-
* **widget:** offer only what trades, list every way to pay, show the deposit loading state (
|
|
163
|
+
* **widget:** offer only what trades, list every way to pay, show the deposit loading state (#55) a4acd10
|
|
150
164
|
|
|
151
|
-
#
|
|
165
|
+
# 4.10.0 (2026-10-15)
|
|
152
166
|
|
|
153
167
|
|
|
154
168
|
### Features
|
|
155
169
|
|
|
156
|
-
* **widget:** pause stale quotes, share the registry cache, tidy the pickers; playground needs your own key (
|
|
170
|
+
* **widget:** pause stale quotes, share the registry cache, tidy the pickers; playground needs your own key (#54) ea1a031
|
|
157
171
|
|
|
158
|
-
#
|
|
172
|
+
# 4.9.0 (2026-10-06)
|
|
159
173
|
|
|
160
174
|
|
|
161
175
|
### Features
|
|
162
176
|
|
|
163
|
-
* **compliance:** name the visitor's country beside the jurisdiction, as the dApp does (
|
|
177
|
+
* **compliance:** name the visitor's country beside the jurisdiction, as the dApp does (#52) 0e6c6c7
|
|
164
178
|
|
|
165
|
-
#
|
|
179
|
+
# 4.8.0 (2026-10-05)
|
|
166
180
|
|
|
167
181
|
|
|
168
182
|
### Features
|
|
169
183
|
|
|
170
|
-
* **exchange:** report the card's input, and print amounts the way the dApp does (
|
|
184
|
+
* **exchange:** report the card's input, and print amounts the way the dApp does (#51) 4e17c00
|
|
171
185
|
|
|
172
|
-
#
|
|
186
|
+
# 4.7.0 (2026-10-05)
|
|
173
187
|
|
|
174
188
|
|
|
175
189
|
### Features
|
|
176
190
|
|
|
177
|
-
* **widget:** submit the quote's
|
|
191
|
+
* **widget:** submit the quote's partner id with the order; playground own key, shared wallet and deposit checkout (#49) 84cdf39
|
|
178
192
|
|
|
179
|
-
#
|
|
193
|
+
# 4.6.0 (2026-10-01)
|
|
180
194
|
|
|
181
195
|
|
|
182
196
|
### Features
|
|
183
197
|
|
|
184
|
-
* **widget:** redesign the card and the playground to the Widget Playground Figma (
|
|
198
|
+
* **widget:** redesign the card and the playground to the Widget Playground Figma (#48) 35493dc, closes #8c9bff #a7a9be #292a30
|
|
185
199
|
|
|
186
|
-
#
|
|
200
|
+
# 4.5.0 (2026-09-24)
|
|
187
201
|
|
|
188
202
|
|
|
189
203
|
### Features
|
|
190
204
|
|
|
191
|
-
* **channel:** let the widget say it is the widget (
|
|
205
|
+
* **channel:** let the widget say it is the widget (#46) e355106
|
|
192
206
|
|
|
193
|
-
#
|
|
207
|
+
# 4.4.0 (2026-09-23)
|
|
194
208
|
|
|
195
209
|
|
|
196
210
|
### Features
|
|
197
211
|
|
|
198
|
-
* size the order deadline from the lane, not from a flat cap
|
|
212
|
+
* size the order deadline from the lane, not from a flat cap b83170c
|
|
199
213
|
|
|
200
|
-
#
|
|
214
|
+
# 4.3.0 (2026-09-18)
|
|
201
215
|
|
|
202
216
|
|
|
203
217
|
### Features
|
|
204
218
|
|
|
205
|
-
* **route-health:** read lane availability and show the bridge ceiling (
|
|
219
|
+
* **route-health:** read lane availability and show the bridge ceiling (#45) 44a0f19, closes zd-bebop-lite#486
|
|
206
220
|
|
|
207
|
-
##
|
|
221
|
+
## 4.2.1 (2026-09-17)
|
|
208
222
|
|
|
209
223
|
|
|
210
224
|
### Bug Fixes
|
|
211
225
|
|
|
212
|
-
* **catalogue:** read the route and token registries to the last page (
|
|
226
|
+
* **catalogue:** read the route and token registries to the last page (#44) a16150b
|
|
213
227
|
|
|
214
|
-
#
|
|
228
|
+
# 4.2.0 (2026-09-16)
|
|
215
229
|
|
|
216
230
|
|
|
217
231
|
### Features
|
|
218
232
|
|
|
219
|
-
* **widget:** show each chain's own token ticker (
|
|
233
|
+
* **widget:** show each chain's own token ticker (#42) c4cdbf3
|
|
220
234
|
|
|
221
|
-
##
|
|
235
|
+
## 4.1.1 (2026-09-09)
|
|
222
236
|
|
|
223
237
|
|
|
224
238
|
### Bug Fixes
|
|
225
239
|
|
|
226
|
-
* **catalogue:** suppress firewalled lanes and gate every same-symbol shortcut on a direct peer (
|
|
240
|
+
* **catalogue:** suppress firewalled lanes and gate every same-symbol shortcut on a direct peer (#34) 20761e2
|
|
227
241
|
|
|
228
|
-
#
|
|
242
|
+
# 4.1.0 (2026-09-09)
|
|
229
243
|
|
|
230
244
|
|
|
231
245
|
### Features
|
|
232
246
|
|
|
233
|
-
* **widget:** reach transaction history from every surface, render chained trades as two orders, and draw vault artwork (
|
|
247
|
+
* **widget:** reach transaction history from every surface, render chained trades as two orders, and draw vault artwork (#40) 398e13b
|
|
234
248
|
|
|
235
|
-
#
|
|
249
|
+
# 4.0.0 (2026-09-09)
|
|
236
250
|
|
|
237
251
|
|
|
238
252
|
### Features
|
|
239
253
|
|
|
240
|
-
* screen direct settlements and disclose the compliance decision (
|
|
254
|
+
* screen direct settlements and disclose the compliance decision (#36) c026e4b
|
|
241
255
|
|
|
242
256
|
|
|
243
257
|
### BREAKING CHANGES
|
|
244
258
|
|
|
245
259
|
* screen direct settlements and disclose the compliance decision (#36)
|
|
246
260
|
|
|
247
|
-
#
|
|
261
|
+
# 3.4.0 (2026-09-08)
|
|
248
262
|
|
|
249
263
|
|
|
250
264
|
### Features
|
|
251
265
|
|
|
252
|
-
* derive the catalogue from the live registry and add the RWA exchange (
|
|
266
|
+
* derive the catalogue from the live registry and add the RWA exchange (#32) eec029c
|
|
253
267
|
|
|
254
|
-
#
|
|
268
|
+
# 3.3.0 (2026-09-07)
|
|
255
269
|
|
|
256
270
|
|
|
257
271
|
### Features
|
|
258
272
|
|
|
259
|
-
* **playground:** black-and-white ZeroDelta favicon with the dapp's raster fallbacks (
|
|
273
|
+
* **playground:** black-and-white ZeroDelta favicon with the dapp's raster fallbacks (#31) edf4f67
|
|
260
274
|
|
|
261
|
-
#
|
|
275
|
+
# 3.2.0 (2026-09-07)
|
|
262
276
|
|
|
263
277
|
|
|
264
278
|
### Features
|
|
265
279
|
|
|
266
|
-
* **playground:** single-page widget playground with keyless proxy and e2e (
|
|
280
|
+
* **playground:** single-page widget playground with keyless proxy and e2e (#30) 05136d1, closes #29
|
|
267
281
|
|
|
268
|
-
#
|
|
282
|
+
# 3.1.0 (2026-09-07)
|
|
269
283
|
|
|
270
284
|
|
|
271
285
|
### Features
|
|
272
286
|
|
|
273
|
-
* target the live ZeroDelta prod escrow (live ABI, prod pin, Plume) (
|
|
287
|
+
* target the live ZeroDelta prod escrow (live ABI, prod pin, Plume) (#28) 1cf4753
|
|
274
288
|
|
|
275
|
-
##
|
|
289
|
+
## 3.0.2 (2026-07-30)
|
|
276
290
|
|
|
277
291
|
|
|
278
292
|
### Bug Fixes
|
|
279
293
|
|
|
280
|
-
* **pay:** prioritize connected wallet holdings (
|
|
294
|
+
* **pay:** prioritize connected wallet holdings (#25) 9e2236a
|
|
281
295
|
|
|
282
|
-
##
|
|
296
|
+
## 3.0.1 (2026-07-30)
|
|
283
297
|
|
|
284
298
|
|
|
285
299
|
### Bug Fixes
|
|
286
300
|
|
|
287
|
-
* **pay:** show wallet-payable assets in deposit summary (
|
|
301
|
+
* **pay:** show wallet-payable assets in deposit summary (#24) d3ddc2d
|
|
288
302
|
|
|
289
|
-
#
|
|
303
|
+
# 3.0.0 (2026-07-29)
|
|
290
304
|
|
|
291
305
|
|
|
292
306
|
### Features
|
|
293
307
|
|
|
294
|
-
* stop showing merchant destination config and cut methods to stablecoin/card/bank (
|
|
308
|
+
* stop showing merchant destination config and cut methods to stablecoin/card/bank (#23) a3563b1
|
|
295
309
|
|
|
296
310
|
|
|
297
311
|
### BREAKING CHANGES
|
|
@@ -302,29 +316,29 @@ update, and the any-asset funding rail is no longer reachable from the UI.
|
|
|
302
316
|
|
|
303
317
|
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
|
304
318
|
|
|
305
|
-
#
|
|
319
|
+
# 2.0.0 (2026-07-29)
|
|
306
320
|
|
|
307
321
|
|
|
308
322
|
### Bug Fixes
|
|
309
323
|
|
|
310
|
-
* **security:**
|
|
324
|
+
* **security:** send the API key only to a same-origin path or a declared trusted origin, and ready the package for public npm (#19) f78ed7c
|
|
311
325
|
|
|
312
326
|
|
|
313
327
|
### BREAKING CHANGES
|
|
314
328
|
|
|
315
|
-
* **security:**
|
|
329
|
+
* **security:** send the API key only to a same-origin path or a declared trusted origin, and ready the package for public npm (#19)
|
|
316
330
|
|
|
317
|
-
#
|
|
331
|
+
# 1.1.0 (2026-07-28)
|
|
318
332
|
|
|
319
333
|
|
|
320
334
|
### Features
|
|
321
335
|
|
|
322
|
-
* close the audit backlog and ready the package for public npm (
|
|
336
|
+
* close the audit backlog and ready the package for public npm (#17) cddcaef
|
|
323
337
|
|
|
324
|
-
#
|
|
338
|
+
# 1.0.0 (2026-07-28)
|
|
325
339
|
|
|
326
340
|
|
|
327
|
-
* feat!: pin the escrow, verify receipts, and stop trusting API-supplied trust anchors (
|
|
341
|
+
* feat!: pin the escrow, verify receipts, and stop trusting API-supplied trust anchors (#16) fcd9065
|
|
328
342
|
|
|
329
343
|
|
|
330
344
|
### BREAKING CHANGES
|
|
@@ -334,91 +348,91 @@ absolute `apiBase` together with an `apiKey` must now also set
|
|
|
334
348
|
`EngineConfig.trustedApiOrigin` to that origin, or the key is withheld.
|
|
335
349
|
Consumers using the default same-origin proxy are unaffected.
|
|
336
350
|
|
|
337
|
-
##
|
|
351
|
+
## 0.6.1 (2026-07-27)
|
|
338
352
|
|
|
339
353
|
|
|
340
354
|
### Bug Fixes
|
|
341
355
|
|
|
342
|
-
* attach the LayerZero native fee to escrow orders and preflight gas (
|
|
356
|
+
* attach the LayerZero native fee to escrow orders and preflight gas (#15) 80e0465
|
|
343
357
|
|
|
344
|
-
#
|
|
358
|
+
# 0.6.0 (2026-07-27)
|
|
345
359
|
|
|
346
360
|
|
|
347
361
|
### Features
|
|
348
362
|
|
|
349
|
-
* let the quote engine own same-asset validation (
|
|
363
|
+
* let the quote engine own same-asset validation (#14) 41a592c
|
|
350
364
|
|
|
351
|
-
##
|
|
365
|
+
## 0.5.2 (2026-07-27)
|
|
352
366
|
|
|
353
367
|
|
|
354
368
|
### Bug Fixes
|
|
355
369
|
|
|
356
|
-
* keep rejecting same-token same-chain swaps (
|
|
370
|
+
* keep rejecting same-token same-chain swaps (#13) c95e2b0
|
|
357
371
|
|
|
358
|
-
##
|
|
372
|
+
## 0.5.1 (2026-07-27)
|
|
359
373
|
|
|
360
374
|
|
|
361
375
|
### Bug Fixes
|
|
362
376
|
|
|
363
|
-
* allow same-token same-chain swaps (
|
|
377
|
+
* allow same-token same-chain swaps (#12) 8384690
|
|
364
378
|
|
|
365
|
-
#
|
|
379
|
+
# 0.5.0 (2026-07-27)
|
|
366
380
|
|
|
367
381
|
|
|
368
382
|
### Features
|
|
369
383
|
|
|
370
|
-
* bank-settlement payout card, exported settlement types, and token logos in history (
|
|
384
|
+
* bank-settlement payout card, exported settlement types, and token logos in history (#11) 3cce60b
|
|
371
385
|
|
|
372
|
-
#
|
|
386
|
+
# 0.4.0 (2026-07-24)
|
|
373
387
|
|
|
374
388
|
|
|
375
389
|
### Features
|
|
376
390
|
|
|
377
|
-
* add ZeroDelta Link express-checkout variant (pill) (
|
|
391
|
+
* add ZeroDelta Link express-checkout variant (pill) (#10) 775789e
|
|
378
392
|
|
|
379
|
-
#
|
|
393
|
+
# 0.3.0 (2026-07-14)
|
|
380
394
|
|
|
381
395
|
|
|
382
396
|
### Features
|
|
383
397
|
|
|
384
|
-
* in-widget transaction history with per-wallet persistence (
|
|
398
|
+
* in-widget transaction history with per-wallet persistence (#9) ae4e6e0
|
|
385
399
|
|
|
386
|
-
##
|
|
400
|
+
## 0.2.1 (2026-07-14)
|
|
387
401
|
|
|
388
402
|
|
|
389
403
|
### Bug Fixes
|
|
390
404
|
|
|
391
|
-
* **pay:** add-chain fallback and friendly wallet errors for cross-chain deposit funding (
|
|
405
|
+
* **pay:** add-chain fallback and friendly wallet errors for cross-chain deposit funding (#8) b05d0bd
|
|
392
406
|
|
|
393
|
-
#
|
|
407
|
+
# 0.2.0 (2026-07-14)
|
|
394
408
|
|
|
395
409
|
|
|
396
410
|
### Features
|
|
397
411
|
|
|
398
|
-
* rename package to @glacislabs/stablegenie-zerodelta (
|
|
412
|
+
* rename package to @glacislabs/stablegenie-zerodelta (#7) 31c53e6
|
|
399
413
|
|
|
400
|
-
##
|
|
414
|
+
## 0.1.2 (2026-07-14)
|
|
401
415
|
|
|
402
416
|
|
|
403
417
|
### Bug Fixes
|
|
404
418
|
|
|
405
|
-
* stop shipping source maps in the published npm tarball (
|
|
419
|
+
* stop shipping source maps in the published npm tarball (#6) e439fe0
|
|
406
420
|
|
|
407
|
-
##
|
|
421
|
+
## 0.1.1 (2026-07-14)
|
|
408
422
|
|
|
409
423
|
|
|
410
424
|
### Bug Fixes
|
|
411
425
|
|
|
412
|
-
* **pay:** stop offering same-token cross-chain funding and quote candidates chain-diversely (
|
|
426
|
+
* **pay:** stop offering same-token cross-chain funding and quote candidates chain-diversely (#5) 26ad00f
|
|
413
427
|
|
|
414
|
-
#
|
|
428
|
+
# 0.1.0 (2026-07-13)
|
|
415
429
|
|
|
416
430
|
|
|
417
431
|
### Features
|
|
418
432
|
|
|
419
|
-
* exchange-style funding selector on Pay + fix live order-template deadline (
|
|
420
|
-
* holdings-first Link-style checkout — read wallet balances, funds-first routing (
|
|
421
|
-
* li.fi-style Exchange widget — token selector, wide Receive panel, ramp previews (
|
|
422
|
-
* Link-style redesign — method selector + refined checkout surface
|
|
423
|
-
* **pay:** offer every routable funding option and grey out unaffordable ones (
|
|
424
|
-
* React Pay + Swap widgets, wallet layer, dual-profile build (Stage B)
|
|
433
|
+
* exchange-style funding selector on Pay + fix live order-template deadline (#3) d11626c
|
|
434
|
+
* holdings-first Link-style checkout — read wallet balances, funds-first routing (#1) 234d2b9
|
|
435
|
+
* li.fi-style Exchange widget — token selector, wide Receive panel, ramp previews (#2) 3c7b420
|
|
436
|
+
* Link-style redesign — method selector + refined checkout surface 66d74ca
|
|
437
|
+
* **pay:** offer every routable funding option and grey out unaffordable ones (#4) 58156c3
|
|
438
|
+
* React Pay + Swap widgets, wallet layer, dual-profile build (Stage B) 375cfbe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, isSolanaChainId, isSellableRwa, formatUnits, amountFieldError, solanaQuoteCompliance, directComplianceFromScreens, SUPPORTED_CHAIN_IDS, complianceChecks, DIRECT_CHECK_IDS, isSolanaAddress, createEngine, isAddress, checkNativeFee, nativeFeeShortLabel, ZdHeavyQuoteExpiredError, assertZdHeavyQuoteFresh, nativeFeeShortMessage, zdHeavyExpected, preflightZdHeavyPlan, allowanceCovers, validatePlannedTransaction, priceCompareOptions, parity, pickForWait, cornerTags, extraVsFastest, proposedWait, visibleOptions, promotionFor, estimateBonus, pairPromotionsInto, promotedAssets, TRACKING, mergeHistory, hasValidChecksum, solanaPlanNeedsPreparation, SOLANA_CHAIN_ID, clampWait, waitScaleFor, waitFraction, waitLabel, WAIT_POSITIONS, snapWait, WAIT_STEP_SEC, waitFromFraction, compareDuration, compareAmount, unattributedComplianceReasons, distinctScreenedWallets, formatJurisdiction, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC, isZdHeavyOrderId, zdHeavyRecovery, foldTicker, checkZdHeavyCancelTx, checkZdHeavyClaimTx, decodeZdHeavyCancel, decodeZdHeavyClaim } from './chunk-
|
|
1
|
+
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, isSolanaChainId, isSellableRwa, formatUnits, amountFieldError, solanaQuoteCompliance, directComplianceFromScreens, SUPPORTED_CHAIN_IDS, complianceChecks, DIRECT_CHECK_IDS, isSolanaAddress, createEngine, isAddress, checkNativeFee, nativeFeeShortLabel, ZdHeavyQuoteExpiredError, assertZdHeavyQuoteFresh, nativeFeeShortMessage, zdHeavyExpected, preflightZdHeavyPlan, allowanceCovers, validatePlannedTransaction, priceCompareOptions, parity, pickForWait, cornerTags, extraVsFastest, proposedWait, visibleOptions, promotionFor, estimateBonus, pairPromotionsInto, promotedAssets, TRACKING, mergeHistory, hasValidChecksum, solanaPlanNeedsPreparation, SOLANA_CHAIN_ID, clampWait, waitScaleFor, waitFraction, waitLabel, WAIT_POSITIONS, snapWait, WAIT_STEP_SEC, waitFromFraction, compareDuration, compareAmount, unattributedComplianceReasons, distinctScreenedWallets, formatJurisdiction, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC, isZdHeavyOrderId, zdHeavyRecovery, foldTicker, checkZdHeavyCancelTx, checkZdHeavyClaimTx, decodeZdHeavyCancel, decodeZdHeavyClaim } from './chunk-S34RDOSI.js';
|
|
2
2
|
import { createContext, useState, useRef, useMemo, useEffect, useCallback, useId, useLayoutEffect, createElement, useContext, useSyncExternalStore, useReducer } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -7687,13 +7687,9 @@ function centibipsPct(centibips) {
|
|
|
7687
7687
|
const frac = String(centibips % 1e4).padStart(4, "0").replace(/0+$/, "").padEnd(2, "0");
|
|
7688
7688
|
return `${whole}.${frac}%`;
|
|
7689
7689
|
}
|
|
7690
|
-
function zeroDeltaFeeLabel(fee
|
|
7690
|
+
function zeroDeltaFeeLabel(fee) {
|
|
7691
7691
|
const centibips = statedCentibips(fee);
|
|
7692
|
-
|
|
7693
|
-
const pct = centibipsPct(centibips);
|
|
7694
|
-
const raw = fee?.zeroDeltaFeeNative;
|
|
7695
|
-
if (typeof raw !== "string" || !/^\d+$/.test(raw) || BigInt(raw) === 0n) return pct;
|
|
7696
|
-
return `${pct} + ${formatUnits(raw, native.decimals, 8)} ${native.symbol}`;
|
|
7692
|
+
return centibips === null ? "--" : centibipsPct(centibips);
|
|
7697
7693
|
}
|
|
7698
7694
|
function formatCostBps(bps) {
|
|
7699
7695
|
const rounded = Number(bps.toFixed(1));
|
|
@@ -8053,7 +8049,9 @@ function ExchangeCard(props) {
|
|
|
8053
8049
|
const nativeWei = (() => {
|
|
8054
8050
|
try {
|
|
8055
8051
|
if (selected) return routeNativeValue(selected);
|
|
8056
|
-
|
|
8052
|
+
if (!preview.data) return 0n;
|
|
8053
|
+
const feeNative = preview.data.zeroDeltaFeeNative;
|
|
8054
|
+
return BigInt(preview.data.nativeFeeRaw || "0") + (typeof feeNative === "string" && /^\d+$/.test(feeNative) ? BigInt(feeNative) : 0n);
|
|
8057
8055
|
} catch {
|
|
8058
8056
|
return 0n;
|
|
8059
8057
|
}
|
|
@@ -8069,8 +8067,7 @@ function ExchangeCard(props) {
|
|
|
8069
8067
|
const fromUsd = usdOf2(normalizedAmount, prices[from?.symbol ?? ""]);
|
|
8070
8068
|
const toUsd = usdOf2(receive, prices[to?.symbol ?? ""]);
|
|
8071
8069
|
const statedFee = solActive ? solFlow.preview : addressed ? selected?.quote : preview.data;
|
|
8072
|
-
const
|
|
8073
|
-
const feeLabel = hasQuote ? zeroDeltaFeeLabel(statedFee, feeNative) : "--";
|
|
8070
|
+
const feeLabel = hasQuote ? zeroDeltaFeeLabel(statedFee) : "--";
|
|
8074
8071
|
const rateImpact = hasQuote ? rateImpactLabel(
|
|
8075
8072
|
quoteCostBps({ send: normalizedAmount, receive, fromSymbol: from?.symbol, toSymbol: to?.symbol, fromPrice: prices[from?.symbol ?? ""], toPrice: prices[to?.symbol ?? ""] }),
|
|
8076
8073
|
statedFee
|