@glacislabs/stablegenie-zerodelta 4.20.0 → 4.21.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.
@@ -538,6 +538,7 @@ interface RwaVault {
538
538
  [k: string]: unknown;
539
539
  }
540
540
  interface Route {
541
+ isQuotable?: boolean;
541
542
  tokenId?: string;
542
543
  tokenName?: string;
543
544
  fromChainId: number;
@@ -546,6 +547,8 @@ interface Route {
546
547
  * be bridgeable from one chain and not another, and only the pair says which. */
547
548
  fromAddress?: string;
548
549
  toAddress?: string;
550
+ fromSymbol?: string;
551
+ toSymbol?: string;
549
552
  bridge?: string;
550
553
  standard?: string;
551
554
  isEnabled?: boolean;
@@ -1280,6 +1283,9 @@ interface CatalogueContext {
1280
1283
  * work; this says what was actually tried and did not.
1281
1284
  */
1282
1285
  brokenLanes?: ReadonlyMap<string, BrokenLane>;
1286
+ /** Mirrors zd-dapp src/pages/Swap.tsx extraCat: exact quotable Heavy lanes and sources. */
1287
+ zdHeavyLanes?: ReadonlySet<string>;
1288
+ zdHeavySources?: ReadonlySet<string>;
1283
1289
  }
1284
1290
  /**
1285
1291
  * Can this deployment fund a payment?
@@ -1288,7 +1294,7 @@ interface CatalogueContext {
1288
1294
  * that chain safe to transact on: a source must also be a chain this widget pins an escrow and a
1289
1295
  * bundled RPC for, because that is where `approve`, `submitOrder` and settlement verification run.
1290
1296
  */
1291
- declare function isSourceToken(token: Token, ctx: Pick<CatalogueContext, "source" | "execution" | "sourceChains">): boolean;
1297
+ declare function isSourceToken(token: Token, ctx: Pick<CatalogueContext, "source" | "execution" | "sourceChains" | "zdHeavySources">): boolean;
1292
1298
  /**
1293
1299
  * `available` — we can deliver this token on this chain.
1294
1300
  * `hub-only` — the asset exists here but we cannot deliver it here; it IS deliverable on an
@@ -1336,6 +1342,8 @@ interface CatalogueInput {
1336
1342
  chains: readonly Chain[];
1337
1343
  tokens: readonly Token[];
1338
1344
  routes: readonly Route[];
1345
+ /** Quotable Heavy lanes added independently of the Lite bridge-family rules. */
1346
+ zdHeavyRoutes?: readonly Route[];
1339
1347
  /** Which product this catalogue is for. Defaults to `"stable"`. */
1340
1348
  product?: ExchangeProduct;
1341
1349
  /** A host narrowing, INTERSECTED with the product's own universe. Omit for the whole product. */
@@ -1572,6 +1580,7 @@ interface ApiClient {
1572
1580
  fetchChains: () => Promise<Chain[]>;
1573
1581
  fetchTokens: () => Promise<Token[]>;
1574
1582
  fetchRoutes: () => Promise<Route[]>;
1583
+ fetchZdHeavyRoutes: () => Promise<Route[]>;
1575
1584
  /** Measured lane health. NEVER rejects — see the implementation. */
1576
1585
  fetchRouteHealth: () => Promise<RouteHealth | null>;
1577
1586
  /** The RWA vault catalogue, read ONLY for its artwork. NEVER rejects — see the implementation. */
@@ -538,6 +538,7 @@ interface RwaVault {
538
538
  [k: string]: unknown;
539
539
  }
540
540
  interface Route {
541
+ isQuotable?: boolean;
541
542
  tokenId?: string;
542
543
  tokenName?: string;
543
544
  fromChainId: number;
@@ -546,6 +547,8 @@ interface Route {
546
547
  * be bridgeable from one chain and not another, and only the pair says which. */
547
548
  fromAddress?: string;
548
549
  toAddress?: string;
550
+ fromSymbol?: string;
551
+ toSymbol?: string;
549
552
  bridge?: string;
550
553
  standard?: string;
551
554
  isEnabled?: boolean;
@@ -1280,6 +1283,9 @@ interface CatalogueContext {
1280
1283
  * work; this says what was actually tried and did not.
1281
1284
  */
1282
1285
  brokenLanes?: ReadonlyMap<string, BrokenLane>;
1286
+ /** Mirrors zd-dapp src/pages/Swap.tsx extraCat: exact quotable Heavy lanes and sources. */
1287
+ zdHeavyLanes?: ReadonlySet<string>;
1288
+ zdHeavySources?: ReadonlySet<string>;
1283
1289
  }
1284
1290
  /**
1285
1291
  * Can this deployment fund a payment?
@@ -1288,7 +1294,7 @@ interface CatalogueContext {
1288
1294
  * that chain safe to transact on: a source must also be a chain this widget pins an escrow and a
1289
1295
  * bundled RPC for, because that is where `approve`, `submitOrder` and settlement verification run.
1290
1296
  */
1291
- declare function isSourceToken(token: Token, ctx: Pick<CatalogueContext, "source" | "execution" | "sourceChains">): boolean;
1297
+ declare function isSourceToken(token: Token, ctx: Pick<CatalogueContext, "source" | "execution" | "sourceChains" | "zdHeavySources">): boolean;
1292
1298
  /**
1293
1299
  * `available` — we can deliver this token on this chain.
1294
1300
  * `hub-only` — the asset exists here but we cannot deliver it here; it IS deliverable on an
@@ -1336,6 +1342,8 @@ interface CatalogueInput {
1336
1342
  chains: readonly Chain[];
1337
1343
  tokens: readonly Token[];
1338
1344
  routes: readonly Route[];
1345
+ /** Quotable Heavy lanes added independently of the Lite bridge-family rules. */
1346
+ zdHeavyRoutes?: readonly Route[];
1339
1347
  /** Which product this catalogue is for. Defaults to `"stable"`. */
1340
1348
  product?: ExchangeProduct;
1341
1349
  /** A host narrowing, INTERSECTED with the product's own universe. Omit for the whole product. */
@@ -1572,6 +1580,7 @@ interface ApiClient {
1572
1580
  fetchChains: () => Promise<Chain[]>;
1573
1581
  fetchTokens: () => Promise<Token[]>;
1574
1582
  fetchRoutes: () => Promise<Route[]>;
1583
+ fetchZdHeavyRoutes: () => Promise<Route[]>;
1575
1584
  /** Measured lane health. NEVER rejects — see the implementation. */
1576
1585
  fetchRouteHealth: () => Promise<RouteHealth | null>;
1577
1586
  /** The RWA vault catalogue, read ONLY for its artwork. NEVER rejects — see the implementation. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glacislabs/stablegenie-zerodelta",
3
- "version": "4.20.0",
3
+ "version": "4.21.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",