@glacislabs/stablegenie-zerodelta 4.21.0 → 4.22.1

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.
@@ -917,6 +917,14 @@ interface SanitizedTxEntry {
917
917
  /** Where the ORDER is, from the gateway's tracker, when the history was read from it. `status` is
918
918
  * only the source transaction; this is whether the destination received the funds. Never stored. */
919
919
  delivery?: "in-progress" | "attention" | "delivered" | "failed";
920
+ /** The gateway's word behind `delivery` (`cancelled`, `fill_failed`…), when read from it. Never stored. */
921
+ deliveryStatus?: string;
922
+ /** The order protocol the gateway reports for this row (`zdlite`, `zdheavy`). Never stored. */
923
+ protocol?: string;
924
+ /** The order's id as the gateway reports it (a ZD Heavy router order id is a bytes32). Never stored. */
925
+ orderId?: string;
926
+ /** The gateway says a payout of this order is parked for its receiver to claim. Never stored. */
927
+ claimable?: boolean;
920
928
  at: string;
921
929
  /** The orders this transaction submitted, first to last. Absent on entries persisted before legs
922
930
  * were recorded (2026-09-09); the UI falls back to the single from → to summary for those. */
@@ -1655,6 +1663,8 @@ interface BalanceEntry {
1655
1663
  }
1656
1664
  interface Verifier {
1657
1665
  readZdHeavySubmitFee: (chainId: number, to: string, data: string) => Promise<bigint | undefined>;
1666
+ /** One read on the chain's BUNDLED (or overridden) RPC, never the registry's. Rejects when there is none. */
1667
+ bundledRpc: (chainId: number, method: string, params: unknown[]) => Promise<unknown>;
1658
1668
  payerNonceBaseline: (chainId: number, account: string) => Promise<number | null>;
1659
1669
  verifySubmittedTx: (args: {
1660
1670
  chainId: number;
@@ -1675,4 +1685,4 @@ interface Verifier {
1675
1685
  }
1676
1686
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1677
1687
 
1678
- export { type CompareContext as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Promotion as G, type Address as H, type ApiError as I, BLOCK_LABEL_DEFAULT as J, type BonusInputs as K, type LaneLimit as L, CENTIBIPS_PER_UNIT as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, COMPLIANCE_CHECK_ORDER as U, type VerifyResult as V, type WalletScreen as W, COMPLIANCE_DENY_LABEL as X, type CatalogueContext as Y, type ZdHeavyExpected as Z, type CatalogueInput as _, type Catalogue as a, complianceTagOf as a$, type CompareHop as a0, type CompareOption as a1, type ComplianceCheckId as a2, type ComplianceDecision as a3, type CornerTag as a4, DIRECT_CHECK_IDS as a5, DIRECT_SCOPE_NOTE as a6, type Destination as a7, FLOOR_CATEGORIES as a8, type GatewayEvmTx as a9, WAIT_MAX_SEC as aA, WAIT_MIN_SEC as aB, WAIT_POSITIONS as aC, WAIT_STEP_SEC as aD, type WaitScale as aE, ZD_HEAVY_KEY_PREFIX as aF, amountFieldError as aG, apiError as aH, bestOutputOption as aI, blockLabelFor as aJ, bonusFigure as aK, bonusPercentLabel as aL, brokenLaneFor as aM, buildCatalogue as aN, canAttachApiKey as aO, categoryLabel as aP, clampWait as aQ, classifyQuoteError as aR, compareAmount as aS, compareDuration as aT, compareFeeUsd as aU, compareHops as aV, compareOptionOf as aW, compareOptionsOf as aX, complianceControlsEvaluated as aY, complianceReasonHead as aZ, complianceReasonTag as a_, type Hex as aa, type InsteadFigures as ab, type LaneAvailabilityState as ac, MAX_QUOTE_CARDS as ad, type Parity as ae, type PlannedTxKind as af, type PromotedAsset as ag, type PromotedNetwork as ah, type PromotionFunder as ai, type PromotionKind as aj, type PromotionToken as ak, type QuoteBlock as al, type QuoteOption as am, type ResolvedConfig as an, type RouteBadge as ao, type RouteHealth as ap, type RouteHealthAvailability as aq, type RouteHealthLane as ar, SCREENING_BUCKETS as as, type ScreenProvider as at, type ScreeningBucket as au, type ScreeningOutcome as av, type SwapEnds as aw, TUNABLE_CATEGORIES as ax, type TagTone as ay, type TxPlan as az, type Chain as b, cornerTags as b0, createApiClient as b1, createVerifier as b2, destinationKeys as b3, directComplianceFromScreens as b4, distinctScreenedWallets as b5, estimateBonus as b6, exceedsLaneLimit as b7, executableRoutes as b8, executionChainIds as b9, productAssets as bA, promotedAssets as bB, promotionFor as bC, proposedWait as bD, registryRpc as bE, resolveApiBase as bF, resolveConfig as bG, routeBadges as bH, routeShapeLabel as bI, sameAddress as bJ, screeningOutcomeOf as bK, selectableOptions as bL, snapWait as bM, sourceKeys as bN, suppressedLanes as bO, tokenKey as bP, txMatchesPlan as bQ, unattributedComplianceReasons as bR, usdStablePair as bS, visibleOptions as bT, waitFraction as bU, waitFromFraction as bV, waitLabel as bW, waitScaleFor as bX, zdHeavyOptionKey as bY, zdHeavyUnavailableStatus as bZ, extraVsFastest as ba, fastestOption as bb, fundedByLabel as bc, hasReachableDestination as bd, hubDeliverableSymbols as be, insteadFigures as bf, isExecutableBridge as bg, isKnownUnbridgeable as bh, isSellableRwa as bi, isSourceToken as bj, laneAvailabilityState as bk, laneKey as bl, laneKeys as bm, laneLimitAmount as bn, laneLimitError as bo, laneLimitFor as bp, laneLimitHint as bq, laneLimitSymbol as br, limitedLanes as bs, pairPromotionsInto as bt, parity as bu, parseAllowedApiBase as bv, parsePromotion as bw, parsePromotions as bx, pickForWait as by, priceCompareOptions as bz, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
1688
+ export { type CatalogueInput as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Promotion as G, type Hex as H, type Address as I, type ApiError as J, BLOCK_LABEL_DEFAULT as K, type LaneLimit as L, type BonusInputs as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, CENTIBIPS_PER_UNIT as U, type VerifyResult as V, type WalletScreen as W, COMPLIANCE_CHECK_ORDER as X, COMPLIANCE_DENY_LABEL as Y, type ZdHeavyExpected as Z, type CatalogueContext as _, type Catalogue as a, complianceTagOf as a$, type CompareContext as a0, type CompareHop as a1, type CompareOption as a2, type ComplianceCheckId as a3, type ComplianceDecision as a4, type CornerTag as a5, DIRECT_CHECK_IDS as a6, DIRECT_SCOPE_NOTE as a7, type Destination as a8, FLOOR_CATEGORIES as a9, WAIT_MAX_SEC as aA, WAIT_MIN_SEC as aB, WAIT_POSITIONS as aC, WAIT_STEP_SEC as aD, type WaitScale as aE, ZD_HEAVY_KEY_PREFIX as aF, amountFieldError as aG, apiError as aH, bestOutputOption as aI, blockLabelFor as aJ, bonusFigure as aK, bonusPercentLabel as aL, brokenLaneFor as aM, buildCatalogue as aN, canAttachApiKey as aO, categoryLabel as aP, clampWait as aQ, classifyQuoteError as aR, compareAmount as aS, compareDuration as aT, compareFeeUsd as aU, compareHops as aV, compareOptionOf as aW, compareOptionsOf as aX, complianceControlsEvaluated as aY, complianceReasonHead as aZ, complianceReasonTag as a_, type GatewayEvmTx as aa, type InsteadFigures as ab, type LaneAvailabilityState as ac, MAX_QUOTE_CARDS as ad, type Parity as ae, type PlannedTxKind as af, type PromotedAsset as ag, type PromotedNetwork as ah, type PromotionFunder as ai, type PromotionKind as aj, type PromotionToken as ak, type QuoteBlock as al, type QuoteOption as am, type ResolvedConfig as an, type RouteBadge as ao, type RouteHealth as ap, type RouteHealthAvailability as aq, type RouteHealthLane as ar, SCREENING_BUCKETS as as, type ScreenProvider as at, type ScreeningBucket as au, type ScreeningOutcome as av, type SwapEnds as aw, TUNABLE_CATEGORIES as ax, type TagTone as ay, type TxPlan as az, type Chain as b, cornerTags as b0, createApiClient as b1, createVerifier as b2, destinationKeys as b3, directComplianceFromScreens as b4, distinctScreenedWallets as b5, estimateBonus as b6, exceedsLaneLimit as b7, executableRoutes as b8, executionChainIds as b9, productAssets as bA, promotedAssets as bB, promotionFor as bC, proposedWait as bD, registryRpc as bE, resolveApiBase as bF, resolveConfig as bG, routeBadges as bH, routeShapeLabel as bI, sameAddress as bJ, screeningOutcomeOf as bK, selectableOptions as bL, snapWait as bM, sourceKeys as bN, suppressedLanes as bO, tokenKey as bP, txMatchesPlan as bQ, unattributedComplianceReasons as bR, usdStablePair as bS, visibleOptions as bT, waitFraction as bU, waitFromFraction as bV, waitLabel as bW, waitScaleFor as bX, zdHeavyOptionKey as bY, zdHeavyUnavailableStatus as bZ, extraVsFastest as ba, fastestOption as bb, fundedByLabel as bc, hasReachableDestination as bd, hubDeliverableSymbols as be, insteadFigures as bf, isExecutableBridge as bg, isKnownUnbridgeable as bh, isSellableRwa as bi, isSourceToken as bj, laneAvailabilityState as bk, laneKey as bl, laneKeys as bm, laneLimitAmount as bn, laneLimitError as bo, laneLimitFor as bp, laneLimitHint as bq, laneLimitSymbol as br, limitedLanes as bs, pairPromotionsInto as bt, parity as bu, parseAllowedApiBase as bv, parsePromotion as bw, parsePromotions as bx, pickForWait as by, priceCompareOptions as bz, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
@@ -917,6 +917,14 @@ interface SanitizedTxEntry {
917
917
  /** Where the ORDER is, from the gateway's tracker, when the history was read from it. `status` is
918
918
  * only the source transaction; this is whether the destination received the funds. Never stored. */
919
919
  delivery?: "in-progress" | "attention" | "delivered" | "failed";
920
+ /** The gateway's word behind `delivery` (`cancelled`, `fill_failed`…), when read from it. Never stored. */
921
+ deliveryStatus?: string;
922
+ /** The order protocol the gateway reports for this row (`zdlite`, `zdheavy`). Never stored. */
923
+ protocol?: string;
924
+ /** The order's id as the gateway reports it (a ZD Heavy router order id is a bytes32). Never stored. */
925
+ orderId?: string;
926
+ /** The gateway says a payout of this order is parked for its receiver to claim. Never stored. */
927
+ claimable?: boolean;
920
928
  at: string;
921
929
  /** The orders this transaction submitted, first to last. Absent on entries persisted before legs
922
930
  * were recorded (2026-09-09); the UI falls back to the single from → to summary for those. */
@@ -1655,6 +1663,8 @@ interface BalanceEntry {
1655
1663
  }
1656
1664
  interface Verifier {
1657
1665
  readZdHeavySubmitFee: (chainId: number, to: string, data: string) => Promise<bigint | undefined>;
1666
+ /** One read on the chain's BUNDLED (or overridden) RPC, never the registry's. Rejects when there is none. */
1667
+ bundledRpc: (chainId: number, method: string, params: unknown[]) => Promise<unknown>;
1658
1668
  payerNonceBaseline: (chainId: number, account: string) => Promise<number | null>;
1659
1669
  verifySubmittedTx: (args: {
1660
1670
  chainId: number;
@@ -1675,4 +1685,4 @@ interface Verifier {
1675
1685
  }
1676
1686
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1677
1687
 
1678
- export { type CompareContext as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Promotion as G, type Address as H, type ApiError as I, BLOCK_LABEL_DEFAULT as J, type BonusInputs as K, type LaneLimit as L, CENTIBIPS_PER_UNIT as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, COMPLIANCE_CHECK_ORDER as U, type VerifyResult as V, type WalletScreen as W, COMPLIANCE_DENY_LABEL as X, type CatalogueContext as Y, type ZdHeavyExpected as Z, type CatalogueInput as _, type Catalogue as a, complianceTagOf as a$, type CompareHop as a0, type CompareOption as a1, type ComplianceCheckId as a2, type ComplianceDecision as a3, type CornerTag as a4, DIRECT_CHECK_IDS as a5, DIRECT_SCOPE_NOTE as a6, type Destination as a7, FLOOR_CATEGORIES as a8, type GatewayEvmTx as a9, WAIT_MAX_SEC as aA, WAIT_MIN_SEC as aB, WAIT_POSITIONS as aC, WAIT_STEP_SEC as aD, type WaitScale as aE, ZD_HEAVY_KEY_PREFIX as aF, amountFieldError as aG, apiError as aH, bestOutputOption as aI, blockLabelFor as aJ, bonusFigure as aK, bonusPercentLabel as aL, brokenLaneFor as aM, buildCatalogue as aN, canAttachApiKey as aO, categoryLabel as aP, clampWait as aQ, classifyQuoteError as aR, compareAmount as aS, compareDuration as aT, compareFeeUsd as aU, compareHops as aV, compareOptionOf as aW, compareOptionsOf as aX, complianceControlsEvaluated as aY, complianceReasonHead as aZ, complianceReasonTag as a_, type Hex as aa, type InsteadFigures as ab, type LaneAvailabilityState as ac, MAX_QUOTE_CARDS as ad, type Parity as ae, type PlannedTxKind as af, type PromotedAsset as ag, type PromotedNetwork as ah, type PromotionFunder as ai, type PromotionKind as aj, type PromotionToken as ak, type QuoteBlock as al, type QuoteOption as am, type ResolvedConfig as an, type RouteBadge as ao, type RouteHealth as ap, type RouteHealthAvailability as aq, type RouteHealthLane as ar, SCREENING_BUCKETS as as, type ScreenProvider as at, type ScreeningBucket as au, type ScreeningOutcome as av, type SwapEnds as aw, TUNABLE_CATEGORIES as ax, type TagTone as ay, type TxPlan as az, type Chain as b, cornerTags as b0, createApiClient as b1, createVerifier as b2, destinationKeys as b3, directComplianceFromScreens as b4, distinctScreenedWallets as b5, estimateBonus as b6, exceedsLaneLimit as b7, executableRoutes as b8, executionChainIds as b9, productAssets as bA, promotedAssets as bB, promotionFor as bC, proposedWait as bD, registryRpc as bE, resolveApiBase as bF, resolveConfig as bG, routeBadges as bH, routeShapeLabel as bI, sameAddress as bJ, screeningOutcomeOf as bK, selectableOptions as bL, snapWait as bM, sourceKeys as bN, suppressedLanes as bO, tokenKey as bP, txMatchesPlan as bQ, unattributedComplianceReasons as bR, usdStablePair as bS, visibleOptions as bT, waitFraction as bU, waitFromFraction as bV, waitLabel as bW, waitScaleFor as bX, zdHeavyOptionKey as bY, zdHeavyUnavailableStatus as bZ, extraVsFastest as ba, fastestOption as bb, fundedByLabel as bc, hasReachableDestination as bd, hubDeliverableSymbols as be, insteadFigures as bf, isExecutableBridge as bg, isKnownUnbridgeable as bh, isSellableRwa as bi, isSourceToken as bj, laneAvailabilityState as bk, laneKey as bl, laneKeys as bm, laneLimitAmount as bn, laneLimitError as bo, laneLimitFor as bp, laneLimitHint as bq, laneLimitSymbol as br, limitedLanes as bs, pairPromotionsInto as bt, parity as bu, parseAllowedApiBase as bv, parsePromotion as bw, parsePromotions as bx, pickForWait as by, priceCompareOptions as bz, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
1688
+ export { type CatalogueInput as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Promotion as G, type Hex as H, type Address as I, type ApiError as J, BLOCK_LABEL_DEFAULT as K, type LaneLimit as L, type BonusInputs as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, CENTIBIPS_PER_UNIT as U, type VerifyResult as V, type WalletScreen as W, COMPLIANCE_CHECK_ORDER as X, COMPLIANCE_DENY_LABEL as Y, type ZdHeavyExpected as Z, type CatalogueContext as _, type Catalogue as a, complianceTagOf as a$, type CompareContext as a0, type CompareHop as a1, type CompareOption as a2, type ComplianceCheckId as a3, type ComplianceDecision as a4, type CornerTag as a5, DIRECT_CHECK_IDS as a6, DIRECT_SCOPE_NOTE as a7, type Destination as a8, FLOOR_CATEGORIES as a9, WAIT_MAX_SEC as aA, WAIT_MIN_SEC as aB, WAIT_POSITIONS as aC, WAIT_STEP_SEC as aD, type WaitScale as aE, ZD_HEAVY_KEY_PREFIX as aF, amountFieldError as aG, apiError as aH, bestOutputOption as aI, blockLabelFor as aJ, bonusFigure as aK, bonusPercentLabel as aL, brokenLaneFor as aM, buildCatalogue as aN, canAttachApiKey as aO, categoryLabel as aP, clampWait as aQ, classifyQuoteError as aR, compareAmount as aS, compareDuration as aT, compareFeeUsd as aU, compareHops as aV, compareOptionOf as aW, compareOptionsOf as aX, complianceControlsEvaluated as aY, complianceReasonHead as aZ, complianceReasonTag as a_, type GatewayEvmTx as aa, type InsteadFigures as ab, type LaneAvailabilityState as ac, MAX_QUOTE_CARDS as ad, type Parity as ae, type PlannedTxKind as af, type PromotedAsset as ag, type PromotedNetwork as ah, type PromotionFunder as ai, type PromotionKind as aj, type PromotionToken as ak, type QuoteBlock as al, type QuoteOption as am, type ResolvedConfig as an, type RouteBadge as ao, type RouteHealth as ap, type RouteHealthAvailability as aq, type RouteHealthLane as ar, SCREENING_BUCKETS as as, type ScreenProvider as at, type ScreeningBucket as au, type ScreeningOutcome as av, type SwapEnds as aw, TUNABLE_CATEGORIES as ax, type TagTone as ay, type TxPlan as az, type Chain as b, cornerTags as b0, createApiClient as b1, createVerifier as b2, destinationKeys as b3, directComplianceFromScreens as b4, distinctScreenedWallets as b5, estimateBonus as b6, exceedsLaneLimit as b7, executableRoutes as b8, executionChainIds as b9, productAssets as bA, promotedAssets as bB, promotionFor as bC, proposedWait as bD, registryRpc as bE, resolveApiBase as bF, resolveConfig as bG, routeBadges as bH, routeShapeLabel as bI, sameAddress as bJ, screeningOutcomeOf as bK, selectableOptions as bL, snapWait as bM, sourceKeys as bN, suppressedLanes as bO, tokenKey as bP, txMatchesPlan as bQ, unattributedComplianceReasons as bR, usdStablePair as bS, visibleOptions as bT, waitFraction as bU, waitFromFraction as bV, waitLabel as bW, waitScaleFor as bX, zdHeavyOptionKey as bY, zdHeavyUnavailableStatus as bZ, extraVsFastest as ba, fastestOption as bb, fundedByLabel as bc, hasReachableDestination as bd, hubDeliverableSymbols as be, insteadFigures as bf, isExecutableBridge as bg, isKnownUnbridgeable as bh, isSellableRwa as bi, isSourceToken as bj, laneAvailabilityState as bk, laneKey as bl, laneKeys as bm, laneLimitAmount as bn, laneLimitError as bo, laneLimitFor as bp, laneLimitHint as bq, laneLimitSymbol as br, limitedLanes as bs, pairPromotionsInto as bt, parity as bu, parseAllowedApiBase as bv, parsePromotion as bw, parsePromotions as bx, pickForWait as by, priceCompareOptions as bz, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glacislabs/stablegenie-zerodelta",
3
- "version": "4.21.0",
3
+ "version": "4.22.1",
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
  ".": {