@coinlist-co/react 0.12.1-rc.6b77fc6 → 0.12.1-rc.9aec85a

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.
@@ -1,7 +1,7 @@
1
- import { ar as PaginationParams, as as PaginatedResponse, at as DecimalString, x as StablecoinSymbol, j as OndoBuyTransaction, B as BlockchainAmount, k as OndoSellTransaction, p as Bps, au as SwapStatus, Z as AssetDecimals, b as EvmContractAddress, a as EthereumChain, i as OfferSwapContract, av as Uint256, h as AssetSymbol, q as EvmWalletAddress, aw as KnownAssetSymbol, y as Erc20Asset, ax as Newtype } from '../tokens-namespace-C-BxcYMj.cjs';
2
- export { ay as AllowWalletParams, az as AllowWalletResponse, aA as Asset, aB as AssetCode, e as AssetId, A as AuthorizationCode, aC as Blockchain, _ as BuildOndoBuyParams, $ as BuildOndoSellParams, aD as BuildOndoSwapParamsCore, aE as Chain, ao as ClientCredentialsOAuth, aF as ClientId, ap as ClientSecret, aG as CodeChallenge, C as CodeVerifier, c as CoinListTokenSaleNamespace, f as CoinListTokenSaleNamespaceImpl, u as Config, aH as ConnectExternalWalletParams, aI as CreateKycTokenParams, aJ as CreateParticipationParams, aK as CreateWalletOwnershipChallengeParams, aL as Cursor, a5 as DebugEvent, aM as DocumentFormType, Q as DocumentSubmission, aN as DocumentSubmissionStatus, aO as DocumentType, aP as ETHEREUM_CHAINS, E as Erc20Namespace, aQ as Erc20NamespaceImpl, aR as FaqItem, a6 as FrontlineEventId, aS as GetOndoQuoteParams, aT as GetOndoTradingStatusParams, aU as GetSwapAuthorizationParams, aV as GetSwapPreviewParams, aW as GetTokenAllowanceParams, aX as GetTokenBalanceParams, aY as HexEncodedTransactionData, a7 as HttpError, a8 as HttpResponse, aZ as Isin, a_ as Iso2CountryCode, N as KycLevelName, a9 as KycToken, a$ as Link, b0 as ListOptionAddressesParams, aa as LogBinding, ab as LogBindings, ac as LogCause, ad as LogLevel, ae as LogScope, af as LogValue, L as Logger, b1 as MAX_ASSET_DECIMALS, b2 as MAX_UINT_256, b3 as Milestone, v as OAuthAccessToken, b4 as OAuthRefreshToken, an as OAuthSession, G as Offer, z as OfferDetail, O as OfferId, b5 as OfferOption, K as OfferOptionAddress, a3 as OfferOptionAddressId, d as OfferOptionId, b6 as OfferOptionSlug, b7 as OfferSlug, b8 as OfferToken, F as OfferType, w as OffersNamespace, b9 as OffersNamespaceImpl, g as OndoNamespace, n as OndoNamespaceImpl, a0 as OndoQuote, ba as OndoQuoteDuration, a1 as OndoQuoteSize, bb as OndoSellOutcome, l as OndoSwapTransactionCore, Y as OndoTradingStatus, m as OrderBookSide, bc as PKCEState, bd as PaginatedResponseDto, P as Participation, be as ParticipationId, bf as ParticipationStatus, bg as ParticipationsPaginationParams, bh as PauseFlags, bi as Pii, bj as PiiAddress, bk as PiiJurisdiction, bl as PiiKind, X as PinoLoggerOptions, ag as ProductionLogLevel, bm as QueryParamValue, bn as QueryParamValues, ah as RedactedWalletError, bo as RedirectUri, bp as RemoveOptionAddressParams, ai as RequestId, s as Requirement, bq as RequirementActionNeededReason, M as RequirementId, H as RequirementStatusInfo, J as RequirementStatusValue, I as RequirementType, R as RequirementsNamespace, t as RequirementsNamespaceImpl, br as RpcConfig, aj as RpcFailureReason, bs as SOLANA_CHAINS, bt as STABLE_DECIMALS, ak as SafeEvent, al as SafeFields, bu as SolanaChain, bv as SubmitDocumentParams, S as SuperstateSwapNamespace, r as SuperstateSwapNamespaceImpl, bw as SwapContractRef, bx as SwapPreview, by as TermItem, bz as Ticker, a2 as TokenIdentifier, a4 as TokenLogo, bA as TokenLogoImage, bB as TokenLogoUrl, D as TokenMetadata, bC as TokenRole, T as TokensNamespace, bD as TokensNamespaceImpl, bE as Tx, am as UnredactedFields, bF as WalletAddress, V as WalletChallengeType, W as WalletError, bG as WalletOwnershipChallenge, bH as WalletProtocol, o as WalletsNamespace, bI as WalletsNamespaceImpl, bJ as apiErrorCode, bK as assertUint256, bL as isChain, bM as parseUint256 } from '../tokens-namespace-C-BxcYMj.cjs';
3
- import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, d as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../collections-UYVlXbEh.cjs';
4
- export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, c as EvmSigner, E as EvmWallet, P as PKCEConfig, e as PKCEParams, W as WriteContractParams, g as generatePKCEParams } from '../collections-UYVlXbEh.cjs';
1
+ import { au as PaginationParams, av as PaginatedResponse, aw as DecimalString, x as StablecoinSymbol, j as OndoBuyTransaction, B as BlockchainAmount, k as OndoSellTransaction, p as Bps, ax as SwapStatus, a0 as AssetDecimals, b as EvmContractAddress, a as EthereumChain, i as OfferSwapContract, ay as Uint256, h as AssetSymbol, q as EvmWalletAddress, az as KnownAssetSymbol, y as Erc20Asset, aA as Newtype } from '../tokens-namespace-CIWBtgt2.cjs';
2
+ export { aB as AllowWalletParams, aC as AllowWalletResponse, aD as Asset, aE as AssetCode, e as AssetId, A as AuthorizationCode, aF as Blockchain, a1 as BuildOndoBuyParams, a2 as BuildOndoSellParams, aG as BuildOndoSwapParamsCore, aH as Chain, ar as ClientCredentialsOAuth, aI as ClientId, as as ClientSecret, aJ as CodeChallenge, C as CodeVerifier, c as CoinListTokenSaleNamespace, f as CoinListTokenSaleNamespaceImpl, aK as CoinListTokenSaleOffer, H as CoinListTokenSaleOfferDetail, u as Config, aL as ConnectExternalWalletParams, aM as CreateKycTokenParams, aN as CreateParticipationParams, aO as CreateWalletOwnershipChallengeParams, aP as Cursor, a8 as DebugEvent, aQ as DocumentFormType, Y as DocumentSubmission, aR as DocumentSubmissionStatus, aS as DocumentType, aT as ETHEREUM_CHAINS, E as Erc20Namespace, aU as Erc20NamespaceImpl, aV as FaqItem, a9 as FrontlineEventId, aW as GetOndoQuoteParams, aX as GetOndoTradingStatusParams, aY as GetSwapAuthorizationParams, aZ as GetSwapPreviewParams, a_ as GetTokenAllowanceParams, a$ as GetTokenBalanceParams, b0 as HexEncodedTransactionData, aa as HttpError, ab as HttpResponse, b1 as Isin, b2 as Iso2CountryCode, X as KycLevelName, ac as KycToken, b3 as Link, b4 as ListOptionAddressesParams, ad as LogBinding, ae as LogBindings, af as LogCause, ag as LogLevel, ah as LogScope, ai as LogValue, L as Logger, b5 as MAX_ASSET_DECIMALS, b6 as MAX_UINT_256, b7 as Milestone, v as OAuthAccessToken, b8 as OAuthRefreshToken, aq as OAuthSession, J as Offer, b9 as OfferBase, z as OfferDetail, ba as OfferDetailBase, bb as OfferEditorial, O as OfferId, bc as OfferOption, Q as OfferOptionAddress, a6 as OfferOptionAddressId, d as OfferOptionId, bd as OfferOptionSlug, be as OfferSlug, bf as OfferToken, F as OfferType, w as OffersNamespace, bg as OffersNamespaceImpl, g as OndoNamespace, n as OndoNamespaceImpl, a3 as OndoQuote, bh as OndoQuoteDuration, a4 as OndoQuoteSize, bi as OndoSellOutcome, bj as OndoSwapOffer, G as OndoSwapOfferDetail, l as OndoSwapTransactionCore, $ as OndoTradingStatus, m as OrderBookSide, bk as PKCEState, bl as PaginatedResponseDto, P as Participation, bm as ParticipationId, bn as ParticipationStatus, bo as ParticipationsPaginationParams, bp as PauseFlags, bq as Pii, br as PiiAddress, bs as PiiJurisdiction, bt as PiiKind, _ as PinoLoggerOptions, aj as ProductionLogLevel, bu as QueryParamValue, bv as QueryParamValues, ak as RedactedWalletError, bw as RedirectUri, bx as RemoveOptionAddressParams, al as RequestId, s as Requirement, by as RequirementActionNeededReason, V as RequirementId, K as RequirementStatusInfo, N as RequirementStatusValue, M as RequirementType, R as RequirementsNamespace, t as RequirementsNamespaceImpl, bz as RpcConfig, am as RpcFailureReason, bA as SOLANA_CHAINS, bB as STABLE_DECIMALS, an as SafeEvent, ao as SafeFields, bC as SolanaChain, bD as SubmitDocumentParams, S as SuperstateSwapNamespace, r as SuperstateSwapNamespaceImpl, bE as SuperstateSwapOffer, I as SuperstateSwapOfferDetail, bF as SwapContractRef, bG as SwapPreview, bH as TermItem, bI as Ticker, a5 as TokenIdentifier, a7 as TokenLogo, bJ as TokenLogoImage, bK as TokenLogoUrl, D as TokenMetadata, bL as TokenRole, T as TokensNamespace, bM as TokensNamespaceImpl, bN as Tx, ap as UnredactedFields, bO as WalletAddress, Z as WalletChallengeType, W as WalletError, bP as WalletOwnershipChallenge, bQ as WalletProtocol, o as WalletsNamespace, bR as WalletsNamespaceImpl, bS as apiErrorCode, bT as assertUint256, bU as isChain, bV as isOfferType, bW as parseUint256 } from '../tokens-namespace-CIWBtgt2.cjs';
3
+ import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, e as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../token-registry-snapshot-CqI6dXM_.cjs';
4
+ export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, d as EvmSigner, E as EvmWallet, P as PKCEConfig, f as PKCEParams, c as TokenRegistrySnapshot, W as WriteContractParams, g as generatePKCEParams, o as offerDisplayTokens } from '../token-registry-snapshot-CqI6dXM_.cjs';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
6
 
7
7
  /**
@@ -26,15 +26,8 @@ declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>
26
26
  * asks for.
27
27
  */
28
28
  declare const ONDO_POLL_INTERVAL_MS = 15000;
29
- /**
30
- * How close to its deadline a built transaction stops being offerable.
31
- *
32
- * Placing an order is not instant - the wallet has to prompt, the user has to
33
- * confirm, and the transaction has to reach a node - so calldata with a second
34
- * left is one the contract will reject. Treating the last few seconds as
35
- * already expired turns a paid-for revert into a refresh button.
36
- */
37
- declare const ONDO_QUOTE_EXPIRY_THRESHOLD_MS = 5000;
29
+ /** Max time the review step offers a built quote. */
30
+ declare const ONDO_QUOTE_MAX_TTL_MS = 15000;
38
31
  /**
39
32
  * The order size the sidebar prices against before the user names one.
40
33
  *
@@ -133,6 +126,8 @@ declare function computeOndoBuyPrice(transaction: OndoBuyTransaction): Blockchai
133
126
  * does today. They diverge the day ENG-1718 lands.
134
127
  */
135
128
  declare function computeOndoSellPrice(transaction: OndoSellTransaction): BlockchainAmount;
129
+ /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
130
+ declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
136
131
 
137
132
  /**
138
133
  * The Superstate swap contract's ABI, generated verbatim from the shared
@@ -1278,4 +1273,4 @@ declare const User: {
1278
1273
  fromDto: (dto: UserDto) => User;
1279
1274
  };
1280
1275
 
1281
- export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, DEFAULT_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE, DEFAULT_SLIPPAGE_BPS, DecimalString, ERC20_ABI, Erc20Asset, EthereumChain, EvmContractAddress, EvmWalletAddress, type FormatAmountOptions, FormattedAmountAssetUi, FormattedAmountUi, FormattedPercentUi, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_EXPIRY_THRESHOLD_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OndoBuyTransaction, OndoSellTransaction, PaginatedResponse, PaginationParams, SLIPPAGE_OPTIONS_BPS, SUPERSTATE_ISSUER_NAME, SUPERSTATE_SUPPORTED_INPUT_ASSETS, SUPERSTATE_SWAP_ABI, SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA, SWAP_LEVEL, SWAP_POLL_INTERVAL_MS, ShortenedWalletAddress, StablecoinSymbol, SwapQuote, SwapStatus, TOKEN_REGISTRY, TxExplorerUrl, USDC, USDC_SYMBOL, USDT, USDT_SYMBOL, Uint256, User, UserEmail, UserId, ValidationError, applyBps, assetAmount, blockchainAmountFromRawOrThrow, chainFromId, computeOndoBuyPrice, computeOndoSellPrice, computePrice, computeSlip, decodeSwappedOutputAmount, fetchAllPages, formatAmount, formatBpsAsPercent, formatCompactAmount, formatRawAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
1276
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, DEFAULT_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE, DEFAULT_SLIPPAGE_BPS, DecimalString, ERC20_ABI, Erc20Asset, EthereumChain, EvmContractAddress, EvmWalletAddress, type FormatAmountOptions, FormattedAmountAssetUi, FormattedAmountUi, FormattedPercentUi, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_MAX_TTL_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OndoBuyTransaction, OndoSellTransaction, PaginatedResponse, PaginationParams, SLIPPAGE_OPTIONS_BPS, SUPERSTATE_ISSUER_NAME, SUPERSTATE_SUPPORTED_INPUT_ASSETS, SUPERSTATE_SWAP_ABI, SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA, SWAP_LEVEL, SWAP_POLL_INTERVAL_MS, ShortenedWalletAddress, StablecoinSymbol, SwapQuote, SwapStatus, TOKEN_REGISTRY, TxExplorerUrl, USDC, USDC_SYMBOL, USDT, USDT_SYMBOL, Uint256, User, UserEmail, UserId, ValidationError, applyBps, assetAmount, blockchainAmountFromRawOrThrow, chainFromId, computeOndoBuyPrice, computeOndoSellPrice, computePrice, computeSlip, decodeSwappedOutputAmount, fetchAllPages, formatAmount, formatBpsAsPercent, formatCompactAmount, formatRawAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
@@ -1,7 +1,7 @@
1
- import { ar as PaginationParams, as as PaginatedResponse, at as DecimalString, x as StablecoinSymbol, j as OndoBuyTransaction, B as BlockchainAmount, k as OndoSellTransaction, p as Bps, au as SwapStatus, Z as AssetDecimals, b as EvmContractAddress, a as EthereumChain, i as OfferSwapContract, av as Uint256, h as AssetSymbol, q as EvmWalletAddress, aw as KnownAssetSymbol, y as Erc20Asset, ax as Newtype } from '../tokens-namespace-C-BxcYMj.js';
2
- export { ay as AllowWalletParams, az as AllowWalletResponse, aA as Asset, aB as AssetCode, e as AssetId, A as AuthorizationCode, aC as Blockchain, _ as BuildOndoBuyParams, $ as BuildOndoSellParams, aD as BuildOndoSwapParamsCore, aE as Chain, ao as ClientCredentialsOAuth, aF as ClientId, ap as ClientSecret, aG as CodeChallenge, C as CodeVerifier, c as CoinListTokenSaleNamespace, f as CoinListTokenSaleNamespaceImpl, u as Config, aH as ConnectExternalWalletParams, aI as CreateKycTokenParams, aJ as CreateParticipationParams, aK as CreateWalletOwnershipChallengeParams, aL as Cursor, a5 as DebugEvent, aM as DocumentFormType, Q as DocumentSubmission, aN as DocumentSubmissionStatus, aO as DocumentType, aP as ETHEREUM_CHAINS, E as Erc20Namespace, aQ as Erc20NamespaceImpl, aR as FaqItem, a6 as FrontlineEventId, aS as GetOndoQuoteParams, aT as GetOndoTradingStatusParams, aU as GetSwapAuthorizationParams, aV as GetSwapPreviewParams, aW as GetTokenAllowanceParams, aX as GetTokenBalanceParams, aY as HexEncodedTransactionData, a7 as HttpError, a8 as HttpResponse, aZ as Isin, a_ as Iso2CountryCode, N as KycLevelName, a9 as KycToken, a$ as Link, b0 as ListOptionAddressesParams, aa as LogBinding, ab as LogBindings, ac as LogCause, ad as LogLevel, ae as LogScope, af as LogValue, L as Logger, b1 as MAX_ASSET_DECIMALS, b2 as MAX_UINT_256, b3 as Milestone, v as OAuthAccessToken, b4 as OAuthRefreshToken, an as OAuthSession, G as Offer, z as OfferDetail, O as OfferId, b5 as OfferOption, K as OfferOptionAddress, a3 as OfferOptionAddressId, d as OfferOptionId, b6 as OfferOptionSlug, b7 as OfferSlug, b8 as OfferToken, F as OfferType, w as OffersNamespace, b9 as OffersNamespaceImpl, g as OndoNamespace, n as OndoNamespaceImpl, a0 as OndoQuote, ba as OndoQuoteDuration, a1 as OndoQuoteSize, bb as OndoSellOutcome, l as OndoSwapTransactionCore, Y as OndoTradingStatus, m as OrderBookSide, bc as PKCEState, bd as PaginatedResponseDto, P as Participation, be as ParticipationId, bf as ParticipationStatus, bg as ParticipationsPaginationParams, bh as PauseFlags, bi as Pii, bj as PiiAddress, bk as PiiJurisdiction, bl as PiiKind, X as PinoLoggerOptions, ag as ProductionLogLevel, bm as QueryParamValue, bn as QueryParamValues, ah as RedactedWalletError, bo as RedirectUri, bp as RemoveOptionAddressParams, ai as RequestId, s as Requirement, bq as RequirementActionNeededReason, M as RequirementId, H as RequirementStatusInfo, J as RequirementStatusValue, I as RequirementType, R as RequirementsNamespace, t as RequirementsNamespaceImpl, br as RpcConfig, aj as RpcFailureReason, bs as SOLANA_CHAINS, bt as STABLE_DECIMALS, ak as SafeEvent, al as SafeFields, bu as SolanaChain, bv as SubmitDocumentParams, S as SuperstateSwapNamespace, r as SuperstateSwapNamespaceImpl, bw as SwapContractRef, bx as SwapPreview, by as TermItem, bz as Ticker, a2 as TokenIdentifier, a4 as TokenLogo, bA as TokenLogoImage, bB as TokenLogoUrl, D as TokenMetadata, bC as TokenRole, T as TokensNamespace, bD as TokensNamespaceImpl, bE as Tx, am as UnredactedFields, bF as WalletAddress, V as WalletChallengeType, W as WalletError, bG as WalletOwnershipChallenge, bH as WalletProtocol, o as WalletsNamespace, bI as WalletsNamespaceImpl, bJ as apiErrorCode, bK as assertUint256, bL as isChain, bM as parseUint256 } from '../tokens-namespace-C-BxcYMj.js';
3
- import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, d as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../collections-C6b-rJpx.js';
4
- export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, c as EvmSigner, E as EvmWallet, P as PKCEConfig, e as PKCEParams, W as WriteContractParams, g as generatePKCEParams } from '../collections-C6b-rJpx.js';
1
+ import { au as PaginationParams, av as PaginatedResponse, aw as DecimalString, x as StablecoinSymbol, j as OndoBuyTransaction, B as BlockchainAmount, k as OndoSellTransaction, p as Bps, ax as SwapStatus, a0 as AssetDecimals, b as EvmContractAddress, a as EthereumChain, i as OfferSwapContract, ay as Uint256, h as AssetSymbol, q as EvmWalletAddress, az as KnownAssetSymbol, y as Erc20Asset, aA as Newtype } from '../tokens-namespace-CIWBtgt2.js';
2
+ export { aB as AllowWalletParams, aC as AllowWalletResponse, aD as Asset, aE as AssetCode, e as AssetId, A as AuthorizationCode, aF as Blockchain, a1 as BuildOndoBuyParams, a2 as BuildOndoSellParams, aG as BuildOndoSwapParamsCore, aH as Chain, ar as ClientCredentialsOAuth, aI as ClientId, as as ClientSecret, aJ as CodeChallenge, C as CodeVerifier, c as CoinListTokenSaleNamespace, f as CoinListTokenSaleNamespaceImpl, aK as CoinListTokenSaleOffer, H as CoinListTokenSaleOfferDetail, u as Config, aL as ConnectExternalWalletParams, aM as CreateKycTokenParams, aN as CreateParticipationParams, aO as CreateWalletOwnershipChallengeParams, aP as Cursor, a8 as DebugEvent, aQ as DocumentFormType, Y as DocumentSubmission, aR as DocumentSubmissionStatus, aS as DocumentType, aT as ETHEREUM_CHAINS, E as Erc20Namespace, aU as Erc20NamespaceImpl, aV as FaqItem, a9 as FrontlineEventId, aW as GetOndoQuoteParams, aX as GetOndoTradingStatusParams, aY as GetSwapAuthorizationParams, aZ as GetSwapPreviewParams, a_ as GetTokenAllowanceParams, a$ as GetTokenBalanceParams, b0 as HexEncodedTransactionData, aa as HttpError, ab as HttpResponse, b1 as Isin, b2 as Iso2CountryCode, X as KycLevelName, ac as KycToken, b3 as Link, b4 as ListOptionAddressesParams, ad as LogBinding, ae as LogBindings, af as LogCause, ag as LogLevel, ah as LogScope, ai as LogValue, L as Logger, b5 as MAX_ASSET_DECIMALS, b6 as MAX_UINT_256, b7 as Milestone, v as OAuthAccessToken, b8 as OAuthRefreshToken, aq as OAuthSession, J as Offer, b9 as OfferBase, z as OfferDetail, ba as OfferDetailBase, bb as OfferEditorial, O as OfferId, bc as OfferOption, Q as OfferOptionAddress, a6 as OfferOptionAddressId, d as OfferOptionId, bd as OfferOptionSlug, be as OfferSlug, bf as OfferToken, F as OfferType, w as OffersNamespace, bg as OffersNamespaceImpl, g as OndoNamespace, n as OndoNamespaceImpl, a3 as OndoQuote, bh as OndoQuoteDuration, a4 as OndoQuoteSize, bi as OndoSellOutcome, bj as OndoSwapOffer, G as OndoSwapOfferDetail, l as OndoSwapTransactionCore, $ as OndoTradingStatus, m as OrderBookSide, bk as PKCEState, bl as PaginatedResponseDto, P as Participation, bm as ParticipationId, bn as ParticipationStatus, bo as ParticipationsPaginationParams, bp as PauseFlags, bq as Pii, br as PiiAddress, bs as PiiJurisdiction, bt as PiiKind, _ as PinoLoggerOptions, aj as ProductionLogLevel, bu as QueryParamValue, bv as QueryParamValues, ak as RedactedWalletError, bw as RedirectUri, bx as RemoveOptionAddressParams, al as RequestId, s as Requirement, by as RequirementActionNeededReason, V as RequirementId, K as RequirementStatusInfo, N as RequirementStatusValue, M as RequirementType, R as RequirementsNamespace, t as RequirementsNamespaceImpl, bz as RpcConfig, am as RpcFailureReason, bA as SOLANA_CHAINS, bB as STABLE_DECIMALS, an as SafeEvent, ao as SafeFields, bC as SolanaChain, bD as SubmitDocumentParams, S as SuperstateSwapNamespace, r as SuperstateSwapNamespaceImpl, bE as SuperstateSwapOffer, I as SuperstateSwapOfferDetail, bF as SwapContractRef, bG as SwapPreview, bH as TermItem, bI as Ticker, a5 as TokenIdentifier, a7 as TokenLogo, bJ as TokenLogoImage, bK as TokenLogoUrl, D as TokenMetadata, bL as TokenRole, T as TokensNamespace, bM as TokensNamespaceImpl, bN as Tx, ap as UnredactedFields, bO as WalletAddress, Z as WalletChallengeType, W as WalletError, bP as WalletOwnershipChallenge, bQ as WalletProtocol, o as WalletsNamespace, bR as WalletsNamespaceImpl, bS as apiErrorCode, bT as assertUint256, bU as isChain, bV as isOfferType, bW as parseUint256 } from '../tokens-namespace-CIWBtgt2.js';
3
+ import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, e as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../token-registry-snapshot-BNBNuDu1.js';
4
+ export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, d as EvmSigner, E as EvmWallet, P as PKCEConfig, f as PKCEParams, c as TokenRegistrySnapshot, W as WriteContractParams, g as generatePKCEParams, o as offerDisplayTokens } from '../token-registry-snapshot-BNBNuDu1.js';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
6
 
7
7
  /**
@@ -26,15 +26,8 @@ declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>
26
26
  * asks for.
27
27
  */
28
28
  declare const ONDO_POLL_INTERVAL_MS = 15000;
29
- /**
30
- * How close to its deadline a built transaction stops being offerable.
31
- *
32
- * Placing an order is not instant - the wallet has to prompt, the user has to
33
- * confirm, and the transaction has to reach a node - so calldata with a second
34
- * left is one the contract will reject. Treating the last few seconds as
35
- * already expired turns a paid-for revert into a refresh button.
36
- */
37
- declare const ONDO_QUOTE_EXPIRY_THRESHOLD_MS = 5000;
29
+ /** Max time the review step offers a built quote. */
30
+ declare const ONDO_QUOTE_MAX_TTL_MS = 15000;
38
31
  /**
39
32
  * The order size the sidebar prices against before the user names one.
40
33
  *
@@ -133,6 +126,8 @@ declare function computeOndoBuyPrice(transaction: OndoBuyTransaction): Blockchai
133
126
  * does today. They diverge the day ENG-1718 lands.
134
127
  */
135
128
  declare function computeOndoSellPrice(transaction: OndoSellTransaction): BlockchainAmount;
129
+ /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
130
+ declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
136
131
 
137
132
  /**
138
133
  * The Superstate swap contract's ABI, generated verbatim from the shared
@@ -1278,4 +1273,4 @@ declare const User: {
1278
1273
  fromDto: (dto: UserDto) => User;
1279
1274
  };
1280
1275
 
1281
- export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, DEFAULT_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE, DEFAULT_SLIPPAGE_BPS, DecimalString, ERC20_ABI, Erc20Asset, EthereumChain, EvmContractAddress, EvmWalletAddress, type FormatAmountOptions, FormattedAmountAssetUi, FormattedAmountUi, FormattedPercentUi, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_EXPIRY_THRESHOLD_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OndoBuyTransaction, OndoSellTransaction, PaginatedResponse, PaginationParams, SLIPPAGE_OPTIONS_BPS, SUPERSTATE_ISSUER_NAME, SUPERSTATE_SUPPORTED_INPUT_ASSETS, SUPERSTATE_SWAP_ABI, SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA, SWAP_LEVEL, SWAP_POLL_INTERVAL_MS, ShortenedWalletAddress, StablecoinSymbol, SwapQuote, SwapStatus, TOKEN_REGISTRY, TxExplorerUrl, USDC, USDC_SYMBOL, USDT, USDT_SYMBOL, Uint256, User, UserEmail, UserId, ValidationError, applyBps, assetAmount, blockchainAmountFromRawOrThrow, chainFromId, computeOndoBuyPrice, computeOndoSellPrice, computePrice, computeSlip, decodeSwappedOutputAmount, fetchAllPages, formatAmount, formatBpsAsPercent, formatCompactAmount, formatRawAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
1276
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, DEFAULT_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE, DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE, DEFAULT_SLIPPAGE_BPS, DecimalString, ERC20_ABI, Erc20Asset, EthereumChain, EvmContractAddress, EvmWalletAddress, type FormatAmountOptions, FormattedAmountAssetUi, FormattedAmountUi, FormattedPercentUi, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_MAX_TTL_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OndoBuyTransaction, OndoSellTransaction, PaginatedResponse, PaginationParams, SLIPPAGE_OPTIONS_BPS, SUPERSTATE_ISSUER_NAME, SUPERSTATE_SUPPORTED_INPUT_ASSETS, SUPERSTATE_SWAP_ABI, SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA, SWAP_LEVEL, SWAP_POLL_INTERVAL_MS, ShortenedWalletAddress, StablecoinSymbol, SwapQuote, SwapStatus, TOKEN_REGISTRY, TxExplorerUrl, USDC, USDC_SYMBOL, USDT, USDT_SYMBOL, Uint256, User, UserEmail, UserId, ValidationError, applyBps, assetAmount, blockchainAmountFromRawOrThrow, chainFromId, computeOndoBuyPrice, computeOndoSellPrice, computePrice, computeSlip, decodeSwappedOutputAmount, fetchAllPages, formatAmount, formatBpsAsPercent, formatCompactAmount, formatRawAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
@@ -10,7 +10,7 @@ import {
10
10
  DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
11
11
  DEFAULT_SLIPPAGE_BPS,
12
12
  ONDO_POLL_INTERVAL_MS,
13
- ONDO_QUOTE_EXPIRY_THRESHOLD_MS,
13
+ ONDO_QUOTE_MAX_TTL_MS,
14
14
  ONDO_SETTLEMENT_ASSET,
15
15
  ONDO_SUPPORTED_INPUT_ASSETS,
16
16
  OffersNamespaceImpl,
@@ -25,6 +25,7 @@ import {
25
25
  SWAP_POLL_INTERVAL_MS,
26
26
  SwapQuote,
27
27
  TOKEN_REGISTRY,
28
+ TokenRegistrySnapshot,
28
29
  USDC,
29
30
  USDC_SYMBOL,
30
31
  USDT,
@@ -41,9 +42,11 @@ import {
41
42
  formattedPricePerShare,
42
43
  generatePKCEParams,
43
44
  isSwapAvailable,
45
+ offerDisplayTokens,
46
+ ondoQuoteOfferDeadline,
44
47
  superstateSwapContractAddress,
45
48
  swapSpender
46
- } from "../chunk-DX4VTV7L.js";
49
+ } from "../chunk-VH34YC3Q.js";
47
50
  import {
48
51
  AllowWalletResponse,
49
52
  Asset,
@@ -93,6 +96,7 @@ import {
93
96
  OAuthSession,
94
97
  Offer,
95
98
  OfferDetail,
99
+ OfferEditorial,
96
100
  OfferId,
97
101
  OfferOption,
98
102
  OfferOptionAddress,
@@ -154,13 +158,14 @@ import {
154
158
  getChainId,
155
159
  getNetworkName,
156
160
  isChain,
161
+ isOfferType,
157
162
  parseBlockchainAmount,
158
163
  parseUint256,
159
164
  shortenAddress,
160
165
  txExplorerUrl,
161
166
  usdAmount,
162
167
  viemChain
163
- } from "../chunk-2YEJXE2V.js";
168
+ } from "../chunk-MOE5S6CE.js";
164
169
  export {
165
170
  AllowWalletResponse,
166
171
  Asset,
@@ -219,11 +224,12 @@ export {
219
224
  OAuthRefreshToken,
220
225
  OAuthSession,
221
226
  ONDO_POLL_INTERVAL_MS,
222
- ONDO_QUOTE_EXPIRY_THRESHOLD_MS,
227
+ ONDO_QUOTE_MAX_TTL_MS,
223
228
  ONDO_SETTLEMENT_ASSET,
224
229
  ONDO_SUPPORTED_INPUT_ASSETS,
225
230
  Offer,
226
231
  OfferDetail,
232
+ OfferEditorial,
227
233
  OfferId,
228
234
  OfferOption,
229
235
  OfferOptionAddress,
@@ -277,6 +283,7 @@ export {
277
283
  TokenLogo,
278
284
  TokenLogoUrl,
279
285
  TokenMetadata,
286
+ TokenRegistrySnapshot,
280
287
  TokensNamespaceImpl,
281
288
  TxExplorerUrl,
282
289
  USDC,
@@ -312,7 +319,10 @@ export {
312
319
  getChainId,
313
320
  getNetworkName,
314
321
  isChain,
322
+ isOfferType,
315
323
  isSwapAvailable,
324
+ offerDisplayTokens,
325
+ ondoQuoteOfferDeadline,
316
326
  parseBlockchainAmount,
317
327
  parseUint256,
318
328
  shortenAddress,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinlist-co/react",
3
- "version": "0.12.1-rc.6b77fc6",
3
+ "version": "0.12.1-rc.9aec85a",
4
4
  "description": "CoinList Partner SDK",
5
5
  "type": "module",
6
6
  "scripts": {