@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.
@@ -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 fee has a source-chain native part (`zeroDeltaFeeNative` > 0): no single USD figure exists. */
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`): a 0 fee is $0 whatever the price; an unstated fee,
447
- * a native part, or a non-zero fee with no input price stays null rather than printing `$0.00`.
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 fee has a source-chain native part (`zeroDeltaFeeNative` > 0): no single USD figure exists. */
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`): a 0 fee is $0 whatever the price; an unstated fee,
447
- * a native part, or a non-zero fee with no input price stays null rather than printing `$0.00`.
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.0",
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
  ".": {