@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.
- package/dist/{chunk-FXH7TCJ5.js → chunk-3E554IZO.js} +35 -4
- package/dist/{chunk-JIQRTR3C.js → chunk-KOFREX5L.js} +58 -12
- package/dist/core/index.cjs +57 -11
- 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 +91 -14
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-DuTF5CQV.d.ts → mount-867H-JSe.d.ts} +1 -1
- package/dist/{mount-D2tDkHea.d.cts → mount-C2GLFqgK.d.cts} +1 -1
- package/dist/mount.cjs +91 -14
- 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 +8 -8
- package/dist/{verify-UqDjAVxa.d.cts → verify-CeHRSKl2.d.cts} +10 -1
- package/dist/{verify-UqDjAVxa.d.ts → verify-CeHRSKl2.d.ts} +10 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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",
|