@glacislabs/stablegenie-zerodelta 4.1.0 → 4.2.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-DXUESKNC.js → chunk-KETGKV7Y.js} +43 -33
- package/dist/{chunk-YEYFEQWS.js → chunk-ZBUK7ULN.js} +56 -9
- package/dist/core/index.cjs +59 -8
- package/dist/core/index.d.cts +29 -3
- package/dist/core/index.d.ts +29 -3
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +97 -40
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BFa37j1u.d.ts → mount-Bver3O2z.d.ts} +1 -1
- package/dist/{mount-DssudKQ7.d.cts → mount-Dtbtdry1.d.cts} +1 -1
- package/dist/mount.cjs +97 -40
- 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 +6 -6
- package/dist/{verify-Ce6ZtDhi.d.cts → verify-57gjg_dM.d.cts} +28 -2
- package/dist/{verify-Ce6ZtDhi.d.ts → verify-57gjg_dM.d.ts} +28 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -484,6 +484,29 @@ function applyLayerZeroBuffer(quote, option = {}) {
|
|
|
484
484
|
return gas * (10000n + LZ_FEE_BUFFER_BPS) / 10000n;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
// src/core/ticker.ts
|
|
488
|
+
var DISPLAY_SAFE = /^[\p{L}\p{N}\p{Sc}.+_-]{1,16}$/u;
|
|
489
|
+
function foldTicker(value) {
|
|
490
|
+
return String(value ?? "").replace(/₮/g, "T").toUpperCase();
|
|
491
|
+
}
|
|
492
|
+
function safeTicker(ticker, symbol) {
|
|
493
|
+
const value = String(ticker ?? "").trim();
|
|
494
|
+
if (!value || !DISPLAY_SAFE.test(value)) return "";
|
|
495
|
+
const asset = foldTicker(symbol).trim();
|
|
496
|
+
if (!asset || !foldTicker(value).startsWith(asset)) return "";
|
|
497
|
+
return value;
|
|
498
|
+
}
|
|
499
|
+
function tokenTicker(token) {
|
|
500
|
+
if (!token) return "";
|
|
501
|
+
return safeTicker(token.displaySymbol, token.symbol) || String(token.symbol ?? "");
|
|
502
|
+
}
|
|
503
|
+
function tickerOn(tokens, chainId, symbol) {
|
|
504
|
+
if (!symbol || !chainId || !tokens?.length) return symbol;
|
|
505
|
+
const key = symbolKey(symbol);
|
|
506
|
+
const deployment = tokens.find((t) => Number(t.chainId) === Number(chainId) && symbolKey(t.symbol) === key);
|
|
507
|
+
return deployment ? tokenTicker(deployment) : symbol;
|
|
508
|
+
}
|
|
509
|
+
|
|
487
510
|
// src/core/availability.ts
|
|
488
511
|
function assetClassOf(symbol) {
|
|
489
512
|
const key = symbolKey(symbol);
|
|
@@ -547,10 +570,10 @@ function brokenLaneFor(token, source, brokenLanes) {
|
|
|
547
570
|
}
|
|
548
571
|
function destinationAvailability(token, ctx, source) {
|
|
549
572
|
if (brokenLaneFor(token, source ?? void 0, ctx.brokenLanes)) return "unreachable";
|
|
550
|
-
if (
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
return "available";
|
|
573
|
+
if (directLaneOK(token, source ?? void 0, ctx.lanes)) {
|
|
574
|
+
if (ctx.execution.has(Number(token.chainId))) return "available";
|
|
575
|
+
if (token.isChainedDestination === true) return "available";
|
|
576
|
+
if (!isKnownUnbridgeable(token.bridge) && ctx.destination.has(tokenKey(token.chainId, token.address))) return "available";
|
|
554
577
|
}
|
|
555
578
|
return ctx.hubSymbols.has(symbolKey(token.symbol)) ? "hub-only" : "unreachable";
|
|
556
579
|
}
|
|
@@ -664,6 +687,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
664
687
|
options.push({
|
|
665
688
|
symbol: token.symbol,
|
|
666
689
|
symbolKey: payKey,
|
|
690
|
+
ticker: tokenTicker(token),
|
|
667
691
|
name: token.name || token.symbol,
|
|
668
692
|
chainId,
|
|
669
693
|
chainName: chainNameOf(chainId, chains),
|
|
@@ -738,7 +762,8 @@ function suppressedLanes(health) {
|
|
|
738
762
|
if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return EMPTY;
|
|
739
763
|
const out = /* @__PURE__ */ new Map();
|
|
740
764
|
for (const lane of health.lanes) {
|
|
741
|
-
|
|
765
|
+
const firewalled = lane?.status === "unknown" && lane?.kind === "firewalled";
|
|
766
|
+
if (lane?.status !== "broken" && !firewalled) continue;
|
|
742
767
|
const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
|
|
743
768
|
if (!key) continue;
|
|
744
769
|
out.set(key, {
|
|
@@ -755,6 +780,8 @@ function brokenLaneReason(lane) {
|
|
|
755
780
|
switch (lane.kind) {
|
|
756
781
|
case "bridge-throttled":
|
|
757
782
|
return "The issuer's bridge for this pair is closed right now.";
|
|
783
|
+
case "firewalled":
|
|
784
|
+
return "This pair is temporarily unavailable.";
|
|
758
785
|
case "vault-closed":
|
|
759
786
|
return "This vault is not accepting deposits right now.";
|
|
760
787
|
default:
|
|
@@ -1353,10 +1380,13 @@ function routeDeltaLabel(result, quote) {
|
|
|
1353
1380
|
if (quote.feeBps) return `${quote.feeBps} bps fee`;
|
|
1354
1381
|
return "~0";
|
|
1355
1382
|
}
|
|
1383
|
+
function optionTicker(option) {
|
|
1384
|
+
return option.ticker || option.symbol;
|
|
1385
|
+
}
|
|
1356
1386
|
function routeLabelFor(option, destinationToken, result) {
|
|
1357
1387
|
if (result.directTransfer) return "Direct transfer: asset and chain already match.";
|
|
1358
1388
|
const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
|
|
1359
|
-
return `Swap ${option
|
|
1389
|
+
return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
|
|
1360
1390
|
}
|
|
1361
1391
|
function tokenAt(tokens, chainId, address) {
|
|
1362
1392
|
const wanted = normalizeAddress(address);
|
|
@@ -1375,6 +1405,7 @@ function buildLegs(orders, ctx) {
|
|
|
1375
1405
|
const legs = [];
|
|
1376
1406
|
let fromChainId = ctx.option.chainId;
|
|
1377
1407
|
let fromAsset = ctx.option.symbol;
|
|
1408
|
+
let fromTicker = optionTicker(ctx.option);
|
|
1378
1409
|
let fromDecimals = ctx.option.decimals;
|
|
1379
1410
|
for (let index = 0; index < orders.length; index += 1) {
|
|
1380
1411
|
const order = orders[index];
|
|
@@ -1382,15 +1413,18 @@ function buildLegs(orders, ctx) {
|
|
|
1382
1413
|
const toChainId = Number(order.destinationChainId);
|
|
1383
1414
|
const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
|
|
1384
1415
|
const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
|
|
1416
|
+
const toTicker = askToken ? tokenTicker(askToken) : "";
|
|
1385
1417
|
const toDecimals = askToken ? assetDecimals(askToken) : void 0;
|
|
1386
1418
|
const executionChainId = Number(order.executionChainId);
|
|
1387
1419
|
legs.push({
|
|
1388
1420
|
index: index + 1,
|
|
1389
1421
|
fromAsset,
|
|
1422
|
+
fromTicker,
|
|
1390
1423
|
fromChainId,
|
|
1391
1424
|
fromChainName: chainNameOf(fromChainId, ctx.chains),
|
|
1392
1425
|
fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
|
|
1393
1426
|
toAsset,
|
|
1427
|
+
toTicker,
|
|
1394
1428
|
toChainId,
|
|
1395
1429
|
toChainName: chainNameOf(toChainId, ctx.chains),
|
|
1396
1430
|
toAmount: legAmount(order.askTokenAmount, toDecimals),
|
|
@@ -1399,6 +1433,7 @@ function buildLegs(orders, ctx) {
|
|
|
1399
1433
|
});
|
|
1400
1434
|
fromChainId = toChainId;
|
|
1401
1435
|
fromAsset = toAsset;
|
|
1436
|
+
fromTicker = toTicker;
|
|
1402
1437
|
fromDecimals = toDecimals;
|
|
1403
1438
|
}
|
|
1404
1439
|
return legs;
|
|
@@ -1427,6 +1462,7 @@ async function buildRoute({
|
|
|
1427
1462
|
state: "DIRECT",
|
|
1428
1463
|
source: {
|
|
1429
1464
|
asset: option.symbol,
|
|
1465
|
+
ticker: optionTicker(option),
|
|
1430
1466
|
chainId: option.chainId,
|
|
1431
1467
|
chainName: option.chainName,
|
|
1432
1468
|
tokenAddress: option.address,
|
|
@@ -1436,6 +1472,7 @@ async function buildRoute({
|
|
|
1436
1472
|
},
|
|
1437
1473
|
receive: {
|
|
1438
1474
|
asset: destinationToken.symbol,
|
|
1475
|
+
ticker: tokenTicker(destinationToken),
|
|
1439
1476
|
chainId: Number(destination.chainId),
|
|
1440
1477
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1441
1478
|
tokenAddress: destinationToken.address,
|
|
@@ -1450,10 +1487,12 @@ async function buildRoute({
|
|
|
1450
1487
|
{
|
|
1451
1488
|
index: 1,
|
|
1452
1489
|
fromAsset: option.symbol,
|
|
1490
|
+
fromTicker: optionTicker(option),
|
|
1453
1491
|
fromChainId: option.chainId,
|
|
1454
1492
|
fromChainName: option.chainName,
|
|
1455
1493
|
fromAmount: sourceAmount,
|
|
1456
1494
|
toAsset: destinationToken.symbol,
|
|
1495
|
+
toTicker: tokenTicker(destinationToken),
|
|
1457
1496
|
toChainId: Number(destination.chainId),
|
|
1458
1497
|
toChainName: chainNameOf(Number(destination.chainId), chains),
|
|
1459
1498
|
toAmount: receiveAmount,
|
|
@@ -1465,7 +1504,7 @@ async function buildRoute({
|
|
|
1465
1504
|
{
|
|
1466
1505
|
id: "transfer",
|
|
1467
1506
|
kind: "transfer",
|
|
1468
|
-
label: `Transfer ${destinationToken
|
|
1507
|
+
label: `Transfer ${tokenTicker(destinationToken)}`,
|
|
1469
1508
|
chainId: option.chainId,
|
|
1470
1509
|
to: option.address,
|
|
1471
1510
|
data: encodeTransfer(destination.address, result.youPayRaw),
|
|
@@ -1517,6 +1556,7 @@ async function buildRoute({
|
|
|
1517
1556
|
state: result.meetsTarget ? "ROUTE" : "SHORT",
|
|
1518
1557
|
source: {
|
|
1519
1558
|
asset: option.symbol,
|
|
1559
|
+
ticker: optionTicker(option),
|
|
1520
1560
|
chainId: option.chainId,
|
|
1521
1561
|
chainName: option.chainName,
|
|
1522
1562
|
tokenAddress: option.address,
|
|
@@ -1526,6 +1566,7 @@ async function buildRoute({
|
|
|
1526
1566
|
},
|
|
1527
1567
|
receive: {
|
|
1528
1568
|
asset: destinationToken.symbol,
|
|
1569
|
+
ticker: tokenTicker(destinationToken),
|
|
1529
1570
|
chainId: Number(destination.chainId),
|
|
1530
1571
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1531
1572
|
tokenAddress: destinationToken.address,
|
|
@@ -1539,7 +1580,7 @@ async function buildRoute({
|
|
|
1539
1580
|
{
|
|
1540
1581
|
id: "approve",
|
|
1541
1582
|
kind: "approve",
|
|
1542
|
-
label: `Approve ${option
|
|
1583
|
+
label: `Approve ${optionTicker(option)}`,
|
|
1543
1584
|
chainId: option.chainId,
|
|
1544
1585
|
to: option.address,
|
|
1545
1586
|
data: encodeApprove(escrow, order.bidTokenAmount),
|
|
@@ -2006,6 +2047,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
|
|
|
2006
2047
|
const option = {
|
|
2007
2048
|
symbol: sourceToken.symbol,
|
|
2008
2049
|
symbolKey: symbolKey(sourceToken.symbol),
|
|
2050
|
+
ticker: tokenTicker(sourceToken),
|
|
2009
2051
|
name: sourceToken.name || sourceToken.symbol,
|
|
2010
2052
|
chainId: v.fromChainId,
|
|
2011
2053
|
chainName: chainNameOf(v.fromChainId, chains),
|
|
@@ -2377,13 +2419,16 @@ function sanitizeLegs(legs) {
|
|
|
2377
2419
|
if (!Array.isArray(legs) || !legs.length) return void 0;
|
|
2378
2420
|
const text = (v, max) => String(v ?? "").slice(0, max);
|
|
2379
2421
|
const chain = (v) => Number(v) || 0;
|
|
2422
|
+
const ticker = (value, asset) => safeTicker(value, asset) || void 0;
|
|
2380
2423
|
return legs.slice(0, 8).map((leg, i) => ({
|
|
2381
2424
|
index: Number(leg?.index) || i + 1,
|
|
2382
2425
|
fromAsset: text(leg?.fromAsset, 12),
|
|
2426
|
+
fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
|
|
2383
2427
|
fromChainId: chain(leg?.fromChainId),
|
|
2384
2428
|
fromChainName: text(leg?.fromChainName, 40),
|
|
2385
2429
|
fromAmount: text(leg?.fromAmount, 40),
|
|
2386
2430
|
toAsset: text(leg?.toAsset, 12),
|
|
2431
|
+
toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
|
|
2387
2432
|
toChainId: chain(leg?.toChainId),
|
|
2388
2433
|
toChainName: text(leg?.toChainName, 40),
|
|
2389
2434
|
toAmount: text(leg?.toAmount, 40),
|
|
@@ -2400,6 +2445,8 @@ function sanitizeTxEntry(entry) {
|
|
|
2400
2445
|
chainName: String(entry.chainName || "").slice(0, 40),
|
|
2401
2446
|
fromAsset: String(entry.fromAsset || "").slice(0, 10),
|
|
2402
2447
|
toAsset: String(entry.toAsset || "").slice(0, 10),
|
|
2448
|
+
fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
|
|
2449
|
+
toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
|
|
2403
2450
|
payAmount: String(entry.payAmount || "").slice(0, 40),
|
|
2404
2451
|
receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
|
|
2405
2452
|
account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
|
|
@@ -2901,6 +2948,8 @@ function useFlow(args) {
|
|
|
2901
2948
|
chainName: route.source.chainName,
|
|
2902
2949
|
fromAsset: route.source.asset,
|
|
2903
2950
|
toAsset: route.receive.asset,
|
|
2951
|
+
fromTicker: route.source.ticker,
|
|
2952
|
+
toTicker: route.receive.ticker,
|
|
2904
2953
|
payAmount: route.source.payAmount,
|
|
2905
2954
|
receiveAmount: route.receive.amount,
|
|
2906
2955
|
account,
|
|
@@ -4238,7 +4287,7 @@ function ChevronGlyph() {
|
|
|
4238
4287
|
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" }) });
|
|
4239
4288
|
}
|
|
4240
4289
|
function TokenTile(props) {
|
|
4241
|
-
const shown = props.token
|
|
4290
|
+
const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
|
|
4242
4291
|
const glyph = props.pick ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4243
4292
|
/* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
|
|
4244
4293
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tile-text", children: [
|
|
@@ -4312,7 +4361,8 @@ function TokenSelect(props) {
|
|
|
4312
4361
|
const q = query.trim().toLowerCase();
|
|
4313
4362
|
const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
|
|
4314
4363
|
if (!q) return true;
|
|
4315
|
-
return String(t.symbol || "").toLowerCase().includes(q) ||
|
|
4364
|
+
return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
|
|
4365
|
+
foldTicker(tokenTicker(t)).includes(foldTicker(q)) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
|
|
4316
4366
|
// show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
|
|
4317
4367
|
String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
|
|
4318
4368
|
});
|
|
@@ -4364,7 +4414,7 @@ function TokenSelect(props) {
|
|
|
4364
4414
|
children: [
|
|
4365
4415
|
/* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
|
|
4366
4416
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-main", children: [
|
|
4367
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: t
|
|
4417
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
|
|
4368
4418
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
|
|
4369
4419
|
] }),
|
|
4370
4420
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-end", children: [
|
|
@@ -4437,10 +4487,12 @@ function legsOf(entry) {
|
|
|
4437
4487
|
const leg = {
|
|
4438
4488
|
index: 1,
|
|
4439
4489
|
fromAsset: entry.fromAsset,
|
|
4490
|
+
fromTicker: entry.fromTicker,
|
|
4440
4491
|
fromChainId: entry.chainId ?? 0,
|
|
4441
4492
|
fromChainName: entry.chainName,
|
|
4442
4493
|
fromAmount: entry.payAmount,
|
|
4443
4494
|
toAsset: entry.toAsset,
|
|
4495
|
+
toTicker: entry.toTicker,
|
|
4444
4496
|
toChainId: 0,
|
|
4445
4497
|
toChainName: "",
|
|
4446
4498
|
toAmount: entry.receiveAmount,
|
|
@@ -4469,9 +4521,9 @@ function TxLegs(props) {
|
|
|
4469
4521
|
multi ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-n", "aria-hidden": "true", children: leg.index }) : null,
|
|
4470
4522
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-body", children: [
|
|
4471
4523
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-line", children: [
|
|
4472
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromAsset || "\u2014"}` }),
|
|
4524
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromTicker || leg.fromAsset || "\u2014"}` }),
|
|
4473
4525
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
|
|
4474
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toAsset || "\u2014"}` })
|
|
4526
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toTicker || leg.toAsset || "\u2014"}` })
|
|
4475
4527
|
] }),
|
|
4476
4528
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-sub", children: [
|
|
4477
4529
|
chainName(leg.fromChainId, leg.fromChainName),
|
|
@@ -4517,10 +4569,10 @@ function TxPairGlyphs(props) {
|
|
|
4517
4569
|
function TxPair(props) {
|
|
4518
4570
|
const e = props.entry;
|
|
4519
4571
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-pair", children: [
|
|
4520
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromAsset}` }),
|
|
4572
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromTicker || e.fromAsset}` }),
|
|
4521
4573
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-side sg-mono", children: [
|
|
4522
4574
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
|
|
4523
|
-
`${e.receiveAmount} ${e.toAsset}`
|
|
4575
|
+
`${e.receiveAmount} ${e.toTicker || e.toAsset}`
|
|
4524
4576
|
] })
|
|
4525
4577
|
] });
|
|
4526
4578
|
}
|
|
@@ -4584,7 +4636,7 @@ function TxDetail(props) {
|
|
|
4584
4636
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
4585
4637
|
e.receiveAmount,
|
|
4586
4638
|
" ",
|
|
4587
|
-
e.toAsset
|
|
4639
|
+
e.toTicker || e.toAsset
|
|
4588
4640
|
] }),
|
|
4589
4641
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
4590
4642
|
e.kind === "payment" ? "Payment" : "Swap",
|
|
@@ -4601,7 +4653,7 @@ function TxDetail(props) {
|
|
|
4601
4653
|
/* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
|
|
4602
4654
|
e.payAmount,
|
|
4603
4655
|
" ",
|
|
4604
|
-
e.fromAsset
|
|
4656
|
+
e.fromTicker || e.fromAsset
|
|
4605
4657
|
] })
|
|
4606
4658
|
] }),
|
|
4607
4659
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
|
|
@@ -5050,7 +5102,7 @@ function PaymentIsland(props) {
|
|
|
5050
5102
|
zero = false;
|
|
5051
5103
|
}
|
|
5052
5104
|
if (zero) map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
5053
|
-
else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
5105
|
+
else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
|
|
5054
5106
|
else map[key] = { disabled: false };
|
|
5055
5107
|
}
|
|
5056
5108
|
return map;
|
|
@@ -5121,7 +5173,7 @@ function PaymentIsland(props) {
|
|
|
5121
5173
|
if (verdict === "available") continue;
|
|
5122
5174
|
states[key] = {
|
|
5123
5175
|
disabled: true,
|
|
5124
|
-
reason: verdict === "hub-only" ? `${token
|
|
5176
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
5125
5177
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
5126
5178
|
};
|
|
5127
5179
|
}
|
|
@@ -5139,6 +5191,7 @@ function PaymentIsland(props) {
|
|
|
5139
5191
|
list.push(
|
|
5140
5192
|
reg ?? {
|
|
5141
5193
|
symbol: r.source.asset,
|
|
5194
|
+
displaySymbol: r.source.ticker,
|
|
5142
5195
|
name: r.source.asset,
|
|
5143
5196
|
chainId: r.source.chainId,
|
|
5144
5197
|
address: r.source.tokenAddress ?? "",
|
|
@@ -5271,10 +5324,11 @@ function PaymentIsland(props) {
|
|
|
5271
5324
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
5272
5325
|
const lastTxOwned = Boolean(flow.lastTxEntry?.hash && wallet.account && flow.lastTxEntry.account === wallet.account.toLowerCase());
|
|
5273
5326
|
const mismatch = flow.status === "error" && flow.verdict?.status === "mismatch";
|
|
5274
|
-
const
|
|
5327
|
+
const destTicker = isPay ? tickerOn(registryTokens, props.toChainId, props.toAsset ?? "") : exToToken ? tokenTicker(exToToken) : exToAsset ?? "";
|
|
5328
|
+
const exFromTicker = exFromToken ? tokenTicker(exFromToken) : exFromAsset ?? "";
|
|
5275
5329
|
const anchorAmount = sel?.receive.amount ?? (flow.status === "loading" ? "\u2026" : "\u2014");
|
|
5276
5330
|
const successAmount = isPay ? props.amount : sel?.receive.amount;
|
|
5277
|
-
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${
|
|
5331
|
+
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${destTicker}` : "" : exAmount ? `${exAmount} ${exFromTicker}`.trim() : "");
|
|
5278
5332
|
const verb = isPay ? { present: "Pay", gerund: "Paying", past: "Paid" } : kind === "swap" ? { present: "Swap", gerund: "Swapping", past: "Swapped" } : { present: "Exchange", gerund: "Exchanging", past: "Exchanged" };
|
|
5279
5333
|
const paid = flow.status === "success";
|
|
5280
5334
|
const settling = flow.status === "pending";
|
|
@@ -5329,7 +5383,7 @@ function PaymentIsland(props) {
|
|
|
5329
5383
|
const liveMsg = flow.status === "loading" ? isPay ? "Finding the best way to pay." : "Finding the best route." : flow.status === "submitting" ? `${activeStep?.label ?? (isPay ? "Processing your payment" : `Processing your ${verb.present.toLowerCase()}`)} \u2014 in progress.` : flow.status === "success" || flow.status === "pending" ? flow.verdict?.status === "confirmed" ? isPay ? "Payment confirmed on-chain \u2014 the merchant has been settled." : `${verb.past} \u2014 confirmed on-chain.` : isPay ? "Payment sent \u2014 confirmation is still pending." : "Submitted \u2014 confirmation is still pending." : "";
|
|
5330
5384
|
const loading = flow.status === "loading";
|
|
5331
5385
|
const payReady = isPay ? Boolean(sel && selectedVisible) : Boolean(sel);
|
|
5332
|
-
const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
|
|
5386
|
+
const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
|
|
5333
5387
|
const exPct = (p) => {
|
|
5334
5388
|
if (!exFromBal || !exFromToken) return;
|
|
5335
5389
|
const raw = BigInt(exFromBal.raw);
|
|
@@ -5351,7 +5405,7 @@ function PaymentIsland(props) {
|
|
|
5351
5405
|
"Balance: ",
|
|
5352
5406
|
exFromBal.formatted,
|
|
5353
5407
|
" ",
|
|
5354
|
-
|
|
5408
|
+
exFromTicker
|
|
5355
5409
|
] }) : null,
|
|
5356
5410
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-pct-row", role: "group", "aria-label": "Amount shortcuts", children: [25, 50, 75, 100].map((p) => /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "sg-pct", disabled: !exFromBal || submitting, onClick: () => exPct(p), children: p === 100 ? "MAX" : `${p}%` }, p)) })
|
|
5357
5411
|
] })
|
|
@@ -5417,7 +5471,7 @@ function PaymentIsland(props) {
|
|
|
5417
5471
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
5418
5472
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5419
5473
|
"\u2014 ",
|
|
5420
|
-
|
|
5474
|
+
destTicker
|
|
5421
5475
|
] }),
|
|
5422
5476
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor-sub", children: "Connect your wallet to see the estimated receive amount." })
|
|
5423
5477
|
] })
|
|
@@ -5437,7 +5491,7 @@ function PaymentIsland(props) {
|
|
|
5437
5491
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-amt sg-mono", children: [
|
|
5438
5492
|
successAmount,
|
|
5439
5493
|
" ",
|
|
5440
|
-
|
|
5494
|
+
destTicker
|
|
5441
5495
|
] }),
|
|
5442
5496
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-sub", children: [
|
|
5443
5497
|
confirmed ? "Confirmed on-chain" : "Confirmation pending",
|
|
@@ -5489,7 +5543,7 @@ function PaymentIsland(props) {
|
|
|
5489
5543
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5490
5544
|
anchorAmount,
|
|
5491
5545
|
" ",
|
|
5492
|
-
|
|
5546
|
+
destTicker
|
|
5493
5547
|
] })
|
|
5494
5548
|
] })
|
|
5495
5549
|
] }),
|
|
@@ -5533,7 +5587,7 @@ function PaymentIsland(props) {
|
|
|
5533
5587
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5534
5588
|
sel.source.payAmount,
|
|
5535
5589
|
" ",
|
|
5536
|
-
sel.source.asset
|
|
5590
|
+
sel.source.ticker || sel.source.asset
|
|
5537
5591
|
] }),
|
|
5538
5592
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5539
5593
|
"on ",
|
|
@@ -5546,7 +5600,7 @@ function PaymentIsland(props) {
|
|
|
5546
5600
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5547
5601
|
sel.source.payAmount,
|
|
5548
5602
|
" ",
|
|
5549
|
-
sel.source.asset
|
|
5603
|
+
sel.source.ticker || sel.source.asset
|
|
5550
5604
|
] }),
|
|
5551
5605
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5552
5606
|
"on ",
|
|
@@ -5701,7 +5755,7 @@ function StableGeniePay(props) {
|
|
|
5701
5755
|
if (zero) {
|
|
5702
5756
|
map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
5703
5757
|
} else if (a.affordable === false) {
|
|
5704
|
-
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
5758
|
+
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
|
|
5705
5759
|
} else {
|
|
5706
5760
|
map[key] = { disabled: false };
|
|
5707
5761
|
}
|
|
@@ -5735,6 +5789,7 @@ function StableGeniePay(props) {
|
|
|
5735
5789
|
list.push(
|
|
5736
5790
|
reg ?? {
|
|
5737
5791
|
symbol: r.source.asset,
|
|
5792
|
+
displaySymbol: r.source.ticker,
|
|
5738
5793
|
name: r.source.asset,
|
|
5739
5794
|
chainId: r.source.chainId,
|
|
5740
5795
|
address: r.source.tokenAddress ?? "",
|
|
@@ -5808,12 +5863,12 @@ function StableGeniePay(props) {
|
|
|
5808
5863
|
const sel = flow.selected;
|
|
5809
5864
|
const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
|
|
5810
5865
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
5811
|
-
const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
|
|
5866
|
+
const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.ticker || sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
|
|
5812
5867
|
// Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
|
|
5813
5868
|
`Routed through ZeroDelta \xB7 the extra covers the network cost`
|
|
5814
5869
|
) : "Pay with USDC, USDT, or USDE from your wallet.";
|
|
5815
5870
|
const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
|
|
5816
|
-
const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay";
|
|
5871
|
+
const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay";
|
|
5817
5872
|
const walletSlot = wallet.account ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-head-tools", children: [
|
|
5818
5873
|
/* @__PURE__ */ jsxRuntime.jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
|
|
5819
5874
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-brand", children: [
|
|
@@ -5842,7 +5897,7 @@ function StableGeniePay(props) {
|
|
|
5842
5897
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
5843
5898
|
props.amount,
|
|
5844
5899
|
" ",
|
|
5845
|
-
props.toAsset
|
|
5900
|
+
tickerOn(registryTokens, props.toChainId, props.toAsset)
|
|
5846
5901
|
] }),
|
|
5847
5902
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
5848
5903
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -5878,7 +5933,7 @@ function StableGeniePay(props) {
|
|
|
5878
5933
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5879
5934
|
sel.source.payAmount,
|
|
5880
5935
|
" ",
|
|
5881
|
-
sel.source.asset
|
|
5936
|
+
sel.source.ticker || sel.source.asset
|
|
5882
5937
|
] }),
|
|
5883
5938
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5884
5939
|
"on ",
|
|
@@ -6004,7 +6059,7 @@ function StableGenieSwap(props) {
|
|
|
6004
6059
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
6005
6060
|
receive,
|
|
6006
6061
|
" ",
|
|
6007
|
-
toAsset
|
|
6062
|
+
tickerOn(registryTokens, toChainId, toAsset)
|
|
6008
6063
|
] }),
|
|
6009
6064
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
6010
6065
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -6122,6 +6177,8 @@ function StableGenieExchange(props) {
|
|
|
6122
6177
|
const fromToken = react.useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
|
|
6123
6178
|
const toToken = react.useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
|
|
6124
6179
|
const toSymbol = toToken?.symbol ?? to?.symbol ?? "";
|
|
6180
|
+
const fromTicker = fromToken ? tokenTicker(fromToken) : from?.symbol ?? "";
|
|
6181
|
+
const toTicker = toToken ? tokenTicker(toToken) : toSymbol;
|
|
6125
6182
|
const fromPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(sourceTokens, toToken) : sourceTokens, [product, sourceTokens, toToken]);
|
|
6126
6183
|
const toPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(tokens, fromToken) : tokens, [product, tokens, fromToken]);
|
|
6127
6184
|
const rwaSeeded = react.useRef(false);
|
|
@@ -6149,7 +6206,7 @@ function StableGenieExchange(props) {
|
|
|
6149
6206
|
if (verdict === "available") continue;
|
|
6150
6207
|
states[key] = {
|
|
6151
6208
|
disabled: true,
|
|
6152
|
-
reason: verdict === "hub-only" ? `${token
|
|
6209
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain \u2014 choose an execution chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
6153
6210
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
6154
6211
|
};
|
|
6155
6212
|
}
|
|
@@ -6271,7 +6328,7 @@ function StableGenieExchange(props) {
|
|
|
6271
6328
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
6272
6329
|
receive,
|
|
6273
6330
|
" ",
|
|
6274
|
-
|
|
6331
|
+
toTicker
|
|
6275
6332
|
] }),
|
|
6276
6333
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
6277
6334
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -6300,7 +6357,7 @@ function StableGenieExchange(props) {
|
|
|
6300
6357
|
"Balance: ",
|
|
6301
6358
|
fromBal.formatted,
|
|
6302
6359
|
" ",
|
|
6303
|
-
|
|
6360
|
+
fromTicker
|
|
6304
6361
|
] }) : null,
|
|
6305
6362
|
mode !== "onramp" ? (
|
|
6306
6363
|
// a11y note: <fieldset> carries UA styling that would
|
|
@@ -6312,7 +6369,7 @@ function StableGenieExchange(props) {
|
|
|
6312
6369
|
!rampMode && quoteError && !wide ? /* @__PURE__ */ jsxRuntime.jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
|
|
6313
6370
|
!rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
|
|
6314
6371
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
6315
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${
|
|
6372
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toTicker}` : "\u2014" }),
|
|
6316
6373
|
meta && !quoting ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
|
|
6317
6374
|
"via ",
|
|
6318
6375
|
meta.bridge,
|
|
@@ -6361,7 +6418,7 @@ function StableGenieExchange(props) {
|
|
|
6361
6418
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-amt sg-mono", children: [
|
|
6362
6419
|
receive,
|
|
6363
6420
|
" ",
|
|
6364
|
-
|
|
6421
|
+
toTicker
|
|
6365
6422
|
] }),
|
|
6366
6423
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
|
|
6367
6424
|
"on ",
|
|
@@ -6373,7 +6430,7 @@ function StableGenieExchange(props) {
|
|
|
6373
6430
|
/* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
|
|
6374
6431
|
normalizedAmount,
|
|
6375
6432
|
" ",
|
|
6376
|
-
|
|
6433
|
+
fromTicker
|
|
6377
6434
|
] })
|
|
6378
6435
|
] }),
|
|
6379
6436
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-Dtbtdry1.cjs';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-57gjg_dM.cjs';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-57gjg_dM.cjs';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.cjs';
|
|
6
6
|
|
|
7
7
|
declare function CompliancePanel(props: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-
|
|
1
|
+
export { B as BankPayoutAccount, E as Eip1193Provider, a as ExchangeMode, L as LinkIdentity, M as MountConfig, P as PaymentIsland, b as PaymentIslandKind, c as PaymentIslandProps, S as SettlementMethod, d as StableGenieConfig, e as StableGenieExchange, f as StableGenieExchangeProps, g as StableGeniePay, h as StableGeniePayProps, i as StableGenieProvider, j as StableGenieRwaExchange, k as StableGenieSwap, l as StableGenieSwapProps, m as StableGenieTheme, n as SuccessInfo, o as SupportedAsset, p as darkTheme, q as lightTheme, r as mount, s as resolveTheme } from './mount-Bver3O2z.js';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { C as Compliance } from './verify-
|
|
4
|
-
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-
|
|
3
|
+
import { C as Compliance } from './verify-57gjg_dM.js';
|
|
4
|
+
export { A as Availability, B as BrokenLane, a as Catalogue, b as Chain, c as ComplianceCheck, d as ComplianceTone, e as ComplianceView, E as EngineConfig, f as ExchangeProduct, P as Plan, R as Route, g as RouteLeg, h as RouteResult, S as SanitizedTxEntry, T as Token, i as TxHistoryEntry, V as VerifyResult, W as WalletScreen, j as assetClassOf, k as brokenLaneReason, l as complianceChecks, m as complianceControlsLine, n as complianceView, o as counterpartTokens, p as destinationAvailability, q as humanizeComplianceReason } from './verify-57gjg_dM.js';
|
|
5
5
|
export { EXECUTABLE_STABLE_ASSETS, Engine, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, createEngine, symbolKey } from './core/index.js';
|
|
6
6
|
|
|
7
7
|
declare function CompliancePanel(props: {
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, darkTheme, lightTheme, mount, resolveTheme } from './chunk-
|
|
2
|
-
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, humanizeComplianceReason, symbolKey } from './chunk-
|
|
1
|
+
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, darkTheme, lightTheme, mount, resolveTheme } from './chunk-KETGKV7Y.js';
|
|
2
|
+
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, humanizeComplianceReason, symbolKey } from './chunk-ZBUK7ULN.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-57gjg_dM.js';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-
|
|
3
|
+
import { P as Plan, V as VerifyResult, h as RouteResult, S as SanitizedTxEntry, f as ExchangeProduct } from './verify-57gjg_dM.cjs';
|
|
4
4
|
|
|
5
5
|
interface Eip1193Provider {
|
|
6
6
|
request(args: {
|