@glacislabs/stablegenie-zerodelta 4.6.0 → 4.8.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.
@@ -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-CEBEMZHZ.js';
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, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC } from './chunk-F46VMTTL.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: props.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: (e) => props.onChange(e.target.value.replace(/[^0-9.,]/g, ""))
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
@@ -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 ",
@@ -1458,6 +1458,10 @@ function routeDeltaLabel(result, quote) {
1458
1458
  if (quote.feeBps) return `${quote.feeBps} bps fee`;
1459
1459
  return "~0";
1460
1460
  }
1461
+ function quotePartnerId(quote) {
1462
+ const raw = quote.partnerId;
1463
+ return typeof raw === "string" && /^0x[0-9a-fA-F]{64}$/.test(raw) ? raw.toLowerCase() : NO_PARTNER_ID;
1464
+ }
1461
1465
  function optionTicker(option) {
1462
1466
  return option.ticker || option.symbol;
1463
1467
  }
@@ -1623,6 +1627,7 @@ async function buildRoute({
1623
1627
  }
1624
1628
  }
1625
1629
  const valueRaw = applyLayerZeroBuffer(quote, option);
1630
+ const partnerId = quotePartnerId(quote);
1626
1631
  if (!needsNativeFee) {
1627
1632
  if (valueRaw !== 0n) throw new Error("Non-LayerZero route requested a non-zero native value; refusing to sign.");
1628
1633
  } else if (valueRaw === 0n && Number(quote.executionChainId) > 0) {
@@ -1673,7 +1678,7 @@ async function buildRoute({
1673
1678
  label: "Submit ZeroDelta order",
1674
1679
  chainId: option.chainId,
1675
1680
  to: escrow,
1676
- data: encodeSubmitOrder(orders),
1681
+ data: encodeSubmitOrder(orders, partnerId),
1677
1682
  value: toHexQuantity(valueRaw),
1678
1683
  escrow,
1679
1684
  amountRaw: order.bidTokenAmount
@@ -1686,6 +1691,7 @@ async function buildRoute({
1686
1691
  gasCostSource: quote.gasCostSource,
1687
1692
  msgValue: valueRaw.toString(),
1688
1693
  deadline: order.deadline,
1694
+ partnerId: partnerId === NO_PARTNER_ID ? void 0 : partnerId,
1689
1695
  iterations: result.iterations,
1690
1696
  // Carried verbatim from the gateway's decision on THIS wallet pair. The projection used to
1691
1697
  // drop it, which is why the widget could show a price with no evidence of the control that
@@ -1700,7 +1706,7 @@ var CHANNEL_HEADER = "x-zd-channel";
1700
1706
  var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
1701
1707
  var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
1702
1708
  var WIDGET_CHANNEL = "widget";
1703
- var WIDGET_VERSION = "4.6.0" ;
1709
+ var WIDGET_VERSION = "4.8.0" ;
1704
1710
  var MAX_CHANNEL_VERSION_LEN = 32;
1705
1711
  function sanitizeVersion(raw) {
1706
1712
  const v = String(raw).trim();
@@ -2356,7 +2362,7 @@ function validatePlannedTransaction(tx, route, expectedRecipient) {
2356
2362
  if (!decoded) return false;
2357
2363
  const first = decoded.orders[0];
2358
2364
  const last = decoded.orders[decoded.orders.length - 1];
2359
- return decoded.partnerId === NO_PARTNER_ID && lower(first.bidToken) === lower(route.source.tokenAddress) && rawEquals(first.bidTokenAmount, tx.amountRaw) && lower(last.askToken) === lower(route.receive.tokenAddress) && Number(last.destinationChainId) === Number(route.receive.chainId) && lower(last.destinationReceiver) === lower(expectedRecipient);
2365
+ return decoded.partnerId === lower(route.quote?.partnerId || NO_PARTNER_ID) && lower(first.bidToken) === lower(route.source.tokenAddress) && rawEquals(first.bidTokenAmount, tx.amountRaw) && lower(last.askToken) === lower(route.receive.tokenAddress) && Number(last.destinationChainId) === Number(route.receive.chainId) && lower(last.destinationReceiver) === lower(expectedRecipient);
2360
2366
  }
2361
2367
  return false;
2362
2368
  }
@@ -2783,4 +2789,4 @@ function createEngine(config = {}) {
2783
2789
  };
2784
2790
  }
2785
2791
 
2786
- 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, 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 };
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 };
@@ -1460,6 +1460,10 @@ function routeDeltaLabel(result, quote) {
1460
1460
  if (quote.feeBps) return `${quote.feeBps} bps fee`;
1461
1461
  return "~0";
1462
1462
  }
1463
+ function quotePartnerId(quote) {
1464
+ const raw = quote.partnerId;
1465
+ return typeof raw === "string" && /^0x[0-9a-fA-F]{64}$/.test(raw) ? raw.toLowerCase() : NO_PARTNER_ID;
1466
+ }
1463
1467
  function optionTicker(option) {
1464
1468
  return option.ticker || option.symbol;
1465
1469
  }
@@ -1625,6 +1629,7 @@ async function buildRoute({
1625
1629
  }
1626
1630
  }
1627
1631
  const valueRaw = applyLayerZeroBuffer(quote, option);
1632
+ const partnerId = quotePartnerId(quote);
1628
1633
  if (!needsNativeFee) {
1629
1634
  if (valueRaw !== 0n) throw new Error("Non-LayerZero route requested a non-zero native value; refusing to sign.");
1630
1635
  } else if (valueRaw === 0n && Number(quote.executionChainId) > 0) {
@@ -1675,7 +1680,7 @@ async function buildRoute({
1675
1680
  label: "Submit ZeroDelta order",
1676
1681
  chainId: option.chainId,
1677
1682
  to: escrow,
1678
- data: encodeSubmitOrder(orders),
1683
+ data: encodeSubmitOrder(orders, partnerId),
1679
1684
  value: toHexQuantity(valueRaw),
1680
1685
  escrow,
1681
1686
  amountRaw: order.bidTokenAmount
@@ -1688,6 +1693,7 @@ async function buildRoute({
1688
1693
  gasCostSource: quote.gasCostSource,
1689
1694
  msgValue: valueRaw.toString(),
1690
1695
  deadline: order.deadline,
1696
+ partnerId: partnerId === NO_PARTNER_ID ? void 0 : partnerId,
1691
1697
  iterations: result.iterations,
1692
1698
  // Carried verbatim from the gateway's decision on THIS wallet pair. The projection used to
1693
1699
  // drop it, which is why the widget could show a price with no evidence of the control that
@@ -1702,7 +1708,7 @@ var CHANNEL_HEADER = "x-zd-channel";
1702
1708
  var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
1703
1709
  var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
1704
1710
  var WIDGET_CHANNEL = "widget";
1705
- var WIDGET_VERSION = "4.6.0" ;
1711
+ var WIDGET_VERSION = "4.8.0" ;
1706
1712
  var MAX_CHANNEL_VERSION_LEN = 32;
1707
1713
  function sanitizeVersion(raw) {
1708
1714
  const v = String(raw).trim();
@@ -2358,7 +2364,7 @@ function validatePlannedTransaction(tx, route, expectedRecipient) {
2358
2364
  if (!decoded) return false;
2359
2365
  const first = decoded.orders[0];
2360
2366
  const last = decoded.orders[decoded.orders.length - 1];
2361
- return decoded.partnerId === NO_PARTNER_ID && lower(first.bidToken) === lower(route.source.tokenAddress) && rawEquals(first.bidTokenAmount, tx.amountRaw) && lower(last.askToken) === lower(route.receive.tokenAddress) && Number(last.destinationChainId) === Number(route.receive.chainId) && lower(last.destinationReceiver) === lower(expectedRecipient);
2367
+ return decoded.partnerId === lower(route.quote?.partnerId || NO_PARTNER_ID) && lower(first.bidToken) === lower(route.source.tokenAddress) && rawEquals(first.bidTokenAmount, tx.amountRaw) && lower(last.askToken) === lower(route.receive.tokenAddress) && Number(last.destinationChainId) === Number(route.receive.chainId) && lower(last.destinationReceiver) === lower(expectedRecipient);
2362
2368
  }
2363
2369
  return false;
2364
2370
  }
@@ -2918,6 +2924,7 @@ exports.parseUnitsDecimal = parseUnitsDecimal;
2918
2924
  exports.planErrorSummary = planErrorSummary;
2919
2925
  exports.planMsgValueHex = planMsgValueHex;
2920
2926
  exports.productAssets = productAssets;
2927
+ exports.quotePartnerId = quotePartnerId;
2921
2928
  exports.quoteSwapPreview = quoteSwapPreview;
2922
2929
  exports.recommendedDeadlineSeconds = recommendedDeadlineSeconds;
2923
2930
  exports.registryRpc = registryRpc;
@@ -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-DSCljQtK.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, M as CatalogueInput, c as ComplianceCheck, U as ComplianceCheckId, X as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Y as DIRECT_CHECK_IDS, Z as DIRECT_SCOPE_NOTE, _ as Destination, $ as FLOOR_CATEGORIES, a0 as Hex, a1 as LaneAvailabilityState, L as LaneLimit, a2 as PlannedTxKind, a3 as QuoteBlock, a4 as ResolvedConfig, a5 as RouteHealth, a6 as RouteHealthAvailability, a7 as RouteHealthLane, g as RouteLeg, a8 as SCREENING_BUCKETS, a9 as ScreenProvider, aa as ScreeningBucket, ab as ScreeningOutcome, ac as TUNABLE_CATEGORIES, ad as TxPlan, V as VerifyResult, W as WalletScreen, ae as amountFieldError, af as apiError, j as assetClassOf, ag as blockLabelFor, ah as brokenLaneFor, k as brokenLaneReason, ai as buildCatalogue, aj as canAttachApiKey, ak as categoryLabel, al as classifyQuoteError, l as complianceChecks, am as complianceControlsEvaluated, m as complianceControlsLine, an as complianceReasonHead, ao as complianceReasonTag, ap as complianceTagOf, n as complianceView, o as counterpartTokens, aq as createApiClient, ar as createVerifier, p as destinationAvailability, as as destinationKeys, at as directComplianceFromScreens, au as distinctScreenedWallets, av as exceedsLaneLimit, aw as executableRoutes, ax as executionChainIds, ay as hasReachableDestination, az as hubDeliverableSymbols, q as humanizeComplianceReason, aA as isExecutableBridge, aB as isKnownUnbridgeable, aC as isSourceToken, aD as laneAvailabilityState, aE as laneKey, aF as laneKeys, aG as laneLimitAmount, aH as laneLimitError, aI as laneLimitFor, aJ as laneLimitHint, aK as laneLimitSymbol, aL as limitedLanes, aM as parseAllowedApiBase, aN as productAssets, aO as registryRpc, aP as resolveApiBase, aQ as resolveConfig, aR as screeningOutcomeOf, aS as sourceKeys, aT as suppressedLanes, aU as tokenKey, aV as txMatchesPlan, aW as unattributedComplianceReasons } from '../verify-DSCljQtK.cjs';
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-BEQ8DMvJ.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, M as CatalogueInput, c as ComplianceCheck, U as ComplianceCheckId, X as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Y as DIRECT_CHECK_IDS, Z as DIRECT_SCOPE_NOTE, _ as Destination, $ as FLOOR_CATEGORIES, a0 as Hex, a1 as LaneAvailabilityState, L as LaneLimit, a2 as PlannedTxKind, a3 as QuoteBlock, a4 as ResolvedConfig, a5 as RouteHealth, a6 as RouteHealthAvailability, a7 as RouteHealthLane, g as RouteLeg, a8 as SCREENING_BUCKETS, a9 as ScreenProvider, aa as ScreeningBucket, ab as ScreeningOutcome, ac as TUNABLE_CATEGORIES, ad as TxPlan, V as VerifyResult, W as WalletScreen, ae as amountFieldError, af as apiError, j as assetClassOf, ag as blockLabelFor, ah as brokenLaneFor, k as brokenLaneReason, ai as buildCatalogue, aj as canAttachApiKey, ak as categoryLabel, al as classifyQuoteError, l as complianceChecks, am as complianceControlsEvaluated, m as complianceControlsLine, an as complianceReasonHead, ao as complianceReasonTag, ap as complianceTagOf, n as complianceView, o as counterpartTokens, aq as createApiClient, ar as createVerifier, p as destinationAvailability, as as destinationKeys, at as directComplianceFromScreens, au as distinctScreenedWallets, av as exceedsLaneLimit, aw as executableRoutes, ax as executionChainIds, ay as hasReachableDestination, az as hubDeliverableSymbols, q as humanizeComplianceReason, aA as isExecutableBridge, aB as isKnownUnbridgeable, aC as isSourceToken, aD as laneAvailabilityState, aE as laneKey, aF as laneKeys, aG as laneLimitAmount, aH as laneLimitError, aI as laneLimitFor, aJ as laneLimitHint, aK as laneLimitSymbol, aL as limitedLanes, aM as parseAllowedApiBase, aN as productAssets, aO as registryRpc, aP as resolveApiBase, aQ as resolveConfig, aR as screeningOutcomeOf, aS as sourceKeys, aT as suppressedLanes, aU as tokenKey, aV as txMatchesPlan, aW as unattributedComplianceReasons } from '../verify-BEQ8DMvJ.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. */
@@ -24,10 +24,11 @@ declare const MAX_QUOTE_CANDIDATES = 8;
24
24
  declare const QUOTE_BUFFER_BPS = 50;
25
25
  declare const LZ_FEE_BUFFER_BPS = 1500n;
26
26
  declare const SUBMIT_ORDER_SELECTOR = "0xaf439ecd";
27
- /** `partnerId` for orders this widget submits — none. The escrow's only use of the argument is
27
+ /** `partnerId` for an order whose quote carried none. The escrow's only use of the argument is
28
28
  * `if (partnerId != bytes32(0)) emit PartnerOrder(partnerId)`; there is no on-chain logic behind
29
- * it and the gateway issues none, so zero is the value that MEANS "no attribution", not a
30
- * placeholder. The pre-sign validator binds the encoded word to exactly this. */
29
+ * it, so zero is the value that MEANS "no attribution", not a placeholder. A quote priced at a
30
+ * key's special rate does carry one — see `quotePartnerId` in route.ts — and the pre-sign
31
+ * validator binds the encoded word to whichever of the two the plan declared. */
31
32
  declare const NO_PARTNER_ID: string;
32
33
  declare const ERC20_APPROVE_SELECTOR = "0x095ea7b3";
33
34
  declare const ERC20_TRANSFER_SELECTOR = "0xa9059cbb";
@@ -323,6 +324,21 @@ interface AssertQuoteArgs {
323
324
  }
324
325
  declare function assertQuoteMatchesSelection({ quote, order, orders, option, destinationToken, destination, payer, result }: AssertQuoteArgs): void;
325
326
 
327
+ /**
328
+ * The `partnerId` word for this quote's `submitOrder`.
329
+ *
330
+ * A key with special rates gets its quote priced at them, and the gateway hands back a marker that
331
+ * binds that price to this exact order (wallets, tokens, chains, amounts). The solver only honours
332
+ * the price for an order that EMITS the marker, so dropping it — which this engine did until
333
+ * 2026-10-05, encoding zero unconditionally — submits an order asking for the special rate with
334
+ * nothing behind it, and it sits unfilled.
335
+ *
336
+ * Only a 32-byte hex string is a marker. Anything else is the zero word: absent (an ordinary key),
337
+ * or the `{ error }` object the gateway returns for a quote priced without both wallets. The API
338
+ * is untrusted, but this word buys it nothing: the escrow's whole use of it is one event, and a
339
+ * marker that does not match the order it rides on is simply not honoured.
340
+ */
341
+ declare function quotePartnerId(quote: Pick<Quote, "partnerId">): string;
326
342
  interface BuildRouteArgs {
327
343
  option: PayOption;
328
344
  destination: {
@@ -588,4 +604,4 @@ interface Engine {
588
604
  /** Create an engine bound to a config. The 60s resource cache is per-engine. */
589
605
  declare function createEngine(config?: EngineConfig): Engine;
590
606
 
591
- 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, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
607
+ 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, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
@@ -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-DSCljQtK.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, M as CatalogueInput, c as ComplianceCheck, U as ComplianceCheckId, X as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Y as DIRECT_CHECK_IDS, Z as DIRECT_SCOPE_NOTE, _ as Destination, $ as FLOOR_CATEGORIES, a0 as Hex, a1 as LaneAvailabilityState, L as LaneLimit, a2 as PlannedTxKind, a3 as QuoteBlock, a4 as ResolvedConfig, a5 as RouteHealth, a6 as RouteHealthAvailability, a7 as RouteHealthLane, g as RouteLeg, a8 as SCREENING_BUCKETS, a9 as ScreenProvider, aa as ScreeningBucket, ab as ScreeningOutcome, ac as TUNABLE_CATEGORIES, ad as TxPlan, V as VerifyResult, W as WalletScreen, ae as amountFieldError, af as apiError, j as assetClassOf, ag as blockLabelFor, ah as brokenLaneFor, k as brokenLaneReason, ai as buildCatalogue, aj as canAttachApiKey, ak as categoryLabel, al as classifyQuoteError, l as complianceChecks, am as complianceControlsEvaluated, m as complianceControlsLine, an as complianceReasonHead, ao as complianceReasonTag, ap as complianceTagOf, n as complianceView, o as counterpartTokens, aq as createApiClient, ar as createVerifier, p as destinationAvailability, as as destinationKeys, at as directComplianceFromScreens, au as distinctScreenedWallets, av as exceedsLaneLimit, aw as executableRoutes, ax as executionChainIds, ay as hasReachableDestination, az as hubDeliverableSymbols, q as humanizeComplianceReason, aA as isExecutableBridge, aB as isKnownUnbridgeable, aC as isSourceToken, aD as laneAvailabilityState, aE as laneKey, aF as laneKeys, aG as laneLimitAmount, aH as laneLimitError, aI as laneLimitFor, aJ as laneLimitHint, aK as laneLimitSymbol, aL as limitedLanes, aM as parseAllowedApiBase, aN as productAssets, aO as registryRpc, aP as resolveApiBase, aQ as resolveConfig, aR as screeningOutcomeOf, aS as sourceKeys, aT as suppressedLanes, aU as tokenKey, aV as txMatchesPlan, aW as unattributedComplianceReasons } from '../verify-DSCljQtK.js';
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-BEQ8DMvJ.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, M as CatalogueInput, c as ComplianceCheck, U as ComplianceCheckId, X as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Y as DIRECT_CHECK_IDS, Z as DIRECT_SCOPE_NOTE, _ as Destination, $ as FLOOR_CATEGORIES, a0 as Hex, a1 as LaneAvailabilityState, L as LaneLimit, a2 as PlannedTxKind, a3 as QuoteBlock, a4 as ResolvedConfig, a5 as RouteHealth, a6 as RouteHealthAvailability, a7 as RouteHealthLane, g as RouteLeg, a8 as SCREENING_BUCKETS, a9 as ScreenProvider, aa as ScreeningBucket, ab as ScreeningOutcome, ac as TUNABLE_CATEGORIES, ad as TxPlan, V as VerifyResult, W as WalletScreen, ae as amountFieldError, af as apiError, j as assetClassOf, ag as blockLabelFor, ah as brokenLaneFor, k as brokenLaneReason, ai as buildCatalogue, aj as canAttachApiKey, ak as categoryLabel, al as classifyQuoteError, l as complianceChecks, am as complianceControlsEvaluated, m as complianceControlsLine, an as complianceReasonHead, ao as complianceReasonTag, ap as complianceTagOf, n as complianceView, o as counterpartTokens, aq as createApiClient, ar as createVerifier, p as destinationAvailability, as as destinationKeys, at as directComplianceFromScreens, au as distinctScreenedWallets, av as exceedsLaneLimit, aw as executableRoutes, ax as executionChainIds, ay as hasReachableDestination, az as hubDeliverableSymbols, q as humanizeComplianceReason, aA as isExecutableBridge, aB as isKnownUnbridgeable, aC as isSourceToken, aD as laneAvailabilityState, aE as laneKey, aF as laneKeys, aG as laneLimitAmount, aH as laneLimitError, aI as laneLimitFor, aJ as laneLimitHint, aK as laneLimitSymbol, aL as limitedLanes, aM as parseAllowedApiBase, aN as productAssets, aO as registryRpc, aP as resolveApiBase, aQ as resolveConfig, aR as screeningOutcomeOf, aS as sourceKeys, aT as suppressedLanes, aU as tokenKey, aV as txMatchesPlan, aW as unattributedComplianceReasons } from '../verify-BEQ8DMvJ.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. */
@@ -24,10 +24,11 @@ declare const MAX_QUOTE_CANDIDATES = 8;
24
24
  declare const QUOTE_BUFFER_BPS = 50;
25
25
  declare const LZ_FEE_BUFFER_BPS = 1500n;
26
26
  declare const SUBMIT_ORDER_SELECTOR = "0xaf439ecd";
27
- /** `partnerId` for orders this widget submits — none. The escrow's only use of the argument is
27
+ /** `partnerId` for an order whose quote carried none. The escrow's only use of the argument is
28
28
  * `if (partnerId != bytes32(0)) emit PartnerOrder(partnerId)`; there is no on-chain logic behind
29
- * it and the gateway issues none, so zero is the value that MEANS "no attribution", not a
30
- * placeholder. The pre-sign validator binds the encoded word to exactly this. */
29
+ * it, so zero is the value that MEANS "no attribution", not a placeholder. A quote priced at a
30
+ * key's special rate does carry one — see `quotePartnerId` in route.ts — and the pre-sign
31
+ * validator binds the encoded word to whichever of the two the plan declared. */
31
32
  declare const NO_PARTNER_ID: string;
32
33
  declare const ERC20_APPROVE_SELECTOR = "0x095ea7b3";
33
34
  declare const ERC20_TRANSFER_SELECTOR = "0xa9059cbb";
@@ -323,6 +324,21 @@ interface AssertQuoteArgs {
323
324
  }
324
325
  declare function assertQuoteMatchesSelection({ quote, order, orders, option, destinationToken, destination, payer, result }: AssertQuoteArgs): void;
325
326
 
327
+ /**
328
+ * The `partnerId` word for this quote's `submitOrder`.
329
+ *
330
+ * A key with special rates gets its quote priced at them, and the gateway hands back a marker that
331
+ * binds that price to this exact order (wallets, tokens, chains, amounts). The solver only honours
332
+ * the price for an order that EMITS the marker, so dropping it — which this engine did until
333
+ * 2026-10-05, encoding zero unconditionally — submits an order asking for the special rate with
334
+ * nothing behind it, and it sits unfilled.
335
+ *
336
+ * Only a 32-byte hex string is a marker. Anything else is the zero word: absent (an ordinary key),
337
+ * or the `{ error }` object the gateway returns for a quote priced without both wallets. The API
338
+ * is untrusted, but this word buys it nothing: the escrow's whole use of it is one event, and a
339
+ * marker that does not match the order it rides on is simply not honoured.
340
+ */
341
+ declare function quotePartnerId(quote: Pick<Quote, "partnerId">): string;
326
342
  interface BuildRouteArgs {
327
343
  option: PayOption;
328
344
  destination: {
@@ -588,4 +604,4 @@ interface Engine {
588
604
  /** Create an engine bound to a config. The 60s resource cache is per-engine. */
589
605
  declare function createEngine(config?: EngineConfig): Engine;
590
606
 
591
- 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, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
607
+ 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, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
@@ -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, 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-CEBEMZHZ.js';
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-F46VMTTL.js';