@glacislabs/stablegenie-zerodelta 4.18.2 → 4.20.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 +2 -0
- package/dist/{chunk-LMK5C6VA.js → chunk-FXH7TCJ5.js} +1130 -116
- package/dist/{chunk-OIJN6SHV.js → chunk-JIQRTR3C.js} +1532 -182
- package/dist/core/index.cjs +1566 -181
- package/dist/core/index.d.cts +26 -5
- package/dist/core/index.d.ts +26 -5
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +2797 -500
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{mount-BSXfSSP2.d.cts → mount-D2tDkHea.d.cts} +1 -1
- package/dist/{mount-BdxMZC70.d.ts → mount-DuTF5CQV.d.ts} +1 -1
- package/dist/mount.cjs +2797 -500
- 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 +221 -9
- package/dist/{verify-BBREdvIM.d.cts → verify-UqDjAVxa.d.cts} +470 -2
- package/dist/{verify-BBREdvIM.d.ts → verify-UqDjAVxa.d.ts} +470 -2
- package/package.json +1 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NormalizedOrder, s as ApiClient, t as SwapInput, P as Plan, C as Compliance, S as SanitizedTxEntry, T as Token, Q as Quote, u as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, v as RwaVault, F as FetchQuoteFn, w as SolveResult, O as OrderRequest, x as BalanceTarget, y as BalanceEntry, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export {
|
|
1
|
+
import { N as NormalizedOrder, s as ApiClient, t as SwapInput, P as Plan, C as Compliance, S as SanitizedTxEntry, T as Token, Q as Quote, u as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, v as RwaVault, F as FetchQuoteFn, w as SolveResult, O as OrderRequest, x as BalanceTarget, y as BalanceEntry, z as PlannedTx, Z as ZdHeavyExpected, D as Verifier, G as Promotion, f as ExchangeProduct, i as TxHistoryEntry, E as EngineConfig } from '../verify-UqDjAVxa.cjs';
|
|
2
|
+
export { H as Address, I as ApiError, A as Availability, J as BLOCK_LABEL_DEFAULT, K as BonusInputs, B as BrokenLane, M as CENTIBIPS_PER_UNIT, U as COMPLIANCE_CHECK_ORDER, X as COMPLIANCE_DENY_LABEL, Y as CatalogueContext, _ as CatalogueInput, $ as CompareContext, a0 as CompareHop, a1 as CompareOption, c as ComplianceCheck, a2 as ComplianceCheckId, a3 as ComplianceDecision, d as ComplianceTone, e as ComplianceView, a4 as CornerTag, a5 as DIRECT_CHECK_IDS, a6 as DIRECT_SCOPE_NOTE, a7 as Destination, a8 as FLOOR_CATEGORIES, a9 as GatewayEvmTx, aa as Hex, ab as InsteadFigures, ac as LaneAvailabilityState, L as LaneLimit, ad as MAX_QUOTE_CARDS, ae as Parity, af as PlannedTxKind, ag as PromotedAsset, ah as PromotedNetwork, ai as PromotionFunder, aj as PromotionKind, ak as PromotionToken, al as QuoteBlock, am as QuoteOption, an as ResolvedConfig, ao as RouteBadge, ap as RouteHealth, aq as RouteHealthAvailability, ar as RouteHealthLane, g as RouteLeg, as as SCREENING_BUCKETS, at as ScreenProvider, au as ScreeningBucket, av as ScreeningOutcome, aw as SwapEnds, ax as TUNABLE_CATEGORIES, ay as TagTone, az as TxPlan, V as VerifyResult, aA as WAIT_MAX_SEC, aB as WAIT_MIN_SEC, aC as WAIT_POSITIONS, aD as WAIT_STEP_SEC, aE as WaitScale, W as WalletScreen, aF as ZD_HEAVY_KEY_PREFIX, aG as amountFieldError, aH as apiError, j as assetClassOf, aI as bestOutputOption, aJ as blockLabelFor, aK as bonusFigure, aL as bonusPercentLabel, aM as brokenLaneFor, k as brokenLaneReason, aN as buildCatalogue, aO as canAttachApiKey, aP as categoryLabel, aQ as clampWait, aR as classifyQuoteError, aS as compareAmount, aT as compareDuration, aU as compareFeeUsd, aV as compareHops, aW as compareOptionOf, aX as compareOptionsOf, l as complianceChecks, aY as complianceControlsEvaluated, m as complianceControlsLine, aZ as complianceReasonHead, a_ as complianceReasonTag, a$ as complianceTagOf, n as complianceView, b0 as cornerTags, o as counterpartTokens, b1 as createApiClient, b2 as createVerifier, p as destinationAvailability, b3 as destinationKeys, b4 as directComplianceFromScreens, b5 as distinctScreenedWallets, b6 as estimateBonus, b7 as exceedsLaneLimit, b8 as executableRoutes, b9 as executionChainIds, ba as extraVsFastest, bb as fastestOption, q as formatJurisdiction, bc as fundedByLabel, bd as hasReachableDestination, be as hubDeliverableSymbols, r as humanizeComplianceReason, bf as insteadFigures, bg as isExecutableBridge, bh as isKnownUnbridgeable, bi as isSellableRwa, bj as isSourceToken, bk as laneAvailabilityState, bl as laneKey, bm as laneKeys, bn as laneLimitAmount, bo as laneLimitError, bp as laneLimitFor, bq as laneLimitHint, br as laneLimitSymbol, bs as limitedLanes, bt as pairPromotionsInto, bu as parity, bv as parseAllowedApiBase, bw as parsePromotion, bx as parsePromotions, by as pickForWait, bz as priceCompareOptions, bA as productAssets, bB as promotedAssets, bC as promotionFor, bD as proposedWait, bE as registryRpc, bF as resolveApiBase, bG as resolveConfig, bH as routeBadges, bI as routeShapeLabel, bJ as sameAddress, bK as screeningOutcomeOf, bL as selectableOptions, bM as snapWait, bN as sourceKeys, bO as suppressedLanes, bP as tokenKey, bQ as txMatchesPlan, bR as unattributedComplianceReasons, bS as usdStablePair, bT as visibleOptions, bU as waitFraction, bV as waitFromFraction, bW as waitLabel, bX as waitScaleFor, bY as zdHeavyOptionKey, bZ as zdHeavyUnavailableStatus } from '../verify-UqDjAVxa.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. */
|
|
@@ -445,6 +445,8 @@ interface DeliveryStatus {
|
|
|
445
445
|
/** The gateway's word for the user's journey (`pending`, `fill_failed`…), or "" before it answers. */
|
|
446
446
|
status: string;
|
|
447
447
|
steps: DeliveryStep[];
|
|
448
|
+
/** ZD Heavy only: a cancelled order whose refund the router paid out (a `refunded` step). */
|
|
449
|
+
refunded?: boolean;
|
|
448
450
|
}
|
|
449
451
|
declare const TRACKING: DeliveryStatus;
|
|
450
452
|
/**
|
|
@@ -688,6 +690,18 @@ interface SolveArgs {
|
|
|
688
690
|
}
|
|
689
691
|
declare function solveExactOut({ option, destination, destinationToken, payer, fetchQuote }: SolveArgs): Promise<SolveResult>;
|
|
690
692
|
declare function solveExactIn({ option, destination, destinationToken, payer, fetchQuote, amountInRaw }: SolveArgs): Promise<SolveResult>;
|
|
693
|
+
/**
|
|
694
|
+
* The same solve, answered by ANOTHER option of the very quote it priced — what the quote comparison
|
|
695
|
+
* signs when a holder picks that option (Mirrors zd-dapp src/components/CompareQuotesDialog.tsx: a
|
|
696
|
+
* pick acts on an option the gateway already returned; it never asks for a new quote).
|
|
697
|
+
*
|
|
698
|
+
* Nothing is re-requested, so the input stays the one this widget sent (FIX A1 holds: the option is
|
|
699
|
+
* projected with the request's own coordinates, and the echo is re-checked here). Exact-in keeps the
|
|
700
|
+
* rule that the guaranteed output must be positive; exact-out keeps the target, so an option that
|
|
701
|
+
* delivers less than it is a SHORT route, never a silently smaller payment. The result is then
|
|
702
|
+
* built by `buildRoute` exactly like the selected one, every binding check included.
|
|
703
|
+
*/
|
|
704
|
+
declare function resultForOption(result: SolveResult, option: Quote, mode: "exact-in" | "exact-out", destinationChainId: number | string): SolveResult;
|
|
691
705
|
|
|
692
706
|
/**
|
|
693
707
|
* How long the order should live, per the gateway, for the lane it just priced.
|
|
@@ -772,6 +786,7 @@ interface BuildRouteArgs {
|
|
|
772
786
|
/** The registry, used ONLY to name the intermediate hop of a chained order. Omit and a two-leg
|
|
773
787
|
* route still reports both legs — the middle asset simply goes unnamed. */
|
|
774
788
|
tokens?: Token[];
|
|
789
|
+
routes?: Route[];
|
|
775
790
|
payer: string;
|
|
776
791
|
fetchQuote: FetchQuoteFn;
|
|
777
792
|
solve?: typeof solveExactOut;
|
|
@@ -785,7 +800,7 @@ interface BuildRouteArgs {
|
|
|
785
800
|
*/
|
|
786
801
|
compliance?: Compliance;
|
|
787
802
|
}
|
|
788
|
-
declare function buildRoute(
|
|
803
|
+
declare function buildRoute(args: BuildRouteArgs): Promise<RouteResult>;
|
|
789
804
|
|
|
790
805
|
interface PayRequest {
|
|
791
806
|
address: string;
|
|
@@ -822,7 +837,7 @@ declare function planMsgValueHex(route: RouteResult | undefined | null): string
|
|
|
822
837
|
* Validate a single planned tx before signing.
|
|
823
838
|
* @param expectedRecipient the destination address the transfer must pay (the merchant/receiver).
|
|
824
839
|
*/
|
|
825
|
-
declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, route: RouteResult, expectedRecipient: string): boolean;
|
|
840
|
+
declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, route: RouteResult, expectedRecipient: string, heavyExpected?: ZdHeavyExpected): boolean;
|
|
826
841
|
/** Whether an existing ERC-20 allowance already covers an approve tx (lets the flow skip it). */
|
|
827
842
|
declare function allowanceCovers(tx: PlannedTx, account: string, ethCall: (to: string, data: string) => Promise<string>): Promise<boolean>;
|
|
828
843
|
|
|
@@ -988,6 +1003,12 @@ interface Engine {
|
|
|
988
1003
|
fetchQuote: ApiClient["fetchQuote"];
|
|
989
1004
|
/** USD prices by upper-cased symbol, for display only. Never rejects; an unpriced symbol is absent. */
|
|
990
1005
|
fetchPrices: (symbols: readonly string[]) => Promise<Record<string, number>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* The gateway's active bonus offers (`GET /promotions`), malformed rows dropped. Display only:
|
|
1008
|
+
* whether a bonus is paid is the quote's to decide. Never rejects; a failed read is `[]`. Optional
|
|
1009
|
+
* on the type because a host may hold an engine built before it existed.
|
|
1010
|
+
*/
|
|
1011
|
+
fetchPromotions?: () => Promise<Promotion[]>;
|
|
991
1012
|
/**
|
|
992
1013
|
* The selectable catalogue, derived from the LIVE registry — `/chains`, `/tokens`, `/routes` and
|
|
993
1014
|
* the gateway's measured `/route-health`, resolved with the same rules the ZeroDelta dapp uses.
|
|
@@ -1048,4 +1069,4 @@ interface Engine {
|
|
|
1048
1069
|
/** 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). */
|
|
1049
1070
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
1050
1071
|
|
|
1051
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BUNDLED_SOLANA_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, type DeliveryPhase, type DeliveryStatus, type DeliveryStep, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, type ExpectedOrder, 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, type NativeSolanaOption, type NativeSolanaQuote, type NativeSolanaQuoteRequest, NormalizedOrder, OrderRequest, PREVIEW_OWNER, type ParsedSolanaTransaction, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, 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, SanitizedTxEntry, type SolanaBridge, type SolanaOrderCost, type SolanaProgress, type SolanaProgressStage, type SolanaRpc, type SolanaRpcAccount, SolanaSendError, type SolanaSigner, type SolanaSourceInput, type SolanaSourcePlan, type SolanaSourcePreview, type SolanaSubmitOrder, type SolanaTransaction, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TOKEN_2022_PROGRAM, TOKEN_PROGRAM, TRACKING, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, cosignSolanaEvent, createEngine, createSolanaRpc, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, executeSolanaPlan, executeSolanaPlanStaged, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatNative, formatUnits, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, isAddress, isChainAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSolanaAddress, isSolanaChainId, isSubmitOrder, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, withVaultArtwork };
|
|
1072
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BUNDLED_SOLANA_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, type DeliveryPhase, type DeliveryStatus, type DeliveryStep, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, type ExpectedOrder, 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, type NativeSolanaOption, type NativeSolanaQuote, type NativeSolanaQuoteRequest, NormalizedOrder, OrderRequest, PREVIEW_OWNER, type ParsedSolanaTransaction, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, Promotion, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, 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, SanitizedTxEntry, type SolanaBridge, type SolanaOrderCost, type SolanaProgress, type SolanaProgressStage, type SolanaRpc, type SolanaRpcAccount, SolanaSendError, type SolanaSigner, type SolanaSourceInput, type SolanaSourcePlan, type SolanaSourcePreview, type SolanaSubmitOrder, type SolanaTransaction, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TOKEN_2022_PROGRAM, TOKEN_PROGRAM, TRACKING, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, cosignSolanaEvent, createEngine, createSolanaRpc, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, executeSolanaPlan, executeSolanaPlanStaged, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatNative, formatUnits, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, isAddress, isChainAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSolanaAddress, isSolanaChainId, isSubmitOrder, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, resultForOption, routeNativeValue, safeTicker, scaleDecimals, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, withVaultArtwork };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NormalizedOrder, s as ApiClient, t as SwapInput, P as Plan, C as Compliance, S as SanitizedTxEntry, T as Token, Q as Quote, u as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, v as RwaVault, F as FetchQuoteFn, w as SolveResult, O as OrderRequest, x as BalanceTarget, y as BalanceEntry, z as PlannedTx, D as Verifier, f as ExchangeProduct, i as TxHistoryEntry, E as EngineConfig } from '../verify-
|
|
2
|
-
export {
|
|
1
|
+
import { N as NormalizedOrder, s as ApiClient, t as SwapInput, P as Plan, C as Compliance, S as SanitizedTxEntry, T as Token, Q as Quote, u as PayOption, h as RouteResult, b as Chain, R as Route, a as Catalogue, v as RwaVault, F as FetchQuoteFn, w as SolveResult, O as OrderRequest, x as BalanceTarget, y as BalanceEntry, z as PlannedTx, Z as ZdHeavyExpected, D as Verifier, G as Promotion, f as ExchangeProduct, i as TxHistoryEntry, E as EngineConfig } from '../verify-UqDjAVxa.js';
|
|
2
|
+
export { H as Address, I as ApiError, A as Availability, J as BLOCK_LABEL_DEFAULT, K as BonusInputs, B as BrokenLane, M as CENTIBIPS_PER_UNIT, U as COMPLIANCE_CHECK_ORDER, X as COMPLIANCE_DENY_LABEL, Y as CatalogueContext, _ as CatalogueInput, $ as CompareContext, a0 as CompareHop, a1 as CompareOption, c as ComplianceCheck, a2 as ComplianceCheckId, a3 as ComplianceDecision, d as ComplianceTone, e as ComplianceView, a4 as CornerTag, a5 as DIRECT_CHECK_IDS, a6 as DIRECT_SCOPE_NOTE, a7 as Destination, a8 as FLOOR_CATEGORIES, a9 as GatewayEvmTx, aa as Hex, ab as InsteadFigures, ac as LaneAvailabilityState, L as LaneLimit, ad as MAX_QUOTE_CARDS, ae as Parity, af as PlannedTxKind, ag as PromotedAsset, ah as PromotedNetwork, ai as PromotionFunder, aj as PromotionKind, ak as PromotionToken, al as QuoteBlock, am as QuoteOption, an as ResolvedConfig, ao as RouteBadge, ap as RouteHealth, aq as RouteHealthAvailability, ar as RouteHealthLane, g as RouteLeg, as as SCREENING_BUCKETS, at as ScreenProvider, au as ScreeningBucket, av as ScreeningOutcome, aw as SwapEnds, ax as TUNABLE_CATEGORIES, ay as TagTone, az as TxPlan, V as VerifyResult, aA as WAIT_MAX_SEC, aB as WAIT_MIN_SEC, aC as WAIT_POSITIONS, aD as WAIT_STEP_SEC, aE as WaitScale, W as WalletScreen, aF as ZD_HEAVY_KEY_PREFIX, aG as amountFieldError, aH as apiError, j as assetClassOf, aI as bestOutputOption, aJ as blockLabelFor, aK as bonusFigure, aL as bonusPercentLabel, aM as brokenLaneFor, k as brokenLaneReason, aN as buildCatalogue, aO as canAttachApiKey, aP as categoryLabel, aQ as clampWait, aR as classifyQuoteError, aS as compareAmount, aT as compareDuration, aU as compareFeeUsd, aV as compareHops, aW as compareOptionOf, aX as compareOptionsOf, l as complianceChecks, aY as complianceControlsEvaluated, m as complianceControlsLine, aZ as complianceReasonHead, a_ as complianceReasonTag, a$ as complianceTagOf, n as complianceView, b0 as cornerTags, o as counterpartTokens, b1 as createApiClient, b2 as createVerifier, p as destinationAvailability, b3 as destinationKeys, b4 as directComplianceFromScreens, b5 as distinctScreenedWallets, b6 as estimateBonus, b7 as exceedsLaneLimit, b8 as executableRoutes, b9 as executionChainIds, ba as extraVsFastest, bb as fastestOption, q as formatJurisdiction, bc as fundedByLabel, bd as hasReachableDestination, be as hubDeliverableSymbols, r as humanizeComplianceReason, bf as insteadFigures, bg as isExecutableBridge, bh as isKnownUnbridgeable, bi as isSellableRwa, bj as isSourceToken, bk as laneAvailabilityState, bl as laneKey, bm as laneKeys, bn as laneLimitAmount, bo as laneLimitError, bp as laneLimitFor, bq as laneLimitHint, br as laneLimitSymbol, bs as limitedLanes, bt as pairPromotionsInto, bu as parity, bv as parseAllowedApiBase, bw as parsePromotion, bx as parsePromotions, by as pickForWait, bz as priceCompareOptions, bA as productAssets, bB as promotedAssets, bC as promotionFor, bD as proposedWait, bE as registryRpc, bF as resolveApiBase, bG as resolveConfig, bH as routeBadges, bI as routeShapeLabel, bJ as sameAddress, bK as screeningOutcomeOf, bL as selectableOptions, bM as snapWait, bN as sourceKeys, bO as suppressedLanes, bP as tokenKey, bQ as txMatchesPlan, bR as unattributedComplianceReasons, bS as usdStablePair, bT as visibleOptions, bU as waitFraction, bV as waitFromFraction, bW as waitLabel, bX as waitScaleFor, bY as zdHeavyOptionKey, bZ as zdHeavyUnavailableStatus } from '../verify-UqDjAVxa.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. */
|
|
@@ -445,6 +445,8 @@ interface DeliveryStatus {
|
|
|
445
445
|
/** The gateway's word for the user's journey (`pending`, `fill_failed`…), or "" before it answers. */
|
|
446
446
|
status: string;
|
|
447
447
|
steps: DeliveryStep[];
|
|
448
|
+
/** ZD Heavy only: a cancelled order whose refund the router paid out (a `refunded` step). */
|
|
449
|
+
refunded?: boolean;
|
|
448
450
|
}
|
|
449
451
|
declare const TRACKING: DeliveryStatus;
|
|
450
452
|
/**
|
|
@@ -688,6 +690,18 @@ interface SolveArgs {
|
|
|
688
690
|
}
|
|
689
691
|
declare function solveExactOut({ option, destination, destinationToken, payer, fetchQuote }: SolveArgs): Promise<SolveResult>;
|
|
690
692
|
declare function solveExactIn({ option, destination, destinationToken, payer, fetchQuote, amountInRaw }: SolveArgs): Promise<SolveResult>;
|
|
693
|
+
/**
|
|
694
|
+
* The same solve, answered by ANOTHER option of the very quote it priced — what the quote comparison
|
|
695
|
+
* signs when a holder picks that option (Mirrors zd-dapp src/components/CompareQuotesDialog.tsx: a
|
|
696
|
+
* pick acts on an option the gateway already returned; it never asks for a new quote).
|
|
697
|
+
*
|
|
698
|
+
* Nothing is re-requested, so the input stays the one this widget sent (FIX A1 holds: the option is
|
|
699
|
+
* projected with the request's own coordinates, and the echo is re-checked here). Exact-in keeps the
|
|
700
|
+
* rule that the guaranteed output must be positive; exact-out keeps the target, so an option that
|
|
701
|
+
* delivers less than it is a SHORT route, never a silently smaller payment. The result is then
|
|
702
|
+
* built by `buildRoute` exactly like the selected one, every binding check included.
|
|
703
|
+
*/
|
|
704
|
+
declare function resultForOption(result: SolveResult, option: Quote, mode: "exact-in" | "exact-out", destinationChainId: number | string): SolveResult;
|
|
691
705
|
|
|
692
706
|
/**
|
|
693
707
|
* How long the order should live, per the gateway, for the lane it just priced.
|
|
@@ -772,6 +786,7 @@ interface BuildRouteArgs {
|
|
|
772
786
|
/** The registry, used ONLY to name the intermediate hop of a chained order. Omit and a two-leg
|
|
773
787
|
* route still reports both legs — the middle asset simply goes unnamed. */
|
|
774
788
|
tokens?: Token[];
|
|
789
|
+
routes?: Route[];
|
|
775
790
|
payer: string;
|
|
776
791
|
fetchQuote: FetchQuoteFn;
|
|
777
792
|
solve?: typeof solveExactOut;
|
|
@@ -785,7 +800,7 @@ interface BuildRouteArgs {
|
|
|
785
800
|
*/
|
|
786
801
|
compliance?: Compliance;
|
|
787
802
|
}
|
|
788
|
-
declare function buildRoute(
|
|
803
|
+
declare function buildRoute(args: BuildRouteArgs): Promise<RouteResult>;
|
|
789
804
|
|
|
790
805
|
interface PayRequest {
|
|
791
806
|
address: string;
|
|
@@ -822,7 +837,7 @@ declare function planMsgValueHex(route: RouteResult | undefined | null): string
|
|
|
822
837
|
* Validate a single planned tx before signing.
|
|
823
838
|
* @param expectedRecipient the destination address the transfer must pay (the merchant/receiver).
|
|
824
839
|
*/
|
|
825
|
-
declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, route: RouteResult, expectedRecipient: string): boolean;
|
|
840
|
+
declare function validatePlannedTransaction(tx: PlannedTx | undefined | null, route: RouteResult, expectedRecipient: string, heavyExpected?: ZdHeavyExpected): boolean;
|
|
826
841
|
/** Whether an existing ERC-20 allowance already covers an approve tx (lets the flow skip it). */
|
|
827
842
|
declare function allowanceCovers(tx: PlannedTx, account: string, ethCall: (to: string, data: string) => Promise<string>): Promise<boolean>;
|
|
828
843
|
|
|
@@ -988,6 +1003,12 @@ interface Engine {
|
|
|
988
1003
|
fetchQuote: ApiClient["fetchQuote"];
|
|
989
1004
|
/** USD prices by upper-cased symbol, for display only. Never rejects; an unpriced symbol is absent. */
|
|
990
1005
|
fetchPrices: (symbols: readonly string[]) => Promise<Record<string, number>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* The gateway's active bonus offers (`GET /promotions`), malformed rows dropped. Display only:
|
|
1008
|
+
* whether a bonus is paid is the quote's to decide. Never rejects; a failed read is `[]`. Optional
|
|
1009
|
+
* on the type because a host may hold an engine built before it existed.
|
|
1010
|
+
*/
|
|
1011
|
+
fetchPromotions?: () => Promise<Promotion[]>;
|
|
991
1012
|
/**
|
|
992
1013
|
* The selectable catalogue, derived from the LIVE registry — `/chains`, `/tokens`, `/routes` and
|
|
993
1014
|
* the gateway's measured `/route-health`, resolved with the same rules the ZeroDelta dapp uses.
|
|
@@ -1048,4 +1069,4 @@ interface Engine {
|
|
|
1048
1069
|
/** 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). */
|
|
1049
1070
|
declare function createEngine(config?: EngineConfig): Engine;
|
|
1050
1071
|
|
|
1051
|
-
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BUNDLED_SOLANA_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, type DeliveryPhase, type DeliveryStatus, type DeliveryStep, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, type ExpectedOrder, 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, type NativeSolanaOption, type NativeSolanaQuote, type NativeSolanaQuoteRequest, NormalizedOrder, OrderRequest, PREVIEW_OWNER, type ParsedSolanaTransaction, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, 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, SanitizedTxEntry, type SolanaBridge, type SolanaOrderCost, type SolanaProgress, type SolanaProgressStage, type SolanaRpc, type SolanaRpcAccount, SolanaSendError, type SolanaSigner, type SolanaSourceInput, type SolanaSourcePlan, type SolanaSourcePreview, type SolanaSubmitOrder, type SolanaTransaction, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TOKEN_2022_PROGRAM, TOKEN_PROGRAM, TRACKING, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, cosignSolanaEvent, createEngine, createSolanaRpc, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, executeSolanaPlan, executeSolanaPlanStaged, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatNative, formatUnits, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, isAddress, isChainAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSolanaAddress, isSolanaChainId, isSubmitOrder, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, routeNativeValue, safeTicker, scaleDecimals, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, withVaultArtwork };
|
|
1072
|
+
export { API_CACHE_TTL_MS, ApiClient, type AssertQuoteArgs, BUNDLED_NATIVE_SYMBOL, BUNDLED_RPC, BUNDLED_SOLANA_RPC, BalanceEntry, type BalanceReader, BalanceTarget, type BuildPayOptionsArgs, type BuildRouteArgs, CANONICAL_DECIMALS, CANONICAL_ESCROW, CANONICAL_INBOUND_BRIDGE, CANONICAL_SOLANA_PROGRAM, CHAIN_DISPLAY_NAMES, Catalogue, Chain, Compliance, DEFAULT_WIDGET_API_BASE, type DecodedOrderRequest, type DecodedSubmitOrder, type DeliveryPhase, type DeliveryStatus, type DeliveryStep, ERC20_ALLOWANCE_SELECTOR, ERC20_APPROVE_SELECTOR, ERC20_BALANCEOF_SELECTOR, ERC20_TRANSFER_SELECTOR, EXECUTABLE_STABLE_ASSETS, type Engine, EngineConfig, ExchangeProduct, type ExpectedOrder, 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, type NativeSolanaOption, type NativeSolanaQuote, type NativeSolanaQuoteRequest, NormalizedOrder, OrderRequest, PREVIEW_OWNER, type ParsedSolanaTransaction, PayOption, type PayRequest, type PaymentWalletContext, Plan, PlannedTx, Promotion, QUOTE_BUFFER_BPS, Quote, Route, RouteResult, RwaVault, SAME_CLASS_STABLE, 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, SanitizedTxEntry, type SolanaBridge, type SolanaOrderCost, type SolanaProgress, type SolanaProgressStage, type SolanaRpc, type SolanaRpcAccount, SolanaSendError, type SolanaSigner, type SolanaSourceInput, type SolanaSourcePlan, type SolanaSourcePreview, type SolanaSubmitOrder, type SolanaTransaction, type SolveArgs, SolveResult, SwapInput, type SwapPreview, TOKEN_2022_PROGRAM, TOKEN_PROGRAM, TRACKING, TRADEABLE_RWA_ASSETS, Token, TxHistoryEntry, type ValidatedSwap, Verifier, WALLET_HISTORY_LIMIT, ZERO_ADDRESS, addressWord, allowanceCovers, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, cosignSolanaEvent, createEngine, createSolanaRpc, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, executeSolanaPlan, executeSolanaPlanStaged, expectedSolanaDelivery, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatNative, formatUnits, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, isAddress, isChainAddress, isDeliverable, isHexAddress, isHexData, isHexQuantity, isLayerZeroRoute, isOnEd25519Curve, isPreparationInstruction, isSolanaAddress, isSolanaChainId, isSubmitOrder, maxDeadlineSeconds, maxNativeFeeWei, mergeHistory, nativeFeeShortLabel, nativeFeeShortMessage, nativeSymbol, normalizeAddress, normalizeDecimalText, normalizeDelivery, normalizeOrderRequest, normalizeOrderRequests, overwriteBlockhash, parseAddressLookupTable, parseSolanaTransaction, parseUnitsDecimal, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, requiresNativeBridgeFee, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, resultForOption, routeNativeValue, safeTicker, scaleDecimals, serializeSolanaTransaction, sha256, simulateSolanaCost, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, stableGenieIntentSchema, strip0x, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenTicker, uint64Word, uintWord, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, withVaultArtwork };
|
package/dist/core/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, classifyQuoteError, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, cosignSolanaEvent, counterpartTokens, createApiClient, createEngine, createSolanaRpc, createVerifier, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, 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, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, withVaultArtwork } from '../chunk-
|
|
1
|
+
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, CENTIBIPS_PER_UNIT, 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_QUOTE_CARDS, 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, WAIT_MAX_SEC, WAIT_MIN_SEC, WAIT_POSITIONS, WAIT_STEP_SEC, WALLET_HISTORY_LIMIT, ZD_HEAVY_KEY_PREFIX, ZERO_ADDRESS, addressWord, allowanceCovers, amountFieldError, apiError, applyLayerZeroBuffer, askCovers, askTokenDecimals, assertAddress, assertChainAddress, assertQuoteMatchesSelection, assertWalletMessage, assetClassOf, assetDecimals, associatedTokenAddress, base58Decode, base58Encode, base64Decode, base64Encode, bestOutputOption, blockLabelFor, bonusFigure, bonusPercentLabel, brokenLaneFor, brokenLaneReason, buildCatalogue, buildPayOptions, buildRoute, buildSolanaSourcePlan, buildSwapPlan, bytes32Word, bytesEqual, bytesPayload, canAttachApiKey, categoryLabel, chainAddressKey, chainById, chainNameOf, chainSelectable, checkEscrow, checkNativeFee, checkSolanaPlan as checkPlan, checkSolanaPlan, checkSolanaProgram, checkSolanaReceiver, checkSolanaRouteBuffer, clampWait, classifyQuoteError, compareAmount, compareDuration, compareFeeUsd, compareHops, compareOptionOf, compareOptionsOf, complianceChecks, complianceControlsEvaluated, complianceControlsLine, complianceReasonHead, complianceReasonTag, complianceTagOf, complianceView, cornerTags, cosignSolanaEvent, counterpartTokens, createApiClient, createEngine, createSolanaRpc, createVerifier, decodeSolanaSubmitOrder, decodeSolanaSubmitOrder as decodeSubmitOrder, decodeSubmitOrderCalldata, deriveSolanaEvent, destinationAvailability, destinationKeys, directComplianceFromScreens, distinctScreenedWallets, encodeAllowance, encodeApprove, encodeBalanceOf, encodeNextSolanaOrders, encodeSubmitOrder, encodeTransfer, estimateBonus, exceedsLaneLimit, executableRoutes, executeSolanaPlan, executeSolanaPlanStaged, executionChainIds, expectedSolanaDelivery, extraVsFastest, fastestOption, fetchDelivery, fetchPaymentPlan, fetchWalletHistory, finalOf, findProgramAddress, findToken, foldTicker, formatJurisdiction, formatNative, formatUnits, fundedByLabel, hasReachableDestination, hexBytes, hexToSolanaKey, historyEntryFromOrder, historyKey, hubDeliverableSymbols, humanizeComplianceReason, insteadFigures, 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, pairPromotionsInto, parity, parseAddressLookupTable, parseAllowedApiBase, parsePromotion, parsePromotions, parseSolanaTransaction, parseUnitsDecimal, pickForWait, placeSignature, planErrorSummary, planMsgValueHex, pollSolanaConfirmation, previewSolanaSource, priceCompareOptions, productAssets, promotedAssets, promotionFor, proposedWait, quotePartnerId, quotePayOption, quoteSolanaSource, quoteSwapPreview, readSolanaBalance, recommendedDeadlineSeconds, registryRpc, requiresNativeBridgeFee, resolveApiBase, resolveConfig, resolveSolanaKeys, resolveSwapReceiver, resolveVaultIcon, resultForOption, routeBadges, routeNativeValue, routeShapeLabel, safeTicker, sameAddress, scaleDecimals, screeningOutcomeOf, selectableOptions, serializeSolanaTransaction, sha256, simulateSolanaCost, snapWait, solanaBridgeOf, solanaDestinationAsset, solanaKeyBytes, solanaKeyHex, solanaLamportShortfall, solanaPlanNeedsPreparation, solanaQuoteCompliance, solveExactIn, solveExactOut, sourceKeys, stableGenieIntentSchema, strip0x, suppressedLanes, symbolKey, tickerOn, toHexQuantity, tokenEnabled, tokenKey, tokenTicker, txMatchesPlan, uint64Word, uintWord, unattributedComplianceReasons, usdStablePair, validateDestination, validatePlannedTransaction, validateSwap, vaultIconsBySymbol, verifySolanaSubmit, verifySolanaTransaction, verifySolanaSubmit as verifySubmit, verifySolanaTransaction as verifyTransaction, visibleOptions, waitFraction, waitFromFraction, waitLabel, waitScaleFor, withVaultArtwork, zdHeavyOptionKey, zdHeavyUnavailableStatus } from '../chunk-JIQRTR3C.js';
|