@glacislabs/stablegenie-zerodelta 4.2.1 → 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-FDCSZ3OY.js → chunk-PMVF6A2D.js} +97 -6
- package/dist/{chunk-OOESQYM3.js → chunk-RFBNRCFB.js} +115 -31
- package/dist/core/index.cjs +105 -5
- 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 +210 -35
- 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 +210 -35
- 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,10 +1739,18 @@ 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) {
|
|
@@ -1714,6 +1802,7 @@ function createApiClient(cfg) {
|
|
|
1714
1802
|
status: response.status,
|
|
1715
1803
|
code: json?.error?.code || json?.code || (response.status >= 502 ? "gateway_timeout" : "api_error"),
|
|
1716
1804
|
fieldErrors: json?.error?.fieldErrors || json?.fieldErrors,
|
|
1805
|
+
limits: json?.error?.limits || json?.limits,
|
|
1717
1806
|
reasons: json?.error?.reasons || json?.reasons
|
|
1718
1807
|
});
|
|
1719
1808
|
}
|
|
@@ -2557,6 +2646,8 @@ function createEngine(config = {}) {
|
|
|
2557
2646
|
...allowed ? { allowedAssets: allowed } : {},
|
|
2558
2647
|
supportedChainIds: SUPPORTED_CHAIN_IDS,
|
|
2559
2648
|
brokenLanes: suppressedLanes(health),
|
|
2649
|
+
// Same read, same degraded mode: a null health response limits nothing.
|
|
2650
|
+
limitedLanes: limitedLanes(health),
|
|
2560
2651
|
vaultIcons
|
|
2561
2652
|
});
|
|
2562
2653
|
},
|
|
@@ -2622,6 +2713,7 @@ exports.TUNABLE_CATEGORIES = TUNABLE_CATEGORIES;
|
|
|
2622
2713
|
exports.ZERO_ADDRESS = ZERO_ADDRESS;
|
|
2623
2714
|
exports.addressWord = addressWord;
|
|
2624
2715
|
exports.allowanceCovers = allowanceCovers;
|
|
2716
|
+
exports.amountFieldError = amountFieldError;
|
|
2625
2717
|
exports.apiError = apiError;
|
|
2626
2718
|
exports.applyLayerZeroBuffer = applyLayerZeroBuffer;
|
|
2627
2719
|
exports.assertAddress = assertAddress;
|
|
@@ -2666,6 +2758,7 @@ exports.encodeApprove = encodeApprove;
|
|
|
2666
2758
|
exports.encodeBalanceOf = encodeBalanceOf;
|
|
2667
2759
|
exports.encodeSubmitOrder = encodeSubmitOrder;
|
|
2668
2760
|
exports.encodeTransfer = encodeTransfer;
|
|
2761
|
+
exports.exceedsLaneLimit = exceedsLaneLimit;
|
|
2669
2762
|
exports.executableRoutes = executableRoutes;
|
|
2670
2763
|
exports.executionChainIds = executionChainIds;
|
|
2671
2764
|
exports.fetchPaymentPlan = fetchPaymentPlan;
|
|
@@ -2686,8 +2779,15 @@ exports.isHexQuantity = isHexQuantity;
|
|
|
2686
2779
|
exports.isKnownUnbridgeable = isKnownUnbridgeable;
|
|
2687
2780
|
exports.isLayerZeroRoute = isLayerZeroRoute;
|
|
2688
2781
|
exports.isSourceToken = isSourceToken;
|
|
2782
|
+
exports.laneAvailabilityState = laneAvailabilityState;
|
|
2689
2783
|
exports.laneKey = laneKey;
|
|
2690
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;
|
|
2691
2791
|
exports.maxNativeFeeWei = maxNativeFeeWei;
|
|
2692
2792
|
exports.nativeFeeShortLabel = nativeFeeShortLabel;
|
|
2693
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';
|