@glacislabs/stablegenie-zerodelta 4.9.0 → 4.10.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-YGBSCSBP.js → chunk-AWTQU6CW.js} +180 -40
- package/dist/{chunk-ZRGTK4B2.js → chunk-BOEY6DG5.js} +93 -58
- package/dist/core/index.cjs +93 -58
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +276 -101
- 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-Bw7W3Bfk.d.ts} +1 -1
- package/dist/{mount-CQ2kUcrx.d.cts → mount-wJ7WrkOC.d.cts} +1 -1
- package/dist/mount.cjs +276 -101
- 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 +11 -8
- package/dist/{verify-CbsVzIkp.d.cts → verify-QEs-XHri.d.cts} +11 -1
- package/dist/{verify-CbsVzIkp.d.ts → verify-QEs-XHri.d.ts} +11 -1
- package/package.json +1 -1
|
@@ -179,13 +179,16 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
179
179
|
1088: "Metis",
|
|
180
180
|
1135: "Lisk",
|
|
181
181
|
1329: "Sei",
|
|
182
|
+
1672: "Pharos",
|
|
182
183
|
1776: "Injective EVM",
|
|
183
184
|
1868: "Soneium",
|
|
184
185
|
1923: "Swellchain",
|
|
185
186
|
2222: "Kava",
|
|
186
187
|
2818: "Morph",
|
|
187
188
|
3343: "EDGE",
|
|
189
|
+
4217: "Tempo",
|
|
188
190
|
4326: "MegaETH",
|
|
191
|
+
4663: "Robinhood Chain",
|
|
189
192
|
5e3: "Mantle",
|
|
190
193
|
8453: "Base",
|
|
191
194
|
9745: "Plasma",
|
|
@@ -202,7 +205,8 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
202
205
|
534352: "Scroll",
|
|
203
206
|
747474: "Katana",
|
|
204
207
|
7777777: "Zora",
|
|
205
|
-
21e6: "Corn"
|
|
208
|
+
21e6: "Corn",
|
|
209
|
+
1151111081099710: "Solana"
|
|
206
210
|
});
|
|
207
211
|
|
|
208
212
|
// src/core/address.ts
|
|
@@ -1720,7 +1724,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
1720
1724
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
1721
1725
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
1722
1726
|
var WIDGET_CHANNEL = "widget";
|
|
1723
|
-
var WIDGET_VERSION = "4.
|
|
1727
|
+
var WIDGET_VERSION = "4.10.0" ;
|
|
1724
1728
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
1725
1729
|
function sanitizeVersion(raw) {
|
|
1726
1730
|
const v = String(raw).trim();
|
|
@@ -1828,14 +1832,31 @@ function wait(ms) {
|
|
|
1828
1832
|
}
|
|
1829
1833
|
var PAGE_LIMIT = 500;
|
|
1830
1834
|
var MAX_PAGES = 10;
|
|
1835
|
+
var newRegistryCache = () => ({ chains: null, tokens: null, routes: null, health: null, vaults: null, inflight: /* @__PURE__ */ new Map() });
|
|
1836
|
+
var SHARED_REGISTRY = /* @__PURE__ */ new WeakMap();
|
|
1837
|
+
function registryCacheFor(scope) {
|
|
1838
|
+
if (!scope) return newRegistryCache();
|
|
1839
|
+
let byKey = SHARED_REGISTRY.get(scope.fetch);
|
|
1840
|
+
if (!byKey) {
|
|
1841
|
+
byKey = /* @__PURE__ */ new Map();
|
|
1842
|
+
SHARED_REGISTRY.set(scope.fetch, byKey);
|
|
1843
|
+
}
|
|
1844
|
+
let cache = byKey.get(scope.key);
|
|
1845
|
+
if (!cache) {
|
|
1846
|
+
cache = newRegistryCache();
|
|
1847
|
+
byKey.set(scope.key, cache);
|
|
1848
|
+
}
|
|
1849
|
+
return cache;
|
|
1850
|
+
}
|
|
1831
1851
|
function createApiClient(cfg) {
|
|
1832
|
-
const cache =
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1852
|
+
const cache = registryCacheFor(cfg.registryScope);
|
|
1853
|
+
function once(name, read) {
|
|
1854
|
+
const pending = cache.inflight.get(name);
|
|
1855
|
+
if (pending) return pending;
|
|
1856
|
+
const p = read().finally(() => cache.inflight.delete(name));
|
|
1857
|
+
cache.inflight.set(name, p);
|
|
1858
|
+
return p;
|
|
1859
|
+
}
|
|
1839
1860
|
const screenCache = /* @__PURE__ */ new Map();
|
|
1840
1861
|
const screenInflight = /* @__PURE__ */ new Map();
|
|
1841
1862
|
const apiBase = cfg.apiBase.replace(/\/$/, "");
|
|
@@ -1905,58 +1926,68 @@ function createApiClient(cfg) {
|
|
|
1905
1926
|
}
|
|
1906
1927
|
throw apiError(`ZeroDelta still had rows after ${MAX_PAGES} pages (${path}).`, { code: "bad_response" });
|
|
1907
1928
|
}
|
|
1908
|
-
|
|
1909
|
-
if (nowFresh(cache.chains)) return cache.chains.value;
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1929
|
+
function fetchChains() {
|
|
1930
|
+
if (nowFresh(cache.chains)) return Promise.resolve(cache.chains.value);
|
|
1931
|
+
return once("chains", async () => {
|
|
1932
|
+
const chains = await apiRequest(`/chains${toQuery({ enabledOnly: true, limit: 500 })}`);
|
|
1933
|
+
const normalized = (Array.isArray(chains) ? chains : []).map((chain) => ({ ...chain, chainId: Number(chain.chainId) })).map((chain) => {
|
|
1934
|
+
const escrow = normalizeAddress(chain.escrowContract);
|
|
1935
|
+
return escrow ? { ...chain, escrowContract: escrow } : { ...chain, escrowContract: void 0 };
|
|
1936
|
+
});
|
|
1937
|
+
cache.chains = { at: Date.now(), value: normalized };
|
|
1938
|
+
return normalized;
|
|
1914
1939
|
});
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
cache.tokens = { at: Date.now(), value: normalized };
|
|
1923
|
-
return normalized;
|
|
1924
|
-
}
|
|
1925
|
-
async function fetchRoutes() {
|
|
1926
|
-
if (nowFresh(cache.routes)) return cache.routes.value;
|
|
1927
|
-
try {
|
|
1928
|
-
const normalized = await requestAllPages("/routes");
|
|
1929
|
-
cache.routes = { at: Date.now(), value: normalized };
|
|
1940
|
+
}
|
|
1941
|
+
function fetchTokens() {
|
|
1942
|
+
if (nowFresh(cache.tokens)) return Promise.resolve(cache.tokens.value);
|
|
1943
|
+
return once("tokens", async () => {
|
|
1944
|
+
const tokens = await requestAllPages("/tokens");
|
|
1945
|
+
const normalized = tokens.map((token) => ({ ...token, chainId: Number(token.chainId) }));
|
|
1946
|
+
cache.tokens = { at: Date.now(), value: normalized };
|
|
1930
1947
|
return normalized;
|
|
1931
|
-
}
|
|
1932
|
-
cache.routes = { at: Date.now(), value: [] };
|
|
1933
|
-
return [];
|
|
1934
|
-
}
|
|
1948
|
+
});
|
|
1935
1949
|
}
|
|
1936
|
-
|
|
1937
|
-
if (nowFresh(cache.
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1950
|
+
function fetchRoutes() {
|
|
1951
|
+
if (nowFresh(cache.routes)) return Promise.resolve(cache.routes.value);
|
|
1952
|
+
return once("routes", async () => {
|
|
1953
|
+
try {
|
|
1954
|
+
const normalized = await requestAllPages("/routes");
|
|
1955
|
+
cache.routes = { at: Date.now(), value: normalized };
|
|
1956
|
+
return normalized;
|
|
1957
|
+
} catch {
|
|
1958
|
+
cache.routes = { at: Date.now(), value: [] };
|
|
1959
|
+
return [];
|
|
1960
|
+
}
|
|
1961
|
+
});
|
|
1947
1962
|
}
|
|
1948
|
-
|
|
1949
|
-
if (nowFresh(cache.
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1963
|
+
function fetchRouteHealth() {
|
|
1964
|
+
if (nowFresh(cache.health)) return Promise.resolve(cache.health.value);
|
|
1965
|
+
return once("health", async () => {
|
|
1966
|
+
let value = null;
|
|
1967
|
+
try {
|
|
1968
|
+
const health = await apiRequest("/route-health", { timeoutMs: 8e3 });
|
|
1969
|
+
value = health && typeof health === "object" && !Array.isArray(health) ? health : null;
|
|
1970
|
+
} catch {
|
|
1971
|
+
value = null;
|
|
1972
|
+
}
|
|
1973
|
+
cache.health = { at: Date.now(), value };
|
|
1974
|
+
return value;
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
function fetchRwaVaults() {
|
|
1978
|
+
if (nowFresh(cache.vaults)) return Promise.resolve(cache.vaults.value);
|
|
1979
|
+
return once("vaults", async () => {
|
|
1980
|
+
let value = [];
|
|
1981
|
+
try {
|
|
1982
|
+
const payload = await apiRequest("/rwa/vaults?status=active,coming_soon", { timeoutMs: 8e3 });
|
|
1983
|
+
const rows = Array.isArray(payload) ? payload : payload?.vaults;
|
|
1984
|
+
value = Array.isArray(rows) ? rows.filter((v) => !!v && typeof v === "object") : [];
|
|
1985
|
+
} catch {
|
|
1986
|
+
value = [];
|
|
1987
|
+
}
|
|
1988
|
+
cache.vaults = { at: Date.now(), value };
|
|
1989
|
+
return value;
|
|
1990
|
+
});
|
|
1960
1991
|
}
|
|
1961
1992
|
const priceCache = /* @__PURE__ */ new Map();
|
|
1962
1993
|
async function fetchPrices(symbols) {
|
|
@@ -2694,12 +2725,16 @@ function resolveConfig(config = {}) {
|
|
|
2694
2725
|
if (config.getApiKey) return String(await config.getApiKey() || "");
|
|
2695
2726
|
return String(config.apiKey || "");
|
|
2696
2727
|
};
|
|
2728
|
+
const shareable = !config.fetchImpl && !config.getApiKey;
|
|
2697
2729
|
return {
|
|
2698
2730
|
apiBase,
|
|
2699
2731
|
getApiKey,
|
|
2700
2732
|
fetchImpl,
|
|
2701
2733
|
rpcOverrides: config.rpcOverrides ?? {},
|
|
2702
|
-
onTransaction: config.onTransaction
|
|
2734
|
+
onTransaction: config.onTransaction,
|
|
2735
|
+
// The key is part of the scope: two keys can see two registries, and never each other's answers.
|
|
2736
|
+
registryScope: shareable ? { fetch: globalThis.fetch, key: `${apiBase}
|
|
2737
|
+
${canAttachApiKey(apiBase, config.trustedApiOrigin) ? String(config.apiKey || "") : ""}` } : void 0
|
|
2703
2738
|
};
|
|
2704
2739
|
}
|
|
2705
2740
|
|
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.10.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) {
|
|
@@ -2696,12 +2727,16 @@ function resolveConfig(config = {}) {
|
|
|
2696
2727
|
if (config.getApiKey) return String(await config.getApiKey() || "");
|
|
2697
2728
|
return String(config.apiKey || "");
|
|
2698
2729
|
};
|
|
2730
|
+
const shareable = !config.fetchImpl && !config.getApiKey;
|
|
2699
2731
|
return {
|
|
2700
2732
|
apiBase,
|
|
2701
2733
|
getApiKey,
|
|
2702
2734
|
fetchImpl,
|
|
2703
2735
|
rpcOverrides: config.rpcOverrides ?? {},
|
|
2704
|
-
onTransaction: config.onTransaction
|
|
2736
|
+
onTransaction: config.onTransaction,
|
|
2737
|
+
// The key is part of the scope: two keys can see two registries, and never each other's answers.
|
|
2738
|
+
registryScope: shareable ? { fetch: globalThis.fetch, key: `${apiBase}
|
|
2739
|
+
${canAttachApiKey(apiBase, config.trustedApiOrigin) ? String(config.apiKey || "") : ""}` } : void 0
|
|
2705
2740
|
};
|
|
2706
2741
|
}
|
|
2707
2742
|
|
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-QEs-XHri.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-QEs-XHri.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. */
|
|
@@ -601,7 +601,7 @@ interface Engine {
|
|
|
601
601
|
*/
|
|
602
602
|
reportSubmission?: ApiClient["reportSubmission"];
|
|
603
603
|
}
|
|
604
|
-
/** Create an engine bound to a config.
|
|
604
|
+
/** 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
605
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
606
606
|
|
|
607
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 };
|
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-QEs-XHri.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-QEs-XHri.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. */
|
|
@@ -601,7 +601,7 @@ interface Engine {
|
|
|
601
601
|
*/
|
|
602
602
|
reportSubmission?: ApiClient["reportSubmission"];
|
|
603
603
|
}
|
|
604
|
-
/** Create an engine bound to a config.
|
|
604
|
+
/** 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
605
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
606
606
|
|
|
607
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 };
|
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, 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-BOEY6DG5.js';
|