@glacislabs/stablegenie-zerodelta 4.15.1 → 4.17.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/README.md +5 -2
- package/dist/{chunk-SKVRYU3E.js → chunk-5GVQQIGQ.js} +99 -19
- package/dist/{chunk-Z3W6DRWG.js → chunk-TIMSRHXC.js} +176 -59
- package/dist/core/index.cjs +101 -18
- package/dist/core/index.d.cts +23 -4
- package/dist/core/index.d.ts +23 -4
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +279 -82
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-DRCSjQp0.d.cts → mount-BSXfSSP2.d.cts} +1 -1
- package/dist/{mount-CMsgFE6g.d.ts → mount-BdxMZC70.d.ts} +1 -1
- package/dist/mount.cjs +279 -82
- 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 +10 -8
- package/dist/{verify-CoPaE02j.d.cts → verify-BBREdvIM.d.cts} +3 -0
- package/dist/{verify-CoPaE02j.d.ts → verify-BBREdvIM.d.ts} +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ sits in a payment path.
|
|
|
168
168
|
| `trustedApiOrigin` | — | The single absolute origin permitted to receive `apiKey`, e.g. `https://pay.example.com`. Omit and no absolute origin is trusted — same-origin only. |
|
|
169
169
|
| `provider` | EIP-6963 / `window.ethereum` | Inject the host's EIP-1193 provider to reuse an existing connection. |
|
|
170
170
|
| `theme` | light/dark | `{ accent, bg, surface, text, border, radius, font, mode }` — mirrors the ZeroDelta palette. |
|
|
171
|
-
| `rpcOverrides` | registry / bundled | Per-chain RPC for on-chain settlement verification. |
|
|
171
|
+
| `rpcOverrides` | registry / bundled | Per-chain RPC for on-chain settlement verification. Key `1151111081099710` (Solana) replaces the bundled Solana RPCs. |
|
|
172
172
|
|
|
173
173
|
`StableGenieProvider` can supply these once for multiple widgets.
|
|
174
174
|
|
|
@@ -194,7 +194,10 @@ The wallet always owns the final signature. In addition:
|
|
|
194
194
|
`eth_getTransactionReceipt` with status `0x1` over a bundled public RPC before reporting success.
|
|
195
195
|
A broadcast-but-unmined or reverted transaction surfaces as `pending`/`reverted`, and **`onSuccess`
|
|
196
196
|
does not fire** for either — treat that callback as "the money moved", because that is what it means.
|
|
197
|
-
- **No telemetry.** The only network calls are to your `apiBase`, to the RPC used for verification
|
|
197
|
+
- **No telemetry.** The only network calls are to your `apiBase`, to the RPC used for verification
|
|
198
|
+
(for a Solana payment, `solana-rpc.publicnode.com` then `api.mainnet-beta.solana.com`, from the
|
|
199
|
+
payer's browser — add both to your CSP `connect-src`, or every Solana call falls back to your
|
|
200
|
+
proxy's `/solana-rpc` relay),
|
|
198
201
|
and image loads for token artwork: the registry's https `logoUrl` when it ships one, otherwise the
|
|
199
202
|
same CoinGecko images the ZeroDelta dapp draws (`BUNDLED_TOKEN_LOGO`, `coin-images.coingecko.com`).
|
|
200
203
|
Chain marks are embedded in the bundle and load nothing. A blocked or failed image falls back to
|
|
@@ -158,6 +158,7 @@ var BUNDLED_RPC = {
|
|
|
158
158
|
42161: "https://arb1.arbitrum.io/rpc",
|
|
159
159
|
98866: "https://rpc.plume.org"
|
|
160
160
|
};
|
|
161
|
+
var BUNDLED_SOLANA_RPC = ["https://solana-rpc.publicnode.com", "https://api.mainnet-beta.solana.com"];
|
|
161
162
|
var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
162
163
|
1: "Ethereum",
|
|
163
164
|
10: "Optimism",
|
|
@@ -197,7 +198,9 @@ var CHAIN_DISPLAY_NAMES = Object.freeze({
|
|
|
197
198
|
9745: "Plasma",
|
|
198
199
|
34443: "Mode",
|
|
199
200
|
42161: "Arbitrum One",
|
|
200
|
-
|
|
201
|
+
// "Avalanche", as the dApp prints it since zd-dapp#582 (from ZD Heavy's /chains). The widget's
|
|
202
|
+
// registry read lists no row for a payout-only chain, so this table is what names it here.
|
|
203
|
+
43114: "Avalanche",
|
|
201
204
|
48900: "Zircuit",
|
|
202
205
|
57073: "Ink",
|
|
203
206
|
59144: "Linea",
|
|
@@ -1204,7 +1207,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
1204
1207
|
if (refusal(token)) continue;
|
|
1205
1208
|
seen.add(key);
|
|
1206
1209
|
const payKey = symbolKey(token.symbol);
|
|
1207
|
-
const
|
|
1210
|
+
const direct2 = chainId === invoiceChain && payKey === invoiceKey;
|
|
1208
1211
|
options.push({
|
|
1209
1212
|
symbol: token.symbol,
|
|
1210
1213
|
symbolKey: payKey,
|
|
@@ -1217,7 +1220,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
1217
1220
|
logoUrl: token.logoUrl,
|
|
1218
1221
|
bridge: routeBridge.get(`${payKey}:${chainId}`) || token.bridge,
|
|
1219
1222
|
sameChain: chainId === invoiceChain,
|
|
1220
|
-
direct
|
|
1223
|
+
direct: direct2
|
|
1221
1224
|
});
|
|
1222
1225
|
}
|
|
1223
1226
|
options.sort((a, b) => {
|
|
@@ -1238,6 +1241,56 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
|
|
|
1238
1241
|
return options;
|
|
1239
1242
|
}
|
|
1240
1243
|
|
|
1244
|
+
// src/core/solana-rpc.ts
|
|
1245
|
+
var ATTEMPT_TIMEOUT_MS = 12e3;
|
|
1246
|
+
var REFUSAL_CODES = /* @__PURE__ */ new Set([-32005, -32029, -32052, 403, 429]);
|
|
1247
|
+
function refusesService(body) {
|
|
1248
|
+
const error = body.error;
|
|
1249
|
+
if (!error) return false;
|
|
1250
|
+
if (REFUSAL_CODES.has(error.code)) return true;
|
|
1251
|
+
return error.code === -32602 && /personal token/i.test(String(error.message ?? ""));
|
|
1252
|
+
}
|
|
1253
|
+
function unwrap(body) {
|
|
1254
|
+
if (body.error && solanaLamportShortfall(body.error.data?.logs) !== null) throw new Error(SOL_SHORTFALL_MESSAGE);
|
|
1255
|
+
if (body.error || body.result === void 0) throw new Error(String(body.error?.message || "Invalid Solana RPC response."));
|
|
1256
|
+
return body.result;
|
|
1257
|
+
}
|
|
1258
|
+
async function direct(fetchImpl, url, payload) {
|
|
1259
|
+
const controller = new AbortController();
|
|
1260
|
+
const timer = setTimeout(() => controller.abort(), ATTEMPT_TIMEOUT_MS);
|
|
1261
|
+
try {
|
|
1262
|
+
const response = await fetchImpl(url, { method: "POST", headers: { "Content-Type": "application/json" }, body: payload, signal: controller.signal });
|
|
1263
|
+
if (!response.ok) return { refused: `HTTP ${response.status}` };
|
|
1264
|
+
const body = await response.json().catch(() => null);
|
|
1265
|
+
if (!body || typeof body !== "object" || Array.isArray(body)) return { refused: "not a JSON-RPC body" };
|
|
1266
|
+
if (refusesService(body)) return { refused: `refused (${String(body.error?.code)})` };
|
|
1267
|
+
return { body };
|
|
1268
|
+
} catch (error) {
|
|
1269
|
+
return { refused: controller.signal.aborted ? "timed out" : error instanceof Error ? error.message : String(error) };
|
|
1270
|
+
} finally {
|
|
1271
|
+
clearTimeout(timer);
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function createSolanaRpc(api, fetchImpl = globalThis.fetch?.bind(globalThis), urls = BUNDLED_SOLANA_RPC) {
|
|
1275
|
+
return async (method, params) => {
|
|
1276
|
+
const payload = JSON.stringify({ jsonrpc: "2.0", id: 1, method, params });
|
|
1277
|
+
const refused = [];
|
|
1278
|
+
for (const url of urls) {
|
|
1279
|
+
const attempt = await direct(fetchImpl, url, payload);
|
|
1280
|
+
if ("body" in attempt) return unwrap(attempt.body);
|
|
1281
|
+
refused.push(`${new URL(url).host}: ${attempt.refused}`);
|
|
1282
|
+
}
|
|
1283
|
+
let relayed;
|
|
1284
|
+
try {
|
|
1285
|
+
relayed = await api.apiRequest("/solana-rpc", { method: "POST", body: payload, timeoutMs: 15e3 });
|
|
1286
|
+
} catch (error) {
|
|
1287
|
+
refused.push(`proxy: ${error instanceof Error ? error.message : String(error)}`);
|
|
1288
|
+
throw new Error(`No Solana RPC answered ${method} (${refused.join("; ")}).`);
|
|
1289
|
+
}
|
|
1290
|
+
return unwrap(relayed);
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1241
1294
|
// src/core/solana-source.ts
|
|
1242
1295
|
var CANONICAL_SOLANA_PROGRAM = "zd1E5feCJLNYaPPsBAYkCPMKGVnipYf8God9h917W33";
|
|
1243
1296
|
var MAX_ASK_OVER_FINAL_BPS = 200n;
|
|
@@ -1327,6 +1380,8 @@ function normalizePreview(request, quote, to, amount) {
|
|
|
1327
1380
|
estimatedDuration: Number(option.estimatedTimeSec || 0),
|
|
1328
1381
|
via: null,
|
|
1329
1382
|
nativeFeeRaw: String(option.gasCostSource || "0"),
|
|
1383
|
+
zeroDeltaFeeCentibips: option.zeroDeltaFeeCentibips,
|
|
1384
|
+
zeroDeltaFeeNative: option.zeroDeltaFeeNative,
|
|
1330
1385
|
quote,
|
|
1331
1386
|
option,
|
|
1332
1387
|
txData: option.txData,
|
|
@@ -1364,7 +1419,9 @@ async function previewSolanaSource(api, input) {
|
|
|
1364
1419
|
feeBps: Number(option.feeBps || 0),
|
|
1365
1420
|
estimatedDuration: Number(option.estimatedTimeSec || 0),
|
|
1366
1421
|
via: null,
|
|
1367
|
-
nativeFeeRaw: "0"
|
|
1422
|
+
nativeFeeRaw: "0",
|
|
1423
|
+
zeroDeltaFeeCentibips: option.zeroDeltaFeeCentibips,
|
|
1424
|
+
zeroDeltaFeeNative: option.zeroDeltaFeeNative
|
|
1368
1425
|
};
|
|
1369
1426
|
}
|
|
1370
1427
|
function solanaQuoteCompliance(quote) {
|
|
@@ -1483,18 +1540,6 @@ async function buildSolanaSourcePlan(api, input, quoted) {
|
|
|
1483
1540
|
});
|
|
1484
1541
|
return plan;
|
|
1485
1542
|
}
|
|
1486
|
-
function createSolanaRpc(api) {
|
|
1487
|
-
return async (method, params) => {
|
|
1488
|
-
const body = await api.apiRequest("/solana-rpc", {
|
|
1489
|
-
method: "POST",
|
|
1490
|
-
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params }),
|
|
1491
|
-
timeoutMs: 15e3
|
|
1492
|
-
});
|
|
1493
|
-
if (body.error && solanaLamportShortfall(body.error.data?.logs) !== null) throw new Error(SOL_SHORTFALL_MESSAGE);
|
|
1494
|
-
if (body.error || body.result === void 0) throw new Error(body.error?.message || "Invalid Solana RPC response.");
|
|
1495
|
-
return body.result;
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
1543
|
var SolanaSendError = class extends Error {
|
|
1499
1544
|
constructor(message, signature, sentAt) {
|
|
1500
1545
|
super(message);
|
|
@@ -1641,6 +1686,10 @@ async function readSolanaBalance(rpc, owner, mint) {
|
|
|
1641
1686
|
try {
|
|
1642
1687
|
solanaKeyBytes(owner);
|
|
1643
1688
|
solanaKeyBytes(mint);
|
|
1689
|
+
} catch {
|
|
1690
|
+
return void 0;
|
|
1691
|
+
}
|
|
1692
|
+
try {
|
|
1644
1693
|
const result = await rpc("getTokenAccountsByOwner", [owner, { mint }, { encoding: "jsonParsed", commitment: "confirmed" }]);
|
|
1645
1694
|
if (!Array.isArray(result.value)) throw new Error("Invalid token accounts.");
|
|
1646
1695
|
let total = 0n, decimals;
|
|
@@ -1651,10 +1700,30 @@ async function readSolanaBalance(rpc, owner, mint) {
|
|
|
1651
1700
|
total += BigInt(raw(amount.amount, "token balance"));
|
|
1652
1701
|
}
|
|
1653
1702
|
return total;
|
|
1703
|
+
} catch {
|
|
1704
|
+
}
|
|
1705
|
+
try {
|
|
1706
|
+
return await associatedBalance(rpc, owner, mint);
|
|
1654
1707
|
} catch {
|
|
1655
1708
|
return void 0;
|
|
1656
1709
|
}
|
|
1657
1710
|
}
|
|
1711
|
+
async function associatedBalance(rpc, owner, mint) {
|
|
1712
|
+
const programs = [TOKEN_PROGRAM, TOKEN_2022_PROGRAM];
|
|
1713
|
+
const keys = [...programs.map((p) => associatedTokenAddress(owner, mint, p)), mint];
|
|
1714
|
+
const result = await rpc("getMultipleAccounts", [keys, { encoding: "jsonParsed", commitment: "confirmed" }]);
|
|
1715
|
+
const accounts = result?.value;
|
|
1716
|
+
if (!Array.isArray(accounts) || accounts.length !== keys.length) throw new Error("Invalid token accounts.");
|
|
1717
|
+
if (!accounts[2] || !programs.includes(accounts[2].owner)) throw new Error("Not a token mint.");
|
|
1718
|
+
let total = 0n;
|
|
1719
|
+
for (const [i, account] of accounts.slice(0, 2).entries()) {
|
|
1720
|
+
if (!account) continue;
|
|
1721
|
+
const info = account.data?.parsed?.info;
|
|
1722
|
+
if (account.owner !== programs[i] || info?.mint !== mint) throw new Error("Invalid token account.");
|
|
1723
|
+
total += BigInt(raw(info?.tokenAmount?.amount, "token balance"));
|
|
1724
|
+
}
|
|
1725
|
+
return total;
|
|
1726
|
+
}
|
|
1658
1727
|
function solanaLamportShortfall(logs) {
|
|
1659
1728
|
if (!Array.isArray(logs)) return null;
|
|
1660
1729
|
for (const line of logs) {
|
|
@@ -2189,6 +2258,12 @@ function humanizeComplianceReason(raw2) {
|
|
|
2189
2258
|
}
|
|
2190
2259
|
case "blocked_jurisdiction":
|
|
2191
2260
|
return `Your region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2261
|
+
// zd-dapp src/lib/complianceReason.ts (#588): ZD Heavy's account-country and wallet-origin rules.
|
|
2262
|
+
// Without these two the payer read the raw code ("account blocked country — IR").
|
|
2263
|
+
case "account_blocked_country":
|
|
2264
|
+
return `Your account doesn't support this region (${cleanJurisdiction(detail)}).`;
|
|
2265
|
+
case "blocked_origin_jurisdiction":
|
|
2266
|
+
return `The wallet's attributed region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2192
2267
|
case "blocked_destination_jurisdiction":
|
|
2193
2268
|
return `The destination region (${cleanJurisdiction(detail)}) isn't supported.`;
|
|
2194
2269
|
case "jurisdiction_out_of_scope":
|
|
@@ -2883,6 +2958,8 @@ async function buildRoute({
|
|
|
2883
2958
|
quote: {
|
|
2884
2959
|
bridge: quote.bridge,
|
|
2885
2960
|
feeBps: quote.feeBps,
|
|
2961
|
+
zeroDeltaFeeCentibips: quote.zeroDeltaFeeCentibips,
|
|
2962
|
+
zeroDeltaFeeNative: quote.zeroDeltaFeeNative,
|
|
2886
2963
|
estimatedDuration: quote.estimatedDuration,
|
|
2887
2964
|
gasCostSource: quote.gasCostSource,
|
|
2888
2965
|
msgValue: valueRaw.toString(),
|
|
@@ -2903,7 +2980,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
2903
2980
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
2904
2981
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
2905
2982
|
var WIDGET_CHANNEL = "widget";
|
|
2906
|
-
var WIDGET_VERSION = "4.
|
|
2983
|
+
var WIDGET_VERSION = "4.17.0" ;
|
|
2907
2984
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
2908
2985
|
function sanitizeVersion(raw2) {
|
|
2909
2986
|
const v = String(raw2).trim();
|
|
@@ -3493,6 +3570,8 @@ async function quoteSwapPreview(api, swap, owner) {
|
|
|
3493
3570
|
return {
|
|
3494
3571
|
receive: formatUnits(final, assetDecimals(destToken)),
|
|
3495
3572
|
receiveRaw: final.toString(),
|
|
3573
|
+
zeroDeltaFeeCentibips: quote.zeroDeltaFeeCentibips,
|
|
3574
|
+
zeroDeltaFeeNative: quote.zeroDeltaFeeNative,
|
|
3496
3575
|
fromAmount: v.amountIn,
|
|
3497
3576
|
fromToken: sourceToken.symbol,
|
|
3498
3577
|
toToken: destToken.symbol,
|
|
@@ -4003,7 +4082,8 @@ function createEngine(config = {}) {
|
|
|
4003
4082
|
const resolved = resolveConfig(config);
|
|
4004
4083
|
const api = createApiClient(resolved);
|
|
4005
4084
|
const verifier = createVerifier(api, resolved.fetchImpl, resolved.rpcOverrides);
|
|
4006
|
-
const
|
|
4085
|
+
const solanaOverride = resolved.rpcOverrides[SOLANA_CHAIN_ID];
|
|
4086
|
+
const solanaRpc = createSolanaRpc(api, resolved.fetchImpl, solanaOverride && /^https?:\/\//i.test(solanaOverride) ? [solanaOverride] : BUNDLED_SOLANA_RPC);
|
|
4007
4087
|
return {
|
|
4008
4088
|
api,
|
|
4009
4089
|
verifier,
|
|
@@ -4069,4 +4149,4 @@ function createEngine(config = {}) {
|
|
|
4069
4149
|
};
|
|
4070
4150
|
}
|
|
4071
4151
|
|
|
4072
|
-
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, 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, SOLANA_CHAIN_ID, SOLANA_DESTINATION_ASSETS, SOL_SHORTFALL_MESSAGE, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_DISCRIMINATOR, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SolanaSendError, TRACKING, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, amountFieldError, apiError, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetClassOf, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, canAttachApiKey, categoryLabel, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, cosignSolanaEvent, counterpartTokens, createApiClient, createEngine, createSolanaRpc, createVerifier, decodeSolanaSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, exceedsLaneLimit, executableRoutes, executeSolanaPlan, executeSolanaPlanStaged, executionChainIds, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isChainAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSellableRwa, isSolanaAddress, isSolanaChainId, isSourceToken, isSubmitOrder, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseAllowedApiBase, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, productAssets, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, withVaultArtwork };
|
|
4152
|
+
export { API_CACHE_TTL_MS, BLOCK_LABEL_DEFAULT, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BUNDLED_SOLANA_RPC, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, 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, SOLANA_CHAIN_ID, SOLANA_DESTINATION_ASSETS, SOL_SHORTFALL_MESSAGE, STABLEGENIE_INTENT_TTL_MS, STABLEGENIE_INTENT_VERSION, STABLEGENIE_SUPPORTED_ASSETS, STABLEGENIE_SUPPORTED_CHAIN_IDS, STABLE_ASSETS, SUBMIT_ORDER_DISCRIMINATOR, SUBMIT_ORDER_SELECTOR, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, SolanaSendError, TOKEN_2022_PROGRAM, TOKEN_PROGRAM, TRACKING, TRADEABLE_RWA_ASSETS, TUNABLE_CATEGORIES, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, amountFieldError, apiError, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetClassOf, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, blockLabelFor, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, canAttachApiKey, categoryLabel, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, cosignSolanaEvent, counterpartTokens, createApiClient, createEngine, createSolanaRpc, createVerifier, decodeSolanaSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, exceedsLaneLimit, executableRoutes, executeSolanaPlan, executeSolanaPlanStaged, executionChainIds, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, hasReachableDestination, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, hubDeliverableSymbols, humanizeComplianceReason, isAddress, isChainAddress, isDeliverable, isExecutableBridge, isHexAddress, isHexData, isHexQuantity, isKnownUnbridgeable, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSellableRwa, isSolanaAddress, isSolanaChainId, isSourceToken, isSubmitOrder, laneAvailabilityState, laneKey, laneKeys, laneLimitAmount, laneLimitError, laneLimitFor, laneLimitHint, laneLimitSymbol, limitedLanes, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseAllowedApiBase, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, productAssets, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, screeningOutcomeOf, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, withVaultArtwork };
|