@glacislabs/stablegenie-zerodelta 4.9.0 → 4.11.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-ZRGTK4B2.js → chunk-5WTRI2KO.js} +114 -60
- package/dist/{chunk-YGBSCSBP.js → chunk-TNAW2SWI.js} +272 -65
- package/dist/core/index.cjs +114 -59
- package/dist/core/index.d.cts +20 -4
- package/dist/core/index.d.ts +20 -4
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +388 -127
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BdpykBEW.d.ts → mount-hxb3zioQ.d.ts} +1 -1
- package/dist/{mount-CQ2kUcrx.d.cts → mount-xruGixNZ.d.cts} +1 -1
- package/dist/mount.cjs +388 -127
- 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 +15 -7
- package/dist/{verify-CbsVzIkp.d.cts → verify-D8tr1yY1.d.cts} +17 -1
- package/dist/{verify-CbsVzIkp.d.ts → verify-D8tr1yY1.d.ts} +17 -1
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
|
@@ -181,13 +181,16 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
181
181
|
1088: "Metis",
|
|
182
182
|
1135: "Lisk",
|
|
183
183
|
1329: "Sei",
|
|
184
|
+
1672: "Pharos",
|
|
184
185
|
1776: "Injective EVM",
|
|
185
186
|
1868: "Soneium",
|
|
186
187
|
1923: "Swellchain",
|
|
187
188
|
2222: "Kava",
|
|
188
189
|
2818: "Morph",
|
|
189
190
|
3343: "EDGE",
|
|
191
|
+
4217: "Tempo",
|
|
190
192
|
4326: "MegaETH",
|
|
193
|
+
4663: "Robinhood Chain",
|
|
191
194
|
5e3: "Mantle",
|
|
192
195
|
8453: "Base",
|
|
193
196
|
9745: "Plasma",
|
|
@@ -204,7 +207,8 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
204
207
|
534352: "Scroll",
|
|
205
208
|
747474: "Katana",
|
|
206
209
|
7777777: "Zora",
|
|
207
|
-
21e6: "Corn"
|
|
210
|
+
21e6: "Corn",
|
|
211
|
+
1151111081099710: "Solana"
|
|
208
212
|
});
|
|
209
213
|
|
|
210
214
|
// src/core/address.ts
|
|
@@ -1722,7 +1726,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
1722
1726
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
1723
1727
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
1724
1728
|
var WIDGET_CHANNEL = "widget";
|
|
1725
|
-
var WIDGET_VERSION = "4.
|
|
1729
|
+
var WIDGET_VERSION = "4.11.0" ;
|
|
1726
1730
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
1727
1731
|
function sanitizeVersion(raw) {
|
|
1728
1732
|
const v = String(raw).trim();
|
|
@@ -1830,14 +1834,31 @@ function wait(ms) {
|
|
|
1830
1834
|
}
|
|
1831
1835
|
var PAGE_LIMIT = 500;
|
|
1832
1836
|
var MAX_PAGES = 10;
|
|
1837
|
+
var newRegistryCache = () => ({ chains: null, tokens: null, routes: null, health: null, vaults: null, inflight: /* @__PURE__ */ new Map() });
|
|
1838
|
+
var SHARED_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
1839
|
+
function registryCacheFor(scope) {
|
|
1840
|
+
if (!scope) return newRegistryCache();
|
|
1841
|
+
let byKey = SHARED_REGISTRY.get(scope.fetch);
|
|
1842
|
+
if (!byKey) {
|
|
1843
|
+
byKey = /* @__PURE__ */ new Map();
|
|
1844
|
+
SHARED_REGISTRY.set(scope.fetch, byKey);
|
|
1845
|
+
}
|
|
1846
|
+
let cache = byKey.get(scope.key);
|
|
1847
|
+
if (!cache) {
|
|
1848
|
+
cache = newRegistryCache();
|
|
1849
|
+
byKey.set(scope.key, cache);
|
|
1850
|
+
}
|
|
1851
|
+
return cache;
|
|
1852
|
+
}
|
|
1833
1853
|
function createApiClient(cfg) {
|
|
1834
|
-
const cache =
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1854
|
+
const cache = registryCacheFor(cfg.registryScope);
|
|
1855
|
+
function once(name, read) {
|
|
1856
|
+
const pending = cache.inflight.get(name);
|
|
1857
|
+
if (pending) return pending;
|
|
1858
|
+
const p = read().finally(() => cache.inflight.delete(name));
|
|
1859
|
+
cache.inflight.set(name, p);
|
|
1860
|
+
return p;
|
|
1861
|
+
}
|
|
1841
1862
|
const screenCache = /* @__PURE__ */ new Map();
|
|
1842
1863
|
const screenInflight = /* @__PURE__ */ new Map();
|
|
1843
1864
|
const apiBase = cfg.apiBase.replace(/\/$/, "");
|
|
@@ -1907,58 +1928,68 @@ function createApiClient(cfg) {
|
|
|
1907
1928
|
}
|
|
1908
1929
|
throw apiError(`ZeroDelta still had rows after ${MAX_PAGES} pages (${path}).`, { code: "bad_response" });
|
|
1909
1930
|
}
|
|
1910
|
-
|
|
1911
|
-
if (nowFresh(cache.chains)) return cache.chains.value;
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1931
|
+
function fetchChains() {
|
|
1932
|
+
if (nowFresh(cache.chains)) return Promise.resolve(cache.chains.value);
|
|
1933
|
+
return once("chains", async () => {
|
|
1934
|
+
const chains = await apiRequest(`/chains${toQuery({ enabledOnly: true, limit: 500 })}`);
|
|
1935
|
+
const normalized = (Array.isArray(chains) ? chains : []).map((chain) => ({ ...chain, chainId: Number(chain.chainId) })).map((chain) => {
|
|
1936
|
+
const escrow = normalizeAddress(chain.escrowContract);
|
|
1937
|
+
return escrow ? { ...chain, escrowContract: escrow } : { ...chain, escrowContract: void 0 };
|
|
1938
|
+
});
|
|
1939
|
+
cache.chains = { at: Date.now(), value: normalized };
|
|
1940
|
+
return normalized;
|
|
1916
1941
|
});
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
cache.tokens = { at: Date.now(), value: normalized };
|
|
1925
|
-
return normalized;
|
|
1926
|
-
}
|
|
1927
|
-
async function fetchRoutes() {
|
|
1928
|
-
if (nowFresh(cache.routes)) return cache.routes.value;
|
|
1929
|
-
try {
|
|
1930
|
-
const normalized = await requestAllPages("/routes");
|
|
1931
|
-
cache.routes = { at: Date.now(), value: normalized };
|
|
1942
|
+
}
|
|
1943
|
+
function fetchTokens() {
|
|
1944
|
+
if (nowFresh(cache.tokens)) return Promise.resolve(cache.tokens.value);
|
|
1945
|
+
return once("tokens", async () => {
|
|
1946
|
+
const tokens = await requestAllPages("/tokens");
|
|
1947
|
+
const normalized = tokens.map((token) => ({ ...token, chainId: Number(token.chainId) }));
|
|
1948
|
+
cache.tokens = { at: Date.now(), value: normalized };
|
|
1932
1949
|
return normalized;
|
|
1933
|
-
}
|
|
1934
|
-
cache.routes = { at: Date.now(), value: [] };
|
|
1935
|
-
return [];
|
|
1936
|
-
}
|
|
1950
|
+
});
|
|
1937
1951
|
}
|
|
1938
|
-
|
|
1939
|
-
if (nowFresh(cache.
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1952
|
+
function fetchRoutes() {
|
|
1953
|
+
if (nowFresh(cache.routes)) return Promise.resolve(cache.routes.value);
|
|
1954
|
+
return once("routes", async () => {
|
|
1955
|
+
try {
|
|
1956
|
+
const normalized = await requestAllPages("/routes");
|
|
1957
|
+
cache.routes = { at: Date.now(), value: normalized };
|
|
1958
|
+
return normalized;
|
|
1959
|
+
} catch {
|
|
1960
|
+
cache.routes = { at: Date.now(), value: [] };
|
|
1961
|
+
return [];
|
|
1962
|
+
}
|
|
1963
|
+
});
|
|
1949
1964
|
}
|
|
1950
|
-
|
|
1951
|
-
if (nowFresh(cache.
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1965
|
+
function fetchRouteHealth() {
|
|
1966
|
+
if (nowFresh(cache.health)) return Promise.resolve(cache.health.value);
|
|
1967
|
+
return once("health", async () => {
|
|
1968
|
+
let value = null;
|
|
1969
|
+
try {
|
|
1970
|
+
const health = await apiRequest("/route-health", { timeoutMs: 8e3 });
|
|
1971
|
+
value = health && typeof health === "object" && !Array.isArray(health) ? health : null;
|
|
1972
|
+
} catch {
|
|
1973
|
+
value = null;
|
|
1974
|
+
}
|
|
1975
|
+
cache.health = { at: Date.now(), value };
|
|
1976
|
+
return value;
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
function fetchRwaVaults() {
|
|
1980
|
+
if (nowFresh(cache.vaults)) return Promise.resolve(cache.vaults.value);
|
|
1981
|
+
return once("vaults", async () => {
|
|
1982
|
+
let value = [];
|
|
1983
|
+
try {
|
|
1984
|
+
const payload = await apiRequest("/rwa/vaults?status=active,coming_soon", { timeoutMs: 8e3 });
|
|
1985
|
+
const rows = Array.isArray(payload) ? payload : payload?.vaults;
|
|
1986
|
+
value = Array.isArray(rows) ? rows.filter((v) => !!v && typeof v === "object") : [];
|
|
1987
|
+
} catch {
|
|
1988
|
+
value = [];
|
|
1989
|
+
}
|
|
1990
|
+
cache.vaults = { at: Date.now(), value };
|
|
1991
|
+
return value;
|
|
1992
|
+
});
|
|
1962
1993
|
}
|
|
1963
1994
|
const priceCache = /* @__PURE__ */ new Map();
|
|
1964
1995
|
async function fetchPrices(symbols) {
|
|
@@ -2158,9 +2189,11 @@ async function fetchPaymentPlan(api, request, payer, wallet = {}, readBalances)
|
|
|
2158
2189
|
perChainBest.push(option);
|
|
2159
2190
|
}
|
|
2160
2191
|
}
|
|
2161
|
-
|
|
2192
|
+
const ranked = [...heldOptions, ...perChainBest, ...leftovers];
|
|
2193
|
+
for (const option of ranked.slice(0, MAX_QUOTE_CANDIDATES)) {
|
|
2162
2194
|
candidates.push(option);
|
|
2163
2195
|
}
|
|
2196
|
+
const unquotedOptions = ranked.slice(MAX_QUOTE_CANDIDATES);
|
|
2164
2197
|
const routeErrors = [];
|
|
2165
2198
|
const routePromises = candidates.map(
|
|
2166
2199
|
(option) => buildRoute({
|
|
@@ -2202,6 +2235,7 @@ async function fetchPaymentPlan(api, request, payer, wallet = {}, readBalances)
|
|
|
2202
2235
|
expiresAt: new Date(Date.now() + 2 * 60 * 1e3).toISOString(),
|
|
2203
2236
|
apiBase: api.apiBase,
|
|
2204
2237
|
routes: routesBuilt,
|
|
2238
|
+
unquotedOptions,
|
|
2205
2239
|
fundingBalances: walletBalances,
|
|
2206
2240
|
fundingAccount: payer.toLowerCase(),
|
|
2207
2241
|
destination: {
|
|
@@ -2215,6 +2249,21 @@ async function fetchPaymentPlan(api, request, payer, wallet = {}, readBalances)
|
|
|
2215
2249
|
}
|
|
2216
2250
|
};
|
|
2217
2251
|
}
|
|
2252
|
+
async function quotePayOption(api, request, payer, picked, wallet = {}) {
|
|
2253
|
+
validateDestination(request);
|
|
2254
|
+
assertAddress(payer, "Payer wallet");
|
|
2255
|
+
const [chains, tokens, routes, health] = await Promise.all([api.fetchChains(), api.fetchTokens(), api.fetchRoutes(), api.fetchRouteHealth()]);
|
|
2256
|
+
const catalogue = buildCatalogue({ chains, tokens, routes, product: "stable", supportedChainIds: SUPPORTED_CHAIN_IDS, brokenLanes: suppressedLanes(health) });
|
|
2257
|
+
const destination = { ...request, chainId: Number(request.chainId), asset: symbolKey(request.asset) };
|
|
2258
|
+
const destinationToken = findToken(tokens, destination.chainId, destination.asset);
|
|
2259
|
+
if (!destinationToken) throw new Error(`${destination.asset} is not enabled on ${chainNameOf(destination.chainId, chains)}.`);
|
|
2260
|
+
const allowedFunding = wallet.fundingAssets?.length ? new Set(wallet.fundingAssets.map(symbolKey)) : null;
|
|
2261
|
+
const option = buildPayOptions({ invoiceAsset: destination.asset, invoiceChainId: destination.chainId, tokens, routes, chains, walletChainId: wallet.chainId, catalogue }).find(
|
|
2262
|
+
(o) => !o.direct && Number(o.chainId) === Number(picked.chainId) && o.address.toLowerCase() === String(picked.address).toLowerCase() && (!allowedFunding || allowedFunding.has(o.symbolKey))
|
|
2263
|
+
);
|
|
2264
|
+
if (!option) throw new Error("That funding option is not available for this payment right now.");
|
|
2265
|
+
return buildRoute({ option, destination, destinationToken, chains, tokens, payer, fetchQuote: api.fetchQuote });
|
|
2266
|
+
}
|
|
2218
2267
|
|
|
2219
2268
|
// src/core/swap.ts
|
|
2220
2269
|
function validateSwap(swap = {}) {
|
|
@@ -2696,12 +2745,16 @@ function resolveConfig(config = {}) {
|
|
|
2696
2745
|
if (config.getApiKey) return String(await config.getApiKey() || "");
|
|
2697
2746
|
return String(config.apiKey || "");
|
|
2698
2747
|
};
|
|
2748
|
+
const shareable = !config.fetchImpl && !config.getApiKey;
|
|
2699
2749
|
return {
|
|
2700
2750
|
apiBase,
|
|
2701
2751
|
getApiKey,
|
|
2702
2752
|
fetchImpl,
|
|
2703
2753
|
rpcOverrides: config.rpcOverrides ?? {},
|
|
2704
|
-
onTransaction: config.onTransaction
|
|
2754
|
+
onTransaction: config.onTransaction,
|
|
2755
|
+
// The key is part of the scope: two keys can see two registries, and never each other's answers.
|
|
2756
|
+
registryScope: shareable ? { fetch: globalThis.fetch, key: `${apiBase}
|
|
2757
|
+
${canAttachApiKey(apiBase, config.trustedApiOrigin) ? String(config.apiKey || "") : ""}` } : void 0
|
|
2705
2758
|
};
|
|
2706
2759
|
}
|
|
2707
2760
|
|
|
@@ -2787,6 +2840,7 @@ function createEngine(config = {}) {
|
|
|
2787
2840
|
});
|
|
2788
2841
|
},
|
|
2789
2842
|
fetchPaymentPlan: (request, payer, wallet) => fetchPaymentPlan(api, request, payer, wallet, verifier.readBalances),
|
|
2843
|
+
quotePayOption: (request, payer, option, wallet) => quotePayOption(api, request, payer, option, wallet),
|
|
2790
2844
|
quoteSwapPreview: (swap, owner) => quoteSwapPreview(api, swap, owner),
|
|
2791
2845
|
buildSwapPlan: (swap, payer, wallet) => buildSwapPlan(api, swap, payer, wallet),
|
|
2792
2846
|
payerNonceBaseline: verifier.payerNonceBaseline,
|
|
@@ -2940,6 +2994,7 @@ exports.planErrorSummary = planErrorSummary;
|
|
|
2940
2994
|
exports.planMsgValueHex = planMsgValueHex;
|
|
2941
2995
|
exports.productAssets = productAssets;
|
|
2942
2996
|
exports.quotePartnerId = quotePartnerId;
|
|
2997
|
+
exports.quotePayOption = quotePayOption;
|
|
2943
2998
|
exports.quoteSwapPreview = quoteSwapPreview;
|
|
2944
2999
|
exports.recommendedDeadlineSeconds = recommendedDeadlineSeconds;
|
|
2945
3000
|
exports.registryRpc = registryRpc;
|
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-D8tr1yY1.cjs';
|
|
2
|
+
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-D8tr1yY1.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. */
|
|
@@ -381,6 +381,17 @@ type BalanceReader = (account: string, targets: BalanceTarget[]) => Promise<Reco
|
|
|
381
381
|
declare function validateDestination(destination: PayRequest): void;
|
|
382
382
|
declare function planErrorSummary(errors: unknown[]): string;
|
|
383
383
|
declare function fetchPaymentPlan(api: ApiClient, request: PayRequest, payer: string, wallet?: PaymentWalletContext, readBalances?: BalanceReader): Promise<Plan>;
|
|
384
|
+
/**
|
|
385
|
+
* Price ONE funding option of a payment, for a payer who picked one the plan left unquoted
|
|
386
|
+
* (`Plan.unquotedOptions`). The same route a plan would have built for it, through the same checks:
|
|
387
|
+
* the destination is validated again, the option must still be one the live catalogue offers for this
|
|
388
|
+
* invoice (an option from an older plan is not trusted blindly), and a direct option is refused —
|
|
389
|
+
* direct settlement is only ever offered after the wallet screen `fetchPaymentPlan` runs.
|
|
390
|
+
*/
|
|
391
|
+
declare function quotePayOption(api: ApiClient, request: PayRequest, payer: string, picked: {
|
|
392
|
+
chainId: number;
|
|
393
|
+
address: string;
|
|
394
|
+
}, wallet?: PaymentWalletContext): Promise<RouteResult>;
|
|
384
395
|
|
|
385
396
|
interface ValidatedSwap {
|
|
386
397
|
fromChainId: number;
|
|
@@ -586,6 +597,11 @@ interface Engine {
|
|
|
586
597
|
*/
|
|
587
598
|
fetchCatalogue: (allowedAssets?: readonly string[], product?: ExchangeProduct) => Promise<Catalogue>;
|
|
588
599
|
fetchPaymentPlan: (request: PayRequest, payer: string, wallet?: PaymentWalletContext) => Promise<Plan>;
|
|
600
|
+
/** Price one funding option a plan left unquoted (`Plan.unquotedOptions`) — see core/plan.ts. */
|
|
601
|
+
quotePayOption: (request: PayRequest, payer: string, option: {
|
|
602
|
+
chainId: number;
|
|
603
|
+
address: string;
|
|
604
|
+
}, wallet?: PaymentWalletContext) => Promise<RouteResult>;
|
|
589
605
|
quoteSwapPreview: (swap: SwapInput, owner?: string) => Promise<SwapPreview>;
|
|
590
606
|
buildSwapPlan: (swap: SwapInput, payer: string, wallet?: {
|
|
591
607
|
chainId?: number;
|
|
@@ -601,7 +617,7 @@ interface Engine {
|
|
|
601
617
|
*/
|
|
602
618
|
reportSubmission?: ApiClient["reportSubmission"];
|
|
603
619
|
}
|
|
604
|
-
/** Create an engine bound to a config.
|
|
620
|
+
/** Create an engine bound to a config. Its 60s registry cache is shared with every engine of the same base and key (api.ts › registryCacheFor). */
|
|
605
621
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
606
622
|
|
|
607
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
|
623
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quotePayOption, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-
|
|
1
|
+
import { T as Token, Q as Quote, N as NormalizedOrder, s as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, t as RwaVault, F as FetchQuoteFn, u as SolveResult, O as OrderRequest, C as Compliance, v as BalanceTarget, w as BalanceEntry, x as ApiClient, P as Plan, y as SwapInput, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, S as SanitizedTxEntry, E as EngineConfig } from '../verify-D8tr1yY1.js';
|
|
2
|
+
export { G as Address, H as ApiError, A as Availability, I as BLOCK_LABEL_DEFAULT, B as BrokenLane, J as COMPLIANCE_CHECK_ORDER, K as COMPLIANCE_DENY_LABEL, M as CatalogueContext, U as CatalogueInput, c as ComplianceCheck, X as ComplianceCheckId, Y as ComplianceDecision, d as ComplianceTone, e as ComplianceView, Z as DIRECT_CHECK_IDS, _ as DIRECT_SCOPE_NOTE, $ as Destination, a0 as FLOOR_CATEGORIES, a1 as Hex, a2 as LaneAvailabilityState, L as LaneLimit, a3 as PlannedTxKind, a4 as QuoteBlock, a5 as ResolvedConfig, a6 as RouteHealth, a7 as RouteHealthAvailability, a8 as RouteHealthLane, g as RouteLeg, a9 as SCREENING_BUCKETS, aa as ScreenProvider, ab as ScreeningBucket, ac as ScreeningOutcome, ad as TUNABLE_CATEGORIES, ae as TxPlan, V as VerifyResult, W as WalletScreen, af as amountFieldError, ag as apiError, j as assetClassOf, ah as blockLabelFor, ai as brokenLaneFor, k as brokenLaneReason, aj as buildCatalogue, ak as canAttachApiKey, al as categoryLabel, am as classifyQuoteError, l as complianceChecks, an as complianceControlsEvaluated, m as complianceControlsLine, ao as complianceReasonHead, ap as complianceReasonTag, aq as complianceTagOf, n as complianceView, o as counterpartTokens, ar as createApiClient, as as createVerifier, p as destinationAvailability, at as destinationKeys, au as directComplianceFromScreens, av as distinctScreenedWallets, aw as exceedsLaneLimit, ax as executableRoutes, ay as executionChainIds, q as formatJurisdiction, az as hasReachableDestination, aA as hubDeliverableSymbols, r as humanizeComplianceReason, aB as isExecutableBridge, aC as isKnownUnbridgeable, aD as isSourceToken, aE as laneAvailabilityState, aF as laneKey, aG as laneKeys, aH as laneLimitAmount, aI as laneLimitError, aJ as laneLimitFor, aK as laneLimitHint, aL as laneLimitSymbol, aM as limitedLanes, aN as parseAllowedApiBase, aO as productAssets, aP as registryRpc, aQ as resolveApiBase, aR as resolveConfig, aS as screeningOutcomeOf, aT as sourceKeys, aU as suppressedLanes, aV as tokenKey, aW as txMatchesPlan, aX as unattributedComplianceReasons } from '../verify-D8tr1yY1.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. */
|
|
@@ -381,6 +381,17 @@ type BalanceReader = (account: string, targets: BalanceTarget[]) => Promise<Reco
|
|
|
381
381
|
declare function validateDestination(destination: PayRequest): void;
|
|
382
382
|
declare function planErrorSummary(errors: unknown[]): string;
|
|
383
383
|
declare function fetchPaymentPlan(api: ApiClient, request: PayRequest, payer: string, wallet?: PaymentWalletContext, readBalances?: BalanceReader): Promise<Plan>;
|
|
384
|
+
/**
|
|
385
|
+
* Price ONE funding option of a payment, for a payer who picked one the plan left unquoted
|
|
386
|
+
* (`Plan.unquotedOptions`). The same route a plan would have built for it, through the same checks:
|
|
387
|
+
* the destination is validated again, the option must still be one the live catalogue offers for this
|
|
388
|
+
* invoice (an option from an older plan is not trusted blindly), and a direct option is refused —
|
|
389
|
+
* direct settlement is only ever offered after the wallet screen `fetchPaymentPlan` runs.
|
|
390
|
+
*/
|
|
391
|
+
declare function quotePayOption(api: ApiClient, request: PayRequest, payer: string, picked: {
|
|
392
|
+
chainId: number;
|
|
393
|
+
address: string;
|
|
394
|
+
}, wallet?: PaymentWalletContext): Promise<RouteResult>;
|
|
384
395
|
|
|
385
396
|
interface ValidatedSwap {
|
|
386
397
|
fromChainId: number;
|
|
@@ -586,6 +597,11 @@ interface Engine {
|
|
|
586
597
|
*/
|
|
587
598
|
fetchCatalogue: (allowedAssets?: readonly string[], product?: ExchangeProduct) => Promise<Catalogue>;
|
|
588
599
|
fetchPaymentPlan: (request: PayRequest, payer: string, wallet?: PaymentWalletContext) => Promise<Plan>;
|
|
600
|
+
/** Price one funding option a plan left unquoted (`Plan.unquotedOptions`) — see core/plan.ts. */
|
|
601
|
+
quotePayOption: (request: PayRequest, payer: string, option: {
|
|
602
|
+
chainId: number;
|
|
603
|
+
address: string;
|
|
604
|
+
}, wallet?: PaymentWalletContext) => Promise<RouteResult>;
|
|
589
605
|
quoteSwapPreview: (swap: SwapInput, owner?: string) => Promise<SwapPreview>;
|
|
590
606
|
buildSwapPlan: (swap: SwapInput, payer: string, wallet?: {
|
|
591
607
|
chainId?: number;
|
|
@@ -601,7 +617,7 @@ interface Engine {
|
|
|
601
617
|
*/
|
|
602
618
|
reportSubmission?: ApiClient["reportSubmission"];
|
|
603
619
|
}
|
|
604
|
-
/** Create an engine bound to a config.
|
|
620
|
+
/** Create an engine bound to a config. Its 60s registry cache is shared with every engine of the same base and key (api.ts › registryCacheFor). */
|
|
605
621
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
606
622
|
|
|
607
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
|
623
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, FetchQuoteFn, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, type NativeFeeCheck, NormalizedOrder, OrderRequest, PREVIEW_OWNER, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SanitizedTxEntry, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetDecimals, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, createEngine, decodeSubmitOrderCalldata, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, fetchPaymentPlan, finalOf, findToken, foldTicker, formatNative, formatUnits, isAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseUnitsDecimal, planErrorSummary, planMsgValueHex, quotePartnerId, quotePayOption, quoteSwapPreview, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork };
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, amountFieldError, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quoteSwapPreview, recommendedDeadlineSeconds, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-
|
|
1
|
+
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CHAIN_DISPLAY_NAMES, COMPLIANCE_CHECK_ORDER, COMPLIANCE_DENY_LABEL, DEFAULT_WIDGET_API_BASE, DIRECT_CHECK_IDS, DIRECT_SCOPE_NOTE, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, FLOOR_CATEGORIES, LZ_FEE_BUFFER_BPS, MAX_LZ_MSG_VALUE_WEI, MAX_LZ_MSG_VALUE_WEI_BY_CHAIN, MAX_QUOTE_CANDIDATES, MAX_SAME_CLASS_PAY_BPS, MAX_UINT64, NO_PARTNER_ID, PREVIEW_OWNER, QUOTE_BUFFER_BPS, SAME_CLASS_STABLE, SCREENING_BUCKETS, SCREEN_CACHE_TTL_MS, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, ZERO_ADDRESS, addressWord, allowanceCovers, amountFieldError, apiError, applyLayerZeroBuffer, assertAddress, assertQuoteMatchesSelection, assetClassOf, assetDecimals, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSwapPlan, bytes32Word, bytesPayload, canAttachApiKey, categoryLabel, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, counterpartTokens, createApiClient, createEngine, createVerifier, decodeSubmitOrderCalldata, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeSubmitOrder, encodeTransfer, exceedsLaneLimit, executableRoutes, executionChainIds, fetchPaymentPlan, finalOf, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isSourceToken, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeOrderRequest, normalizeOrderRequests, parseAllowedApiBase, parseUnitsDecimal, planErrorSummary, planMsgValueHex, productAssets, quotePartnerId, quotePayOption, quoteSwapPreview, recommendedDeadlineSeconds, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, withVaultArtwork } from '../chunk-5WTRI2KO.js';
|