@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/core/index.cjs
CHANGED
|
@@ -470,6 +470,29 @@ function applyLayerZeroBuffer(quote, option = {}) {
|
|
|
470
470
|
return gas * (10000n + LZ_FEE_BUFFER_BPS) / 10000n;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
// src/core/ticker.ts
|
|
474
|
+
var DISPLAY_SAFE = /^[\p{L}\p{N}\p{Sc}.+_-]{1,16}$/u;
|
|
475
|
+
function foldTicker(value) {
|
|
476
|
+
return String(value ?? "").replace(/₮/g, "T").toUpperCase();
|
|
477
|
+
}
|
|
478
|
+
function safeTicker(ticker, symbol) {
|
|
479
|
+
const value = String(ticker ?? "").trim();
|
|
480
|
+
if (!value || !DISPLAY_SAFE.test(value)) return "";
|
|
481
|
+
const asset = foldTicker(symbol).trim();
|
|
482
|
+
if (!asset || !foldTicker(value).startsWith(asset)) return "";
|
|
483
|
+
return value;
|
|
484
|
+
}
|
|
485
|
+
function tokenTicker(token) {
|
|
486
|
+
if (!token) return "";
|
|
487
|
+
return safeTicker(token.displaySymbol, token.symbol) || String(token.symbol ?? "");
|
|
488
|
+
}
|
|
489
|
+
function tickerOn(tokens, chainId, symbol) {
|
|
490
|
+
if (!symbol || !chainId || !tokens?.length) return symbol;
|
|
491
|
+
const key = symbolKey(symbol);
|
|
492
|
+
const deployment = tokens.find((t) => Number(t.chainId) === Number(chainId) && symbolKey(t.symbol) === key);
|
|
493
|
+
return deployment ? tokenTicker(deployment) : symbol;
|
|
494
|
+
}
|
|
495
|
+
|
|
473
496
|
// src/core/availability.ts
|
|
474
497
|
function assetClassOf(symbol) {
|
|
475
498
|
const key = symbolKey(symbol);
|
|
@@ -654,6 +677,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
654
677
|
options.push({
|
|
655
678
|
symbol: token.symbol,
|
|
656
679
|
symbolKey: payKey,
|
|
680
|
+
ticker: tokenTicker(token),
|
|
657
681
|
name: token.name || token.symbol,
|
|
658
682
|
chainId,
|
|
659
683
|
chainName: chainNameOf(chainId, chains),
|
|
@@ -1346,10 +1370,13 @@ function routeDeltaLabel(result, quote) {
|
|
|
1346
1370
|
if (quote.feeBps) return `${quote.feeBps} bps fee`;
|
|
1347
1371
|
return "~0";
|
|
1348
1372
|
}
|
|
1373
|
+
function optionTicker(option) {
|
|
1374
|
+
return option.ticker || option.symbol;
|
|
1375
|
+
}
|
|
1349
1376
|
function routeLabelFor(option, destinationToken, result) {
|
|
1350
1377
|
if (result.directTransfer) return "Direct transfer: asset and chain already match.";
|
|
1351
1378
|
const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
|
|
1352
|
-
return `Swap ${option
|
|
1379
|
+
return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
|
|
1353
1380
|
}
|
|
1354
1381
|
function tokenAt(tokens, chainId, address) {
|
|
1355
1382
|
const wanted = normalizeAddress(address);
|
|
@@ -1368,6 +1395,7 @@ function buildLegs(orders, ctx) {
|
|
|
1368
1395
|
const legs = [];
|
|
1369
1396
|
let fromChainId = ctx.option.chainId;
|
|
1370
1397
|
let fromAsset = ctx.option.symbol;
|
|
1398
|
+
let fromTicker = optionTicker(ctx.option);
|
|
1371
1399
|
let fromDecimals = ctx.option.decimals;
|
|
1372
1400
|
for (let index = 0; index < orders.length; index += 1) {
|
|
1373
1401
|
const order = orders[index];
|
|
@@ -1375,15 +1403,18 @@ function buildLegs(orders, ctx) {
|
|
|
1375
1403
|
const toChainId = Number(order.destinationChainId);
|
|
1376
1404
|
const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
|
|
1377
1405
|
const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
|
|
1406
|
+
const toTicker = askToken ? tokenTicker(askToken) : "";
|
|
1378
1407
|
const toDecimals = askToken ? assetDecimals(askToken) : void 0;
|
|
1379
1408
|
const executionChainId = Number(order.executionChainId);
|
|
1380
1409
|
legs.push({
|
|
1381
1410
|
index: index + 1,
|
|
1382
1411
|
fromAsset,
|
|
1412
|
+
fromTicker,
|
|
1383
1413
|
fromChainId,
|
|
1384
1414
|
fromChainName: chainNameOf(fromChainId, ctx.chains),
|
|
1385
1415
|
fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
|
|
1386
1416
|
toAsset,
|
|
1417
|
+
toTicker,
|
|
1387
1418
|
toChainId,
|
|
1388
1419
|
toChainName: chainNameOf(toChainId, ctx.chains),
|
|
1389
1420
|
toAmount: legAmount(order.askTokenAmount, toDecimals),
|
|
@@ -1392,6 +1423,7 @@ function buildLegs(orders, ctx) {
|
|
|
1392
1423
|
});
|
|
1393
1424
|
fromChainId = toChainId;
|
|
1394
1425
|
fromAsset = toAsset;
|
|
1426
|
+
fromTicker = toTicker;
|
|
1395
1427
|
fromDecimals = toDecimals;
|
|
1396
1428
|
}
|
|
1397
1429
|
return legs;
|
|
@@ -1420,6 +1452,7 @@ async function buildRoute({
|
|
|
1420
1452
|
state: "DIRECT",
|
|
1421
1453
|
source: {
|
|
1422
1454
|
asset: option.symbol,
|
|
1455
|
+
ticker: optionTicker(option),
|
|
1423
1456
|
chainId: option.chainId,
|
|
1424
1457
|
chainName: option.chainName,
|
|
1425
1458
|
tokenAddress: option.address,
|
|
@@ -1429,6 +1462,7 @@ async function buildRoute({
|
|
|
1429
1462
|
},
|
|
1430
1463
|
receive: {
|
|
1431
1464
|
asset: destinationToken.symbol,
|
|
1465
|
+
ticker: tokenTicker(destinationToken),
|
|
1432
1466
|
chainId: Number(destination.chainId),
|
|
1433
1467
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1434
1468
|
tokenAddress: destinationToken.address,
|
|
@@ -1443,10 +1477,12 @@ async function buildRoute({
|
|
|
1443
1477
|
{
|
|
1444
1478
|
index: 1,
|
|
1445
1479
|
fromAsset: option.symbol,
|
|
1480
|
+
fromTicker: optionTicker(option),
|
|
1446
1481
|
fromChainId: option.chainId,
|
|
1447
1482
|
fromChainName: option.chainName,
|
|
1448
1483
|
fromAmount: sourceAmount,
|
|
1449
1484
|
toAsset: destinationToken.symbol,
|
|
1485
|
+
toTicker: tokenTicker(destinationToken),
|
|
1450
1486
|
toChainId: Number(destination.chainId),
|
|
1451
1487
|
toChainName: chainNameOf(Number(destination.chainId), chains),
|
|
1452
1488
|
toAmount: receiveAmount,
|
|
@@ -1458,7 +1494,7 @@ async function buildRoute({
|
|
|
1458
1494
|
{
|
|
1459
1495
|
id: "transfer",
|
|
1460
1496
|
kind: "transfer",
|
|
1461
|
-
label: `Transfer ${destinationToken
|
|
1497
|
+
label: `Transfer ${tokenTicker(destinationToken)}`,
|
|
1462
1498
|
chainId: option.chainId,
|
|
1463
1499
|
to: option.address,
|
|
1464
1500
|
data: encodeTransfer(destination.address, result.youPayRaw),
|
|
@@ -1510,6 +1546,7 @@ async function buildRoute({
|
|
|
1510
1546
|
state: result.meetsTarget ? "ROUTE" : "SHORT",
|
|
1511
1547
|
source: {
|
|
1512
1548
|
asset: option.symbol,
|
|
1549
|
+
ticker: optionTicker(option),
|
|
1513
1550
|
chainId: option.chainId,
|
|
1514
1551
|
chainName: option.chainName,
|
|
1515
1552
|
tokenAddress: option.address,
|
|
@@ -1519,6 +1556,7 @@ async function buildRoute({
|
|
|
1519
1556
|
},
|
|
1520
1557
|
receive: {
|
|
1521
1558
|
asset: destinationToken.symbol,
|
|
1559
|
+
ticker: tokenTicker(destinationToken),
|
|
1522
1560
|
chainId: Number(destination.chainId),
|
|
1523
1561
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1524
1562
|
tokenAddress: destinationToken.address,
|
|
@@ -1532,7 +1570,7 @@ async function buildRoute({
|
|
|
1532
1570
|
{
|
|
1533
1571
|
id: "approve",
|
|
1534
1572
|
kind: "approve",
|
|
1535
|
-
label: `Approve ${option
|
|
1573
|
+
label: `Approve ${optionTicker(option)}`,
|
|
1536
1574
|
chainId: option.chainId,
|
|
1537
1575
|
to: option.address,
|
|
1538
1576
|
data: encodeApprove(escrow, order.bidTokenAmount),
|
|
@@ -1630,6 +1668,8 @@ function isTransientQuoteError(error) {
|
|
|
1630
1668
|
function wait(ms) {
|
|
1631
1669
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1632
1670
|
}
|
|
1671
|
+
var PAGE_LIMIT = 500;
|
|
1672
|
+
var MAX_PAGES = 10;
|
|
1633
1673
|
function createApiClient(cfg) {
|
|
1634
1674
|
const cache = {
|
|
1635
1675
|
chains: null,
|
|
@@ -1641,7 +1681,7 @@ function createApiClient(cfg) {
|
|
|
1641
1681
|
const screenCache = /* @__PURE__ */ new Map();
|
|
1642
1682
|
const screenInflight = /* @__PURE__ */ new Map();
|
|
1643
1683
|
const apiBase = cfg.apiBase.replace(/\/$/, "");
|
|
1644
|
-
async function
|
|
1684
|
+
async function requestJson(path, init = {}) {
|
|
1645
1685
|
const apiKey = await cfg.getApiKey();
|
|
1646
1686
|
const headers = { "Content-Type": "application/json", ...init.headers || {} };
|
|
1647
1687
|
if (apiKey) headers["x-api-key"] = apiKey;
|
|
@@ -1677,8 +1717,30 @@ function createApiClient(cfg) {
|
|
|
1677
1717
|
reasons: json?.error?.reasons || json?.reasons
|
|
1678
1718
|
});
|
|
1679
1719
|
}
|
|
1720
|
+
return json;
|
|
1721
|
+
}
|
|
1722
|
+
async function apiRequest(path, init = {}) {
|
|
1723
|
+
const json = await requestJson(path, init);
|
|
1680
1724
|
return json?.data ?? json;
|
|
1681
1725
|
}
|
|
1726
|
+
async function requestAllPages(path) {
|
|
1727
|
+
const rows = [];
|
|
1728
|
+
let firstRow = "";
|
|
1729
|
+
for (let page = 0; page < MAX_PAGES; page += 1) {
|
|
1730
|
+
const json = await requestJson(`${path}${toQuery({ limit: PAGE_LIMIT, offset: rows.length || void 0 })}`);
|
|
1731
|
+
const envelope = json && !Array.isArray(json) ? json : {};
|
|
1732
|
+
const data = Array.isArray(json) ? json : envelope.data;
|
|
1733
|
+
const pageRows = Array.isArray(data) ? data : [];
|
|
1734
|
+
const head = pageRows.length ? JSON.stringify(pageRows[0]) : "";
|
|
1735
|
+
if (page === 0) firstRow = head;
|
|
1736
|
+
else if (head && head === firstRow) throw apiError(`ZeroDelta paging ignored the offset (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1737
|
+
rows.push(...pageRows);
|
|
1738
|
+
const total = envelope.meta?.totalCount;
|
|
1739
|
+
if (!envelope.paging?.next || typeof total === "number" && rows.length >= total) return rows;
|
|
1740
|
+
if (!pageRows.length) throw apiError(`ZeroDelta paging did not advance (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1741
|
+
}
|
|
1742
|
+
throw apiError(`ZeroDelta still had rows after ${MAX_PAGES} pages (${path}).`, { code: "bad_response" });
|
|
1743
|
+
}
|
|
1682
1744
|
async function fetchChains() {
|
|
1683
1745
|
if (nowFresh(cache.chains)) return cache.chains.value;
|
|
1684
1746
|
const chains = await apiRequest(`/chains${toQuery({ enabledOnly: true, limit: 500 })}`);
|
|
@@ -1691,16 +1753,15 @@ function createApiClient(cfg) {
|
|
|
1691
1753
|
}
|
|
1692
1754
|
async function fetchTokens() {
|
|
1693
1755
|
if (nowFresh(cache.tokens)) return cache.tokens.value;
|
|
1694
|
-
const tokens = await
|
|
1695
|
-
const normalized =
|
|
1756
|
+
const tokens = await requestAllPages("/tokens");
|
|
1757
|
+
const normalized = tokens.map((token) => ({ ...token, chainId: Number(token.chainId) }));
|
|
1696
1758
|
cache.tokens = { at: Date.now(), value: normalized };
|
|
1697
1759
|
return normalized;
|
|
1698
1760
|
}
|
|
1699
1761
|
async function fetchRoutes() {
|
|
1700
1762
|
if (nowFresh(cache.routes)) return cache.routes.value;
|
|
1701
1763
|
try {
|
|
1702
|
-
const
|
|
1703
|
-
const normalized = Array.isArray(routes) ? routes : [];
|
|
1764
|
+
const normalized = await requestAllPages("/routes");
|
|
1704
1765
|
cache.routes = { at: Date.now(), value: normalized };
|
|
1705
1766
|
return normalized;
|
|
1706
1767
|
} catch {
|
|
@@ -1999,6 +2060,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
|
|
|
1999
2060
|
const option = {
|
|
2000
2061
|
symbol: sourceToken.symbol,
|
|
2001
2062
|
symbolKey: symbolKey(sourceToken.symbol),
|
|
2063
|
+
ticker: tokenTicker(sourceToken),
|
|
2002
2064
|
name: sourceToken.name || sourceToken.symbol,
|
|
2003
2065
|
chainId: v.fromChainId,
|
|
2004
2066
|
chainName: chainNameOf(v.fromChainId, chains),
|
|
@@ -2425,13 +2487,16 @@ function sanitizeLegs(legs) {
|
|
|
2425
2487
|
if (!Array.isArray(legs) || !legs.length) return void 0;
|
|
2426
2488
|
const text = (v, max) => String(v ?? "").slice(0, max);
|
|
2427
2489
|
const chain = (v) => Number(v) || 0;
|
|
2490
|
+
const ticker = (value, asset) => safeTicker(value, asset) || void 0;
|
|
2428
2491
|
return legs.slice(0, 8).map((leg, i) => ({
|
|
2429
2492
|
index: Number(leg?.index) || i + 1,
|
|
2430
2493
|
fromAsset: text(leg?.fromAsset, 12),
|
|
2494
|
+
fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
|
|
2431
2495
|
fromChainId: chain(leg?.fromChainId),
|
|
2432
2496
|
fromChainName: text(leg?.fromChainName, 40),
|
|
2433
2497
|
fromAmount: text(leg?.fromAmount, 40),
|
|
2434
2498
|
toAsset: text(leg?.toAsset, 12),
|
|
2499
|
+
toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
|
|
2435
2500
|
toChainId: chain(leg?.toChainId),
|
|
2436
2501
|
toChainName: text(leg?.toChainName, 40),
|
|
2437
2502
|
toAmount: text(leg?.toAmount, 40),
|
|
@@ -2448,6 +2513,8 @@ function sanitizeTxEntry(entry) {
|
|
|
2448
2513
|
chainName: String(entry.chainName || "").slice(0, 40),
|
|
2449
2514
|
fromAsset: String(entry.fromAsset || "").slice(0, 10),
|
|
2450
2515
|
toAsset: String(entry.toAsset || "").slice(0, 10),
|
|
2516
|
+
fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
|
|
2517
|
+
toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
|
|
2451
2518
|
payAmount: String(entry.payAmount || "").slice(0, 40),
|
|
2452
2519
|
receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
|
|
2453
2520
|
account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
|
|
@@ -2604,6 +2671,7 @@ exports.executionChainIds = executionChainIds;
|
|
|
2604
2671
|
exports.fetchPaymentPlan = fetchPaymentPlan;
|
|
2605
2672
|
exports.finalOf = finalOf;
|
|
2606
2673
|
exports.findToken = findToken;
|
|
2674
|
+
exports.foldTicker = foldTicker;
|
|
2607
2675
|
exports.formatNative = formatNative;
|
|
2608
2676
|
exports.formatUnits = formatUnits;
|
|
2609
2677
|
exports.hasReachableDestination = hasReachableDestination;
|
|
@@ -2641,6 +2709,7 @@ exports.resolveConfig = resolveConfig;
|
|
|
2641
2709
|
exports.resolveSwapReceiver = resolveSwapReceiver;
|
|
2642
2710
|
exports.resolveVaultIcon = resolveVaultIcon;
|
|
2643
2711
|
exports.routeNativeValue = routeNativeValue;
|
|
2712
|
+
exports.safeTicker = safeTicker;
|
|
2644
2713
|
exports.scaleDecimals = scaleDecimals;
|
|
2645
2714
|
exports.screeningOutcomeOf = screeningOutcomeOf;
|
|
2646
2715
|
exports.solveExactIn = solveExactIn;
|
|
@@ -2650,9 +2719,11 @@ exports.stableGenieIntentSchema = stableGenieIntentSchema;
|
|
|
2650
2719
|
exports.strip0x = strip0x;
|
|
2651
2720
|
exports.suppressedLanes = suppressedLanes;
|
|
2652
2721
|
exports.symbolKey = symbolKey;
|
|
2722
|
+
exports.tickerOn = tickerOn;
|
|
2653
2723
|
exports.toHexQuantity = toHexQuantity;
|
|
2654
2724
|
exports.tokenEnabled = tokenEnabled;
|
|
2655
2725
|
exports.tokenKey = tokenKey;
|
|
2726
|
+
exports.tokenTicker = tokenTicker;
|
|
2656
2727
|
exports.txMatchesPlan = txMatchesPlan;
|
|
2657
2728
|
exports.uint64Word = uint64Word;
|
|
2658
2729
|
exports.uintWord = uintWord;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext, L as CatalogueInput, c as ComplianceCheck, M as ComplianceCheckId, U as ComplianceDecision, d as ComplianceTone, e as ComplianceView, X as DIRECT_CHECK_IDS, Y as DIRECT_SCOPE_NOTE, Z as Destination, _ as FLOOR_CATEGORIES, $ as Hex, a0 as PlannedTxKind, a1 as QuoteBlock, a2 as ResolvedConfig, a3 as RouteHealth, a4 as RouteHealthLane, g as RouteLeg, a5 as SCREENING_BUCKETS, a6 as ScreenProvider, a7 as ScreeningBucket, a8 as ScreeningOutcome, a9 as TUNABLE_CATEGORIES, aa as TxPlan, V as VerifyResult, W as WalletScreen, ab as apiError, j as assetClassOf, ac as blockLabelFor, ad as brokenLaneFor, k as brokenLaneReason, ae as buildCatalogue, af as canAttachApiKey, ag as categoryLabel, ah as classifyQuoteError, l as complianceChecks, ai as complianceControlsEvaluated, m as complianceControlsLine, aj as complianceReasonHead, ak as complianceReasonTag, al as complianceTagOf, n as complianceView, o as counterpartTokens, am as createApiClient, an as createVerifier, p as destinationAvailability, ao as destinationKeys, ap as directComplianceFromScreens, aq as distinctScreenedWallets, ar as executableRoutes, as as executionChainIds, at as hasReachableDestination, au as hubDeliverableSymbols, q as humanizeComplianceReason, av as isExecutableBridge, aw as isKnownUnbridgeable, ax as isSourceToken, ay as laneKey, az as laneKeys, aA as parseAllowedApiBase, aB as productAssets, aC as registryRpc, aD as resolveApiBase, aE as resolveConfig, aF as screeningOutcomeOf, aG as sourceKeys, aH as suppressedLanes, aI as tokenKey, aJ as txMatchesPlan, aK as unattributedComplianceReasons } from '../verify-
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-57gjg_dM.cjs';
|
|
2
|
+
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext, L as CatalogueInput, c as ComplianceCheck, M as ComplianceCheckId, U as ComplianceDecision, d as ComplianceTone, e as ComplianceView, X as DIRECT_CHECK_IDS, Y as DIRECT_SCOPE_NOTE, Z as Destination, _ as FLOOR_CATEGORIES, $ as Hex, a0 as PlannedTxKind, a1 as QuoteBlock, a2 as ResolvedConfig, a3 as RouteHealth, a4 as RouteHealthLane, g as RouteLeg, a5 as SCREENING_BUCKETS, a6 as ScreenProvider, a7 as ScreeningBucket, a8 as ScreeningOutcome, a9 as TUNABLE_CATEGORIES, aa as TxPlan, V as VerifyResult, W as WalletScreen, ab as apiError, j as assetClassOf, ac as blockLabelFor, ad as brokenLaneFor, k as brokenLaneReason, ae as buildCatalogue, af as canAttachApiKey, ag as categoryLabel, ah as classifyQuoteError, l as complianceChecks, ai as complianceControlsEvaluated, m as complianceControlsLine, aj as complianceReasonHead, ak as complianceReasonTag, al as complianceTagOf, n as complianceView, o as counterpartTokens, am as createApiClient, an as createVerifier, p as destinationAvailability, ao as destinationKeys, ap as directComplianceFromScreens, aq as distinctScreenedWallets, ar as executableRoutes, as as executionChainIds, at as hasReachableDestination, au as hubDeliverableSymbols, q as humanizeComplianceReason, av as isExecutableBridge, aw as isKnownUnbridgeable, ax as isSourceToken, ay as laneKey, az as laneKeys, aA as parseAllowedApiBase, aB as productAssets, aC as registryRpc, aD as resolveApiBase, aE as resolveConfig, aF as screeningOutcomeOf, aG as sourceKeys, aH as suppressedLanes, aI as tokenKey, aJ as txMatchesPlan, aK as unattributedComplianceReasons } from '../verify-57gjg_dM.cjs';
|
|
3
3
|
|
|
4
4
|
/** Default request base for the widget: the same-origin keyless custody proxy (server injects the
|
|
5
5
|
* ZeroDelta key). A host may override to `/api/v1` + an apiKey for the demo-first fallback path. */
|
|
@@ -377,6 +377,32 @@ declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, ro
|
|
|
377
377
|
/** Whether an existing ERC-20 allowance already covers an approve tx (lets the flow skip it). */
|
|
378
378
|
declare function allowanceCovers(tx: PlannedTx, account: string, ethCall: (to: string, data: string) => Promise<string>): Promise<boolean>;
|
|
379
379
|
|
|
380
|
+
/** `₮` (U+20AE) read as the `T` it stands for, case-folded. Nobody types `₮`. */
|
|
381
|
+
declare function foldTicker(value: unknown): string;
|
|
382
|
+
/**
|
|
383
|
+
* The ticker if it is safe to print as a label for `symbol`, else "".
|
|
384
|
+
*
|
|
385
|
+
* Beyond the character set, a ticker must NAME THE SAME ASSET: once `₮` is read as `T`, it has to
|
|
386
|
+
* begin with the asset's symbol (`USD₮0` → `USDT0` starts with `USDT`; `PYUSD0` with `PYUSD`). That
|
|
387
|
+
* is true of every per-chain ticker the gateway serves, and it is what stops a hostile registry from
|
|
388
|
+
* labelling a USDT deployment "USDC" — the symbol, which the order binds, would say one thing and the
|
|
389
|
+
* label the payer reads another.
|
|
390
|
+
*/
|
|
391
|
+
declare function safeTicker(ticker: unknown, symbol: unknown): string;
|
|
392
|
+
/**
|
|
393
|
+
* What a deployment is called on its own chain — the text to print for it.
|
|
394
|
+
*
|
|
395
|
+
* Falls back to `symbol` when the registry predates `displaySymbol`, sends a blank one, or sends one
|
|
396
|
+
* `safeTicker` refuses, so an older gateway renders exactly what it did before.
|
|
397
|
+
*/
|
|
398
|
+
declare function tokenTicker(token: Pick<Token, "symbol" | "displaySymbol"> | null | undefined): string;
|
|
399
|
+
/**
|
|
400
|
+
* The ticker `symbol` carries on `chainId`, from the registry: the deployment of that asset on that
|
|
401
|
+
* chain, else the symbol itself. For surfaces that know an asset and a chain but hold no `Token` —
|
|
402
|
+
* a persisted history entry, a route leg.
|
|
403
|
+
*/
|
|
404
|
+
declare function tickerOn(tokens: readonly Token[] | null | undefined, chainId: number | null | undefined, symbol: string): string;
|
|
405
|
+
|
|
380
406
|
declare const STABLEGENIE_INTENT_VERSION = 1;
|
|
381
407
|
declare const STABLEGENIE_INTENT_TTL_MS: number;
|
|
382
408
|
declare const STABLEGENIE_SUPPORTED_CHAIN_IDS: readonly number[];
|
|
@@ -522,4 +548,4 @@ interface Engine {
|
|
|
522
548
|
/** Create an engine bound to a config. The 60s resource cache is per-engine. */
|
|
523
549
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
524
550
|
|
|
525
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, toHexQuantity, tokenEnabled, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
|
551
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext, L as CatalogueInput, c as ComplianceCheck, M as ComplianceCheckId, U as ComplianceDecision, d as ComplianceTone, e as ComplianceView, X as DIRECT_CHECK_IDS, Y as DIRECT_SCOPE_NOTE, Z as Destination, _ as FLOOR_CATEGORIES, $ as Hex, a0 as PlannedTxKind, a1 as QuoteBlock, a2 as ResolvedConfig, a3 as RouteHealth, a4 as RouteHealthLane, g as RouteLeg, a5 as SCREENING_BUCKETS, a6 as ScreenProvider, a7 as ScreeningBucket, a8 as ScreeningOutcome, a9 as TUNABLE_CATEGORIES, aa as TxPlan, V as VerifyResult, W as WalletScreen, ab as apiError, j as assetClassOf, ac as blockLabelFor, ad as brokenLaneFor, k as brokenLaneReason, ae as buildCatalogue, af as canAttachApiKey, ag as categoryLabel, ah as classifyQuoteError, l as complianceChecks, ai as complianceControlsEvaluated, m as complianceControlsLine, aj as complianceReasonHead, ak as complianceReasonTag, al as complianceTagOf, n as complianceView, o as counterpartTokens, am as createApiClient, an as createVerifier, p as destinationAvailability, ao as destinationKeys, ap as directComplianceFromScreens, aq as distinctScreenedWallets, ar as executableRoutes, as as executionChainIds, at as hasReachableDestination, au as hubDeliverableSymbols, q as humanizeComplianceReason, av as isExecutableBridge, aw as isKnownUnbridgeable, ax as isSourceToken, ay as laneKey, az as laneKeys, aA as parseAllowedApiBase, aB as productAssets, aC as registryRpc, aD as resolveApiBase, aE as resolveConfig, aF as screeningOutcomeOf, aG as sourceKeys, aH as suppressedLanes, aI as tokenKey, aJ as txMatchesPlan, aK as unattributedComplianceReasons } from '../verify-
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-57gjg_dM.js';
|
|
2
|
+
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext, L as CatalogueInput, c as ComplianceCheck, M as ComplianceCheckId, U as ComplianceDecision, d as ComplianceTone, e as ComplianceView, X as DIRECT_CHECK_IDS, Y as DIRECT_SCOPE_NOTE, Z as Destination, _ as FLOOR_CATEGORIES, $ as Hex, a0 as PlannedTxKind, a1 as QuoteBlock, a2 as ResolvedConfig, a3 as RouteHealth, a4 as RouteHealthLane, g as RouteLeg, a5 as SCREENING_BUCKETS, a6 as ScreenProvider, a7 as ScreeningBucket, a8 as ScreeningOutcome, a9 as TUNABLE_CATEGORIES, aa as TxPlan, V as VerifyResult, W as WalletScreen, ab as apiError, j as assetClassOf, ac as blockLabelFor, ad as brokenLaneFor, k as brokenLaneReason, ae as buildCatalogue, af as canAttachApiKey, ag as categoryLabel, ah as classifyQuoteError, l as complianceChecks, ai as complianceControlsEvaluated, m as complianceControlsLine, aj as complianceReasonHead, ak as complianceReasonTag, al as complianceTagOf, n as complianceView, o as counterpartTokens, am as createApiClient, an as createVerifier, p as destinationAvailability, ao as destinationKeys, ap as directComplianceFromScreens, aq as distinctScreenedWallets, ar as executableRoutes, as as executionChainIds, at as hasReachableDestination, au as hubDeliverableSymbols, q as humanizeComplianceReason, av as isExecutableBridge, aw as isKnownUnbridgeable, ax as isSourceToken, ay as laneKey, az as laneKeys, aA as parseAllowedApiBase, aB as productAssets, aC as registryRpc, aD as resolveApiBase, aE as resolveConfig, aF as screeningOutcomeOf, aG as sourceKeys, aH as suppressedLanes, aI as tokenKey, aJ as txMatchesPlan, aK as unattributedComplianceReasons } from '../verify-57gjg_dM.js';
|
|
3
3
|
|
|
4
4
|
/** Default request base for the widget: the same-origin keyless custody proxy (server injects the
|
|
5
5
|
* ZeroDelta key). A host may override to `/api/v1` + an apiKey for the demo-first fallback path. */
|
|
@@ -377,6 +377,32 @@ declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, ro
|
|
|
377
377
|
/** Whether an existing ERC-20 allowance already covers an approve tx (lets the flow skip it). */
|
|
378
378
|
declare function allowanceCovers(tx: PlannedTx, account: string, ethCall: (to: string, data: string) => Promise<string>): Promise<boolean>;
|
|
379
379
|
|
|
380
|
+
/** `₮` (U+20AE) read as the `T` it stands for, case-folded. Nobody types `₮`. */
|
|
381
|
+
declare function foldTicker(value: unknown): string;
|
|
382
|
+
/**
|
|
383
|
+
* The ticker if it is safe to print as a label for `symbol`, else "".
|
|
384
|
+
*
|
|
385
|
+
* Beyond the character set, a ticker must NAME THE SAME ASSET: once `₮` is read as `T`, it has to
|
|
386
|
+
* begin with the asset's symbol (`USD₮0` → `USDT0` starts with `USDT`; `PYUSD0` with `PYUSD`). That
|
|
387
|
+
* is true of every per-chain ticker the gateway serves, and it is what stops a hostile registry from
|
|
388
|
+
* labelling a USDT deployment "USDC" — the symbol, which the order binds, would say one thing and the
|
|
389
|
+
* label the payer reads another.
|
|
390
|
+
*/
|
|
391
|
+
declare function safeTicker(ticker: unknown, symbol: unknown): string;
|
|
392
|
+
/**
|
|
393
|
+
* What a deployment is called on its own chain — the text to print for it.
|
|
394
|
+
*
|
|
395
|
+
* Falls back to `symbol` when the registry predates `displaySymbol`, sends a blank one, or sends one
|
|
396
|
+
* `safeTicker` refuses, so an older gateway renders exactly what it did before.
|
|
397
|
+
*/
|
|
398
|
+
declare function tokenTicker(token: Pick<Token, "symbol" | "displaySymbol"> | null | undefined): string;
|
|
399
|
+
/**
|
|
400
|
+
* The ticker `symbol` carries on `chainId`, from the registry: the deployment of that asset on that
|
|
401
|
+
* chain, else the symbol itself. For surfaces that know an asset and a chain but hold no `Token` —
|
|
402
|
+
* a persisted history entry, a route leg.
|
|
403
|
+
*/
|
|
404
|
+
declare function tickerOn(tokens: readonly Token[] | null | undefined, chainId: number | null | undefined, symbol: string): string;
|
|
405
|
+
|
|
380
406
|
declare const STABLEGENIE_INTENT_VERSION = 1;
|
|
381
407
|
declare const STABLEGENIE_INTENT_TTL_MS: number;
|
|
382
408
|
declare const STABLEGENIE_SUPPORTED_CHAIN_IDS: readonly number[];
|
|
@@ -522,4 +548,4 @@ interface Engine {
|
|
|
522
548
|
/** Create an engine bound to a config. The 60s resource cache is per-engine. */
|
|
523
549
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
524
550
|
|
|
525
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, toHexQuantity, tokenEnabled, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
|
551
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneKey, laneKeys, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, toHexQuantity, tokenEnabled, tokenKey, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-
|
|
1
|
+
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneKey, laneKeys, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-FDCSZ3OY.js';
|