@glacislabs/stablegenie-zerodelta 4.7.0 → 4.9.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-L7ZEFAZ4.js → chunk-YGBSCSBP.js} +162 -12
- package/dist/{chunk-MZCS5TL2.js → chunk-ZRGTK4B2.js} +16 -2
- package/dist/core/index.cjs +16 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +176 -11
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-D5TIOkMe.d.ts → mount-BdpykBEW.d.ts} +21 -2
- package/dist/{mount-D4mbJwdc.d.cts → mount-CQ2kUcrx.d.cts} +21 -2
- package/dist/mount.cjs +175 -11
- 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-BEQ8DMvJ.d.cts → verify-CbsVzIkp.d.cts} +9 -1
- package/dist/{verify-BEQ8DMvJ.d.ts → verify-CbsVzIkp.d.ts} +9 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, amountFieldError, SUPPORTED_CHAIN_IDS, formatUnits, complianceChecks, DIRECT_CHECK_IDS, createEngine, checkNativeFee, nativeFeeShortLabel, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, foldTicker, unattributedComplianceReasons, distinctScreenedWallets, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC } from './chunk-
|
|
2
|
-
import { createContext, useState, useRef, useMemo, useEffect, useCallback, useId, createElement, useContext } from 'react';
|
|
1
|
+
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, amountFieldError, SUPPORTED_CHAIN_IDS, formatUnits, complianceChecks, DIRECT_CHECK_IDS, createEngine, checkNativeFee, nativeFeeShortLabel, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, foldTicker, unattributedComplianceReasons, distinctScreenedWallets, formatJurisdiction, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC } from './chunk-ZRGTK4B2.js';
|
|
2
|
+
import { createContext, useState, useRef, useMemo, useEffect, useCallback, useId, createElement, useContext, useLayoutEffect, useReducer } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -577,6 +577,83 @@ function useHoldings(engine, account, routes, initialBalances) {
|
|
|
577
577
|
return { balances, loading };
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
+
// src/react/ui/amount.ts
|
|
581
|
+
var MAX_FRACTION_DIGITS = 8;
|
|
582
|
+
function trimFraction(fixed) {
|
|
583
|
+
return fixed.includes(".") ? fixed.replace(/\.?0+$/, "") : fixed;
|
|
584
|
+
}
|
|
585
|
+
function groupDecimal(value) {
|
|
586
|
+
const match = value.match(/^([+-]?)(\d+)(\.\d+)?$/);
|
|
587
|
+
if (!match) return value;
|
|
588
|
+
const integer = match[2].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
589
|
+
return `${match[1]}${integer}${match[3] ?? ""}`;
|
|
590
|
+
}
|
|
591
|
+
var SIGNIFICANT_DIGITS = 7;
|
|
592
|
+
var MIN_FRACTION_DIGITS = 4;
|
|
593
|
+
function formatCalculatedAmount(value, decimals) {
|
|
594
|
+
let raw = typeof value === "number" ? String(value) : value.trim();
|
|
595
|
+
if (typeof value === "number") {
|
|
596
|
+
if (!Number.isFinite(value)) return raw;
|
|
597
|
+
if (/e/i.test(raw)) {
|
|
598
|
+
raw = value.toLocaleString("en-US", {
|
|
599
|
+
useGrouping: false,
|
|
600
|
+
maximumFractionDigits: 20
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
const match = raw.match(/^([+-]?)(\d*)(?:\.(\d*))?$/);
|
|
605
|
+
if (!match) return raw;
|
|
606
|
+
const negative = match[1] === "-";
|
|
607
|
+
const integer = (match[2] || "0").replace(/^0+(?=\d)/, "");
|
|
608
|
+
const fraction = match[3] ?? "";
|
|
609
|
+
const firstNonZero = fraction.search(/[1-9]/);
|
|
610
|
+
const isZero = integer === "0" && firstNonZero === -1;
|
|
611
|
+
if (isZero) return "0";
|
|
612
|
+
if (integer === "0" && firstNonZero >= 6) return `${negative ? "-" : ""}<0.000001`;
|
|
613
|
+
const cap = decimals === void 0 || !Number.isFinite(decimals) ? MAX_FRACTION_DIGITS : Math.min(MAX_FRACTION_DIGITS, Math.max(0, Math.trunc(decimals)));
|
|
614
|
+
const places = integer !== "0" ? Math.min(cap, Math.max(MIN_FRACTION_DIGITS, SIGNIFICANT_DIGITS - integer.length)) : (
|
|
615
|
+
// Below one the leading zeros are not significant, so the count starts
|
|
616
|
+
// at the first digit that is.
|
|
617
|
+
Math.min(cap, firstNonZero + SIGNIFICANT_DIGITS)
|
|
618
|
+
);
|
|
619
|
+
const scale = 10n ** BigInt(places);
|
|
620
|
+
const padded = fraction.padEnd(places + 1, "0");
|
|
621
|
+
const kept = padded.slice(0, places);
|
|
622
|
+
let rounded = BigInt(integer) * scale + BigInt(kept || "0");
|
|
623
|
+
if ((padded[places] ?? "0") >= "5") rounded += 1n;
|
|
624
|
+
const whole = rounded / scale;
|
|
625
|
+
const remainder = rounded % scale;
|
|
626
|
+
const fixed = places === 0 ? whole.toString() : `${whole}.${remainder.toString().padStart(places, "0")}`;
|
|
627
|
+
const out = groupDecimal(trimFraction(fixed));
|
|
628
|
+
return negative && out !== "0" ? `-${out}` : out;
|
|
629
|
+
}
|
|
630
|
+
function exactAmountTitle(raw, shown) {
|
|
631
|
+
const full = typeof raw === "number" ? String(raw) : raw.trim();
|
|
632
|
+
if (!full || /e/i.test(full)) return void 0;
|
|
633
|
+
const normalized = full.includes(".") ? trimFraction(full) : full;
|
|
634
|
+
const grouped = groupDecimal(normalized);
|
|
635
|
+
return grouped === shown ? void 0 : grouped;
|
|
636
|
+
}
|
|
637
|
+
function sanitizeAmount(raw) {
|
|
638
|
+
const cleaned = raw.replace(/[^0-9.]/g, "");
|
|
639
|
+
const first = cleaned.indexOf(".");
|
|
640
|
+
if (first === -1) return cleaned;
|
|
641
|
+
return cleaned.slice(0, first + 1) + cleaned.slice(first + 1).replace(/\./g, "");
|
|
642
|
+
}
|
|
643
|
+
function groupAmountInput(value) {
|
|
644
|
+
const point = value.indexOf(".");
|
|
645
|
+
const whole = point === -1 ? value : value.slice(0, point);
|
|
646
|
+
return whole.replace(/\B(?=(\d{3})+(?!\d))/g, ",") + (point === -1 ? "" : value.slice(point));
|
|
647
|
+
}
|
|
648
|
+
function groupedAmountCaret(grouped, kept) {
|
|
649
|
+
if (kept <= 0) return 0;
|
|
650
|
+
let seen = 0;
|
|
651
|
+
for (let i = 0; i < grouped.length; i++) {
|
|
652
|
+
if (grouped[i] !== "," && ++seen === kept) return i + 1;
|
|
653
|
+
}
|
|
654
|
+
return grouped.length;
|
|
655
|
+
}
|
|
656
|
+
|
|
580
657
|
// src/react/styles.ts
|
|
581
658
|
var WIDGET_CSS = `
|
|
582
659
|
/* The card as the ZeroDelta widget design draws it (Figma "Widget Playground", 2026-09-30): no
|
|
@@ -1398,6 +1475,53 @@ function BrandMark({ size = 18, mono = false, className, style, title }) {
|
|
|
1398
1475
|
}
|
|
1399
1476
|
);
|
|
1400
1477
|
}
|
|
1478
|
+
var MIN_FONT_PX = 10;
|
|
1479
|
+
function useFitText(ref, text) {
|
|
1480
|
+
useLayoutEffect(() => {
|
|
1481
|
+
const el = ref.current;
|
|
1482
|
+
if (!el) return;
|
|
1483
|
+
const fit = () => {
|
|
1484
|
+
el.style.fontSize = "";
|
|
1485
|
+
const room = el.clientWidth;
|
|
1486
|
+
const needed = el.scrollWidth;
|
|
1487
|
+
if (!room || needed <= room) return;
|
|
1488
|
+
const base = Number.parseFloat(getComputedStyle(el).fontSize);
|
|
1489
|
+
if (!Number.isFinite(base) || base <= 0) return;
|
|
1490
|
+
el.style.fontSize = `${Math.max(MIN_FONT_PX, Math.floor(base * room / needed))}px`;
|
|
1491
|
+
};
|
|
1492
|
+
fit();
|
|
1493
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
1494
|
+
const observer = new ResizeObserver(fit);
|
|
1495
|
+
if (el.parentElement) observer.observe(el.parentElement);
|
|
1496
|
+
return () => observer.disconnect();
|
|
1497
|
+
}, [ref, text]);
|
|
1498
|
+
}
|
|
1499
|
+
function useGroupedAmountInput(amount, onAmount) {
|
|
1500
|
+
const caret = useRef(null);
|
|
1501
|
+
const [, rerender] = useReducer((n) => n + 1, 0);
|
|
1502
|
+
useLayoutEffect(() => {
|
|
1503
|
+
const pending = caret.current;
|
|
1504
|
+
caret.current = null;
|
|
1505
|
+
if (pending === null || pending.input !== document.activeElement) return;
|
|
1506
|
+
const at = groupedAmountCaret(pending.input.value, pending.kept);
|
|
1507
|
+
pending.input.setSelectionRange(at, at);
|
|
1508
|
+
});
|
|
1509
|
+
const onChange = (e) => {
|
|
1510
|
+
const input = e.target;
|
|
1511
|
+
const raw = input.value;
|
|
1512
|
+
caret.current = { input, kept: sanitizeAmount(raw.slice(0, input.selectionEnd ?? raw.length)).length };
|
|
1513
|
+
onAmount(sanitizeAmount(raw));
|
|
1514
|
+
rerender();
|
|
1515
|
+
};
|
|
1516
|
+
const onKeyDown = (e) => {
|
|
1517
|
+
const input = e.currentTarget;
|
|
1518
|
+
const at = input.selectionStart;
|
|
1519
|
+
if (at === null || at !== input.selectionEnd) return;
|
|
1520
|
+
if (e.key === "Backspace" && input.value[at - 1] === ",") input.setSelectionRange(at - 1, at - 1);
|
|
1521
|
+
else if (e.key === "Delete" && input.value[at] === ",") input.setSelectionRange(at + 1, at + 1);
|
|
1522
|
+
};
|
|
1523
|
+
return { value: groupAmountInput(amount), onChange, onKeyDown };
|
|
1524
|
+
}
|
|
1401
1525
|
var SOURCE_CHAIN_LABELS = {
|
|
1402
1526
|
1: "Ethereum",
|
|
1403
1527
|
10: "Optimism",
|
|
@@ -1451,17 +1575,22 @@ function Select(props) {
|
|
|
1451
1575
|
] }) });
|
|
1452
1576
|
}
|
|
1453
1577
|
function AmountInput(props) {
|
|
1578
|
+
const grouped = useGroupedAmountInput(props.value, props.onChange);
|
|
1579
|
+
const field = useRef(null);
|
|
1580
|
+
useFitText(field, grouped.value);
|
|
1454
1581
|
return /* @__PURE__ */ jsx(
|
|
1455
1582
|
"input",
|
|
1456
1583
|
{
|
|
1584
|
+
ref: field,
|
|
1457
1585
|
className: "sg-input sg-amount sg-mono",
|
|
1458
1586
|
inputMode: "decimal",
|
|
1459
1587
|
placeholder: props.placeholder ?? "0.0",
|
|
1460
|
-
value:
|
|
1588
|
+
value: grouped.value,
|
|
1461
1589
|
disabled: props.disabled,
|
|
1462
1590
|
"aria-invalid": props.invalid || void 0,
|
|
1463
1591
|
"aria-describedby": props.describedBy,
|
|
1464
|
-
onChange:
|
|
1592
|
+
onChange: grouped.onChange,
|
|
1593
|
+
onKeyDown: grouped.onKeyDown
|
|
1465
1594
|
}
|
|
1466
1595
|
);
|
|
1467
1596
|
}
|
|
@@ -1887,11 +2016,11 @@ function QuoteGlyph({ size = 16 }) {
|
|
|
1887
2016
|
)
|
|
1888
2017
|
] });
|
|
1889
2018
|
}
|
|
1890
|
-
function AmountText({ value, suffix }) {
|
|
1891
|
-
const dot = value.indexOf(".");
|
|
2019
|
+
function AmountText({ value, suffix, exact }) {
|
|
2020
|
+
const dot = value.startsWith("<") ? -1 : value.indexOf(".");
|
|
1892
2021
|
const whole = dot < 0 ? value : value.slice(0, dot + 1);
|
|
1893
2022
|
const decimals = dot < 0 ? "" : value.slice(dot + 1);
|
|
1894
|
-
return /* @__PURE__ */ jsxs("span", { className: "sg-amt", children: [
|
|
2023
|
+
return /* @__PURE__ */ jsxs("span", { className: "sg-amt", title: exact === void 0 ? void 0 : exactAmountTitle(exact, value), children: [
|
|
1895
2024
|
whole,
|
|
1896
2025
|
decimals ? /* @__PURE__ */ jsx("span", { className: "sg-amt-dec", children: decimals }) : null,
|
|
1897
2026
|
suffix ? ` ${suffix}` : null
|
|
@@ -2146,7 +2275,7 @@ function QuoteChecks({
|
|
|
2146
2275
|
const summary = allPassed ? "All checks passed" : cv.label;
|
|
2147
2276
|
const orphans = unattributedComplianceReasons(compliance, cv);
|
|
2148
2277
|
const wallets = distinctScreenedWallets(compliance);
|
|
2149
|
-
const jurisdiction = compliance?.sourceJurisdiction?.
|
|
2278
|
+
const jurisdiction = formatJurisdiction(compliance?.sourceJurisdiction, compliance?.sourceCountry);
|
|
2150
2279
|
const hasDetails = Boolean(jurisdiction || wallets.length || compliance?.checkId);
|
|
2151
2280
|
return /* @__PURE__ */ jsxs("div", { className: "sg-cp-tabpanel", role: "tabpanel", "aria-label": "Quote checks", children: [
|
|
2152
2281
|
/* @__PURE__ */ jsxs("section", { className: "sg-cp-card", children: [
|
|
@@ -3817,7 +3946,7 @@ function PayCard(props) {
|
|
|
3817
3946
|
setSheet(false);
|
|
3818
3947
|
requestAnimationFrame(() => complianceBtnRef.current?.focus());
|
|
3819
3948
|
};
|
|
3820
|
-
const payLabel = parked ? "Coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${atLeastCents(sel.source.payAmount)} ${sel.source.ticker || sel.source.asset}` : "Pay";
|
|
3949
|
+
const payLabel = parked ? "Coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${groupDecimal(atLeastCents(sel.source.payAmount))} ${sel.source.ticker || sel.source.asset}` : "Pay";
|
|
3821
3950
|
const walletSlot = wallet.account ? /* @__PURE__ */ jsxs("div", { className: "sg-head-tools", children: [
|
|
3822
3951
|
/* @__PURE__ */ jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
|
|
3823
3952
|
/* @__PURE__ */ jsxs("span", { className: "sg-wallet", "data-connected": "true", children: [
|
|
@@ -3869,7 +3998,7 @@ function PayCard(props) {
|
|
|
3869
3998
|
/* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "pay", children: [
|
|
3870
3999
|
/* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: "You pay" }),
|
|
3871
4000
|
/* @__PURE__ */ jsxs("div", { className: "sg-pane-mid", children: [
|
|
3872
|
-
/* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", children: loadingPlan ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : sel && selectedVisible ? /* @__PURE__ */ jsx(AmountText, { value: atLeastCents(sel.source.payAmount) }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) }),
|
|
4001
|
+
/* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", children: loadingPlan ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : sel && selectedVisible ? /* @__PURE__ */ jsx(AmountText, { value: groupDecimal(atLeastCents(sel.source.payAmount)) }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) }),
|
|
3873
4002
|
/* @__PURE__ */ jsx(
|
|
3874
4003
|
TokenButton,
|
|
3875
4004
|
{
|
|
@@ -4194,6 +4323,15 @@ function ExchangeCard(props) {
|
|
|
4194
4323
|
() => props.defaultToChainId && props.defaultToAsset ? { chainId: props.defaultToChainId, symbol: symbolKey(props.defaultToAsset) } : null
|
|
4195
4324
|
);
|
|
4196
4325
|
const [amount, setAmount] = useState(props.defaultAmount ?? "");
|
|
4326
|
+
const onInputChange = useRef(props.onInputChange);
|
|
4327
|
+
onInputChange.current = props.onInputChange;
|
|
4328
|
+
const fromChainId = from?.chainId ?? null;
|
|
4329
|
+
const fromSymbol = from?.symbol ?? null;
|
|
4330
|
+
const toChainId = to?.chainId ?? null;
|
|
4331
|
+
const toSymbolKey = to?.symbol ?? null;
|
|
4332
|
+
useEffect(() => {
|
|
4333
|
+
onInputChange.current?.({ fromChainId, fromAsset: fromSymbol, toChainId, toAsset: toSymbolKey, amount });
|
|
4334
|
+
}, [fromChainId, fromSymbol, toChainId, toSymbolKey, amount]);
|
|
4197
4335
|
const [fiatCurrency, setFiatCurrency] = useState(props.fiatCurrency ?? "EUR");
|
|
4198
4336
|
const fromToken = useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
|
|
4199
4337
|
const toToken = useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
|
|
@@ -4331,6 +4469,18 @@ function ExchangeCard(props) {
|
|
|
4331
4469
|
const amountError = overLimit && laneLimit ? laneLimitError(laneLimit, limitSymbol) : gatewayAmountError;
|
|
4332
4470
|
const amountNote = mode === "exchange" ? amountError || (laneLimit ? laneLimitHint(laneLimit, limitSymbol) : null) : null;
|
|
4333
4471
|
const receive = connected ? flow.selected?.receive.amount : preview.data?.receive;
|
|
4472
|
+
const receiveOutRef = useRef(null);
|
|
4473
|
+
const receiveSideRef = useRef(null);
|
|
4474
|
+
const receiveShown = `${receive ?? ""}|${quoting}|${toTicker}`;
|
|
4475
|
+
useFitText(receiveOutRef, receiveShown);
|
|
4476
|
+
useFitText(receiveSideRef, receiveShown);
|
|
4477
|
+
const toDecimals = useMemo(() => {
|
|
4478
|
+
try {
|
|
4479
|
+
return toToken ? assetDecimals(toToken) : void 0;
|
|
4480
|
+
} catch {
|
|
4481
|
+
return void 0;
|
|
4482
|
+
}
|
|
4483
|
+
}, [toToken]);
|
|
4334
4484
|
const meta = connected ? flow.selected ? { bridge: flow.selected.quote.bridge || "ZeroDelta", feeBps: Number(flow.selected.quote.feeBps || 0), duration: Number(flow.selected.quote.estimatedDuration || 0) } : null : preview.data ? { bridge: preview.data.bridge || "ZeroDelta", feeBps: preview.data.feeBps, duration: preview.data.estimatedDuration } : null;
|
|
4335
4485
|
const pct = (p) => {
|
|
4336
4486
|
if (!fromBal || !fromToken) return;
|
|
@@ -4524,7 +4674,7 @@ function ExchangeCard(props) {
|
|
|
4524
4674
|
/* @__PURE__ */ jsxs("div", { className: "sg-pane", "data-kind": "receive", children: [
|
|
4525
4675
|
/* @__PURE__ */ jsx("span", { className: "sg-pane-label", children: product === "rwa" ? "You receive (estimated)" : "You receive" }),
|
|
4526
4676
|
/* @__PURE__ */ jsxs("div", { className: "sg-pane-mid", children: [
|
|
4527
|
-
/* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", children: rampMode ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) : quoting ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : receive && quotable && !quoteError ? /* @__PURE__ */ jsx(AmountText, { value: receive }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "0" }) }),
|
|
4677
|
+
/* @__PURE__ */ jsx("span", { className: "sg-amt-out", "aria-live": "polite", ref: receiveOutRef, children: rampMode ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2014" }) : quoting ? /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "\u2026" }) : receive && quotable && !quoteError ? /* @__PURE__ */ jsx(AmountText, { value: formatCalculatedAmount(receive, toDecimals), exact: receive }) : /* @__PURE__ */ jsx("span", { className: "sg-amt-empty", children: "0" }) }),
|
|
4528
4678
|
receiveToken
|
|
4529
4679
|
] }),
|
|
4530
4680
|
/* @__PURE__ */ jsx(PaneFoot, { usd: hasQuote ? toUsd : null })
|
|
@@ -4585,7 +4735,7 @@ function ExchangeCard(props) {
|
|
|
4585
4735
|
/* @__PURE__ */ jsxs("div", { className: "sg-recv", children: [
|
|
4586
4736
|
/* @__PURE__ */ jsxs("div", { className: "sg-recv-line", children: [
|
|
4587
4737
|
/* @__PURE__ */ jsx(TokenGlyph, { symbol: to?.symbol ?? "", logoUrl: toToken?.logoUrl, chainId: to?.chainId, size: "xs" }),
|
|
4588
|
-
/* @__PURE__ */ jsx("span", { className: "sg-recv-amt", children: /* @__PURE__ */ jsx(AmountText, { value: receive, suffix: toTicker }) })
|
|
4738
|
+
/* @__PURE__ */ jsx("span", { className: "sg-recv-amt", ref: receiveSideRef, children: /* @__PURE__ */ jsx(AmountText, { value: formatCalculatedAmount(receive, toDecimals), exact: receive, suffix: toTicker }) })
|
|
4589
4739
|
] }),
|
|
4590
4740
|
/* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
|
|
4591
4741
|
"On ",
|
|
@@ -886,6 +886,20 @@ function withVaultArtwork(tokens, icons) {
|
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
// src/core/compliance.ts
|
|
889
|
+
function formatJurisdiction(jurisdiction, country) {
|
|
890
|
+
const region = jurisdiction?.trim() ?? "";
|
|
891
|
+
const explicitCountry = country?.trim() ?? "";
|
|
892
|
+
const countryCode = (explicitCountry || (/^[a-z]{2}$/i.test(region) && region.toUpperCase() !== "EU" ? region : "")).toUpperCase();
|
|
893
|
+
if (!countryCode) return region;
|
|
894
|
+
let countryLabel = countryCode;
|
|
895
|
+
try {
|
|
896
|
+
countryLabel = new Intl.DisplayNames(["en"], { type: "region" }).of(countryCode) ?? countryCode;
|
|
897
|
+
} catch {
|
|
898
|
+
}
|
|
899
|
+
const namedCountry = countryLabel === countryCode ? countryCode : `${countryLabel} (${countryCode})`;
|
|
900
|
+
if (!region || region.toUpperCase() === countryCode) return namedCountry;
|
|
901
|
+
return `${region} \xB7 ${namedCountry}`;
|
|
902
|
+
}
|
|
889
903
|
var COMPLIANCE_DENY_LABEL = "Compliance check failed";
|
|
890
904
|
function complianceView(compliance, hasQuote = true) {
|
|
891
905
|
if (!hasQuote) {
|
|
@@ -1706,7 +1720,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
1706
1720
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
1707
1721
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
1708
1722
|
var WIDGET_CHANNEL = "widget";
|
|
1709
|
-
var WIDGET_VERSION = "4.
|
|
1723
|
+
var WIDGET_VERSION = "4.9.0" ;
|
|
1710
1724
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
1711
1725
|
function sanitizeVersion(raw) {
|
|
1712
1726
|
const v = String(raw).trim();
|
|
@@ -2789,4 +2803,4 @@ function createEngine(config = {}) {
|
|
|
2789
2803
|
};
|
|
2790
2804
|
}
|
|
2791
2805
|
|
|
2792
|
-
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, amountFieldError, 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, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, 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 };
|
|
2806
|
+
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, amountFieldError, 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, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, 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 };
|
package/dist/core/index.cjs
CHANGED
|
@@ -888,6 +888,20 @@ function withVaultArtwork(tokens, icons) {
|
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
// src/core/compliance.ts
|
|
891
|
+
function formatJurisdiction(jurisdiction, country) {
|
|
892
|
+
const region = jurisdiction?.trim() ?? "";
|
|
893
|
+
const explicitCountry = country?.trim() ?? "";
|
|
894
|
+
const countryCode = (explicitCountry || (/^[a-z]{2}$/i.test(region) && region.toUpperCase() !== "EU" ? region : "")).toUpperCase();
|
|
895
|
+
if (!countryCode) return region;
|
|
896
|
+
let countryLabel = countryCode;
|
|
897
|
+
try {
|
|
898
|
+
countryLabel = new Intl.DisplayNames(["en"], { type: "region" }).of(countryCode) ?? countryCode;
|
|
899
|
+
} catch {
|
|
900
|
+
}
|
|
901
|
+
const namedCountry = countryLabel === countryCode ? countryCode : `${countryLabel} (${countryCode})`;
|
|
902
|
+
if (!region || region.toUpperCase() === countryCode) return namedCountry;
|
|
903
|
+
return `${region} \xB7 ${namedCountry}`;
|
|
904
|
+
}
|
|
891
905
|
var COMPLIANCE_DENY_LABEL = "Compliance check failed";
|
|
892
906
|
function complianceView(compliance, hasQuote = true) {
|
|
893
907
|
if (!hasQuote) {
|
|
@@ -1708,7 +1722,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
1708
1722
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
1709
1723
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
1710
1724
|
var WIDGET_CHANNEL = "widget";
|
|
1711
|
-
var WIDGET_VERSION = "4.
|
|
1725
|
+
var WIDGET_VERSION = "4.9.0" ;
|
|
1712
1726
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
1713
1727
|
function sanitizeVersion(raw) {
|
|
1714
1728
|
const v = String(raw).trim();
|
|
@@ -2887,6 +2901,7 @@ exports.fetchPaymentPlan = fetchPaymentPlan;
|
|
|
2887
2901
|
exports.finalOf = finalOf;
|
|
2888
2902
|
exports.findToken = findToken;
|
|
2889
2903
|
exports.foldTicker = foldTicker;
|
|
2904
|
+
exports.formatJurisdiction = formatJurisdiction;
|
|
2890
2905
|
exports.formatNative = formatNative;
|
|
2891
2906
|
exports.formatUnits = formatUnits;
|
|
2892
2907
|
exports.hasReachableDestination = hasReachableDestination;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder,
|
|
2
|
-
export {
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-CbsVzIkp.cjs';
|
|
2
|
+
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-CbsVzIkp.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. */
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder,
|
|
2
|
-
export {
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-CbsVzIkp.js';
|
|
2
|
+
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-CbsVzIkp.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. */
|
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, amountFieldError, 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, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, 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-
|
|
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, amountFieldError, 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, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, 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-ZRGTK4B2.js';
|