@glacislabs/stablegenie-zerodelta 4.22.0 → 4.22.2
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 +431 -0
- package/dist/{chunk-UBSZA63S.js → chunk-4DMHC52N.js} +7 -10
- package/dist/{chunk-UIIH5O6G.js → chunk-DGWYVLFC.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 +3 -2
|
@@ -314,7 +314,8 @@ interface CompareOption {
|
|
|
314
314
|
feeUsd: number | null;
|
|
315
315
|
/** The gateway's `zeroDeltaFeeCentibips` when it is a non-negative integer. */
|
|
316
316
|
feeCentibips?: number;
|
|
317
|
-
/** The
|
|
317
|
+
/** The quote states a source-chain native amount (`zeroDeltaFeeNative` > 0, ZD Heavy's `fee.native`). It is the
|
|
318
|
+
* order's network fee, sent with it, and is not part of `feeUsd`. */
|
|
318
319
|
feeNative?: boolean;
|
|
319
320
|
/** From token → … → to token. */
|
|
320
321
|
hops: CompareHop[];
|
|
@@ -443,8 +444,9 @@ declare function cornerTags(options: readonly CompareOption[], option: CompareOp
|
|
|
443
444
|
*/
|
|
444
445
|
declare function compareAmount(value: number): string;
|
|
445
446
|
/**
|
|
446
|
-
* ZeroDelta's fee in USD (zd-dapp `orderRoute
|
|
447
|
-
*
|
|
447
|
+
* ZeroDelta's fee in USD, the margin only (zd-dapp `orderRoute`, zd-dapp#720): a 0 fee is $0 whatever the
|
|
448
|
+
* price; an unstated fee, or a non-zero fee with no input price, stays null rather than printing `$0.00`.
|
|
449
|
+
* A native part (`feeNative`) is the network fee and changes nothing here.
|
|
448
450
|
*/
|
|
449
451
|
declare function compareFeeUsd(option: Pick<CompareOption, "feeCentibips" | "feeNative">, fromUsd?: number | null): number | null;
|
|
450
452
|
/** The options with `feeUsd` stated against the input's USD value (`fromUsd`, display only). */
|
|
@@ -314,7 +314,8 @@ interface CompareOption {
|
|
|
314
314
|
feeUsd: number | null;
|
|
315
315
|
/** The gateway's `zeroDeltaFeeCentibips` when it is a non-negative integer. */
|
|
316
316
|
feeCentibips?: number;
|
|
317
|
-
/** The
|
|
317
|
+
/** The quote states a source-chain native amount (`zeroDeltaFeeNative` > 0, ZD Heavy's `fee.native`). It is the
|
|
318
|
+
* order's network fee, sent with it, and is not part of `feeUsd`. */
|
|
318
319
|
feeNative?: boolean;
|
|
319
320
|
/** From token → … → to token. */
|
|
320
321
|
hops: CompareHop[];
|
|
@@ -443,8 +444,9 @@ declare function cornerTags(options: readonly CompareOption[], option: CompareOp
|
|
|
443
444
|
*/
|
|
444
445
|
declare function compareAmount(value: number): string;
|
|
445
446
|
/**
|
|
446
|
-
* ZeroDelta's fee in USD (zd-dapp `orderRoute
|
|
447
|
-
*
|
|
447
|
+
* ZeroDelta's fee in USD, the margin only (zd-dapp `orderRoute`, zd-dapp#720): a 0 fee is $0 whatever the
|
|
448
|
+
* price; an unstated fee, or a non-zero fee with no input price, stays null rather than printing `$0.00`.
|
|
449
|
+
* A native part (`feeNative`) is the network fee and changes nothing here.
|
|
448
450
|
*/
|
|
449
451
|
declare function compareFeeUsd(option: Pick<CompareOption, "feeCentibips" | "feeNative">, fromUsd?: number | null): number | null;
|
|
450
452
|
/** The options with `feeUsd` stated against the input's USD value (`fromUsd`, display only). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glacislabs/stablegenie-zerodelta",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.2",
|
|
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",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"*.css"
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"CHANGELOG.md"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
14
15
|
".": {
|