@coinlist-co/react 0.12.2-rc.9fb6364 → 0.12.2-rc.aa91ce3

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.
Files changed (32) hide show
  1. package/dist/{chunk-KRA6EM2L.js → chunk-3OTYQADF.js} +78 -4
  2. package/dist/chunk-3OTYQADF.js.map +1 -0
  3. package/dist/{chunk-BNMF2HMW.js → chunk-IAY3F42Q.js} +892 -512
  4. package/dist/chunk-IAY3F42Q.js.map +1 -0
  5. package/dist/{chunk-STAHYDLY.js → chunk-QRVIBG6H.js} +2 -2
  6. package/dist/client/index.cjs +5891 -3786
  7. package/dist/client/index.cjs.map +1 -1
  8. package/dist/client/index.d.cts +845 -30
  9. package/dist/client/index.d.ts +845 -30
  10. package/dist/client/index.js +2598 -910
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/server/index.cjs +361 -66
  13. package/dist/server/index.cjs.map +1 -1
  14. package/dist/server/index.d.cts +27 -5
  15. package/dist/server/index.d.ts +27 -5
  16. package/dist/server/index.js +9 -6
  17. package/dist/server/index.js.map +1 -1
  18. package/dist/{tokens-namespace-BJfFeowE.d.cts → time-DyjvzWso.d.cts} +735 -59
  19. package/dist/{tokens-namespace-BJfFeowE.d.ts → time-DyjvzWso.d.ts} +735 -59
  20. package/dist/{token-registry-snapshot-C1NxdBmF.d.ts → token-registry-snapshot-Bldj1r5X.d.ts} +74 -8
  21. package/dist/{token-registry-snapshot-DyjrA32p.d.cts → token-registry-snapshot-CbNCYP_5.d.cts} +74 -8
  22. package/dist/universal/index.cjs +848 -377
  23. package/dist/universal/index.cjs.map +1 -1
  24. package/dist/universal/index.d.cts +79 -6
  25. package/dist/universal/index.d.ts +79 -6
  26. package/dist/universal/index.js +36 -2
  27. package/package.json +1 -1
  28. package/dist/chunk-BNMF2HMW.js.map +0 -1
  29. package/dist/chunk-KRA6EM2L.js.map +0 -1
  30. package/dist/time-B5YOQxuh.d.ts +0 -50
  31. package/dist/time-BY3apBpc.d.cts +0 -50
  32. /package/dist/{chunk-STAHYDLY.js.map → chunk-QRVIBG6H.js.map} +0 -0
@@ -1,9 +1,8 @@
1
- import { at as PaginationParams, au 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-BJfFeowE.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, av 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-BJfFeowE.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-DyjrA32p.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-DyjrA32p.cjs';
1
+ import { aG as PaginationParams, aH as PaginatedResponse, E as EthereumChain, f as EvmContractAddress, H as TokenMetadata, aJ as OfferToken, I as CentrifugeVaultOfferDetail, aK as DecimalString, D as StablecoinSymbol, m as OndoBuyTransaction, B as BlockchainAmount, n as OndoSellTransaction, an as HttpError, s as Bps, aL as SwapStatus, ab as AssetDecimals, l as OfferSwapContract, aM as Uint256, b as AssetSymbol, t as EvmWalletAddress, aN as KnownAssetSymbol, F as Erc20Asset, aO as Newtype } from '../time-DyjvzWso.cjs';
2
+ export { aP as AllowWalletParams, aQ as AllowWalletResponse, aR as Asset, aS as AssetCode, i as AssetId, Y as AsyncOfferDetail, X as AsyncOfferType, A as AuthorizationCode, aT as Blockchain, ac as BuildOndoBuyParams, ad as BuildOndoSellParams, aU as BuildOndoSwapParamsCore, c as CentrifugeClaimDirection, a as CentrifugeNamespace, d as CentrifugeNamespaceImpl, a7 as CentrifugeOrderReason, a8 as CentrifugeOrderability, aV as CentrifugePositionStatus, aW as CentrifugeVaultBuyTransaction, aX as CentrifugeVaultClaimProceedsTransaction, aY as CentrifugeVaultClaimTransaction, ah as CentrifugeVaultLeg, Q as CentrifugeVaultLegId, aZ as CentrifugeVaultOffer, a_ as CentrifugeVaultPosition, a9 as CentrifugeVaultQuote, a$ as CentrifugeVaultReason, b0 as CentrifugeVaultRedeemPosition, aj as CentrifugeVaultStatus, b1 as CentrifugeVaultTransactionCore, b2 as CentrifugeWalletParams, b3 as Chain, aE as ClientCredentialsOAuth, b4 as ClientId, aI as ClientSecret, b5 as CodeChallenge, C as CodeVerifier, g as CoinListTokenSaleNamespace, j as CoinListTokenSaleNamespaceImpl, b6 as CoinListTokenSaleOffer, M as CoinListTokenSaleOfferDetail, x as Config, b7 as ConnectExternalWalletParams, b8 as CreateKycTokenParams, b9 as CreateParticipationParams, ba as CreateWalletOwnershipChallengeParams, bb as Cursor, al as DebugEvent, bc as DocumentFormType, a4 as DocumentSubmission, bd as DocumentSubmissionStatus, be as DocumentType, bf as ETHEREUM_CHAINS, bg as EpochMillis, e as Erc20Namespace, bh as Erc20NamespaceImpl, bi as FaqItem, am as FrontlineEventId, bj as GetCentrifugeVaultQuoteParams, bk as GetCentrifugeVaultStatusParams, bl as GetOndoQuoteParams, bm as GetOndoTradingStatusParams, bn as GetSwapAuthorizationParams, bo as GetSwapPreviewParams, bp as GetTokenAllowanceParams, bq as GetTokenBalanceParams, br as HexEncodedTransactionData, ao as HttpResponse, bs as Isin, bt as Iso2CountryCode, a3 as KycLevelName, ap as KycToken, bu as Link, bv as ListOptionAddressesParams, aq as LogBinding, ar as LogBindings, as as LogCause, at as LogLevel, au as LogScope, av as LogValue, L as Logger, bw as MAX_ASSET_DECIMALS, bx as MAX_UINT_256, by as Milestone, bz as Millis, y as OAuthAccessToken, bA as OAuthRefreshToken, aD as OAuthSession, Z as Offer, bB as OfferBase, G as OfferDetail, bC as OfferDetailBase, bD as OfferEditorial, O as OfferId, bE as OfferOption, a1 as OfferOptionAddress, ai as OfferOptionAddressId, h as OfferOptionId, bF as OfferOptionSlug, bG as OfferSlug, J as OfferType, bH as OfferVaultContract, z as OffersNamespace, bI as OffersNamespaceImpl, k as OndoNamespace, q as OndoNamespaceImpl, ae as OndoQuote, bJ as OndoQuoteDuration, af as OndoQuoteSize, bK as OndoSellOutcome, bL as OndoSwapOffer, K as OndoSwapOfferDetail, o as OndoSwapTransactionCore, aa as OndoTradingStatus, p as OrderBookSide, bM as PKCEState, bN as PaginatedResponseDto, P as Participation, bO as ParticipationId, bP as ParticipationStatus, bQ as ParticipationsPaginationParams, bR as PauseFlags, bS as Pii, bT as PiiAddress, bU as PiiJurisdiction, bV as PiiKind, a6 as PinoLoggerOptions, aw as ProductionLogLevel, bW as QueryParamValue, bX as QueryParamValues, ax as RedactedWalletError, bY as RedirectUri, bZ as RemoveOptionAddressParams, ay as RequestId, v as Requirement, b_ as RequirementActionNeededReason, a2 as RequirementId, _ as RequirementStatusInfo, a0 as RequirementStatusValue, $ as RequirementType, R as RequirementsNamespace, w as RequirementsNamespaceImpl, b$ as RpcConfig, az as RpcFailureReason, c0 as SOLANA_CHAINS, c1 as STABLE_DECIMALS, aA as SafeEvent, aB as SafeFields, V as Seconds, c2 as SolanaChain, c3 as SubmitDocumentParams, S as SuperstateSwapNamespace, u as SuperstateSwapNamespaceImpl, c4 as SuperstateSwapOffer, N as SuperstateSwapOfferDetail, c5 as SwapContractRef, c6 as SwapPreview, c7 as TermItem, c8 as Ticker, ag as TokenIdentifier, ak as TokenLogo, c9 as TokenLogoImage, ca as TokenLogoUrl, cb as TokenRole, T as TokensNamespace, cc as TokensNamespaceImpl, cd as Tx, aC as UnredactedFields, ce as WalletAddress, a5 as WalletChallengeType, W as WalletError, cf as WalletOwnershipChallenge, cg as WalletProtocol, r as WalletsNamespace, ch as WalletsNamespaceImpl, ci as apiErrorCode, cj as assertUint256, ck as isChain, cl as isExpired, cm as isOfferType, cn as parseUint256 } from '../time-DyjvzWso.cjs';
3
+ import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, h as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../token-registry-snapshot-CbNCYP_5.cjs';
4
+ export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, e as EvmSigner, E as EvmWallet, f as ExternalWalletAdapter, P as PKCEConfig, i as PKCEParams, d as TokenRegistrySnapshot, c as WalletLabelResolver, W as WalletSelection, g as WriteContractParams, j as generatePKCEParams, o as offerDisplayTokens } from '../token-registry-snapshot-CbNCYP_5.cjs';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
- export { E as EpochMillis, M as Millis, S as Seconds, i as isExpired } from '../time-BY3apBpc.cjs';
7
6
 
8
7
  /**
9
8
  * Walks every page of a cursor-paginated endpoint and returns the flattened
@@ -16,6 +15,60 @@ export { E as EpochMillis, M as Millis, S as Seconds, i as isExpired } from '../
16
15
  */
17
16
  declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>(fetchPage: (params: P) => Promise<PaginatedResponse<A>>, baseParams?: Omit<P, keyof PaginationParams>): Promise<A[]>;
18
17
 
18
+ /**
19
+ * How often the Centrifuge checkout refreshes what it is allowed to poll: the
20
+ * vault status and the indicative quote. Both are free - neither spends an
21
+ * attestation - so this is paced for a gate the user can trust rather than
22
+ * for cost.
23
+ *
24
+ * There is no quote TTL beside this. A Centrifuge quote does not expire: it
25
+ * is indicative, the fund prices fulfilment later, and a countdown would
26
+ * imply a commitment the API does not make.
27
+ */
28
+ declare const CENTRIFUGE_POLL_INTERVAL_MS = 15000;
29
+
30
+ /**
31
+ * One chain a vault offer runs on, with everything a screen needs to read and
32
+ * show a position there: the proxy every request and claim goes through, the
33
+ * share token it issues, and the funding token it is paid in.
34
+ *
35
+ * The share token's `symbol` is what every `/v1/centrifuge/vault/*` call is
36
+ * keyed by.
37
+ */
38
+ type CentrifugeVault = {
39
+ chain: EthereumChain;
40
+ proxy: EvmContractAddress;
41
+ share: TokenMetadata;
42
+ funding: TokenMetadata;
43
+ };
44
+ /**
45
+ * The vaults an offer runs on, or why a chain could not be resolved: one
46
+ * entry per `vaultContracts` chain, in the offer's order.
47
+ */
48
+ type CentrifugeVaultResolution = {
49
+ type: 'resolved';
50
+ vault: CentrifugeVault;
51
+ } | {
52
+ type: 'unresolved';
53
+ chain: OfferToken['chain'];
54
+ /** Which token the offer or the registry could not name. */
55
+ missing: 'share-token' | 'funding-token' | 'evm-chain';
56
+ };
57
+ /**
58
+ * Resolves each chain of a vault offer to its share and funding tokens.
59
+ *
60
+ * The offer names tokens by role and address only - the share token as
61
+ * `vault`, the coin it is paid in as `funding` - so `lookup` turns each into
62
+ * metadata. A function rather than a registry snapshot, so this module does
63
+ * not depend on where the metadata comes from.
64
+ *
65
+ * A chain whose tokens cannot be named is reported rather than dropped: its
66
+ * position cannot be read without the symbol, and a caller has to know it is
67
+ * not showing it. When a chain lists several funding tokens, the first one
68
+ * `lookup` knows wins - a vault is priced in one.
69
+ */
70
+ declare function resolveCentrifugeVaults(offer: CentrifugeVaultOfferDetail, lookup: (token: OfferToken) => TokenMetadata | null): CentrifugeVaultResolution[];
71
+
19
72
  /**
20
73
  * How often the Ondo checkout refreshes what it is allowed to poll: the market
21
74
  * status and the indicative price. Both are free - neither spends an
@@ -130,6 +183,26 @@ declare function computeOndoSellPrice(transaction: OndoSellTransaction): Blockch
130
183
  /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
131
184
  declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
132
185
 
186
+ /**
187
+ * The CoinList API's error code for an Ondo quote refused because the asset
188
+ * cannot be traded right now: the market is closed or paused, or the asset is
189
+ * paused or closed for the session. It arrives on a 409.
190
+ *
191
+ * One code for all four of Ondo's reasons, because the remedy is the same:
192
+ * wait for the market to open. Ondo pauses for a moment at every US session
193
+ * change (04:00 and 16:00 ET), so a poll can land on one even while
194
+ * `getTradingStatus` reported the asset tradable a second earlier.
195
+ */
196
+ declare const ONDO_NOT_TRADABLE_CODE = "not_tradable";
197
+ /**
198
+ * Whether `error` is the CoinList API refusing an Ondo quote because the
199
+ * market is not open, as opposed to a request that failed.
200
+ *
201
+ * Total: anything that is not an `HttpError` carrying
202
+ * {@link ONDO_NOT_TRADABLE_CODE} is `false`.
203
+ */
204
+ declare function isOndoNotTradableError(error: unknown): error is HttpError;
205
+
133
206
  /**
134
207
  * The Superstate swap contract's ABI, generated verbatim from the shared
135
208
  * `TokenSwap` base contract:
@@ -1291,4 +1364,4 @@ declare const User: {
1291
1364
  fromDto: (dto: UserDto) => User;
1292
1365
  };
1293
1366
 
1294
- 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, formatShareAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
1367
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, CENTRIFUGE_POLL_INTERVAL_MS, type CentrifugeVault, CentrifugeVaultOfferDetail, type CentrifugeVaultResolution, 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, HttpError, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_NOT_TRADABLE_CODE, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_MAX_TTL_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OfferToken, 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, TokenMetadata, 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, formatShareAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isOndoNotTradableError, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, resolveCentrifugeVaults, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
@@ -1,9 +1,8 @@
1
- import { at as PaginationParams, au 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-BJfFeowE.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, av 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-BJfFeowE.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-C1NxdBmF.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-C1NxdBmF.js';
1
+ import { aG as PaginationParams, aH as PaginatedResponse, E as EthereumChain, f as EvmContractAddress, H as TokenMetadata, aJ as OfferToken, I as CentrifugeVaultOfferDetail, aK as DecimalString, D as StablecoinSymbol, m as OndoBuyTransaction, B as BlockchainAmount, n as OndoSellTransaction, an as HttpError, s as Bps, aL as SwapStatus, ab as AssetDecimals, l as OfferSwapContract, aM as Uint256, b as AssetSymbol, t as EvmWalletAddress, aN as KnownAssetSymbol, F as Erc20Asset, aO as Newtype } from '../time-DyjvzWso.js';
2
+ export { aP as AllowWalletParams, aQ as AllowWalletResponse, aR as Asset, aS as AssetCode, i as AssetId, Y as AsyncOfferDetail, X as AsyncOfferType, A as AuthorizationCode, aT as Blockchain, ac as BuildOndoBuyParams, ad as BuildOndoSellParams, aU as BuildOndoSwapParamsCore, c as CentrifugeClaimDirection, a as CentrifugeNamespace, d as CentrifugeNamespaceImpl, a7 as CentrifugeOrderReason, a8 as CentrifugeOrderability, aV as CentrifugePositionStatus, aW as CentrifugeVaultBuyTransaction, aX as CentrifugeVaultClaimProceedsTransaction, aY as CentrifugeVaultClaimTransaction, ah as CentrifugeVaultLeg, Q as CentrifugeVaultLegId, aZ as CentrifugeVaultOffer, a_ as CentrifugeVaultPosition, a9 as CentrifugeVaultQuote, a$ as CentrifugeVaultReason, b0 as CentrifugeVaultRedeemPosition, aj as CentrifugeVaultStatus, b1 as CentrifugeVaultTransactionCore, b2 as CentrifugeWalletParams, b3 as Chain, aE as ClientCredentialsOAuth, b4 as ClientId, aI as ClientSecret, b5 as CodeChallenge, C as CodeVerifier, g as CoinListTokenSaleNamespace, j as CoinListTokenSaleNamespaceImpl, b6 as CoinListTokenSaleOffer, M as CoinListTokenSaleOfferDetail, x as Config, b7 as ConnectExternalWalletParams, b8 as CreateKycTokenParams, b9 as CreateParticipationParams, ba as CreateWalletOwnershipChallengeParams, bb as Cursor, al as DebugEvent, bc as DocumentFormType, a4 as DocumentSubmission, bd as DocumentSubmissionStatus, be as DocumentType, bf as ETHEREUM_CHAINS, bg as EpochMillis, e as Erc20Namespace, bh as Erc20NamespaceImpl, bi as FaqItem, am as FrontlineEventId, bj as GetCentrifugeVaultQuoteParams, bk as GetCentrifugeVaultStatusParams, bl as GetOndoQuoteParams, bm as GetOndoTradingStatusParams, bn as GetSwapAuthorizationParams, bo as GetSwapPreviewParams, bp as GetTokenAllowanceParams, bq as GetTokenBalanceParams, br as HexEncodedTransactionData, ao as HttpResponse, bs as Isin, bt as Iso2CountryCode, a3 as KycLevelName, ap as KycToken, bu as Link, bv as ListOptionAddressesParams, aq as LogBinding, ar as LogBindings, as as LogCause, at as LogLevel, au as LogScope, av as LogValue, L as Logger, bw as MAX_ASSET_DECIMALS, bx as MAX_UINT_256, by as Milestone, bz as Millis, y as OAuthAccessToken, bA as OAuthRefreshToken, aD as OAuthSession, Z as Offer, bB as OfferBase, G as OfferDetail, bC as OfferDetailBase, bD as OfferEditorial, O as OfferId, bE as OfferOption, a1 as OfferOptionAddress, ai as OfferOptionAddressId, h as OfferOptionId, bF as OfferOptionSlug, bG as OfferSlug, J as OfferType, bH as OfferVaultContract, z as OffersNamespace, bI as OffersNamespaceImpl, k as OndoNamespace, q as OndoNamespaceImpl, ae as OndoQuote, bJ as OndoQuoteDuration, af as OndoQuoteSize, bK as OndoSellOutcome, bL as OndoSwapOffer, K as OndoSwapOfferDetail, o as OndoSwapTransactionCore, aa as OndoTradingStatus, p as OrderBookSide, bM as PKCEState, bN as PaginatedResponseDto, P as Participation, bO as ParticipationId, bP as ParticipationStatus, bQ as ParticipationsPaginationParams, bR as PauseFlags, bS as Pii, bT as PiiAddress, bU as PiiJurisdiction, bV as PiiKind, a6 as PinoLoggerOptions, aw as ProductionLogLevel, bW as QueryParamValue, bX as QueryParamValues, ax as RedactedWalletError, bY as RedirectUri, bZ as RemoveOptionAddressParams, ay as RequestId, v as Requirement, b_ as RequirementActionNeededReason, a2 as RequirementId, _ as RequirementStatusInfo, a0 as RequirementStatusValue, $ as RequirementType, R as RequirementsNamespace, w as RequirementsNamespaceImpl, b$ as RpcConfig, az as RpcFailureReason, c0 as SOLANA_CHAINS, c1 as STABLE_DECIMALS, aA as SafeEvent, aB as SafeFields, V as Seconds, c2 as SolanaChain, c3 as SubmitDocumentParams, S as SuperstateSwapNamespace, u as SuperstateSwapNamespaceImpl, c4 as SuperstateSwapOffer, N as SuperstateSwapOfferDetail, c5 as SwapContractRef, c6 as SwapPreview, c7 as TermItem, c8 as Ticker, ag as TokenIdentifier, ak as TokenLogo, c9 as TokenLogoImage, ca as TokenLogoUrl, cb as TokenRole, T as TokensNamespace, cc as TokensNamespaceImpl, cd as Tx, aC as UnredactedFields, ce as WalletAddress, a5 as WalletChallengeType, W as WalletError, cf as WalletOwnershipChallenge, cg as WalletProtocol, r as WalletsNamespace, ch as WalletsNamespaceImpl, ci as apiErrorCode, cj as assertUint256, ck as isChain, cl as isExpired, cm as isOfferType, cn as parseUint256 } from '../time-DyjvzWso.js';
3
+ import { N as NonEmptyArray, S as SwapQuote, F as FormattedAmountAssetUi, T as TxExplorerUrl, h as FormattedAmountUi, b as FormattedPercentUi, a as ShortenedWalletAddress } from '../token-registry-snapshot-Bldj1r5X.js';
4
+ export { A as AssetIconUrl, B as BroadcastTxParams, C as ConnectWallet, e as EvmSigner, E as EvmWallet, f as ExternalWalletAdapter, P as PKCEConfig, i as PKCEParams, d as TokenRegistrySnapshot, c as WalletLabelResolver, W as WalletSelection, g as WriteContractParams, j as generatePKCEParams, o as offerDisplayTokens } from '../token-registry-snapshot-Bldj1r5X.js';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
- export { E as EpochMillis, M as Millis, S as Seconds, i as isExpired } from '../time-B5YOQxuh.js';
7
6
 
8
7
  /**
9
8
  * Walks every page of a cursor-paginated endpoint and returns the flattened
@@ -16,6 +15,60 @@ export { E as EpochMillis, M as Millis, S as Seconds, i as isExpired } from '../
16
15
  */
17
16
  declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>(fetchPage: (params: P) => Promise<PaginatedResponse<A>>, baseParams?: Omit<P, keyof PaginationParams>): Promise<A[]>;
18
17
 
18
+ /**
19
+ * How often the Centrifuge checkout refreshes what it is allowed to poll: the
20
+ * vault status and the indicative quote. Both are free - neither spends an
21
+ * attestation - so this is paced for a gate the user can trust rather than
22
+ * for cost.
23
+ *
24
+ * There is no quote TTL beside this. A Centrifuge quote does not expire: it
25
+ * is indicative, the fund prices fulfilment later, and a countdown would
26
+ * imply a commitment the API does not make.
27
+ */
28
+ declare const CENTRIFUGE_POLL_INTERVAL_MS = 15000;
29
+
30
+ /**
31
+ * One chain a vault offer runs on, with everything a screen needs to read and
32
+ * show a position there: the proxy every request and claim goes through, the
33
+ * share token it issues, and the funding token it is paid in.
34
+ *
35
+ * The share token's `symbol` is what every `/v1/centrifuge/vault/*` call is
36
+ * keyed by.
37
+ */
38
+ type CentrifugeVault = {
39
+ chain: EthereumChain;
40
+ proxy: EvmContractAddress;
41
+ share: TokenMetadata;
42
+ funding: TokenMetadata;
43
+ };
44
+ /**
45
+ * The vaults an offer runs on, or why a chain could not be resolved: one
46
+ * entry per `vaultContracts` chain, in the offer's order.
47
+ */
48
+ type CentrifugeVaultResolution = {
49
+ type: 'resolved';
50
+ vault: CentrifugeVault;
51
+ } | {
52
+ type: 'unresolved';
53
+ chain: OfferToken['chain'];
54
+ /** Which token the offer or the registry could not name. */
55
+ missing: 'share-token' | 'funding-token' | 'evm-chain';
56
+ };
57
+ /**
58
+ * Resolves each chain of a vault offer to its share and funding tokens.
59
+ *
60
+ * The offer names tokens by role and address only - the share token as
61
+ * `vault`, the coin it is paid in as `funding` - so `lookup` turns each into
62
+ * metadata. A function rather than a registry snapshot, so this module does
63
+ * not depend on where the metadata comes from.
64
+ *
65
+ * A chain whose tokens cannot be named is reported rather than dropped: its
66
+ * position cannot be read without the symbol, and a caller has to know it is
67
+ * not showing it. When a chain lists several funding tokens, the first one
68
+ * `lookup` knows wins - a vault is priced in one.
69
+ */
70
+ declare function resolveCentrifugeVaults(offer: CentrifugeVaultOfferDetail, lookup: (token: OfferToken) => TokenMetadata | null): CentrifugeVaultResolution[];
71
+
19
72
  /**
20
73
  * How often the Ondo checkout refreshes what it is allowed to poll: the market
21
74
  * status and the indicative price. Both are free - neither spends an
@@ -130,6 +183,26 @@ declare function computeOndoSellPrice(transaction: OndoSellTransaction): Blockch
130
183
  /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
131
184
  declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
132
185
 
186
+ /**
187
+ * The CoinList API's error code for an Ondo quote refused because the asset
188
+ * cannot be traded right now: the market is closed or paused, or the asset is
189
+ * paused or closed for the session. It arrives on a 409.
190
+ *
191
+ * One code for all four of Ondo's reasons, because the remedy is the same:
192
+ * wait for the market to open. Ondo pauses for a moment at every US session
193
+ * change (04:00 and 16:00 ET), so a poll can land on one even while
194
+ * `getTradingStatus` reported the asset tradable a second earlier.
195
+ */
196
+ declare const ONDO_NOT_TRADABLE_CODE = "not_tradable";
197
+ /**
198
+ * Whether `error` is the CoinList API refusing an Ondo quote because the
199
+ * market is not open, as opposed to a request that failed.
200
+ *
201
+ * Total: anything that is not an `HttpError` carrying
202
+ * {@link ONDO_NOT_TRADABLE_CODE} is `false`.
203
+ */
204
+ declare function isOndoNotTradableError(error: unknown): error is HttpError;
205
+
133
206
  /**
134
207
  * The Superstate swap contract's ABI, generated verbatim from the shared
135
208
  * `TokenSwap` base contract:
@@ -1291,4 +1364,4 @@ declare const User: {
1291
1364
  fromDto: (dto: UserDto) => User;
1292
1365
  };
1293
1366
 
1294
- 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, formatShareAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
1367
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, CENTRIFUGE_POLL_INTERVAL_MS, type CentrifugeVault, CentrifugeVaultOfferDetail, type CentrifugeVaultResolution, 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, HttpError, InvariantError, KnownAssetSymbol, MathError, NA_AMOUNT_ASSET_UI, NonEmptyArray, NotAuthenticatedError, NotImplementedError, ONDO_NOT_TRADABLE_CODE, ONDO_POLL_INTERVAL_MS, ONDO_QUOTE_MAX_TTL_MS, ONDO_SETTLEMENT_ASSET, ONDO_SUPPORTED_INPUT_ASSETS, OfferSwapContract, OfferToken, 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, TokenMetadata, 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, formatShareAmount, formattedPricePerShare, formattedUsdPrice, getChainId, getNetworkName, isOndoNotTradableError, isSwapAvailable, ondoQuoteOfferDeadline, parseBlockchainAmount, resolveCentrifugeVaults, shortenAddress, superstateSwapContractAddress, swapSpender, txExplorerUrl, usdAmount, viemChain };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AuthorizationCode,
3
3
  BPS_DENOM,
4
+ CENTRIFUGE_POLL_INTERVAL_MS,
4
5
  ClientId,
5
6
  ClientSecret,
6
7
  CodeChallenge,
@@ -9,6 +10,7 @@ import {
9
10
  DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
10
11
  DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
11
12
  DEFAULT_SLIPPAGE_BPS,
13
+ ONDO_NOT_TRADABLE_CODE,
12
14
  ONDO_POLL_INTERVAL_MS,
13
15
  ONDO_QUOTE_MAX_TTL_MS,
14
16
  ONDO_SETTLEMENT_ASSET,
@@ -33,6 +35,7 @@ import {
33
35
  User,
34
36
  UserEmail,
35
37
  UserId,
38
+ WalletSelection,
36
39
  applyBps,
37
40
  computeOndoBuyPrice,
38
41
  computeOndoSellPrice,
@@ -41,12 +44,14 @@ import {
41
44
  decodeSwappedOutputAmount,
42
45
  formattedPricePerShare,
43
46
  generatePKCEParams,
47
+ isOndoNotTradableError,
44
48
  isSwapAvailable,
45
49
  offerDisplayTokens,
46
50
  ondoQuoteOfferDeadline,
51
+ resolveCentrifugeVaults,
47
52
  superstateSwapContractAddress,
48
53
  swapSpender
49
- } from "../chunk-KRA6EM2L.js";
54
+ } from "../chunk-3OTYQADF.js";
50
55
  import {
51
56
  AllowWalletResponse,
52
57
  Asset,
@@ -55,9 +60,20 @@ import {
55
60
  AssetIconUrl,
56
61
  AssetId,
57
62
  AssetSymbol,
63
+ AsyncOfferDetail,
58
64
  Blockchain,
59
65
  BlockchainAmount,
60
66
  Bps,
67
+ CentrifugeNamespaceImpl,
68
+ CentrifugeVaultBuyTransaction,
69
+ CentrifugeVaultClaimProceedsTransaction,
70
+ CentrifugeVaultClaimTransaction,
71
+ CentrifugeVaultLeg,
72
+ CentrifugeVaultLegId,
73
+ CentrifugeVaultPosition,
74
+ CentrifugeVaultQuote,
75
+ CentrifugeVaultRedeemPosition,
76
+ CentrifugeVaultStatus,
61
77
  Chain,
62
78
  ClientCredentialsOAuth,
63
79
  CoinListTokenSaleNamespaceImpl,
@@ -108,6 +124,7 @@ import {
108
124
  OfferSlug,
109
125
  OfferSwapContract,
110
126
  OfferToken,
127
+ OfferVaultContract,
111
128
  OndoBuyTransaction,
112
129
  OndoNamespaceImpl,
113
130
  OndoQuote,
@@ -170,7 +187,7 @@ import {
170
187
  txExplorerUrl,
171
188
  usdAmount,
172
189
  viemChain
173
- } from "../chunk-BNMF2HMW.js";
190
+ } from "../chunk-IAY3F42Q.js";
174
191
  export {
175
192
  AllowWalletResponse,
176
193
  Asset,
@@ -179,11 +196,23 @@ export {
179
196
  AssetIconUrl,
180
197
  AssetId,
181
198
  AssetSymbol,
199
+ AsyncOfferDetail,
182
200
  AuthorizationCode,
183
201
  BPS_DENOM,
184
202
  Blockchain,
185
203
  BlockchainAmount,
186
204
  Bps,
205
+ CENTRIFUGE_POLL_INTERVAL_MS,
206
+ CentrifugeNamespaceImpl,
207
+ CentrifugeVaultBuyTransaction,
208
+ CentrifugeVaultClaimProceedsTransaction,
209
+ CentrifugeVaultClaimTransaction,
210
+ CentrifugeVaultLeg,
211
+ CentrifugeVaultLegId,
212
+ CentrifugeVaultPosition,
213
+ CentrifugeVaultQuote,
214
+ CentrifugeVaultRedeemPosition,
215
+ CentrifugeVaultStatus,
187
216
  Chain,
188
217
  ClientCredentialsOAuth,
189
218
  ClientId,
@@ -230,6 +259,7 @@ export {
230
259
  NotImplementedError,
231
260
  OAuthRefreshToken,
232
261
  OAuthSession,
262
+ ONDO_NOT_TRADABLE_CODE,
233
263
  ONDO_POLL_INTERVAL_MS,
234
264
  ONDO_QUOTE_MAX_TTL_MS,
235
265
  ONDO_SETTLEMENT_ASSET,
@@ -246,6 +276,7 @@ export {
246
276
  OfferSlug,
247
277
  OfferSwapContract,
248
278
  OfferToken,
279
+ OfferVaultContract,
249
280
  OffersNamespaceImpl,
250
281
  OndoBuyTransaction,
251
282
  OndoNamespaceImpl,
@@ -304,6 +335,7 @@ export {
304
335
  ValidationError,
305
336
  WalletAddress,
306
337
  WalletOwnershipChallenge,
338
+ WalletSelection,
307
339
  WalletsNamespaceImpl,
308
340
  apiErrorCode,
309
341
  applyBps,
@@ -330,11 +362,13 @@ export {
330
362
  isChain,
331
363
  isExpired,
332
364
  isOfferType,
365
+ isOndoNotTradableError,
333
366
  isSwapAvailable,
334
367
  offerDisplayTokens,
335
368
  ondoQuoteOfferDeadline,
336
369
  parseBlockchainAmount,
337
370
  parseUint256,
371
+ resolveCentrifugeVaults,
338
372
  shortenAddress,
339
373
  superstateSwapContractAddress,
340
374
  swapSpender,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinlist-co/react",
3
- "version": "0.12.2-rc.9fb6364",
3
+ "version": "0.12.2-rc.aa91ce3",
4
4
  "description": "CoinList Partner SDK",
5
5
  "type": "module",
6
6
  "scripts": {