@glacislabs/stablegenie-zerodelta 4.2.0 → 4.3.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-ZBUK7ULN.js → chunk-PMVF6A2D.js} +125 -11
- package/dist/{chunk-KETGKV7Y.js → chunk-RFBNRCFB.js} +115 -31
- package/dist/core/index.cjs +133 -10
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +238 -40
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-Bver3O2z.d.ts → mount-BX_B0fzO.d.ts} +1 -1
- package/dist/{mount-Dtbtdry1.d.cts → mount-Dw3LvQZi.d.cts} +1 -1
- package/dist/mount.cjs +238 -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 +12 -6
- package/dist/{verify-57gjg_dM.d.cts → verify-CPaT8Upe.d.cts} +146 -9
- package/dist/{verify-57gjg_dM.d.ts → verify-CPaT8Upe.d.ts} +146 -9
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
|
@@ -554,6 +554,10 @@ function brokenLaneFor(token, source, brokenLanes) {
|
|
|
554
554
|
if (!source || !brokenLanes) return void 0;
|
|
555
555
|
return brokenLanes.get(laneKey(source.chainId, source.address, token.chainId, token.address));
|
|
556
556
|
}
|
|
557
|
+
function laneLimitFor(token, source, limitedLanes2) {
|
|
558
|
+
if (!source || !limitedLanes2) return void 0;
|
|
559
|
+
return limitedLanes2.get(laneKey(source.chainId, source.address, token.chainId, token.address));
|
|
560
|
+
}
|
|
557
561
|
function destinationAvailability(token, ctx, source) {
|
|
558
562
|
if (brokenLaneFor(token, source ?? void 0, ctx.brokenLanes)) return "unreachable";
|
|
559
563
|
if (directLaneOK(token, source ?? void 0, ctx.lanes)) {
|
|
@@ -609,7 +613,17 @@ function buildCatalogue(input) {
|
|
|
609
613
|
);
|
|
610
614
|
const byId = new Map(enabledChains.map((c) => [Number(c.chainId), c]));
|
|
611
615
|
for (const id of chainIds) if (!byId.has(id)) byId.set(id, { chainId: id, isEnabled: true });
|
|
612
|
-
return {
|
|
616
|
+
return {
|
|
617
|
+
...ctx,
|
|
618
|
+
product,
|
|
619
|
+
tokens: catalogue,
|
|
620
|
+
sources,
|
|
621
|
+
chainIds,
|
|
622
|
+
chains: [...byId.values()],
|
|
623
|
+
ready,
|
|
624
|
+
vaultIcons: input.vaultIcons ?? /* @__PURE__ */ new Map(),
|
|
625
|
+
limitedLanes: input.limitedLanes ?? /* @__PURE__ */ new Map()
|
|
626
|
+
};
|
|
613
627
|
}
|
|
614
628
|
|
|
615
629
|
// src/core/options.ts
|
|
@@ -748,23 +762,89 @@ function nativeFeeShortMessage(check, symbol, chainName) {
|
|
|
748
762
|
|
|
749
763
|
// src/core/route-health.ts
|
|
750
764
|
var EMPTY = /* @__PURE__ */ new Map();
|
|
765
|
+
var NO_LIMITS = /* @__PURE__ */ new Map();
|
|
766
|
+
function laneAvailabilityState(lane) {
|
|
767
|
+
const availability = lane?.availability;
|
|
768
|
+
if (!availability || typeof availability !== "object") return null;
|
|
769
|
+
const state = availability.state;
|
|
770
|
+
return state === "available" || state === "limited" || state === "unavailable" ? state : null;
|
|
771
|
+
}
|
|
772
|
+
function isSuppressed(lane) {
|
|
773
|
+
const state = laneAvailabilityState(lane);
|
|
774
|
+
if (state) return state === "unavailable";
|
|
775
|
+
const firewalled = lane.status === "unknown" && lane.kind === "firewalled";
|
|
776
|
+
return lane.status === "broken" || firewalled;
|
|
777
|
+
}
|
|
751
778
|
function suppressedLanes(health) {
|
|
752
779
|
if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return EMPTY;
|
|
753
780
|
const out = /* @__PURE__ */ new Map();
|
|
754
781
|
for (const lane of health.lanes) {
|
|
755
|
-
|
|
756
|
-
if (lane?.status !== "broken" && !firewalled) continue;
|
|
782
|
+
if (!lane || typeof lane !== "object" || !isSuppressed(lane)) continue;
|
|
757
783
|
const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
|
|
758
784
|
if (!key) continue;
|
|
785
|
+
const availability = laneAvailabilityState(lane) ? lane.availability : void 0;
|
|
786
|
+
const code = typeof availability?.code === "string" && availability.code ? availability.code : lane.code;
|
|
787
|
+
const message = typeof availability?.message === "string" && availability.message ? availability.message : lane.message;
|
|
759
788
|
out.set(key, {
|
|
760
789
|
route: typeof lane.route === "string" ? lane.route : "",
|
|
761
|
-
code: typeof
|
|
762
|
-
message: typeof
|
|
790
|
+
code: typeof code === "string" ? code : "",
|
|
791
|
+
message: typeof message === "string" ? message : "",
|
|
763
792
|
...typeof lane.kind === "string" ? { kind: lane.kind } : {}
|
|
764
793
|
});
|
|
765
794
|
}
|
|
766
795
|
return out;
|
|
767
796
|
}
|
|
797
|
+
var BASE_UNITS = /^\d{1,78}$/;
|
|
798
|
+
function limitedLanes(health) {
|
|
799
|
+
if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return NO_LIMITS;
|
|
800
|
+
const out = /* @__PURE__ */ new Map();
|
|
801
|
+
for (const lane of health.lanes) {
|
|
802
|
+
if (!lane || typeof lane !== "object" || laneAvailabilityState(lane) !== "limited") continue;
|
|
803
|
+
const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
|
|
804
|
+
const limit = lane.availability?.limit;
|
|
805
|
+
if (!key || !limit || typeof limit !== "object") continue;
|
|
806
|
+
const side = limit.side === "bid" || limit.side === "ask" ? limit.side : null;
|
|
807
|
+
const maxAmount = typeof limit.maxAmount === "string" ? limit.maxAmount.trim() : "";
|
|
808
|
+
const decimals = limit.decimals;
|
|
809
|
+
if (!side || !BASE_UNITS.test(maxAmount) || typeof decimals !== "number" || !Number.isInteger(decimals) || decimals < 0 || decimals > 36) continue;
|
|
810
|
+
const code = lane.availability?.code;
|
|
811
|
+
out.set(key, {
|
|
812
|
+
side,
|
|
813
|
+
token: typeof limit.token === "string" ? limit.token : "",
|
|
814
|
+
fromChainId: Number(limit.fromChainId) || 0,
|
|
815
|
+
toChainId: Number(limit.toChainId) || 0,
|
|
816
|
+
maxAmount,
|
|
817
|
+
decimals,
|
|
818
|
+
code: typeof code === "string" ? code : "",
|
|
819
|
+
...typeof limit.measuredAt === "string" ? { measuredAt: limit.measuredAt } : {}
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
return out;
|
|
823
|
+
}
|
|
824
|
+
function exceedsLaneLimit(limit, amount, bidDecimals) {
|
|
825
|
+
if (limit?.side !== "bid" || !BASE_UNITS.test(limit.maxAmount)) return false;
|
|
826
|
+
let raw;
|
|
827
|
+
try {
|
|
828
|
+
raw = parseUnitsDecimal(amount, bidDecimals);
|
|
829
|
+
} catch {
|
|
830
|
+
return false;
|
|
831
|
+
}
|
|
832
|
+
const scale = Math.max(bidDecimals, limit.decimals);
|
|
833
|
+
return scaleDecimals(raw, bidDecimals, scale) > scaleDecimals(BigInt(limit.maxAmount), limit.decimals, scale);
|
|
834
|
+
}
|
|
835
|
+
function laneLimitAmount(limit) {
|
|
836
|
+
return formatUnits(limit.maxAmount, limit.decimals);
|
|
837
|
+
}
|
|
838
|
+
function laneLimitSymbol(limit, bidTicker) {
|
|
839
|
+
if (limit.side === "bid" && bidTicker) return bidTicker;
|
|
840
|
+
return safeTicker(limit.token, limit.token);
|
|
841
|
+
}
|
|
842
|
+
function laneLimitHint(limit, symbol) {
|
|
843
|
+
return `Max ${laneLimitAmount(limit)}${symbol ? ` ${symbol}` : ""} right now`;
|
|
844
|
+
}
|
|
845
|
+
function laneLimitError(limit, symbol) {
|
|
846
|
+
return `Maximum: ${laneLimitAmount(limit)}${symbol ? ` ${symbol}` : ""} right now`;
|
|
847
|
+
}
|
|
768
848
|
function brokenLaneReason(lane) {
|
|
769
849
|
if (!lane) return "";
|
|
770
850
|
switch (lane.kind) {
|
|
@@ -1659,15 +1739,25 @@ function classifyQuoteError(error) {
|
|
|
1659
1739
|
message: `This payment was blocked by compliance screening \u2014 the recipient is ${label}. Choose a different recipient or connect a different wallet.`
|
|
1660
1740
|
};
|
|
1661
1741
|
}
|
|
1742
|
+
function amountFieldError(error) {
|
|
1743
|
+
const fieldErrors = error?.fieldErrors;
|
|
1744
|
+
if (!Array.isArray(fieldErrors)) return null;
|
|
1745
|
+
const entry = fieldErrors.find((e) => e && typeof e === "object" && e.field === "fromAmount" && typeof e.message === "string");
|
|
1746
|
+
const message = entry ? sanitizeMessage(entry.message, "") : "";
|
|
1747
|
+
return message || null;
|
|
1748
|
+
}
|
|
1662
1749
|
function nowFresh(entry) {
|
|
1663
1750
|
return !!entry && Date.now() - entry.at < API_CACHE_TTL_MS;
|
|
1664
1751
|
}
|
|
1665
1752
|
function isTransientQuoteError(error) {
|
|
1753
|
+
if (error?.code === "BRIDGE_RATE_LIMITED" || Array.isArray(error?.fieldErrors) && error.fieldErrors.length > 0) return false;
|
|
1666
1754
|
return error?.code === "gateway_timeout" || error?.status === 502 || error?.status === 503 || error?.status === 504 || /failed to get swap quote|timeout|temporar/i.test(error?.message || "");
|
|
1667
1755
|
}
|
|
1668
1756
|
function wait(ms) {
|
|
1669
1757
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1670
1758
|
}
|
|
1759
|
+
var PAGE_LIMIT = 500;
|
|
1760
|
+
var MAX_PAGES = 10;
|
|
1671
1761
|
function createApiClient(cfg) {
|
|
1672
1762
|
const cache = {
|
|
1673
1763
|
chains: null,
|
|
@@ -1679,7 +1769,7 @@ function createApiClient(cfg) {
|
|
|
1679
1769
|
const screenCache = /* @__PURE__ */ new Map();
|
|
1680
1770
|
const screenInflight = /* @__PURE__ */ new Map();
|
|
1681
1771
|
const apiBase = cfg.apiBase.replace(/\/$/, "");
|
|
1682
|
-
async function
|
|
1772
|
+
async function requestJson(path, init = {}) {
|
|
1683
1773
|
const apiKey = await cfg.getApiKey();
|
|
1684
1774
|
const headers = { "Content-Type": "application/json", ...init.headers || {} };
|
|
1685
1775
|
if (apiKey) headers["x-api-key"] = apiKey;
|
|
@@ -1712,11 +1802,34 @@ function createApiClient(cfg) {
|
|
|
1712
1802
|
status: response.status,
|
|
1713
1803
|
code: json?.error?.code || json?.code || (response.status >= 502 ? "gateway_timeout" : "api_error"),
|
|
1714
1804
|
fieldErrors: json?.error?.fieldErrors || json?.fieldErrors,
|
|
1805
|
+
limits: json?.error?.limits || json?.limits,
|
|
1715
1806
|
reasons: json?.error?.reasons || json?.reasons
|
|
1716
1807
|
});
|
|
1717
1808
|
}
|
|
1809
|
+
return json;
|
|
1810
|
+
}
|
|
1811
|
+
async function apiRequest(path, init = {}) {
|
|
1812
|
+
const json = await requestJson(path, init);
|
|
1718
1813
|
return json?.data ?? json;
|
|
1719
1814
|
}
|
|
1815
|
+
async function requestAllPages(path) {
|
|
1816
|
+
const rows = [];
|
|
1817
|
+
let firstRow = "";
|
|
1818
|
+
for (let page = 0; page < MAX_PAGES; page += 1) {
|
|
1819
|
+
const json = await requestJson(`${path}${toQuery({ limit: PAGE_LIMIT, offset: rows.length || void 0 })}`);
|
|
1820
|
+
const envelope = json && !Array.isArray(json) ? json : {};
|
|
1821
|
+
const data = Array.isArray(json) ? json : envelope.data;
|
|
1822
|
+
const pageRows = Array.isArray(data) ? data : [];
|
|
1823
|
+
const head = pageRows.length ? JSON.stringify(pageRows[0]) : "";
|
|
1824
|
+
if (page === 0) firstRow = head;
|
|
1825
|
+
else if (head && head === firstRow) throw apiError(`ZeroDelta paging ignored the offset (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1826
|
+
rows.push(...pageRows);
|
|
1827
|
+
const total = envelope.meta?.totalCount;
|
|
1828
|
+
if (!envelope.paging?.next || typeof total === "number" && rows.length >= total) return rows;
|
|
1829
|
+
if (!pageRows.length) throw apiError(`ZeroDelta paging did not advance (${path}, offset ${rows.length}).`, { code: "bad_response" });
|
|
1830
|
+
}
|
|
1831
|
+
throw apiError(`ZeroDelta still had rows after ${MAX_PAGES} pages (${path}).`, { code: "bad_response" });
|
|
1832
|
+
}
|
|
1720
1833
|
async function fetchChains() {
|
|
1721
1834
|
if (nowFresh(cache.chains)) return cache.chains.value;
|
|
1722
1835
|
const chains = await apiRequest(`/chains${toQuery({ enabledOnly: true, limit: 500 })}`);
|
|
@@ -1729,16 +1842,15 @@ function createApiClient(cfg) {
|
|
|
1729
1842
|
}
|
|
1730
1843
|
async function fetchTokens() {
|
|
1731
1844
|
if (nowFresh(cache.tokens)) return cache.tokens.value;
|
|
1732
|
-
const tokens = await
|
|
1733
|
-
const normalized =
|
|
1845
|
+
const tokens = await requestAllPages("/tokens");
|
|
1846
|
+
const normalized = tokens.map((token) => ({ ...token, chainId: Number(token.chainId) }));
|
|
1734
1847
|
cache.tokens = { at: Date.now(), value: normalized };
|
|
1735
1848
|
return normalized;
|
|
1736
1849
|
}
|
|
1737
1850
|
async function fetchRoutes() {
|
|
1738
1851
|
if (nowFresh(cache.routes)) return cache.routes.value;
|
|
1739
1852
|
try {
|
|
1740
|
-
const
|
|
1741
|
-
const normalized = Array.isArray(routes) ? routes : [];
|
|
1853
|
+
const normalized = await requestAllPages("/routes");
|
|
1742
1854
|
cache.routes = { at: Date.now(), value: normalized };
|
|
1743
1855
|
return normalized;
|
|
1744
1856
|
} catch {
|
|
@@ -2534,6 +2646,8 @@ function createEngine(config = {}) {
|
|
|
2534
2646
|
...allowed ? { allowedAssets: allowed } : {},
|
|
2535
2647
|
supportedChainIds: SUPPORTED_CHAIN_IDS,
|
|
2536
2648
|
brokenLanes: suppressedLanes(health),
|
|
2649
|
+
// Same read, same degraded mode: a null health response limits nothing.
|
|
2650
|
+
limitedLanes: limitedLanes(health),
|
|
2537
2651
|
vaultIcons
|
|
2538
2652
|
});
|
|
2539
2653
|
},
|
|
@@ -2599,6 +2713,7 @@ exports.TUNABLE_CATEGORIES = TUNABLE_CATEGORIES;
|
|
|
2599
2713
|
exports.ZERO_ADDRESS = ZERO_ADDRESS;
|
|
2600
2714
|
exports.addressWord = addressWord;
|
|
2601
2715
|
exports.allowanceCovers = allowanceCovers;
|
|
2716
|
+
exports.amountFieldError = amountFieldError;
|
|
2602
2717
|
exports.apiError = apiError;
|
|
2603
2718
|
exports.applyLayerZeroBuffer = applyLayerZeroBuffer;
|
|
2604
2719
|
exports.assertAddress = assertAddress;
|
|
@@ -2643,6 +2758,7 @@ exports.encodeApprove = encodeApprove;
|
|
|
2643
2758
|
exports.encodeBalanceOf = encodeBalanceOf;
|
|
2644
2759
|
exports.encodeSubmitOrder = encodeSubmitOrder;
|
|
2645
2760
|
exports.encodeTransfer = encodeTransfer;
|
|
2761
|
+
exports.exceedsLaneLimit = exceedsLaneLimit;
|
|
2646
2762
|
exports.executableRoutes = executableRoutes;
|
|
2647
2763
|
exports.executionChainIds = executionChainIds;
|
|
2648
2764
|
exports.fetchPaymentPlan = fetchPaymentPlan;
|
|
@@ -2663,8 +2779,15 @@ exports.isHexQuantity = isHexQuantity;
|
|
|
2663
2779
|
exports.isKnownUnbridgeable = isKnownUnbridgeable;
|
|
2664
2780
|
exports.isLayerZeroRoute = isLayerZeroRoute;
|
|
2665
2781
|
exports.isSourceToken = isSourceToken;
|
|
2782
|
+
exports.laneAvailabilityState = laneAvailabilityState;
|
|
2666
2783
|
exports.laneKey = laneKey;
|
|
2667
2784
|
exports.laneKeys = laneKeys;
|
|
2785
|
+
exports.laneLimitAmount = laneLimitAmount;
|
|
2786
|
+
exports.laneLimitError = laneLimitError;
|
|
2787
|
+
exports.laneLimitFor = laneLimitFor;
|
|
2788
|
+
exports.laneLimitHint = laneLimitHint;
|
|
2789
|
+
exports.laneLimitSymbol = laneLimitSymbol;
|
|
2790
|
+
exports.limitedLanes = limitedLanes;
|
|
2668
2791
|
exports.maxNativeFeeWei = maxNativeFeeWei;
|
|
2669
2792
|
exports.nativeFeeShortLabel = nativeFeeShortLabel;
|
|
2670
2793
|
exports.nativeFeeShortMessage = nativeFeeShortMessage;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext,
|
|
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-CPaT8Upe.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-CPaT8Upe.cjs';
|
|
3
3
|
|
|
4
4
|
/** Default request base for the widget: the same-origin keyless custody proxy (server injects the
|
|
5
5
|
* ZeroDelta key). A host may override to `/api/v1` + an apiKey for the demo-first fallback path. */
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, r as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, s as RwaVault, F as FetchQuoteFn, t as SolveResult, O as OrderRequest, C as Compliance, u as BalanceTarget, v as BalanceEntry, w as ApiClient, P as Plan, x as SwapInput, y as PlannedTx, z as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { D as Address, G as ApiError, A as Availability, H as BLOCK_LABEL_DEFAULT, B as BrokenLane, I as COMPLIANCE_CHECK_ORDER, J as COMPLIANCE_DENY_LABEL, K as CatalogueContext,
|
|
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-CPaT8Upe.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-CPaT8Upe.js';
|
|
3
3
|
|
|
4
4
|
/** Default request base for the widget: the same-origin keyless custody proxy (server injects the
|
|
5
5
|
* ZeroDelta key). A host may override to `/api/v1` + an apiKey for the demo-first fallback path. */
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneKey, laneKeys, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-
|
|
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, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quoteSwapPreview, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-PMVF6A2D.js';
|