@glacislabs/stablegenie-zerodelta 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DXUESKNC.js → chunk-KETGKV7Y.js} +43 -33
- package/dist/{chunk-YEYFEQWS.js → chunk-ZBUK7ULN.js} +56 -9
- package/dist/core/index.cjs +59 -8
- package/dist/core/index.d.cts +29 -3
- package/dist/core/index.d.ts +29 -3
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +97 -40
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BFa37j1u.d.ts → mount-Bver3O2z.d.ts} +1 -1
- package/dist/{mount-DssudKQ7.d.cts → mount-Dtbtdry1.d.cts} +1 -1
- package/dist/mount.cjs +97 -40
- package/dist/mount.d.cts +2 -2
- package/dist/mount.d.ts +2 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +6 -6
- package/dist/{verify-Ce6ZtDhi.d.cts → verify-57gjg_dM.d.cts} +28 -2
- package/dist/{verify-Ce6ZtDhi.d.ts → verify-57gjg_dM.d.ts} +28 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceChecks, DIRECT_CHECK_IDS, complianceTagOf, symbolKey, normalizeDecimalText, parseUnitsDecimal, assetDecimals, findToken, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, SUPPORTED_CHAIN_IDS, formatUnits, unattributedComplianceReasons, distinctScreenedWallets, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, createEngine, routeNativeValue, checkNativeFee, nativeFeeShortLabel, nativeSymbol, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, BUNDLED_RPC } from './chunk-
|
|
1
|
+
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceChecks, DIRECT_CHECK_IDS, complianceTagOf, symbolKey, normalizeDecimalText, parseUnitsDecimal, assetDecimals, findToken, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, tokenTicker, tickerOn, SUPPORTED_CHAIN_IDS, formatUnits, unattributedComplianceReasons, distinctScreenedWallets, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, createEngine, routeNativeValue, checkNativeFee, nativeFeeShortLabel, nativeSymbol, nativeFeeShortMessage, allowanceCovers, validatePlannedTransaction, foldTicker, BUNDLED_RPC } from './chunk-ZBUK7ULN.js';
|
|
2
2
|
import { createContext, useState, useRef, useEffect, useMemo, useCallback, useId, createElement, useContext } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -448,6 +448,8 @@ function useFlow(args) {
|
|
|
448
448
|
chainName: route.source.chainName,
|
|
449
449
|
fromAsset: route.source.asset,
|
|
450
450
|
toAsset: route.receive.asset,
|
|
451
|
+
fromTicker: route.source.ticker,
|
|
452
|
+
toTicker: route.receive.ticker,
|
|
451
453
|
payAmount: route.source.payAmount,
|
|
452
454
|
receiveAmount: route.receive.amount,
|
|
453
455
|
account,
|
|
@@ -1785,7 +1787,7 @@ function ChevronGlyph() {
|
|
|
1785
1787
|
return /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }) });
|
|
1786
1788
|
}
|
|
1787
1789
|
function TokenTile(props) {
|
|
1788
|
-
const shown = props.token
|
|
1790
|
+
const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
|
|
1789
1791
|
const glyph = props.pick ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1790
1792
|
/* @__PURE__ */ jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
|
|
1791
1793
|
/* @__PURE__ */ jsxs("span", { className: "sg-tile-text", children: [
|
|
@@ -1859,7 +1861,8 @@ function TokenSelect(props) {
|
|
|
1859
1861
|
const q = query.trim().toLowerCase();
|
|
1860
1862
|
const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
|
|
1861
1863
|
if (!q) return true;
|
|
1862
|
-
return String(t.symbol || "").toLowerCase().includes(q) ||
|
|
1864
|
+
return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
|
|
1865
|
+
foldTicker(tokenTicker(t)).includes(foldTicker(q)) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
|
|
1863
1866
|
// show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
|
|
1864
1867
|
String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
|
|
1865
1868
|
});
|
|
@@ -1911,7 +1914,7 @@ function TokenSelect(props) {
|
|
|
1911
1914
|
children: [
|
|
1912
1915
|
/* @__PURE__ */ jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
|
|
1913
1916
|
/* @__PURE__ */ jsxs("span", { className: "sg-tokrow-main", children: [
|
|
1914
|
-
/* @__PURE__ */ jsx("span", { className: "sg-tokrow-sym", children: t
|
|
1917
|
+
/* @__PURE__ */ jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
|
|
1915
1918
|
/* @__PURE__ */ jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
|
|
1916
1919
|
] }),
|
|
1917
1920
|
/* @__PURE__ */ jsxs("span", { className: "sg-tokrow-end", children: [
|
|
@@ -1984,10 +1987,12 @@ function legsOf(entry) {
|
|
|
1984
1987
|
const leg = {
|
|
1985
1988
|
index: 1,
|
|
1986
1989
|
fromAsset: entry.fromAsset,
|
|
1990
|
+
fromTicker: entry.fromTicker,
|
|
1987
1991
|
fromChainId: entry.chainId ?? 0,
|
|
1988
1992
|
fromChainName: entry.chainName,
|
|
1989
1993
|
fromAmount: entry.payAmount,
|
|
1990
1994
|
toAsset: entry.toAsset,
|
|
1995
|
+
toTicker: entry.toTicker,
|
|
1991
1996
|
toChainId: 0,
|
|
1992
1997
|
toChainName: "",
|
|
1993
1998
|
toAmount: entry.receiveAmount,
|
|
@@ -2016,9 +2021,9 @@ function TxLegs(props) {
|
|
|
2016
2021
|
multi ? /* @__PURE__ */ jsx("span", { className: "sg-leg-n", "aria-hidden": "true", children: leg.index }) : null,
|
|
2017
2022
|
/* @__PURE__ */ jsxs("div", { className: "sg-leg-body", children: [
|
|
2018
2023
|
/* @__PURE__ */ jsxs("div", { className: "sg-leg-line", children: [
|
|
2019
|
-
/* @__PURE__ */ jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromAsset || "\u2014"}` }),
|
|
2024
|
+
/* @__PURE__ */ jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromTicker || leg.fromAsset || "\u2014"}` }),
|
|
2020
2025
|
/* @__PURE__ */ jsx("span", { className: "sg-leg-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsx(LegArrowGlyph, {}) }),
|
|
2021
|
-
/* @__PURE__ */ jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toAsset || "\u2014"}` })
|
|
2026
|
+
/* @__PURE__ */ jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toTicker || leg.toAsset || "\u2014"}` })
|
|
2022
2027
|
] }),
|
|
2023
2028
|
/* @__PURE__ */ jsxs("div", { className: "sg-leg-sub", children: [
|
|
2024
2029
|
chainName(leg.fromChainId, leg.fromChainName),
|
|
@@ -2064,10 +2069,10 @@ function TxPairGlyphs(props) {
|
|
|
2064
2069
|
function TxPair(props) {
|
|
2065
2070
|
const e = props.entry;
|
|
2066
2071
|
return /* @__PURE__ */ jsxs("span", { className: "sg-txrow-pair", children: [
|
|
2067
|
-
/* @__PURE__ */ jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromAsset}` }),
|
|
2072
|
+
/* @__PURE__ */ jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromTicker || e.fromAsset}` }),
|
|
2068
2073
|
/* @__PURE__ */ jsxs("span", { className: "sg-txrow-side sg-mono", children: [
|
|
2069
2074
|
/* @__PURE__ */ jsx("span", { className: "sg-txrow-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsx(LegArrowGlyph, {}) }),
|
|
2070
|
-
`${e.receiveAmount} ${e.toAsset}`
|
|
2075
|
+
`${e.receiveAmount} ${e.toTicker || e.toAsset}`
|
|
2071
2076
|
] })
|
|
2072
2077
|
] });
|
|
2073
2078
|
}
|
|
@@ -2131,7 +2136,7 @@ function TxDetail(props) {
|
|
|
2131
2136
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
2132
2137
|
e.receiveAmount,
|
|
2133
2138
|
" ",
|
|
2134
|
-
e.toAsset
|
|
2139
|
+
e.toTicker || e.toAsset
|
|
2135
2140
|
] }),
|
|
2136
2141
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor-sub", children: [
|
|
2137
2142
|
e.kind === "payment" ? "Payment" : "Swap",
|
|
@@ -2148,7 +2153,7 @@ function TxDetail(props) {
|
|
|
2148
2153
|
/* @__PURE__ */ jsxs("b", { className: "sg-mono", children: [
|
|
2149
2154
|
e.payAmount,
|
|
2150
2155
|
" ",
|
|
2151
|
-
e.fromAsset
|
|
2156
|
+
e.fromTicker || e.fromAsset
|
|
2152
2157
|
] })
|
|
2153
2158
|
] }),
|
|
2154
2159
|
/* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
|
|
@@ -2597,7 +2602,7 @@ function PaymentIsland(props) {
|
|
|
2597
2602
|
zero = false;
|
|
2598
2603
|
}
|
|
2599
2604
|
if (zero) map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
2600
|
-
else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
2605
|
+
else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
|
|
2601
2606
|
else map[key] = { disabled: false };
|
|
2602
2607
|
}
|
|
2603
2608
|
return map;
|
|
@@ -2668,7 +2673,7 @@ function PaymentIsland(props) {
|
|
|
2668
2673
|
if (verdict === "available") continue;
|
|
2669
2674
|
states[key] = {
|
|
2670
2675
|
disabled: true,
|
|
2671
|
-
reason: verdict === "hub-only" ? `${token
|
|
2676
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
2672
2677
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
2673
2678
|
};
|
|
2674
2679
|
}
|
|
@@ -2686,6 +2691,7 @@ function PaymentIsland(props) {
|
|
|
2686
2691
|
list.push(
|
|
2687
2692
|
reg ?? {
|
|
2688
2693
|
symbol: r.source.asset,
|
|
2694
|
+
displaySymbol: r.source.ticker,
|
|
2689
2695
|
name: r.source.asset,
|
|
2690
2696
|
chainId: r.source.chainId,
|
|
2691
2697
|
address: r.source.tokenAddress ?? "",
|
|
@@ -2818,10 +2824,11 @@ function PaymentIsland(props) {
|
|
|
2818
2824
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
2819
2825
|
const lastTxOwned = Boolean(flow.lastTxEntry?.hash && wallet.account && flow.lastTxEntry.account === wallet.account.toLowerCase());
|
|
2820
2826
|
const mismatch = flow.status === "error" && flow.verdict?.status === "mismatch";
|
|
2821
|
-
const
|
|
2827
|
+
const destTicker = isPay ? tickerOn(registryTokens, props.toChainId, props.toAsset ?? "") : exToToken ? tokenTicker(exToToken) : exToAsset ?? "";
|
|
2828
|
+
const exFromTicker = exFromToken ? tokenTicker(exFromToken) : exFromAsset ?? "";
|
|
2822
2829
|
const anchorAmount = sel?.receive.amount ?? (flow.status === "loading" ? "\u2026" : "\u2014");
|
|
2823
2830
|
const successAmount = isPay ? props.amount : sel?.receive.amount;
|
|
2824
|
-
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${
|
|
2831
|
+
const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${destTicker}` : "" : exAmount ? `${exAmount} ${exFromTicker}`.trim() : "");
|
|
2825
2832
|
const verb = isPay ? { present: "Pay", gerund: "Paying", past: "Paid" } : kind === "swap" ? { present: "Swap", gerund: "Swapping", past: "Swapped" } : { present: "Exchange", gerund: "Exchanging", past: "Exchanged" };
|
|
2826
2833
|
const paid = flow.status === "success";
|
|
2827
2834
|
const settling = flow.status === "pending";
|
|
@@ -2876,7 +2883,7 @@ function PaymentIsland(props) {
|
|
|
2876
2883
|
const liveMsg = flow.status === "loading" ? isPay ? "Finding the best way to pay." : "Finding the best route." : flow.status === "submitting" ? `${activeStep?.label ?? (isPay ? "Processing your payment" : `Processing your ${verb.present.toLowerCase()}`)} \u2014 in progress.` : flow.status === "success" || flow.status === "pending" ? flow.verdict?.status === "confirmed" ? isPay ? "Payment confirmed on-chain \u2014 the merchant has been settled." : `${verb.past} \u2014 confirmed on-chain.` : isPay ? "Payment sent \u2014 confirmation is still pending." : "Submitted \u2014 confirmation is still pending." : "";
|
|
2877
2884
|
const loading = flow.status === "loading";
|
|
2878
2885
|
const payReady = isPay ? Boolean(sel && selectedVisible) : Boolean(sel);
|
|
2879
|
-
const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
|
|
2886
|
+
const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
|
|
2880
2887
|
const exPct = (p) => {
|
|
2881
2888
|
if (!exFromBal || !exFromToken) return;
|
|
2882
2889
|
const raw = BigInt(exFromBal.raw);
|
|
@@ -2898,7 +2905,7 @@ function PaymentIsland(props) {
|
|
|
2898
2905
|
"Balance: ",
|
|
2899
2906
|
exFromBal.formatted,
|
|
2900
2907
|
" ",
|
|
2901
|
-
|
|
2908
|
+
exFromTicker
|
|
2902
2909
|
] }) : null,
|
|
2903
2910
|
/* @__PURE__ */ jsx("div", { className: "sg-pct-row", role: "group", "aria-label": "Amount shortcuts", children: [25, 50, 75, 100].map((p) => /* @__PURE__ */ jsx("button", { type: "button", className: "sg-pct", disabled: !exFromBal || submitting, onClick: () => exPct(p), children: p === 100 ? "MAX" : `${p}%` }, p)) })
|
|
2904
2911
|
] })
|
|
@@ -2964,7 +2971,7 @@ function PaymentIsland(props) {
|
|
|
2964
2971
|
/* @__PURE__ */ jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
2965
2972
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
2966
2973
|
"\u2014 ",
|
|
2967
|
-
|
|
2974
|
+
destTicker
|
|
2968
2975
|
] }),
|
|
2969
2976
|
/* @__PURE__ */ jsx("div", { className: "sg-anchor-sub", children: "Connect your wallet to see the estimated receive amount." })
|
|
2970
2977
|
] })
|
|
@@ -2984,7 +2991,7 @@ function PaymentIsland(props) {
|
|
|
2984
2991
|
/* @__PURE__ */ jsxs("div", { className: "sg-receipt-amt sg-mono", children: [
|
|
2985
2992
|
successAmount,
|
|
2986
2993
|
" ",
|
|
2987
|
-
|
|
2994
|
+
destTicker
|
|
2988
2995
|
] }),
|
|
2989
2996
|
/* @__PURE__ */ jsxs("div", { className: "sg-receipt-sub", children: [
|
|
2990
2997
|
confirmed ? "Confirmed on-chain" : "Confirmation pending",
|
|
@@ -3036,7 +3043,7 @@ function PaymentIsland(props) {
|
|
|
3036
3043
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
3037
3044
|
anchorAmount,
|
|
3038
3045
|
" ",
|
|
3039
|
-
|
|
3046
|
+
destTicker
|
|
3040
3047
|
] })
|
|
3041
3048
|
] })
|
|
3042
3049
|
] }),
|
|
@@ -3080,7 +3087,7 @@ function PaymentIsland(props) {
|
|
|
3080
3087
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
3081
3088
|
sel.source.payAmount,
|
|
3082
3089
|
" ",
|
|
3083
|
-
sel.source.asset
|
|
3090
|
+
sel.source.ticker || sel.source.asset
|
|
3084
3091
|
] }),
|
|
3085
3092
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor-sub", children: [
|
|
3086
3093
|
"on ",
|
|
@@ -3093,7 +3100,7 @@ function PaymentIsland(props) {
|
|
|
3093
3100
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
3094
3101
|
sel.source.payAmount,
|
|
3095
3102
|
" ",
|
|
3096
|
-
sel.source.asset
|
|
3103
|
+
sel.source.ticker || sel.source.asset
|
|
3097
3104
|
] }),
|
|
3098
3105
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor-sub", children: [
|
|
3099
3106
|
"on ",
|
|
@@ -3248,7 +3255,7 @@ function StableGeniePay(props) {
|
|
|
3248
3255
|
if (zero) {
|
|
3249
3256
|
map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
|
|
3250
3257
|
} else if (a.affordable === false) {
|
|
3251
|
-
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
|
|
3258
|
+
map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
|
|
3252
3259
|
} else {
|
|
3253
3260
|
map[key] = { disabled: false };
|
|
3254
3261
|
}
|
|
@@ -3282,6 +3289,7 @@ function StableGeniePay(props) {
|
|
|
3282
3289
|
list.push(
|
|
3283
3290
|
reg ?? {
|
|
3284
3291
|
symbol: r.source.asset,
|
|
3292
|
+
displaySymbol: r.source.ticker,
|
|
3285
3293
|
name: r.source.asset,
|
|
3286
3294
|
chainId: r.source.chainId,
|
|
3287
3295
|
address: r.source.tokenAddress ?? "",
|
|
@@ -3355,12 +3363,12 @@ function StableGeniePay(props) {
|
|
|
3355
3363
|
const sel = flow.selected;
|
|
3356
3364
|
const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
|
|
3357
3365
|
const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
|
|
3358
|
-
const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
|
|
3366
|
+
const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.ticker || sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
|
|
3359
3367
|
// Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
|
|
3360
3368
|
`Routed through ZeroDelta \xB7 the extra covers the network cost`
|
|
3361
3369
|
) : "Pay with USDC, USDT, or USDE from your wallet.";
|
|
3362
3370
|
const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
|
|
3363
|
-
const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay";
|
|
3371
|
+
const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay";
|
|
3364
3372
|
const walletSlot = wallet.account ? /* @__PURE__ */ jsxs("div", { className: "sg-head-tools", children: [
|
|
3365
3373
|
/* @__PURE__ */ jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
|
|
3366
3374
|
/* @__PURE__ */ jsxs("div", { className: "sg-brand", children: [
|
|
@@ -3389,7 +3397,7 @@ function StableGeniePay(props) {
|
|
|
3389
3397
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
3390
3398
|
props.amount,
|
|
3391
3399
|
" ",
|
|
3392
|
-
props.toAsset
|
|
3400
|
+
tickerOn(registryTokens, props.toChainId, props.toAsset)
|
|
3393
3401
|
] }),
|
|
3394
3402
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-sub", children: [
|
|
3395
3403
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -3425,7 +3433,7 @@ function StableGeniePay(props) {
|
|
|
3425
3433
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor sg-mono", children: [
|
|
3426
3434
|
sel.source.payAmount,
|
|
3427
3435
|
" ",
|
|
3428
|
-
sel.source.asset
|
|
3436
|
+
sel.source.ticker || sel.source.asset
|
|
3429
3437
|
] }),
|
|
3430
3438
|
/* @__PURE__ */ jsxs("div", { className: "sg-anchor-sub", children: [
|
|
3431
3439
|
"on ",
|
|
@@ -3551,7 +3559,7 @@ function StableGenieSwap(props) {
|
|
|
3551
3559
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
3552
3560
|
receive,
|
|
3553
3561
|
" ",
|
|
3554
|
-
toAsset
|
|
3562
|
+
tickerOn(registryTokens, toChainId, toAsset)
|
|
3555
3563
|
] }),
|
|
3556
3564
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-sub", children: [
|
|
3557
3565
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -3669,6 +3677,8 @@ function StableGenieExchange(props) {
|
|
|
3669
3677
|
const fromToken = useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
|
|
3670
3678
|
const toToken = useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
|
|
3671
3679
|
const toSymbol = toToken?.symbol ?? to?.symbol ?? "";
|
|
3680
|
+
const fromTicker = fromToken ? tokenTicker(fromToken) : from?.symbol ?? "";
|
|
3681
|
+
const toTicker = toToken ? tokenTicker(toToken) : toSymbol;
|
|
3672
3682
|
const fromPickerTokens = useMemo(() => product === "rwa" ? counterpartTokens(sourceTokens, toToken) : sourceTokens, [product, sourceTokens, toToken]);
|
|
3673
3683
|
const toPickerTokens = useMemo(() => product === "rwa" ? counterpartTokens(tokens, fromToken) : tokens, [product, tokens, fromToken]);
|
|
3674
3684
|
const rwaSeeded = useRef(false);
|
|
@@ -3696,7 +3706,7 @@ function StableGenieExchange(props) {
|
|
|
3696
3706
|
if (verdict === "available") continue;
|
|
3697
3707
|
states[key] = {
|
|
3698
3708
|
disabled: true,
|
|
3699
|
-
reason: verdict === "hub-only" ? `${token
|
|
3709
|
+
reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain \u2014 choose an execution chain.` : "ZeroDelta cannot deliver this asset here.",
|
|
3700
3710
|
hint: verdict === "hub-only" ? "Not here" : "Unavailable"
|
|
3701
3711
|
};
|
|
3702
3712
|
}
|
|
@@ -3818,7 +3828,7 @@ function StableGenieExchange(props) {
|
|
|
3818
3828
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-amt sg-mono", children: [
|
|
3819
3829
|
receive,
|
|
3820
3830
|
" ",
|
|
3821
|
-
|
|
3831
|
+
toTicker
|
|
3822
3832
|
] }),
|
|
3823
3833
|
/* @__PURE__ */ jsxs("div", { className: "sg-success-sub", children: [
|
|
3824
3834
|
flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
|
|
@@ -3847,7 +3857,7 @@ function StableGenieExchange(props) {
|
|
|
3847
3857
|
"Balance: ",
|
|
3848
3858
|
fromBal.formatted,
|
|
3849
3859
|
" ",
|
|
3850
|
-
|
|
3860
|
+
fromTicker
|
|
3851
3861
|
] }) : null,
|
|
3852
3862
|
mode !== "onramp" ? (
|
|
3853
3863
|
// a11y note: <fieldset> carries UA styling that would
|
|
@@ -3859,7 +3869,7 @@ function StableGenieExchange(props) {
|
|
|
3859
3869
|
!rampMode && quoteError && !wide ? /* @__PURE__ */ jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
|
|
3860
3870
|
!rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
|
|
3861
3871
|
/* @__PURE__ */ jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
|
|
3862
|
-
/* @__PURE__ */ jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${
|
|
3872
|
+
/* @__PURE__ */ jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toTicker}` : "\u2014" }),
|
|
3863
3873
|
meta && !quoting ? /* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
|
|
3864
3874
|
"via ",
|
|
3865
3875
|
meta.bridge,
|
|
@@ -3908,7 +3918,7 @@ function StableGenieExchange(props) {
|
|
|
3908
3918
|
/* @__PURE__ */ jsxs("div", { className: "sg-recv-amt sg-mono", children: [
|
|
3909
3919
|
receive,
|
|
3910
3920
|
" ",
|
|
3911
|
-
|
|
3921
|
+
toTicker
|
|
3912
3922
|
] }),
|
|
3913
3923
|
/* @__PURE__ */ jsxs("div", { className: "sg-recv-sub", children: [
|
|
3914
3924
|
"on ",
|
|
@@ -3920,7 +3930,7 @@ function StableGenieExchange(props) {
|
|
|
3920
3930
|
/* @__PURE__ */ jsxs("b", { className: "sg-mono", children: [
|
|
3921
3931
|
normalizedAmount,
|
|
3922
3932
|
" ",
|
|
3923
|
-
|
|
3933
|
+
fromTicker
|
|
3924
3934
|
] })
|
|
3925
3935
|
] }),
|
|
3926
3936
|
/* @__PURE__ */ jsxs("div", { className: "sg-meta-row", children: [
|
|
@@ -468,6 +468,29 @@ function applyLayerZeroBuffer(quote, option = {}) {
|
|
|
468
468
|
return gas * (10000n + LZ_FEE_BUFFER_BPS) / 10000n;
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
+
// src/core/ticker.ts
|
|
472
|
+
var DISPLAY_SAFE = /^[\p{L}\p{N}\p{Sc}.+_-]{1,16}$/u;
|
|
473
|
+
function foldTicker(value) {
|
|
474
|
+
return String(value ?? "").replace(/₮/g, "T").toUpperCase();
|
|
475
|
+
}
|
|
476
|
+
function safeTicker(ticker, symbol) {
|
|
477
|
+
const value = String(ticker ?? "").trim();
|
|
478
|
+
if (!value || !DISPLAY_SAFE.test(value)) return "";
|
|
479
|
+
const asset = foldTicker(symbol).trim();
|
|
480
|
+
if (!asset || !foldTicker(value).startsWith(asset)) return "";
|
|
481
|
+
return value;
|
|
482
|
+
}
|
|
483
|
+
function tokenTicker(token) {
|
|
484
|
+
if (!token) return "";
|
|
485
|
+
return safeTicker(token.displaySymbol, token.symbol) || String(token.symbol ?? "");
|
|
486
|
+
}
|
|
487
|
+
function tickerOn(tokens, chainId, symbol) {
|
|
488
|
+
if (!symbol || !chainId || !tokens?.length) return symbol;
|
|
489
|
+
const key = symbolKey(symbol);
|
|
490
|
+
const deployment = tokens.find((t) => Number(t.chainId) === Number(chainId) && symbolKey(t.symbol) === key);
|
|
491
|
+
return deployment ? tokenTicker(deployment) : symbol;
|
|
492
|
+
}
|
|
493
|
+
|
|
471
494
|
// src/core/availability.ts
|
|
472
495
|
function assetClassOf(symbol) {
|
|
473
496
|
const key = symbolKey(symbol);
|
|
@@ -531,10 +554,10 @@ function brokenLaneFor(token, source, brokenLanes) {
|
|
|
531
554
|
}
|
|
532
555
|
function destinationAvailability(token, ctx, source) {
|
|
533
556
|
if (brokenLaneFor(token, source ?? void 0, ctx.brokenLanes)) return "unreachable";
|
|
534
|
-
if (
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
return "available";
|
|
557
|
+
if (directLaneOK(token, source ?? void 0, ctx.lanes)) {
|
|
558
|
+
if (ctx.execution.has(Number(token.chainId))) return "available";
|
|
559
|
+
if (token.isChainedDestination === true) return "available";
|
|
560
|
+
if (!isKnownUnbridgeable(token.bridge) && ctx.destination.has(tokenKey(token.chainId, token.address))) return "available";
|
|
538
561
|
}
|
|
539
562
|
return ctx.hubSymbols.has(symbolKey(token.symbol)) ? "hub-only" : "unreachable";
|
|
540
563
|
}
|
|
@@ -652,6 +675,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
652
675
|
options.push({
|
|
653
676
|
symbol: token.symbol,
|
|
654
677
|
symbolKey: payKey,
|
|
678
|
+
ticker: tokenTicker(token),
|
|
655
679
|
name: token.name || token.symbol,
|
|
656
680
|
chainId,
|
|
657
681
|
chainName: chainNameOf(chainId, chains),
|
|
@@ -726,7 +750,8 @@ function suppressedLanes(health) {
|
|
|
726
750
|
if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return EMPTY;
|
|
727
751
|
const out = /* @__PURE__ */ new Map();
|
|
728
752
|
for (const lane of health.lanes) {
|
|
729
|
-
|
|
753
|
+
const firewalled = lane?.status === "unknown" && lane?.kind === "firewalled";
|
|
754
|
+
if (lane?.status !== "broken" && !firewalled) continue;
|
|
730
755
|
const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
|
|
731
756
|
if (!key) continue;
|
|
732
757
|
out.set(key, {
|
|
@@ -743,6 +768,8 @@ function brokenLaneReason(lane) {
|
|
|
743
768
|
switch (lane.kind) {
|
|
744
769
|
case "bridge-throttled":
|
|
745
770
|
return "The issuer's bridge for this pair is closed right now.";
|
|
771
|
+
case "firewalled":
|
|
772
|
+
return "This pair is temporarily unavailable.";
|
|
746
773
|
case "vault-closed":
|
|
747
774
|
return "This vault is not accepting deposits right now.";
|
|
748
775
|
default:
|
|
@@ -1341,10 +1368,13 @@ function routeDeltaLabel(result, quote) {
|
|
|
1341
1368
|
if (quote.feeBps) return `${quote.feeBps} bps fee`;
|
|
1342
1369
|
return "~0";
|
|
1343
1370
|
}
|
|
1371
|
+
function optionTicker(option) {
|
|
1372
|
+
return option.ticker || option.symbol;
|
|
1373
|
+
}
|
|
1344
1374
|
function routeLabelFor(option, destinationToken, result) {
|
|
1345
1375
|
if (result.directTransfer) return "Direct transfer: asset and chain already match.";
|
|
1346
1376
|
const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
|
|
1347
|
-
return `Swap ${option
|
|
1377
|
+
return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
|
|
1348
1378
|
}
|
|
1349
1379
|
function tokenAt(tokens, chainId, address) {
|
|
1350
1380
|
const wanted = normalizeAddress(address);
|
|
@@ -1363,6 +1393,7 @@ function buildLegs(orders, ctx) {
|
|
|
1363
1393
|
const legs = [];
|
|
1364
1394
|
let fromChainId = ctx.option.chainId;
|
|
1365
1395
|
let fromAsset = ctx.option.symbol;
|
|
1396
|
+
let fromTicker = optionTicker(ctx.option);
|
|
1366
1397
|
let fromDecimals = ctx.option.decimals;
|
|
1367
1398
|
for (let index = 0; index < orders.length; index += 1) {
|
|
1368
1399
|
const order = orders[index];
|
|
@@ -1370,15 +1401,18 @@ function buildLegs(orders, ctx) {
|
|
|
1370
1401
|
const toChainId = Number(order.destinationChainId);
|
|
1371
1402
|
const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
|
|
1372
1403
|
const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
|
|
1404
|
+
const toTicker = askToken ? tokenTicker(askToken) : "";
|
|
1373
1405
|
const toDecimals = askToken ? assetDecimals(askToken) : void 0;
|
|
1374
1406
|
const executionChainId = Number(order.executionChainId);
|
|
1375
1407
|
legs.push({
|
|
1376
1408
|
index: index + 1,
|
|
1377
1409
|
fromAsset,
|
|
1410
|
+
fromTicker,
|
|
1378
1411
|
fromChainId,
|
|
1379
1412
|
fromChainName: chainNameOf(fromChainId, ctx.chains),
|
|
1380
1413
|
fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
|
|
1381
1414
|
toAsset,
|
|
1415
|
+
toTicker,
|
|
1382
1416
|
toChainId,
|
|
1383
1417
|
toChainName: chainNameOf(toChainId, ctx.chains),
|
|
1384
1418
|
toAmount: legAmount(order.askTokenAmount, toDecimals),
|
|
@@ -1387,6 +1421,7 @@ function buildLegs(orders, ctx) {
|
|
|
1387
1421
|
});
|
|
1388
1422
|
fromChainId = toChainId;
|
|
1389
1423
|
fromAsset = toAsset;
|
|
1424
|
+
fromTicker = toTicker;
|
|
1390
1425
|
fromDecimals = toDecimals;
|
|
1391
1426
|
}
|
|
1392
1427
|
return legs;
|
|
@@ -1415,6 +1450,7 @@ async function buildRoute({
|
|
|
1415
1450
|
state: "DIRECT",
|
|
1416
1451
|
source: {
|
|
1417
1452
|
asset: option.symbol,
|
|
1453
|
+
ticker: optionTicker(option),
|
|
1418
1454
|
chainId: option.chainId,
|
|
1419
1455
|
chainName: option.chainName,
|
|
1420
1456
|
tokenAddress: option.address,
|
|
@@ -1424,6 +1460,7 @@ async function buildRoute({
|
|
|
1424
1460
|
},
|
|
1425
1461
|
receive: {
|
|
1426
1462
|
asset: destinationToken.symbol,
|
|
1463
|
+
ticker: tokenTicker(destinationToken),
|
|
1427
1464
|
chainId: Number(destination.chainId),
|
|
1428
1465
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1429
1466
|
tokenAddress: destinationToken.address,
|
|
@@ -1438,10 +1475,12 @@ async function buildRoute({
|
|
|
1438
1475
|
{
|
|
1439
1476
|
index: 1,
|
|
1440
1477
|
fromAsset: option.symbol,
|
|
1478
|
+
fromTicker: optionTicker(option),
|
|
1441
1479
|
fromChainId: option.chainId,
|
|
1442
1480
|
fromChainName: option.chainName,
|
|
1443
1481
|
fromAmount: sourceAmount,
|
|
1444
1482
|
toAsset: destinationToken.symbol,
|
|
1483
|
+
toTicker: tokenTicker(destinationToken),
|
|
1445
1484
|
toChainId: Number(destination.chainId),
|
|
1446
1485
|
toChainName: chainNameOf(Number(destination.chainId), chains),
|
|
1447
1486
|
toAmount: receiveAmount,
|
|
@@ -1453,7 +1492,7 @@ async function buildRoute({
|
|
|
1453
1492
|
{
|
|
1454
1493
|
id: "transfer",
|
|
1455
1494
|
kind: "transfer",
|
|
1456
|
-
label: `Transfer ${destinationToken
|
|
1495
|
+
label: `Transfer ${tokenTicker(destinationToken)}`,
|
|
1457
1496
|
chainId: option.chainId,
|
|
1458
1497
|
to: option.address,
|
|
1459
1498
|
data: encodeTransfer(destination.address, result.youPayRaw),
|
|
@@ -1505,6 +1544,7 @@ async function buildRoute({
|
|
|
1505
1544
|
state: result.meetsTarget ? "ROUTE" : "SHORT",
|
|
1506
1545
|
source: {
|
|
1507
1546
|
asset: option.symbol,
|
|
1547
|
+
ticker: optionTicker(option),
|
|
1508
1548
|
chainId: option.chainId,
|
|
1509
1549
|
chainName: option.chainName,
|
|
1510
1550
|
tokenAddress: option.address,
|
|
@@ -1514,6 +1554,7 @@ async function buildRoute({
|
|
|
1514
1554
|
},
|
|
1515
1555
|
receive: {
|
|
1516
1556
|
asset: destinationToken.symbol,
|
|
1557
|
+
ticker: tokenTicker(destinationToken),
|
|
1517
1558
|
chainId: Number(destination.chainId),
|
|
1518
1559
|
chainName: chainNameOf(Number(destination.chainId), chains),
|
|
1519
1560
|
tokenAddress: destinationToken.address,
|
|
@@ -1527,7 +1568,7 @@ async function buildRoute({
|
|
|
1527
1568
|
{
|
|
1528
1569
|
id: "approve",
|
|
1529
1570
|
kind: "approve",
|
|
1530
|
-
label: `Approve ${option
|
|
1571
|
+
label: `Approve ${optionTicker(option)}`,
|
|
1531
1572
|
chainId: option.chainId,
|
|
1532
1573
|
to: option.address,
|
|
1533
1574
|
data: encodeApprove(escrow, order.bidTokenAmount),
|
|
@@ -1994,6 +2035,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
|
|
|
1994
2035
|
const option = {
|
|
1995
2036
|
symbol: sourceToken.symbol,
|
|
1996
2037
|
symbolKey: symbolKey(sourceToken.symbol),
|
|
2038
|
+
ticker: tokenTicker(sourceToken),
|
|
1997
2039
|
name: sourceToken.name || sourceToken.symbol,
|
|
1998
2040
|
chainId: v.fromChainId,
|
|
1999
2041
|
chainName: chainNameOf(v.fromChainId, chains),
|
|
@@ -2420,13 +2462,16 @@ function sanitizeLegs(legs) {
|
|
|
2420
2462
|
if (!Array.isArray(legs) || !legs.length) return void 0;
|
|
2421
2463
|
const text = (v, max) => String(v ?? "").slice(0, max);
|
|
2422
2464
|
const chain = (v) => Number(v) || 0;
|
|
2465
|
+
const ticker = (value, asset) => safeTicker(value, asset) || void 0;
|
|
2423
2466
|
return legs.slice(0, 8).map((leg, i) => ({
|
|
2424
2467
|
index: Number(leg?.index) || i + 1,
|
|
2425
2468
|
fromAsset: text(leg?.fromAsset, 12),
|
|
2469
|
+
fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
|
|
2426
2470
|
fromChainId: chain(leg?.fromChainId),
|
|
2427
2471
|
fromChainName: text(leg?.fromChainName, 40),
|
|
2428
2472
|
fromAmount: text(leg?.fromAmount, 40),
|
|
2429
2473
|
toAsset: text(leg?.toAsset, 12),
|
|
2474
|
+
toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
|
|
2430
2475
|
toChainId: chain(leg?.toChainId),
|
|
2431
2476
|
toChainName: text(leg?.toChainName, 40),
|
|
2432
2477
|
toAmount: text(leg?.toAmount, 40),
|
|
@@ -2443,6 +2488,8 @@ function sanitizeTxEntry(entry) {
|
|
|
2443
2488
|
chainName: String(entry.chainName || "").slice(0, 40),
|
|
2444
2489
|
fromAsset: String(entry.fromAsset || "").slice(0, 10),
|
|
2445
2490
|
toAsset: String(entry.toAsset || "").slice(0, 10),
|
|
2491
|
+
fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
|
|
2492
|
+
toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
|
|
2446
2493
|
payAmount: String(entry.payAmount || "").slice(0, 40),
|
|
2447
2494
|
receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
|
|
2448
2495
|
account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
|
|
@@ -2506,4 +2553,4 @@ function createEngine(config = {}) {
|
|
|
2506
2553
|
};
|
|
2507
2554
|
}
|
|
2508
2555
|
|
|
2509
|
-
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneKey, laneKeys, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, toHexQuantity, tokenEnabled, tokenKey, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
|
2556
|
+
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneKey, laneKeys, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|