@glacislabs/stablegenie-zerodelta 4.1.1 → 4.2.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.
- package/dist/{chunk-MQ4XLBVF.js → chunk-FDCSZ3OY.js} +76 -9
- package/dist/{chunk-6BYXMDVN.js → chunk-OOESQYM3.js} +43 -33
- package/dist/core/index.cjs +79 -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 +117 -40
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-CoLgvvsE.d.ts → mount-Bver3O2z.d.ts} +1 -1
- package/dist/{mount-Dz9LffFx.d.cts → mount-Dtbtdry1.d.cts} +1 -1
- package/dist/mount.cjs +117 -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-Bdw8-YWZ.d.cts → verify-57gjg_dM.d.cts} +20 -0
- package/dist/{verify-Bdw8-YWZ.d.ts → verify-57gjg_dM.d.ts} +20 -0
- 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);
|
|
@@ -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),
|
|
@@ -1356,10 +1380,13 @@ function routeDeltaLabel(result, quote) {
|
|
|
1356
1380
|
if (quote.feeBps) return `${quote.feeBps} bps fee`;
|
|
1357
1381
|
return "~0";
|
|
1358
1382
|
}
|
|
1383
|
+
function optionTicker(option) {
|
|
1384
|
+
return option.ticker || option.symbol;
|
|
1385
|
+
}
|
|
1359
1386
|
function routeLabelFor(option, destinationToken, result) {
|
|
1360
1387
|
if (result.directTransfer) return "Direct transfer: asset and chain already match.";
|
|
1361
1388
|
const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
|
|
1362
|
-
return `Swap ${option
|
|
1389
|
+
return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
|
|
1363
1390
|
}
|
|
1364
1391
|
function tokenAt(tokens, chainId, address) {
|
|
1365
1392
|
const wanted = normalizeAddress(address);
|
|
@@ -1378,6 +1405,7 @@ function buildLegs(orders, ctx) {
|
|
|
1378
1405
|
const legs = [];
|
|
1379
1406
|
let fromChainId = ctx.option.chainId;
|
|
1380
1407
|
let fromAsset = ctx.option.symbol;
|
|
1408
|
+
let fromTicker = optionTicker(ctx.option);
|
|
1381
1409
|
let fromDecimals = ctx.option.decimals;
|
|
1382
1410
|
for (let index = 0; index < orders.length; index += 1) {
|
|
1383
1411
|
const order = orders[index];
|
|
@@ -1385,15 +1413,18 @@ function buildLegs(orders, ctx) {
|
|
|
1385
1413
|
const toChainId = Number(order.destinationChainId);
|
|
1386
1414
|
const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
|
|
1387
1415
|
const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
|
|
1416
|
+
const toTicker = askToken ? tokenTicker(askToken) : "";
|
|
1388
1417
|
const toDecimals = askToken ? assetDecimals(askToken) : void 0;
|
|
1389
1418
|
const executionChainId = Number(order.executionChainId);
|
|
1390
1419
|
legs.push({
|
|
1391
1420
|
index: index + 1,
|
|
1392
1421
|
fromAsset,
|
|
1422
|
+
fromTicker,
|
|
1393
1423
|
fromChainId,
|
|
1394
1424
|
fromChainName: chainNameOf(fromChainId, ctx.chains),
|
|
1395
1425
|
fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
|
|
1396
1426
|
toAsset,
|
|
1427
|
+
toTicker,
|
|
1397
1428
|
toChainId,
|
|
1398
1429
|
toChainName: chainNameOf(toChainId, ctx.chains),
|
|
1399
1430
|
toAmount: legAmount(order.askTokenAmount, toDecimals),
|
|
@@ -1402,6 +1433,7 @@ function buildLegs(orders, ctx) {
|
|
|
1402
1433
|
});
|
|
1403
1434
|
fromChainId = toChainId;
|
|
1404
1435
|
fromAsset = toAsset;
|
|
1436
|
+
fromTicker = toTicker;
|
|
1405
1437
|
fromDecimals = toDecimals;
|
|
1406
1438
|
}
|
|
1407
1439
|
return legs;
|
|
@@ -1430,6 +1462,7 @@ async function buildRoute({
|
|
|
1430
1462
|
state: "DIRECT",
|
|
1431
1463
|
source: {
|
|
1432
1464
|
asset: option.symbol,
|
|
1465
|
+
ticker: optionTicker(option),
|
|
1433
1466
|
chainId: option.chainId,
|
|
1434
1467
|
chainName: option.chainName,
|
|
1435
1468
|
tokenAddress: option.address,
|
|
@@ -1439,6 +1472,7 @@ async function buildRoute({
|
|
|
1439
1472
|
},
|
|
1440
1473
|
receive: {
|
|
1441
1474
|
asset: destinationToken.symbol,
|
|
1475
|
+
ticker: tokenTicker(destinationToken),
|
|
1442
1476
|
chainId: Number(destination.chainId),
|
|
1443
1477
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1444
1478
|
tokenAddress: destinationToken.address,
|
|
@@ -1453,10 +1487,12 @@ async function buildRoute({
|
|
|
1453
1487
|
{
|
|
1454
1488
|
index: 1,
|
|
1455
1489
|
fromAsset: option.symbol,
|
|
1490
|
+
fromTicker: optionTicker(option),
|
|
1456
1491
|
fromChainId: option.chainId,
|
|
1457
1492
|
fromChainName: option.chainName,
|
|
1458
1493
|
fromAmount: sourceAmount,
|
|
1459
1494
|
toAsset: destinationToken.symbol,
|
|
1495
|
+
toTicker: tokenTicker(destinationToken),
|
|
1460
1496
|
toChainId: Number(destination.chainId),
|
|
1461
1497
|
toChainName: chainNameOf(Number(destination.chainId), chains),
|
|
1462
1498
|
toAmount: receiveAmount,
|
|
@@ -1468,7 +1504,7 @@ async function buildRoute({
|
|
|
1468
1504
|
{
|
|
1469
1505
|
id: "transfer",
|
|
1470
1506
|
kind: "transfer",
|
|
1471
|
-
label: `Transfer ${destinationToken
|
|
1507
|
+
label: `Transfer ${tokenTicker(destinationToken)}`,
|
|
1472
1508
|
chainId: option.chainId,
|
|
1473
1509
|
to: option.address,
|
|
1474
1510
|
data: encodeTransfer(destination.address, result.youPayRaw),
|
|
@@ -1520,6 +1556,7 @@ async function buildRoute({
|
|
|
1520
1556
|
state: result.meetsTarget ? "ROUTE" : "SHORT",
|
|
1521
1557
|
source: {
|
|
1522
1558
|
asset: option.symbol,
|
|
1559
|
+
ticker: optionTicker(option),
|
|
1523
1560
|
chainId: option.chainId,
|
|
1524
1561
|
chainName: option.chainName,
|
|
1525
1562
|
tokenAddress: option.address,
|
|
@@ -1529,6 +1566,7 @@ async function buildRoute({
|
|
|
1529
1566
|
},
|
|
1530
1567
|
receive: {
|
|
1531
1568
|
asset: destinationToken.symbol,
|
|
1569
|
+
ticker: tokenTicker(destinationToken),
|
|
1532
1570
|
chainId: Number(destination.chainId),
|
|
1533
1571
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1534
1572
|
tokenAddress: destinationToken.address,
|
|
@@ -1542,7 +1580,7 @@ async function buildRoute({
|
|
|
1542
1580
|
{
|
|
1543
1581
|
id: "approve",
|
|
1544
1582
|
kind: "approve",
|
|
1545
|
-
label: `Approve ${option
|
|
1583
|
+
label: `Approve ${optionTicker(option)}`,
|
|
1546
1584
|
chainId: option.chainId,
|
|
1547
1585
|
to: option.address,
|
|
1548
1586
|
data: encodeApprove(escrow, order.bidTokenAmount),
|
|
@@ -1640,6 +1678,8 @@ function isTransientQuoteError(error) {
|
|
|
1640
1678
|
function wait(ms) {
|
|
1641
1679
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1642
1680
|
}
|
|
1681
|
+
var PAGE_LIMIT = 500;
|
|
1682
|
+
var MAX_PAGES = 10;
|
|
1643
1683
|
function createApiClient(cfg) {
|
|
1644
1684
|
const cache = {
|
|
1645
1685
|
chains: null,
|
|
@@ -1651,7 +1691,7 @@ function createApiClient(cfg) {
|
|
|
1651
1691
|
const screenCache = /* @__PURE__ */ new Map();
|
|
1652
1692
|
const screenInflight = /* @__PURE__ */ new Map();
|
|
1653
1693
|
const apiBase = cfg.apiBase.replace(/\/$/, "");
|
|
1654
|
-
async function
|
|
1694
|
+
async function requestJson(path, init = {}) {
|
|
1655
1695
|
const apiKey = await cfg.getApiKey();
|
|
1656
1696
|
const headers = { "Content-Type": "application/json", ...init.headers || {} };
|
|
1657
1697
|
if (apiKey) headers["x-api-key"] = apiKey;
|
|
@@ -1687,8 +1727,30 @@ function createApiClient(cfg) {
|
|
|
1687
1727
|
reasons: json?.error?.reasons || json?.reasons
|
|
1688
1728
|
});
|
|
1689
1729
|
}
|
|
1730
|
+
return json;
|
|
1731
|
+
}
|
|
1732
|
+
async function apiRequest(path, init = {}) {
|
|
1733
|
+
const json = await requestJson(path, init);
|
|
1690
1734
|
return json?.data ?? json;
|
|
1691
1735
|
}
|
|
1736
|
+
async function requestAllPages(path) {
|
|
1737
|
+
const rows = [];
|
|
1738
|
+
let firstRow = "";
|
|
1739
|
+
for (let page = 0; page < MAX_PAGES; page += 1) {
|
|
1740
|
+
const json = await requestJson(`${path}${toQuery({ limit: PAGE_LIMIT, offset: rows.length || void 0 })}`);
|
|
1741
|
+
const envelope = json && !Array.isArray(json) ? json : {};
|
|
1742
|
+
const data = Array.isArray(json) ? json : envelope.data;
|
|
1743
|
+
const pageRows = Array.isArray(data) ? data : [];
|
|
1744
|
+
const head = pageRows.length ? JSON.stringify(pageRows[0]) : "";
|
|
1745
|
+
if (page === 0) firstRow = head;
|
|
1746
|
+
else if (head && head === firstRow) throw apiError(`ZeroDelta paging ignored the offset (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1747
|
+
rows.push(...pageRows);
|
|
1748
|
+
const total = envelope.meta?.totalCount;
|
|
1749
|
+
if (!envelope.paging?.next || typeof total === "number" && rows.length >= total) return rows;
|
|
1750
|
+
if (!pageRows.length) throw apiError(`ZeroDelta paging did not advance (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1751
|
+
}
|
|
1752
|
+
throw apiError(`ZeroDelta still had rows after ${MAX_PAGES} pages (${path}).`, { code: "bad_response" });
|
|
1753
|
+
}
|
|
1692
1754
|
async function fetchChains() {
|
|
1693
1755
|
if (nowFresh(cache.chains)) return cache.chains.value;
|
|
1694
1756
|
const chains = await apiRequest(`/chains${toQuery({ enabledOnly: true, limit: 500 })}`);
|
|
@@ -1701,16 +1763,15 @@ function createApiClient(cfg) {
|
|
|
1701
1763
|
}
|
|
1702
1764
|
async function fetchTokens() {
|
|
1703
1765
|
if (nowFresh(cache.tokens)) return cache.tokens.value;
|
|
1704
|
-
const tokens = await
|
|
1705
|
-
const normalized =
|
|
1766
|
+
const tokens = await requestAllPages("/tokens");
|
|
1767
|
+
const normalized = tokens.map((token) => ({ ...token, chainId: Number(token.chainId) }));
|
|
1706
1768
|
cache.tokens = { at: Date.now(), value: normalized };
|
|
1707
1769
|
return normalized;
|
|
1708
1770
|
}
|
|
1709
1771
|
async function fetchRoutes() {
|
|
1710
1772
|
if (nowFresh(cache.routes)) return cache.routes.value;
|
|
1711
1773
|
try {
|
|
1712
|
-
const
|
|
1713
|
-
const normalized = Array.isArray(routes) ? routes : [];
|
|
1774
|
+
const normalized = await requestAllPages("/routes");
|
|
1714
1775
|
cache.routes = { at: Date.now(), value: normalized };
|
|
1715
1776
|
return normalized;
|
|
1716
1777
|
} catch {
|
|
@@ -2009,6 +2070,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
|
|
|
2009
2070
|
const option = {
|
|
2010
2071
|
symbol: sourceToken.symbol,
|
|
2011
2072
|
symbolKey: symbolKey(sourceToken.symbol),
|
|
2073
|
+
ticker: tokenTicker(sourceToken),
|
|
2012
2074
|
name: sourceToken.name || sourceToken.symbol,
|
|
2013
2075
|
chainId: v.fromChainId,
|
|
2014
2076
|
chainName: chainNameOf(v.fromChainId, chains),
|
|
@@ -2380,13 +2442,16 @@ function sanitizeLegs(legs) {
|
|
|
2380
2442
|
if (!Array.isArray(legs) || !legs.length) return void 0;
|
|
2381
2443
|
const text = (v, max) => String(v ?? "").slice(0, max);
|
|
2382
2444
|
const chain = (v) => Number(v) || 0;
|
|
2445
|
+
const ticker = (value, asset) => safeTicker(value, asset) || void 0;
|
|
2383
2446
|
return legs.slice(0, 8).map((leg, i) => ({
|
|
2384
2447
|
index: Number(leg?.index) || i + 1,
|
|
2385
2448
|
fromAsset: text(leg?.fromAsset, 12),
|
|
2449
|
+
fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
|
|
2386
2450
|
fromChainId: chain(leg?.fromChainId),
|
|
2387
2451
|
fromChainName: text(leg?.fromChainName, 40),
|
|
2388
2452
|
fromAmount: text(leg?.fromAmount, 40),
|
|
2389
2453
|
toAsset: text(leg?.toAsset, 12),
|
|
2454
|
+
toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
|
|
2390
2455
|
toChainId: chain(leg?.toChainId),
|
|
2391
2456
|
toChainName: text(leg?.toChainName, 40),
|
|
2392
2457
|
toAmount: text(leg?.toAmount, 40),
|
|
@@ -2403,6 +2468,8 @@ function sanitizeTxEntry(entry) {
|
|
|
2403
2468
|
chainName: String(entry.chainName || "").slice(0, 40),
|
|
2404
2469
|
fromAsset: String(entry.fromAsset || "").slice(0, 10),
|
|
2405
2470
|
toAsset: String(entry.toAsset || "").slice(0, 10),
|
|
2471
|
+
fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
|
|
2472
|
+
toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
|
|
2406
2473
|
payAmount: String(entry.payAmount || "").slice(0, 40),
|
|
2407
2474
|
receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
|
|
2408
2475
|
account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
|
|
@@ -2904,6 +2971,8 @@ function useFlow(args) {
|
|
|
2904
2971
|
chainName: route.source.chainName,
|
|
2905
2972
|
fromAsset: route.source.asset,
|
|
2906
2973
|
toAsset: route.receive.asset,
|
|
2974
|
+
fromTicker: route.source.ticker,
|
|
2975
|
+
toTicker: route.receive.ticker,
|
|
2907
2976
|
payAmount: route.source.payAmount,
|
|
2908
2977
|
receiveAmount: route.receive.amount,
|
|
2909
2978
|
account,
|
|
@@ -4241,7 +4310,7 @@ function ChevronGlyph() {
|
|
|
4241
4310
|
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" }) });
|
|
4242
4311
|
}
|
|
4243
4312
|
function TokenTile(props) {
|
|
4244
|
-
const shown = props.token
|
|
4313
|
+
const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
|
|
4245
4314
|
const glyph = props.pick ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4246
4315
|
/* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
|
|
4247
4316
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tile-text", children: [
|
|
@@ -4315,7 +4384,8 @@ function TokenSelect(props) {
|
|
|
4315
4384
|
const q = query.trim().toLowerCase();
|
|
4316
4385
|
const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
|
|
4317
4386
|
if (!q) return true;
|
|
4318
|
-
return String(t.symbol || "").toLowerCase().includes(q) ||
|
|
4387
|
+
return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
|
|
4388
|
+
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
|
|
4319
4389
|
// show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
|
|
4320
4390
|
String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
|
|
4321
4391
|
});
|
|
@@ -4367,7 +4437,7 @@ function TokenSelect(props) {
|
|
|
4367
4437
|
children: [
|
|
4368
4438
|
/* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
|
|
4369
4439
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-main", children: [
|
|
4370
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: t
|
|
4440
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
|
|
4371
4441
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
|
|
4372
4442
|
] }),
|
|
4373
4443
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-end", children: [
|
|
@@ -4440,10 +4510,12 @@ function legsOf(entry) {
|
|
|
4440
4510
|
const leg = {
|
|
4441
4511
|
index: 1,
|
|
4442
4512
|
fromAsset: entry.fromAsset,
|
|
4513
|
+
fromTicker: entry.fromTicker,
|
|
4443
4514
|
fromChainId: entry.chainId ?? 0,
|
|
4444
4515
|
fromChainName: entry.chainName,
|
|
4445
4516
|
fromAmount: entry.payAmount,
|
|
4446
4517
|
toAsset: entry.toAsset,
|
|
4518
|
+
toTicker: entry.toTicker,
|
|
4447
4519
|
toChainId: 0,
|
|
4448
4520
|
toChainName: "",
|
|
4449
4521
|
toAmount: entry.receiveAmount,
|
|
@@ -4472,9 +4544,9 @@ function TxLegs(props) {
|
|
|
4472
4544
|
multi ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-n", "aria-hidden": "true", children: leg.index }) : null,
|
|
4473
4545
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-body", children: [
|
|
4474
4546
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-line", children: [
|
|
4475
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromAsset || "\u2014"}` }),
|
|
4547
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromTicker || leg.fromAsset || "\u2014"}` }),
|
|
4476
4548
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
|
|
4477
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toAsset || "\u2014"}` })
|
|
4549
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toTicker || leg.toAsset || "\u2014"}` })
|
|
4478
4550
|
] }),
|
|
4479
4551
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-sub", children: [
|
|
4480
4552
|
chainName(leg.fromChainId, leg.fromChainName),
|
|
@@ -4520,10 +4592,10 @@ function TxPairGlyphs(props) {
|
|
|
4520
4592
|
function TxPair(props) {
|
|
4521
4593
|
const e = props.entry;
|
|
4522
4594
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-pair", children: [
|
|
4523
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromAsset}` }),
|
|
4595
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromTicker || e.fromAsset}` }),
|
|
4524
4596
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-side sg-mono", children: [
|
|
4525
4597
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
|
|
4526
|
-
`${e.receiveAmount} ${e.toAsset}`
|
|
4598
|
+
`${e.receiveAmount} ${e.toTicker || e.toAsset}`
|
|
4527
4599
|
] })
|
|
4528
4600
|
] });
|
|
4529
4601
|
}
|
|
@@ -4587,7 +4659,7 @@ function TxDetail(props) {
|
|
|
4587
4659
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
4588
4660
|
e.receiveAmount,
|
|
4589
4661
|
" ",
|
|
4590
|
-
e.toAsset
|
|
4662
|
+
e.toTicker || e.toAsset
|
|
4591
4663
|
] }),
|
|
4592
4664
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
4593
4665
|
e.kind === "payment" ? "Payment" : "Swap",
|
|
@@ -4604,7 +4676,7 @@ function TxDetail(props) {
|
|
|
4604
4676
|
/* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
|
|
4605
4677
|
e.payAmount,
|
|
4606
4678
|
" ",
|
|
4607
|
-
e.fromAsset
|
|
4679
|
+
e.fromTicker || e.fromAsset
|
|
4608
4680
|
] })
|
|
4609
4681
|
] }),
|
|
4610
4682
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
|
|
@@ -5053,7 +5125,7 @@ function PaymentIsland(props) {
|
|
|
5053
5125
|
zero = false;
|
|
5054
5126
|
}
|
|
5055
5127
|
if (zero) map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
5056
|
-
else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
5128
|
+
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}` };
|
|
5057
5129
|
else map[key] = { disabled: false };
|
|
5058
5130
|
}
|
|
5059
5131
|
return map;
|
|
@@ -5124,7 +5196,7 @@ function PaymentIsland(props) {
|
|
|
5124
5196
|
if (verdict === "available") continue;
|
|
5125
5197
|
states[key] = {
|
|
5126
5198
|
disabled: true,
|
|
5127
|
-
reason: verdict === "hub-only" ? `${token
|
|
5199
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
5128
5200
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
5129
5201
|
};
|
|
5130
5202
|
}
|
|
@@ -5142,6 +5214,7 @@ function PaymentIsland(props) {
|
|
|
5142
5214
|
list.push(
|
|
5143
5215
|
reg ?? {
|
|
5144
5216
|
symbol: r.source.asset,
|
|
5217
|
+
displaySymbol: r.source.ticker,
|
|
5145
5218
|
name: r.source.asset,
|
|
5146
5219
|
chainId: r.source.chainId,
|
|
5147
5220
|
address: r.source.tokenAddress ?? "",
|
|
@@ -5274,10 +5347,11 @@ function PaymentIsland(props) {
|
|
|
5274
5347
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
5275
5348
|
const lastTxOwned = Boolean(flow.lastTxEntry?.hash && wallet.account && flow.lastTxEntry.account === wallet.account.toLowerCase());
|
|
5276
5349
|
const mismatch = flow.status === "error" && flow.verdict?.status === "mismatch";
|
|
5277
|
-
const
|
|
5350
|
+
const destTicker = isPay ? tickerOn(registryTokens, props.toChainId, props.toAsset ?? "") : exToToken ? tokenTicker(exToToken) : exToAsset ?? "";
|
|
5351
|
+
const exFromTicker = exFromToken ? tokenTicker(exFromToken) : exFromAsset ?? "";
|
|
5278
5352
|
const anchorAmount = sel?.receive.amount ?? (flow.status === "loading" ? "\u2026" : "\u2014");
|
|
5279
5353
|
const successAmount = isPay ? props.amount : sel?.receive.amount;
|
|
5280
|
-
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${
|
|
5354
|
+
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${destTicker}` : "" : exAmount ? `${exAmount} ${exFromTicker}`.trim() : "");
|
|
5281
5355
|
const verb = isPay ? { present: "Pay", gerund: "Paying", past: "Paid" } : kind === "swap" ? { present: "Swap", gerund: "Swapping", past: "Swapped" } : { present: "Exchange", gerund: "Exchanging", past: "Exchanged" };
|
|
5282
5356
|
const paid = flow.status === "success";
|
|
5283
5357
|
const settling = flow.status === "pending";
|
|
@@ -5332,7 +5406,7 @@ function PaymentIsland(props) {
|
|
|
5332
5406
|
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." : "";
|
|
5333
5407
|
const loading = flow.status === "loading";
|
|
5334
5408
|
const payReady = isPay ? Boolean(sel && selectedVisible) : Boolean(sel);
|
|
5335
|
-
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";
|
|
5409
|
+
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";
|
|
5336
5410
|
const exPct = (p) => {
|
|
5337
5411
|
if (!exFromBal || !exFromToken) return;
|
|
5338
5412
|
const raw = BigInt(exFromBal.raw);
|
|
@@ -5354,7 +5428,7 @@ function PaymentIsland(props) {
|
|
|
5354
5428
|
"Balance: ",
|
|
5355
5429
|
exFromBal.formatted,
|
|
5356
5430
|
" ",
|
|
5357
|
-
|
|
5431
|
+
exFromTicker
|
|
5358
5432
|
] }) : null,
|
|
5359
5433
|
/* @__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)) })
|
|
5360
5434
|
] })
|
|
@@ -5420,7 +5494,7 @@ function PaymentIsland(props) {
|
|
|
5420
5494
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
5421
5495
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5422
5496
|
"\u2014 ",
|
|
5423
|
-
|
|
5497
|
+
destTicker
|
|
5424
5498
|
] }),
|
|
5425
5499
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor-sub", children: "Connect your wallet to see the estimated receive amount." })
|
|
5426
5500
|
] })
|
|
@@ -5440,7 +5514,7 @@ function PaymentIsland(props) {
|
|
|
5440
5514
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-amt sg-mono", children: [
|
|
5441
5515
|
successAmount,
|
|
5442
5516
|
" ",
|
|
5443
|
-
|
|
5517
|
+
destTicker
|
|
5444
5518
|
] }),
|
|
5445
5519
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-sub", children: [
|
|
5446
5520
|
confirmed ? "Confirmed on-chain" : "Confirmation pending",
|
|
@@ -5492,7 +5566,7 @@ function PaymentIsland(props) {
|
|
|
5492
5566
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5493
5567
|
anchorAmount,
|
|
5494
5568
|
" ",
|
|
5495
|
-
|
|
5569
|
+
destTicker
|
|
5496
5570
|
] })
|
|
5497
5571
|
] })
|
|
5498
5572
|
] }),
|
|
@@ -5536,7 +5610,7 @@ function PaymentIsland(props) {
|
|
|
5536
5610
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5537
5611
|
sel.source.payAmount,
|
|
5538
5612
|
" ",
|
|
5539
|
-
sel.source.asset
|
|
5613
|
+
sel.source.ticker || sel.source.asset
|
|
5540
5614
|
] }),
|
|
5541
5615
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5542
5616
|
"on ",
|
|
@@ -5549,7 +5623,7 @@ function PaymentIsland(props) {
|
|
|
5549
5623
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5550
5624
|
sel.source.payAmount,
|
|
5551
5625
|
" ",
|
|
5552
|
-
sel.source.asset
|
|
5626
|
+
sel.source.ticker || sel.source.asset
|
|
5553
5627
|
] }),
|
|
5554
5628
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5555
5629
|
"on ",
|
|
@@ -5704,7 +5778,7 @@ function StableGeniePay(props) {
|
|
|
5704
5778
|
if (zero) {
|
|
5705
5779
|
map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
5706
5780
|
} else if (a.affordable === false) {
|
|
5707
|
-
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
5781
|
+
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
|
|
5708
5782
|
} else {
|
|
5709
5783
|
map[key] = { disabled: false };
|
|
5710
5784
|
}
|
|
@@ -5738,6 +5812,7 @@ function StableGeniePay(props) {
|
|
|
5738
5812
|
list.push(
|
|
5739
5813
|
reg ?? {
|
|
5740
5814
|
symbol: r.source.asset,
|
|
5815
|
+
displaySymbol: r.source.ticker,
|
|
5741
5816
|
name: r.source.asset,
|
|
5742
5817
|
chainId: r.source.chainId,
|
|
5743
5818
|
address: r.source.tokenAddress ?? "",
|
|
@@ -5811,12 +5886,12 @@ function StableGeniePay(props) {
|
|
|
5811
5886
|
const sel = flow.selected;
|
|
5812
5887
|
const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
|
|
5813
5888
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
5814
|
-
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` : (
|
|
5889
|
+
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` : (
|
|
5815
5890
|
// Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
|
|
5816
5891
|
`Routed through ZeroDelta \xB7 the extra covers the network cost`
|
|
5817
5892
|
) : "Pay with USDC, USDT, or USDE from your wallet.";
|
|
5818
5893
|
const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
|
|
5819
|
-
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";
|
|
5894
|
+
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";
|
|
5820
5895
|
const walletSlot = wallet.account ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-head-tools", children: [
|
|
5821
5896
|
/* @__PURE__ */ jsxRuntime.jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
|
|
5822
5897
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-brand", children: [
|
|
@@ -5845,7 +5920,7 @@ function StableGeniePay(props) {
|
|
|
5845
5920
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
5846
5921
|
props.amount,
|
|
5847
5922
|
" ",
|
|
5848
|
-
props.toAsset
|
|
5923
|
+
tickerOn(registryTokens, props.toChainId, props.toAsset)
|
|
5849
5924
|
] }),
|
|
5850
5925
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
5851
5926
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -5881,7 +5956,7 @@ function StableGeniePay(props) {
|
|
|
5881
5956
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
5882
5957
|
sel.source.payAmount,
|
|
5883
5958
|
" ",
|
|
5884
|
-
sel.source.asset
|
|
5959
|
+
sel.source.ticker || sel.source.asset
|
|
5885
5960
|
] }),
|
|
5886
5961
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
|
|
5887
5962
|
"on ",
|
|
@@ -6007,7 +6082,7 @@ function StableGenieSwap(props) {
|
|
|
6007
6082
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
6008
6083
|
receive,
|
|
6009
6084
|
" ",
|
|
6010
|
-
toAsset
|
|
6085
|
+
tickerOn(registryTokens, toChainId, toAsset)
|
|
6011
6086
|
] }),
|
|
6012
6087
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
6013
6088
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -6125,6 +6200,8 @@ function StableGenieExchange(props) {
|
|
|
6125
6200
|
const fromToken = react.useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
|
|
6126
6201
|
const toToken = react.useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
|
|
6127
6202
|
const toSymbol = toToken?.symbol ?? to?.symbol ?? "";
|
|
6203
|
+
const fromTicker = fromToken ? tokenTicker(fromToken) : from?.symbol ?? "";
|
|
6204
|
+
const toTicker = toToken ? tokenTicker(toToken) : toSymbol;
|
|
6128
6205
|
const fromPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(sourceTokens, toToken) : sourceTokens, [product, sourceTokens, toToken]);
|
|
6129
6206
|
const toPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(tokens, fromToken) : tokens, [product, tokens, fromToken]);
|
|
6130
6207
|
const rwaSeeded = react.useRef(false);
|
|
@@ -6152,7 +6229,7 @@ function StableGenieExchange(props) {
|
|
|
6152
6229
|
if (verdict === "available") continue;
|
|
6153
6230
|
states[key] = {
|
|
6154
6231
|
disabled: true,
|
|
6155
|
-
reason: verdict === "hub-only" ? `${token
|
|
6232
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain \u2014 choose an execution chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
6156
6233
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
6157
6234
|
};
|
|
6158
6235
|
}
|
|
@@ -6274,7 +6351,7 @@ function StableGenieExchange(props) {
|
|
|
6274
6351
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
6275
6352
|
receive,
|
|
6276
6353
|
" ",
|
|
6277
|
-
|
|
6354
|
+
toTicker
|
|
6278
6355
|
] }),
|
|
6279
6356
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
|
|
6280
6357
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -6303,7 +6380,7 @@ function StableGenieExchange(props) {
|
|
|
6303
6380
|
"Balance: ",
|
|
6304
6381
|
fromBal.formatted,
|
|
6305
6382
|
" ",
|
|
6306
|
-
|
|
6383
|
+
fromTicker
|
|
6307
6384
|
] }) : null,
|
|
6308
6385
|
mode !== "onramp" ? (
|
|
6309
6386
|
// a11y note: <fieldset> carries UA styling that would
|
|
@@ -6315,7 +6392,7 @@ function StableGenieExchange(props) {
|
|
|
6315
6392
|
!rampMode && quoteError && !wide ? /* @__PURE__ */ jsxRuntime.jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
|
|
6316
6393
|
!rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
|
|
6317
6394
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
6318
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${
|
|
6395
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toTicker}` : "\u2014" }),
|
|
6319
6396
|
meta && !quoting ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
|
|
6320
6397
|
"via ",
|
|
6321
6398
|
meta.bridge,
|
|
@@ -6364,7 +6441,7 @@ function StableGenieExchange(props) {
|
|
|
6364
6441
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-amt sg-mono", children: [
|
|
6365
6442
|
receive,
|
|
6366
6443
|
" ",
|
|
6367
|
-
|
|
6444
|
+
toTicker
|
|
6368
6445
|
] }),
|
|
6369
6446
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
|
|
6370
6447
|
"on ",
|
|
@@ -6376,7 +6453,7 @@ function StableGenieExchange(props) {
|
|
|
6376
6453
|
/* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
|
|
6377
6454
|
normalizedAmount,
|
|
6378
6455
|
" ",
|
|
6379
|
-
|
|
6456
|
+
fromTicker
|
|
6380
6457
|
] })
|
|
6381
6458
|
] }),
|
|
6382
6459
|
/* @__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-OOESQYM3.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-FDCSZ3OY.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: {
|