@glacislabs/stablegenie-zerodelta 4.19.0 → 4.20.0
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/dist/{chunk-NS444RZM.js → chunk-FXH7TCJ5.js} +1013 -36
- package/dist/{chunk-NLXQVXZ5.js → chunk-JIQRTR3C.js} +27 -8
- package/dist/core/index.cjs +27 -8
- 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 +1107 -45
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BsoZvwCl.d.cts → mount-D2tDkHea.d.cts} +1 -1
- package/dist/{mount-A24qHOI0.d.ts → mount-DuTF5CQV.d.ts} +1 -1
- package/dist/mount.cjs +1107 -45
- 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 +221 -9
- package/dist/{verify-BzTQQMc8.d.cts → verify-UqDjAVxa.d.cts} +14 -10
- package/dist/{verify-BzTQQMc8.d.ts → verify-UqDjAVxa.d.ts} +14 -10
- package/package.json +1 -1
|
@@ -377,11 +377,14 @@ declare function pickForWait(options: readonly CompareOption[], waitSec: number)
|
|
|
377
377
|
/** The most cards the modal draws (owner L5, Figma 3084:15345): fastest, the pick for the wait, gasless/netting. */
|
|
378
378
|
declare const MAX_QUOTE_CARDS = 3;
|
|
379
379
|
/**
|
|
380
|
-
* The options the modal draws
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
380
|
+
* The options the modal draws: at most three, the fastest, the one chosen for the wait
|
|
381
|
+
* (`selectedId` when it is selectable, else what the slider would pick) and the gasless one, then
|
|
382
|
+
* the netting one if a slot is left (best output each). One option that is several of these is
|
|
383
|
+
* drawn once, so there can be fewer than three. The rest stay reachable by moving the slider. When
|
|
384
|
+
* nothing can be signed, the first three are drawn so their reasons stay readable.
|
|
385
|
+
*
|
|
386
|
+
* Order: a netting option first, as every Figma frame draws it (3055:15990, 3082:9147, 3084:15345,
|
|
387
|
+
* 3086:15522, 2172:26912); the others keep the gateway's order. Mirrors zd-dapp src/lib/quoteCompare.ts.
|
|
385
388
|
*/
|
|
386
389
|
declare function visibleOptions(options: readonly CompareOption[], waitSec: number, selectedId?: string | null): CompareOption[];
|
|
387
390
|
/**
|
|
@@ -425,11 +428,12 @@ interface CornerTag {
|
|
|
425
428
|
tone: TagTone;
|
|
426
429
|
}
|
|
427
430
|
/**
|
|
428
|
-
* The tag in an option card's corner (Figma 3082:9147).
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
431
|
+
* The tag in an option card's corner (Figma 3082:9147). A netting option wears one green tag,
|
|
432
|
+
* `Best return`, at parity or not (Figma 3055:15990; owner, 2026-11-13: no `Netting` word, no
|
|
433
|
+
* `Potential`, no `Target 1:1` on it). Any other option, in order of precedence: `Target 1:1` on
|
|
434
|
+
* the parity option; `Fastest` on the option the gateway labels so; `Gasless` on a sponsored one;
|
|
435
|
+
* otherwise the existing ranking (`routeBadges`: Best return / Fastest / Lowest fee, or the path's
|
|
436
|
+
* shape when there is one option). An option that cannot be signed wears none.
|
|
433
437
|
*/
|
|
434
438
|
declare function cornerTags(options: readonly CompareOption[], option: CompareOption, parityState: Parity): CornerTag[];
|
|
435
439
|
/**
|
|
@@ -377,11 +377,14 @@ declare function pickForWait(options: readonly CompareOption[], waitSec: number)
|
|
|
377
377
|
/** The most cards the modal draws (owner L5, Figma 3084:15345): fastest, the pick for the wait, gasless/netting. */
|
|
378
378
|
declare const MAX_QUOTE_CARDS = 3;
|
|
379
379
|
/**
|
|
380
|
-
* The options the modal draws
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
380
|
+
* The options the modal draws: at most three, the fastest, the one chosen for the wait
|
|
381
|
+
* (`selectedId` when it is selectable, else what the slider would pick) and the gasless one, then
|
|
382
|
+
* the netting one if a slot is left (best output each). One option that is several of these is
|
|
383
|
+
* drawn once, so there can be fewer than three. The rest stay reachable by moving the slider. When
|
|
384
|
+
* nothing can be signed, the first three are drawn so their reasons stay readable.
|
|
385
|
+
*
|
|
386
|
+
* Order: a netting option first, as every Figma frame draws it (3055:15990, 3082:9147, 3084:15345,
|
|
387
|
+
* 3086:15522, 2172:26912); the others keep the gateway's order. Mirrors zd-dapp src/lib/quoteCompare.ts.
|
|
385
388
|
*/
|
|
386
389
|
declare function visibleOptions(options: readonly CompareOption[], waitSec: number, selectedId?: string | null): CompareOption[];
|
|
387
390
|
/**
|
|
@@ -425,11 +428,12 @@ interface CornerTag {
|
|
|
425
428
|
tone: TagTone;
|
|
426
429
|
}
|
|
427
430
|
/**
|
|
428
|
-
* The tag in an option card's corner (Figma 3082:9147).
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
431
|
+
* The tag in an option card's corner (Figma 3082:9147). A netting option wears one green tag,
|
|
432
|
+
* `Best return`, at parity or not (Figma 3055:15990; owner, 2026-11-13: no `Netting` word, no
|
|
433
|
+
* `Potential`, no `Target 1:1` on it). Any other option, in order of precedence: `Target 1:1` on
|
|
434
|
+
* the parity option; `Fastest` on the option the gateway labels so; `Gasless` on a sponsored one;
|
|
435
|
+
* otherwise the existing ranking (`routeBadges`: Best return / Fastest / Lowest fee, or the path's
|
|
436
|
+
* shape when there is one option). An option that cannot be signed wears none.
|
|
433
437
|
*/
|
|
434
438
|
declare function cornerTags(options: readonly CompareOption[], option: CompareOption, parityState: Parity): CornerTag[];
|
|
435
439
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glacislabs/stablegenie-zerodelta",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.0",
|
|
4
4
|
"description": "Lightweight embeddable ZeroDelta payment + swap widget (exact-receive Pay and exact-in Swap). Wallet always owns the final signature.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|