@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/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);
|
|
@@ -533,10 +556,10 @@ function brokenLaneFor(token, source, brokenLanes) {
|
|
|
533
556
|
}
|
|
534
557
|
function destinationAvailability(token, ctx, source) {
|
|
535
558
|
if (brokenLaneFor(token, source ?? void 0, ctx.brokenLanes)) return "unreachable";
|
|
536
|
-
if (
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
return "available";
|
|
559
|
+
if (directLaneOK(token, source ?? void 0, ctx.lanes)) {
|
|
560
|
+
if (ctx.execution.has(Number(token.chainId))) return "available";
|
|
561
|
+
if (token.isChainedDestination === true) return "available";
|
|
562
|
+
if (!isKnownUnbridgeable(token.bridge) && ctx.destination.has(tokenKey(token.chainId, token.address))) return "available";
|
|
540
563
|
}
|
|
541
564
|
return ctx.hubSymbols.has(symbolKey(token.symbol)) ? "hub-only" : "unreachable";
|
|
542
565
|
}
|
|
@@ -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),
|
|
@@ -728,7 +752,8 @@ function suppressedLanes(health) {
|
|
|
728
752
|
if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return EMPTY;
|
|
729
753
|
const out = /* @__PURE__ */ new Map();
|
|
730
754
|
for (const lane of health.lanes) {
|
|
731
|
-
|
|
755
|
+
const firewalled = lane?.status === "unknown" && lane?.kind === "firewalled";
|
|
756
|
+
if (lane?.status !== "broken" && !firewalled) continue;
|
|
732
757
|
const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
|
|
733
758
|
if (!key) continue;
|
|
734
759
|
out.set(key, {
|
|
@@ -745,6 +770,8 @@ function brokenLaneReason(lane) {
|
|
|
745
770
|
switch (lane.kind) {
|
|
746
771
|
case "bridge-throttled":
|
|
747
772
|
return "The issuer's bridge for this pair is closed right now.";
|
|
773
|
+
case "firewalled":
|
|
774
|
+
return "This pair is temporarily unavailable.";
|
|
748
775
|
case "vault-closed":
|
|
749
776
|
return "This vault is not accepting deposits right now.";
|
|
750
777
|
default:
|
|
@@ -1343,10 +1370,13 @@ function routeDeltaLabel(result, quote) {
|
|
|
1343
1370
|
if (quote.feeBps) return `${quote.feeBps} bps fee`;
|
|
1344
1371
|
return "~0";
|
|
1345
1372
|
}
|
|
1373
|
+
function optionTicker(option) {
|
|
1374
|
+
return option.ticker || option.symbol;
|
|
1375
|
+
}
|
|
1346
1376
|
function routeLabelFor(option, destinationToken, result) {
|
|
1347
1377
|
if (result.directTransfer) return "Direct transfer: asset and chain already match.";
|
|
1348
1378
|
const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
|
|
1349
|
-
return `Swap ${option
|
|
1379
|
+
return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
|
|
1350
1380
|
}
|
|
1351
1381
|
function tokenAt(tokens, chainId, address) {
|
|
1352
1382
|
const wanted = normalizeAddress(address);
|
|
@@ -1365,6 +1395,7 @@ function buildLegs(orders, ctx) {
|
|
|
1365
1395
|
const legs = [];
|
|
1366
1396
|
let fromChainId = ctx.option.chainId;
|
|
1367
1397
|
let fromAsset = ctx.option.symbol;
|
|
1398
|
+
let fromTicker = optionTicker(ctx.option);
|
|
1368
1399
|
let fromDecimals = ctx.option.decimals;
|
|
1369
1400
|
for (let index = 0; index < orders.length; index += 1) {
|
|
1370
1401
|
const order = orders[index];
|
|
@@ -1372,15 +1403,18 @@ function buildLegs(orders, ctx) {
|
|
|
1372
1403
|
const toChainId = Number(order.destinationChainId);
|
|
1373
1404
|
const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
|
|
1374
1405
|
const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
|
|
1406
|
+
const toTicker = askToken ? tokenTicker(askToken) : "";
|
|
1375
1407
|
const toDecimals = askToken ? assetDecimals(askToken) : void 0;
|
|
1376
1408
|
const executionChainId = Number(order.executionChainId);
|
|
1377
1409
|
legs.push({
|
|
1378
1410
|
index: index + 1,
|
|
1379
1411
|
fromAsset,
|
|
1412
|
+
fromTicker,
|
|
1380
1413
|
fromChainId,
|
|
1381
1414
|
fromChainName: chainNameOf(fromChainId, ctx.chains),
|
|
1382
1415
|
fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
|
|
1383
1416
|
toAsset,
|
|
1417
|
+
toTicker,
|
|
1384
1418
|
toChainId,
|
|
1385
1419
|
toChainName: chainNameOf(toChainId, ctx.chains),
|
|
1386
1420
|
toAmount: legAmount(order.askTokenAmount, toDecimals),
|
|
@@ -1389,6 +1423,7 @@ function buildLegs(orders, ctx) {
|
|
|
1389
1423
|
});
|
|
1390
1424
|
fromChainId = toChainId;
|
|
1391
1425
|
fromAsset = toAsset;
|
|
1426
|
+
fromTicker = toTicker;
|
|
1392
1427
|
fromDecimals = toDecimals;
|
|
1393
1428
|
}
|
|
1394
1429
|
return legs;
|
|
@@ -1417,6 +1452,7 @@ async function buildRoute({
|
|
|
1417
1452
|
state: "DIRECT",
|
|
1418
1453
|
source: {
|
|
1419
1454
|
asset: option.symbol,
|
|
1455
|
+
ticker: optionTicker(option),
|
|
1420
1456
|
chainId: option.chainId,
|
|
1421
1457
|
chainName: option.chainName,
|
|
1422
1458
|
tokenAddress: option.address,
|
|
@@ -1426,6 +1462,7 @@ async function buildRoute({
|
|
|
1426
1462
|
},
|
|
1427
1463
|
receive: {
|
|
1428
1464
|
asset: destinationToken.symbol,
|
|
1465
|
+
ticker: tokenTicker(destinationToken),
|
|
1429
1466
|
chainId: Number(destination.chainId),
|
|
1430
1467
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1431
1468
|
tokenAddress: destinationToken.address,
|
|
@@ -1440,10 +1477,12 @@ async function buildRoute({
|
|
|
1440
1477
|
{
|
|
1441
1478
|
index: 1,
|
|
1442
1479
|
fromAsset: option.symbol,
|
|
1480
|
+
fromTicker: optionTicker(option),
|
|
1443
1481
|
fromChainId: option.chainId,
|
|
1444
1482
|
fromChainName: option.chainName,
|
|
1445
1483
|
fromAmount: sourceAmount,
|
|
1446
1484
|
toAsset: destinationToken.symbol,
|
|
1485
|
+
toTicker: tokenTicker(destinationToken),
|
|
1447
1486
|
toChainId: Number(destination.chainId),
|
|
1448
1487
|
toChainName: chainNameOf(Number(destination.chainId), chains),
|
|
1449
1488
|
toAmount: receiveAmount,
|
|
@@ -1455,7 +1494,7 @@ async function buildRoute({
|
|
|
1455
1494
|
{
|
|
1456
1495
|
id: "transfer",
|
|
1457
1496
|
kind: "transfer",
|
|
1458
|
-
label: `Transfer ${destinationToken
|
|
1497
|
+
label: `Transfer ${tokenTicker(destinationToken)}`,
|
|
1459
1498
|
chainId: option.chainId,
|
|
1460
1499
|
to: option.address,
|
|
1461
1500
|
data: encodeTransfer(destination.address, result.youPayRaw),
|
|
@@ -1507,6 +1546,7 @@ async function buildRoute({
|
|
|
1507
1546
|
state: result.meetsTarget ? "ROUTE" : "SHORT",
|
|
1508
1547
|
source: {
|
|
1509
1548
|
asset: option.symbol,
|
|
1549
|
+
ticker: optionTicker(option),
|
|
1510
1550
|
chainId: option.chainId,
|
|
1511
1551
|
chainName: option.chainName,
|
|
1512
1552
|
tokenAddress: option.address,
|
|
@@ -1516,6 +1556,7 @@ async function buildRoute({
|
|
|
1516
1556
|
},
|
|
1517
1557
|
receive: {
|
|
1518
1558
|
asset: destinationToken.symbol,
|
|
1559
|
+
ticker: tokenTicker(destinationToken),
|
|
1519
1560
|
chainId: Number(destination.chainId),
|
|
1520
1561
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1521
1562
|
tokenAddress: destinationToken.address,
|
|
@@ -1529,7 +1570,7 @@ async function buildRoute({
|
|
|
1529
1570
|
{
|
|
1530
1571
|
id: "approve",
|
|
1531
1572
|
kind: "approve",
|
|
1532
|
-
label: `Approve ${option
|
|
1573
|
+
label: `Approve ${optionTicker(option)}`,
|
|
1533
1574
|
chainId: option.chainId,
|
|
1534
1575
|
to: option.address,
|
|
1535
1576
|
data: encodeApprove(escrow, order.bidTokenAmount),
|
|
@@ -1996,6 +2037,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
|
|
|
1996
2037
|
const option = {
|
|
1997
2038
|
symbol: sourceToken.symbol,
|
|
1998
2039
|
symbolKey: symbolKey(sourceToken.symbol),
|
|
2040
|
+
ticker: tokenTicker(sourceToken),
|
|
1999
2041
|
name: sourceToken.name || sourceToken.symbol,
|
|
2000
2042
|
chainId: v.fromChainId,
|
|
2001
2043
|
chainName: chainNameOf(v.fromChainId, chains),
|
|
@@ -2422,13 +2464,16 @@ function sanitizeLegs(legs) {
|
|
|
2422
2464
|
if (!Array.isArray(legs) || !legs.length) return void 0;
|
|
2423
2465
|
const text = (v, max) => String(v ?? "").slice(0, max);
|
|
2424
2466
|
const chain = (v) => Number(v) || 0;
|
|
2467
|
+
const ticker = (value, asset) => safeTicker(value, asset) || void 0;
|
|
2425
2468
|
return legs.slice(0, 8).map((leg, i) => ({
|
|
2426
2469
|
index: Number(leg?.index) || i + 1,
|
|
2427
2470
|
fromAsset: text(leg?.fromAsset, 12),
|
|
2471
|
+
fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
|
|
2428
2472
|
fromChainId: chain(leg?.fromChainId),
|
|
2429
2473
|
fromChainName: text(leg?.fromChainName, 40),
|
|
2430
2474
|
fromAmount: text(leg?.fromAmount, 40),
|
|
2431
2475
|
toAsset: text(leg?.toAsset, 12),
|
|
2476
|
+
toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
|
|
2432
2477
|
toChainId: chain(leg?.toChainId),
|
|
2433
2478
|
toChainName: text(leg?.toChainName, 40),
|
|
2434
2479
|
toAmount: text(leg?.toAmount, 40),
|
|
@@ -2445,6 +2490,8 @@ function sanitizeTxEntry(entry) {
|
|
|
2445
2490
|
chainName: String(entry.chainName || "").slice(0, 40),
|
|
2446
2491
|
fromAsset: String(entry.fromAsset || "").slice(0, 10),
|
|
2447
2492
|
toAsset: String(entry.toAsset || "").slice(0, 10),
|
|
2493
|
+
fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
|
|
2494
|
+
toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
|
|
2448
2495
|
payAmount: String(entry.payAmount || "").slice(0, 40),
|
|
2449
2496
|
receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
|
|
2450
2497
|
account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
|
|
@@ -2601,6 +2648,7 @@ exports.executionChainIds = executionChainIds;
|
|
|
2601
2648
|
exports.fetchPaymentPlan = fetchPaymentPlan;
|
|
2602
2649
|
exports.finalOf = finalOf;
|
|
2603
2650
|
exports.findToken = findToken;
|
|
2651
|
+
exports.foldTicker = foldTicker;
|
|
2604
2652
|
exports.formatNative = formatNative;
|
|
2605
2653
|
exports.formatUnits = formatUnits;
|
|
2606
2654
|
exports.hasReachableDestination = hasReachableDestination;
|
|
@@ -2638,6 +2686,7 @@ exports.resolveConfig = resolveConfig;
|
|
|
2638
2686
|
exports.resolveSwapReceiver = resolveSwapReceiver;
|
|
2639
2687
|
exports.resolveVaultIcon = resolveVaultIcon;
|
|
2640
2688
|
exports.routeNativeValue = routeNativeValue;
|
|
2689
|
+
exports.safeTicker = safeTicker;
|
|
2641
2690
|
exports.scaleDecimals = scaleDecimals;
|
|
2642
2691
|
exports.screeningOutcomeOf = screeningOutcomeOf;
|
|
2643
2692
|
exports.solveExactIn = solveExactIn;
|
|
@@ -2647,9 +2696,11 @@ exports.stableGenieIntentSchema = stableGenieIntentSchema;
|
|
|
2647
2696
|
exports.strip0x = strip0x;
|
|
2648
2697
|
exports.suppressedLanes = suppressedLanes;
|
|
2649
2698
|
exports.symbolKey = symbolKey;
|
|
2699
|
+
exports.tickerOn = tickerOn;
|
|
2650
2700
|
exports.toHexQuantity = toHexQuantity;
|
|
2651
2701
|
exports.tokenEnabled = tokenEnabled;
|
|
2652
2702
|
exports.tokenKey = tokenKey;
|
|
2703
|
+
exports.tokenTicker = tokenTicker;
|
|
2653
2704
|
exports.txMatchesPlan = txMatchesPlan;
|
|
2654
2705
|
exports.uint64Word = uint64Word;
|
|
2655
2706
|
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-ZBUK7ULN.js';
|