@glacislabs/stablegenie-zerodelta 4.20.0 → 4.20.1
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-FXH7TCJ5.js → chunk-4WBNXYOV.js} +1 -1
- package/dist/{chunk-JIQRTR3C.js → chunk-RUHREVDT.js} +3 -2
- package/dist/core/index.cjs +3 -2
- package/dist/core/index.js +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.js +2 -2
- package/dist/mount.cjs +3 -2
- package/dist/mount.js +2 -2
- package/dist/standalone.global.js +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, isSolanaChainId, isSellableRwa, formatUnits, amountFieldError, solanaQuoteCompliance, directComplianceFromScreens, SUPPORTED_CHAIN_IDS, complianceChecks, DIRECT_CHECK_IDS, isSolanaAddress, createEngine, isAddress, checkNativeFee, nativeFeeShortLabel, nativeFeeShortMessage, zdHeavyExpected, preflightZdHeavyPlan, allowanceCovers, validatePlannedTransaction, priceCompareOptions, parity, pickForWait, cornerTags, extraVsFastest, proposedWait, visibleOptions, promotionFor, estimateBonus, pairPromotionsInto, promotedAssets, TRACKING, mergeHistory, hasValidChecksum, solanaPlanNeedsPreparation, SOLANA_CHAIN_ID, clampWait, waitScaleFor, waitFraction, waitLabel, WAIT_POSITIONS, snapWait, WAIT_STEP_SEC, waitFromFraction, compareDuration, compareAmount, unattributedComplianceReasons, distinctScreenedWallets, formatJurisdiction, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC, foldTicker } from './chunk-
|
|
1
|
+
import { CHAIN_DISPLAY_NAMES, EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, complianceView, complianceTagOf, symbolKey, normalizeDecimalText, findToken, laneLimitFor, laneLimitSymbol, tokenTicker, exceedsLaneLimit, assetDecimals, parseUnitsDecimal, counterpartTokens, assetClassOf, brokenLaneFor, brokenLaneReason, destinationAvailability, laneLimitHint, tickerOn, laneLimitError, routeNativeValue, formatNative, nativeSymbol, isSolanaChainId, isSellableRwa, formatUnits, amountFieldError, solanaQuoteCompliance, directComplianceFromScreens, SUPPORTED_CHAIN_IDS, complianceChecks, DIRECT_CHECK_IDS, isSolanaAddress, createEngine, isAddress, checkNativeFee, nativeFeeShortLabel, nativeFeeShortMessage, zdHeavyExpected, preflightZdHeavyPlan, allowanceCovers, validatePlannedTransaction, priceCompareOptions, parity, pickForWait, cornerTags, extraVsFastest, proposedWait, visibleOptions, promotionFor, estimateBonus, pairPromotionsInto, promotedAssets, TRACKING, mergeHistory, hasValidChecksum, solanaPlanNeedsPreparation, SOLANA_CHAIN_ID, clampWait, waitScaleFor, waitFraction, waitLabel, WAIT_POSITIONS, snapWait, WAIT_STEP_SEC, waitFromFraction, compareDuration, compareAmount, unattributedComplianceReasons, distinctScreenedWallets, formatJurisdiction, humanizeComplianceReason, DIRECT_SCOPE_NOTE, categoryLabel, SCREENING_BUCKETS, BUNDLED_RPC, foldTicker } from './chunk-RUHREVDT.js';
|
|
2
2
|
import { createContext, useState, useRef, useMemo, useEffect, useCallback, useId, useLayoutEffect, createElement, useContext, useSyncExternalStore, useReducer } from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -2760,6 +2760,7 @@ function resultForOption(result, option, mode, destinationChainId) {
|
|
|
2760
2760
|
var DEFAULT_DEADLINE_SECONDS = 1800;
|
|
2761
2761
|
var MAX_DEADLINE_SECONDS = 60 * 60;
|
|
2762
2762
|
var ABSOLUTE_MAX_DEADLINE_SECONDS = 24 * 60 * 60;
|
|
2763
|
+
var DEADLINE_CLOCK_SKEW_SECONDS = 120;
|
|
2763
2764
|
function recommendedDeadlineSeconds(quote) {
|
|
2764
2765
|
const recommended = Number(quote?.recommendedDeadlineSeconds);
|
|
2765
2766
|
if (!Number.isFinite(recommended) || recommended <= 0) return DEFAULT_DEADLINE_SECONDS;
|
|
@@ -2855,7 +2856,7 @@ function assertQuoteMatchesSelection({ quote, order, orders, option, destination
|
|
|
2855
2856
|
throw new Error("ZeroDelta order guarantees less than the displayed receive amount.");
|
|
2856
2857
|
}
|
|
2857
2858
|
const maxDeadline = maxDeadlineSeconds(quote);
|
|
2858
|
-
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline) {
|
|
2859
|
+
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline + DEADLINE_CLOCK_SKEW_SECONDS) {
|
|
2859
2860
|
throw new Error("ZeroDelta quote deadline is invalid or too far in the future.");
|
|
2860
2861
|
}
|
|
2861
2862
|
for (let index = 1; index < list.length; index += 1) {
|
|
@@ -4369,7 +4370,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
4369
4370
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
4370
4371
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
4371
4372
|
var WIDGET_CHANNEL = "widget";
|
|
4372
|
-
var WIDGET_VERSION = "4.20.
|
|
4373
|
+
var WIDGET_VERSION = "4.20.1" ;
|
|
4373
4374
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
4374
4375
|
function sanitizeVersion(raw2) {
|
|
4375
4376
|
const v = String(raw2).trim();
|
package/dist/core/index.cjs
CHANGED
|
@@ -3332,6 +3332,7 @@ function resultForOption(result, option, mode, destinationChainId) {
|
|
|
3332
3332
|
var DEFAULT_DEADLINE_SECONDS = 1800;
|
|
3333
3333
|
var MAX_DEADLINE_SECONDS = 60 * 60;
|
|
3334
3334
|
var ABSOLUTE_MAX_DEADLINE_SECONDS = 24 * 60 * 60;
|
|
3335
|
+
var DEADLINE_CLOCK_SKEW_SECONDS = 120;
|
|
3335
3336
|
function recommendedDeadlineSeconds(quote) {
|
|
3336
3337
|
const recommended = Number(quote?.recommendedDeadlineSeconds);
|
|
3337
3338
|
if (!Number.isFinite(recommended) || recommended <= 0) return DEFAULT_DEADLINE_SECONDS;
|
|
@@ -3427,7 +3428,7 @@ function assertQuoteMatchesSelection({ quote, order, orders, option, destination
|
|
|
3427
3428
|
throw new Error("ZeroDelta order guarantees less than the displayed receive amount.");
|
|
3428
3429
|
}
|
|
3429
3430
|
const maxDeadline = maxDeadlineSeconds(quote);
|
|
3430
|
-
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline) {
|
|
3431
|
+
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline + DEADLINE_CLOCK_SKEW_SECONDS) {
|
|
3431
3432
|
throw new Error("ZeroDelta quote deadline is invalid or too far in the future.");
|
|
3432
3433
|
}
|
|
3433
3434
|
for (let index = 1; index < list.length; index += 1) {
|
|
@@ -4930,7 +4931,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
4930
4931
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
4931
4932
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
4932
4933
|
var WIDGET_CHANNEL = "widget";
|
|
4933
|
-
var WIDGET_VERSION = "4.20.
|
|
4934
|
+
var WIDGET_VERSION = "4.20.1" ;
|
|
4934
4935
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
4935
4936
|
function sanitizeVersion(raw2) {
|
|
4936
4937
|
const v = String(raw2).trim();
|
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, 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-
|
|
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-RUHREVDT.js';
|
package/dist/index.cjs
CHANGED
|
@@ -3439,6 +3439,7 @@ function resultForOption(result, option, mode, destinationChainId) {
|
|
|
3439
3439
|
var DEFAULT_DEADLINE_SECONDS = 1800;
|
|
3440
3440
|
var MAX_DEADLINE_SECONDS = 60 * 60;
|
|
3441
3441
|
var ABSOLUTE_MAX_DEADLINE_SECONDS = 24 * 60 * 60;
|
|
3442
|
+
var DEADLINE_CLOCK_SKEW_SECONDS = 120;
|
|
3442
3443
|
function recommendedDeadlineSeconds(quote) {
|
|
3443
3444
|
const recommended = Number(quote?.recommendedDeadlineSeconds);
|
|
3444
3445
|
if (!Number.isFinite(recommended) || recommended <= 0) return DEFAULT_DEADLINE_SECONDS;
|
|
@@ -3534,7 +3535,7 @@ function assertQuoteMatchesSelection({ quote, order, orders, option, destination
|
|
|
3534
3535
|
throw new Error("ZeroDelta order guarantees less than the displayed receive amount.");
|
|
3535
3536
|
}
|
|
3536
3537
|
const maxDeadline = maxDeadlineSeconds(quote);
|
|
3537
|
-
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline) {
|
|
3538
|
+
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline + DEADLINE_CLOCK_SKEW_SECONDS) {
|
|
3538
3539
|
throw new Error("ZeroDelta quote deadline is invalid or too far in the future.");
|
|
3539
3540
|
}
|
|
3540
3541
|
for (let index = 1; index < list.length; index += 1) {
|
|
@@ -4981,7 +4982,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
4981
4982
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
4982
4983
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
4983
4984
|
var WIDGET_CHANNEL = "widget";
|
|
4984
|
-
var WIDGET_VERSION = "4.20.
|
|
4985
|
+
var WIDGET_VERSION = "4.20.1" ;
|
|
4985
4986
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
4986
4987
|
function sanitizeVersion(raw2) {
|
|
4987
4988
|
const v = String(raw2).trim();
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, connectSolanaWallet, darkTheme, disconnectSolanaWallet, discoverSolanaWallets, lightTheme, mount, onSolanaAccountChange, resolveTheme, solanaWalletSigner, useSolanaWallet, watchSolanaWallets } from './chunk-
|
|
2
|
-
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-
|
|
1
|
+
export { CompliancePanel, PaymentIsland, StableGenieExchange, StableGeniePay, StableGenieProvider, StableGenieRwaExchange, StableGenieSwap, connectSolanaWallet, darkTheme, disconnectSolanaWallet, discoverSolanaWallets, lightTheme, mount, onSolanaAccountChange, resolveTheme, solanaWalletSigner, useSolanaWallet, watchSolanaWallets } from './chunk-4WBNXYOV.js';
|
|
2
|
+
export { EXECUTABLE_STABLE_ASSETS, STABLE_ASSETS, SUPPORTED_ASSETS, SUPPORTED_CHAIN_IDS, TRADEABLE_RWA_ASSETS, assetClassOf, brokenLaneReason, complianceChecks, complianceControlsLine, complianceView, counterpartTokens, createEngine, destinationAvailability, formatJurisdiction, humanizeComplianceReason, symbolKey } from './chunk-RUHREVDT.js';
|
package/dist/mount.cjs
CHANGED
|
@@ -3420,6 +3420,7 @@ function resultForOption(result, option, mode, destinationChainId) {
|
|
|
3420
3420
|
var DEFAULT_DEADLINE_SECONDS = 1800;
|
|
3421
3421
|
var MAX_DEADLINE_SECONDS = 60 * 60;
|
|
3422
3422
|
var ABSOLUTE_MAX_DEADLINE_SECONDS = 24 * 60 * 60;
|
|
3423
|
+
var DEADLINE_CLOCK_SKEW_SECONDS = 120;
|
|
3423
3424
|
function recommendedDeadlineSeconds(quote) {
|
|
3424
3425
|
const recommended = Number(quote?.recommendedDeadlineSeconds);
|
|
3425
3426
|
if (!Number.isFinite(recommended) || recommended <= 0) return DEFAULT_DEADLINE_SECONDS;
|
|
@@ -3515,7 +3516,7 @@ function assertQuoteMatchesSelection({ quote, order, orders, option, destination
|
|
|
3515
3516
|
throw new Error("ZeroDelta order guarantees less than the displayed receive amount.");
|
|
3516
3517
|
}
|
|
3517
3518
|
const maxDeadline = maxDeadlineSeconds(quote);
|
|
3518
|
-
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline) {
|
|
3519
|
+
if (!Number.isFinite(deadline) || deadline <= now || deadline > now + maxDeadline + DEADLINE_CLOCK_SKEW_SECONDS) {
|
|
3519
3520
|
throw new Error("ZeroDelta quote deadline is invalid or too far in the future.");
|
|
3520
3521
|
}
|
|
3521
3522
|
for (let index = 1; index < list.length; index += 1) {
|
|
@@ -4962,7 +4963,7 @@ var CHANNEL_HEADER = "x-zd-channel";
|
|
|
4962
4963
|
var CHANNEL_VERSION_HEADER = "x-zd-channel-version";
|
|
4963
4964
|
var CHANNEL_ORIGIN_HEADER = "x-zd-channel-origin";
|
|
4964
4965
|
var WIDGET_CHANNEL = "widget";
|
|
4965
|
-
var WIDGET_VERSION = "4.20.
|
|
4966
|
+
var WIDGET_VERSION = "4.20.1" ;
|
|
4966
4967
|
var MAX_CHANNEL_VERSION_LEN = 32;
|
|
4967
4968
|
function sanitizeVersion(raw2) {
|
|
4968
4969
|
const v = String(raw2).trim();
|
package/dist/mount.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { mount } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { mount } from './chunk-4WBNXYOV.js';
|
|
2
|
+
import './chunk-RUHREVDT.js';
|