@coinlist-co/react 0.12.2-rc.7b430dd → 0.12.2-rc.818bed6

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 (31) hide show
  1. package/dist/{chunk-DCW7NQXH.js → chunk-2HCSM3FB.js} +52 -19
  2. package/dist/chunk-2HCSM3FB.js.map +1 -0
  3. package/dist/{chunk-VH34YC3Q.js → chunk-OUFI3D3Q.js} +84 -4
  4. package/dist/chunk-OUFI3D3Q.js.map +1 -0
  5. package/dist/{chunk-MOE5S6CE.js → chunk-YMDYLYL3.js} +954 -441
  6. package/dist/chunk-YMDYLYL3.js.map +1 -0
  7. package/dist/client/index.cjs +12477 -8512
  8. package/dist/client/index.cjs.map +1 -1
  9. package/dist/client/index.d.cts +1965 -229
  10. package/dist/client/index.d.ts +1965 -229
  11. package/dist/client/index.js +9118 -5742
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/server/index.cjs +844 -142
  14. package/dist/server/index.cjs.map +1 -1
  15. package/dist/server/index.d.cts +72 -41
  16. package/dist/server/index.d.ts +72 -41
  17. package/dist/server/index.js +323 -65
  18. package/dist/server/index.js.map +1 -1
  19. package/dist/{tokens-namespace-CIWBtgt2.d.cts → time-DJU6E8KK.d.cts} +943 -192
  20. package/dist/{tokens-namespace-CIWBtgt2.d.ts → time-DJU6E8KK.d.ts} +943 -192
  21. package/dist/{token-registry-snapshot-CqI6dXM_.d.cts → token-registry-snapshot-B0xCp3GD.d.cts} +74 -8
  22. package/dist/{token-registry-snapshot-BNBNuDu1.d.ts → token-registry-snapshot-DGG5N27C.d.ts} +74 -8
  23. package/dist/universal/index.cjs +1036 -439
  24. package/dist/universal/index.cjs.map +1 -1
  25. package/dist/universal/index.d.cts +105 -5
  26. package/dist/universal/index.d.ts +105 -5
  27. package/dist/universal/index.js +48 -2
  28. package/package.json +1 -1
  29. package/dist/chunk-DCW7NQXH.js.map +0 -1
  30. package/dist/chunk-MOE5S6CE.js.map +0 -1
  31. package/dist/chunk-VH34YC3Q.js.map +0 -1
@@ -1,7 +1,7 @@
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';
1
+ import { aK as PaginationParams, aL as PaginatedResponse, B as BlockchainAmount, a as EthereumChain, b as EvmContractAddress, K as TokenMetadata, aN as OfferToken, M as CentrifugeVaultOfferDetail, G as DecimalString, H as StablecoinSymbol, o as OndoBuyTransaction, p as OndoSellTransaction, ar as HttpError, u as Bps, aO as SwapStatus, aa as AssetDecimals, n as OfferSwapContract, aP as Uint256, d as AssetSymbol, v as EvmWalletAddress, aQ as KnownAssetSymbol, I as Erc20Asset, aR as Newtype } from '../time-DJU6E8KK.cjs';
2
+ export { aS as AllowWalletParams, aT as AllowWalletResponse, aU as Asset, aV as AssetCode, k as AssetId, $ as AsyncOfferDetail, _ as AsyncOfferType, A as AuthorizationCode, aW as Blockchain, ab as BuildCentrifugeVaultBuyParams, ag as BuildOndoBuyParams, ah as BuildOndoSellParams, aX as BuildOndoSwapParamsCore, f as CentrifugeClaimDirection, c as CentrifugeNamespace, g as CentrifugeNamespaceImpl, ad as CentrifugeOrderReason, ae as CentrifugeOrderability, aY as CentrifugePositionStatus, e as CentrifugeVaultBuyTransaction, aZ as CentrifugeVaultClaimProceedsTransaction, a_ as CentrifugeVaultClaimTransaction, al as CentrifugeVaultLeg, Y as CentrifugeVaultLegId, a$ as CentrifugeVaultOffer, b0 as CentrifugeVaultPosition, ac as CentrifugeVaultQuote, b1 as CentrifugeVaultReason, b2 as CentrifugeVaultRedeemPosition, an as CentrifugeVaultStatus, b3 as CentrifugeVaultTransactionCore, b4 as CentrifugeWalletParams, b5 as Chain, aI as ClientCredentialsOAuth, b6 as ClientId, aM as ClientSecret, b7 as CodeChallenge, C as CodeVerifier, h as CoinListTokenSaleNamespace, l as CoinListTokenSaleNamespaceImpl, b8 as CoinListTokenSaleOffer, V as CoinListTokenSaleOfferDetail, z as Config, b9 as ConnectExternalWalletParams, ba as CreateKycTokenParams, bb as CreateParticipationParams, bc as CreateWalletOwnershipChallengeParams, bd as Cursor, ap as DebugEvent, be as DocumentFormType, a7 as DocumentSubmission, bf as DocumentSubmissionStatus, bg as DocumentType, bh as ETHEREUM_CHAINS, bi as EpochMillis, E as Erc20Namespace, bj as Erc20NamespaceImpl, bk as FaqItem, aq as FrontlineEventId, bl as GetCentrifugeVaultQuoteParams, bm as GetCentrifugeVaultStatusParams, bn as GetOndoQuoteParams, bo as GetOndoTradingStatusParams, bp as GetSwapAuthorizationParams, bq as GetSwapPreviewParams, br as GetTokenAllowanceParams, bs as GetTokenBalanceParams, bt as HexEncodedTransactionData, as as HttpResponse, bu as Isin, bv as Iso2CountryCode, a6 as KycLevelName, at as KycToken, bw as Link, bx as ListOptionAddressesParams, au as LogBinding, av as LogBindings, aw as LogCause, ax as LogLevel, ay as LogScope, az as LogValue, L as Logger, by as MAX_ASSET_DECIMALS, bz as MAX_UINT_256, bA as Milestone, bB as Millis, D as OAuthAccessToken, bC as OAuthRefreshToken, aH as OAuthSession, a0 as Offer, bD as OfferBase, J as OfferDetail, bE as OfferDetailBase, bF as OfferEditorial, i as OfferId, bG as OfferOption, a4 as OfferOptionAddress, am as OfferOptionAddressId, j as OfferOptionId, bH as OfferOptionSlug, bI as OfferSlug, N as OfferType, O as OfferVaultContract, F as OffersNamespace, bJ as OffersNamespaceImpl, m as OndoNamespace, s as OndoNamespaceImpl, ai as OndoQuote, bK as OndoQuoteDuration, aj as OndoQuoteSize, bL as OndoSellOutcome, bM as OndoSwapOffer, Q as OndoSwapOfferDetail, q as OndoSwapTransactionCore, af as OndoTradingStatus, r as OrderBookSide, bN as PKCEState, bO as PaginatedResponseDto, P as Participation, bP as ParticipationId, bQ as ParticipationStatus, bR as ParticipationsPaginationParams, bS as PauseFlags, bT as Pii, bU as PiiAddress, bV as PiiJurisdiction, bW as PiiKind, a9 as PinoLoggerOptions, aA as ProductionLogLevel, bX as QueryParamValue, bY as QueryParamValues, aB as RedactedWalletError, bZ as RedirectUri, b_ as RemoveOptionAddressParams, aC as RequestId, x as Requirement, b$ as RequirementActionNeededReason, a5 as RequirementId, a1 as RequirementStatusInfo, a3 as RequirementStatusValue, a2 as RequirementType, R as RequirementsNamespace, y as RequirementsNamespaceImpl, c0 as RpcConfig, aD as RpcFailureReason, c1 as SOLANA_CHAINS, c2 as STABLE_DECIMALS, aE as SafeEvent, aF as SafeFields, Z as Seconds, c3 as SolanaChain, c4 as SubmitDocumentParams, S as SuperstateSwapNamespace, w as SuperstateSwapNamespaceImpl, c5 as SuperstateSwapOffer, X as SuperstateSwapOfferDetail, c6 as SwapContractRef, c7 as SwapPreview, c8 as TermItem, c9 as Ticker, ak as TokenIdentifier, ao as TokenLogo, ca as TokenLogoImage, cb as TokenLogoUrl, cc as TokenRole, T as TokensNamespace, cd as TokensNamespaceImpl, ce as Tx, aG as UnredactedFields, cf as WalletAddress, a8 as WalletChallengeType, W as WalletError, cg as WalletOwnershipChallenge, ch as WalletProtocol, t as WalletsNamespace, ci as WalletsNamespaceImpl, cj as apiErrorCode, ck as assertUint256, cl as isChain, cm as isExpired, cn as isOfferType, co as parseUint256 } from '../time-DJU6E8KK.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-B0xCp3GD.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-B0xCp3GD.cjs';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
6
 
7
7
  /**
@@ -15,6 +15,69 @@ import { TransactionReceipt, Hash, Chain } from 'viem';
15
15
  */
16
16
  declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>(fetchPage: (params: P) => Promise<PaginatedResponse<A>>, baseParams?: Omit<P, keyof PaginationParams>): Promise<A[]>;
17
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
+ * The spend the asset panel prices while the user has not confirmed an amount:
31
+ * 100 USDC.
32
+ *
33
+ * A fixed size so typing in the amount field does not restart this poll. The
34
+ * review step polls a quote for the confirmed spend, which is the estimate it
35
+ * shows.
36
+ */
37
+ declare const CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT: BlockchainAmount;
38
+
39
+ /**
40
+ * One chain a vault offer runs on, with everything a screen needs to read and
41
+ * show a position there: the proxy every request and claim goes through, the
42
+ * share token it issues, and the funding token it is paid in.
43
+ *
44
+ * The share token's `symbol` is what every `/v1/centrifuge/vault/*` call is
45
+ * keyed by.
46
+ */
47
+ type CentrifugeVault = {
48
+ chain: EthereumChain;
49
+ proxy: EvmContractAddress;
50
+ share: TokenMetadata;
51
+ funding: TokenMetadata;
52
+ };
53
+ /**
54
+ * The vaults an offer runs on, or why a chain could not be resolved: one
55
+ * entry per `vaultContracts` chain, in the offer's order.
56
+ */
57
+ type CentrifugeVaultResolution = {
58
+ type: 'resolved';
59
+ vault: CentrifugeVault;
60
+ } | {
61
+ type: 'unresolved';
62
+ chain: OfferToken['chain'];
63
+ /** Which token the offer or the registry could not name. */
64
+ missing: 'share-token' | 'funding-token' | 'evm-chain';
65
+ };
66
+ /**
67
+ * Resolves each chain of a vault offer to its share and funding tokens.
68
+ *
69
+ * The offer names tokens by role and address only - the share token as
70
+ * `vault`, the coin it is paid in as `funding` - so `lookup` turns each into
71
+ * metadata. A function rather than a registry snapshot, so this module does
72
+ * not depend on where the metadata comes from.
73
+ *
74
+ * A chain whose tokens cannot be named is reported rather than dropped: its
75
+ * position cannot be read without the symbol, and a caller has to know it is
76
+ * not showing it. When a chain lists several funding tokens, the first one
77
+ * `lookup` knows wins - a vault is priced in one.
78
+ */
79
+ declare function resolveCentrifugeVaults(offer: CentrifugeVaultOfferDetail, lookup: (token: OfferToken) => TokenMetadata | null): CentrifugeVaultResolution[];
80
+
18
81
  /**
19
82
  * How often the Ondo checkout refreshes what it is allowed to poll: the market
20
83
  * status and the indicative price. Both are free - neither spends an
@@ -129,6 +192,26 @@ declare function computeOndoSellPrice(transaction: OndoSellTransaction): Blockch
129
192
  /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
130
193
  declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
131
194
 
195
+ /**
196
+ * The CoinList API's error code for an Ondo quote refused because the asset
197
+ * cannot be traded right now: the market is closed or paused, or the asset is
198
+ * paused or closed for the session. It arrives on a 409.
199
+ *
200
+ * One code for all four of Ondo's reasons, because the remedy is the same:
201
+ * wait for the market to open. Ondo pauses for a moment at every US session
202
+ * change (04:00 and 16:00 ET), so a poll can land on one even while
203
+ * `getTradingStatus` reported the asset tradable a second earlier.
204
+ */
205
+ declare const ONDO_NOT_TRADABLE_CODE = "not_tradable";
206
+ /**
207
+ * Whether `error` is the CoinList API refusing an Ondo quote because the
208
+ * market is not open, as opposed to a request that failed.
209
+ *
210
+ * Total: anything that is not an `HttpError` carrying
211
+ * {@link ONDO_NOT_TRADABLE_CODE} is `false`.
212
+ */
213
+ declare function isOndoNotTradableError(error: unknown): error is HttpError;
214
+
132
215
  /**
133
216
  * The Superstate swap contract's ABI, generated verbatim from the shared
134
217
  * `TokenSwap` base contract:
@@ -1122,6 +1205,13 @@ declare const ERC20_ABI: readonly [{
1122
1205
  declare function shortenAddress(address: EvmWalletAddress): ShortenedWalletAddress;
1123
1206
  type FormatAmountOptions = {
1124
1207
  maxFractionDigits?: AssetDecimals;
1208
+ /**
1209
+ * Trailing zeros are kept down to this many places. Defaults to
1210
+ * `maxFractionDigits` when that is set, otherwise 2 (or the token's own
1211
+ * decimals, when fewer). A figure that wants a cap and a shorter floor —
1212
+ * a share headline — passes both.
1213
+ */
1214
+ minFractionDigits?: AssetDecimals;
1125
1215
  };
1126
1216
  declare function formatAmount(amount: BlockchainAmount, locale: string, options?: FormatAmountOptions): FormattedAmountUi;
1127
1217
  declare function formatRawAmount(amount: BlockchainAmount): string;
@@ -1137,6 +1227,16 @@ declare function usdAmount(amount: FormattedAmountUi): FormattedAmountAssetUi;
1137
1227
  declare function assetAmount(amount: FormattedAmountUi, symbol: AssetSymbol): FormattedAmountAssetUi;
1138
1228
  /** Placeholder shown when an amount is unavailable (e.g. a loading quote). */
1139
1229
  declare const NA_AMOUNT_ASSET_UI: FormattedAmountAssetUi;
1230
+ /**
1231
+ * A share quantity for a headline: at most 6 decimal places, at least 2, with
1232
+ * the zeros between those dropped.
1233
+ *
1234
+ * An 18-decimal fill (`0.002689383776381483`) otherwise takes the whole
1235
+ * confirmation row and the fund name collapses to an ellipsis. Places past 6
1236
+ * are dust at share scale. The chain amount is unchanged, and the transaction
1237
+ * link still carries the exact figure.
1238
+ */
1239
+ declare function formatShareAmount(amount: BlockchainAmount, locale: string): FormattedAmountUi;
1140
1240
  /**
1141
1241
  * Formats a USD amount capped at 2 fractional digits, falling back to the
1142
1242
  * {@link NA_AMOUNT_ASSET_UI} placeholder when the amount is absent.
@@ -1273,4 +1373,4 @@ declare const User: {
1273
1373
  fromDto: (dto: UserDto) => User;
1274
1374
  };
1275
1375
 
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 };
1376
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT, 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,7 +1,7 @@
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';
1
+ import { aK as PaginationParams, aL as PaginatedResponse, B as BlockchainAmount, a as EthereumChain, b as EvmContractAddress, K as TokenMetadata, aN as OfferToken, M as CentrifugeVaultOfferDetail, G as DecimalString, H as StablecoinSymbol, o as OndoBuyTransaction, p as OndoSellTransaction, ar as HttpError, u as Bps, aO as SwapStatus, aa as AssetDecimals, n as OfferSwapContract, aP as Uint256, d as AssetSymbol, v as EvmWalletAddress, aQ as KnownAssetSymbol, I as Erc20Asset, aR as Newtype } from '../time-DJU6E8KK.js';
2
+ export { aS as AllowWalletParams, aT as AllowWalletResponse, aU as Asset, aV as AssetCode, k as AssetId, $ as AsyncOfferDetail, _ as AsyncOfferType, A as AuthorizationCode, aW as Blockchain, ab as BuildCentrifugeVaultBuyParams, ag as BuildOndoBuyParams, ah as BuildOndoSellParams, aX as BuildOndoSwapParamsCore, f as CentrifugeClaimDirection, c as CentrifugeNamespace, g as CentrifugeNamespaceImpl, ad as CentrifugeOrderReason, ae as CentrifugeOrderability, aY as CentrifugePositionStatus, e as CentrifugeVaultBuyTransaction, aZ as CentrifugeVaultClaimProceedsTransaction, a_ as CentrifugeVaultClaimTransaction, al as CentrifugeVaultLeg, Y as CentrifugeVaultLegId, a$ as CentrifugeVaultOffer, b0 as CentrifugeVaultPosition, ac as CentrifugeVaultQuote, b1 as CentrifugeVaultReason, b2 as CentrifugeVaultRedeemPosition, an as CentrifugeVaultStatus, b3 as CentrifugeVaultTransactionCore, b4 as CentrifugeWalletParams, b5 as Chain, aI as ClientCredentialsOAuth, b6 as ClientId, aM as ClientSecret, b7 as CodeChallenge, C as CodeVerifier, h as CoinListTokenSaleNamespace, l as CoinListTokenSaleNamespaceImpl, b8 as CoinListTokenSaleOffer, V as CoinListTokenSaleOfferDetail, z as Config, b9 as ConnectExternalWalletParams, ba as CreateKycTokenParams, bb as CreateParticipationParams, bc as CreateWalletOwnershipChallengeParams, bd as Cursor, ap as DebugEvent, be as DocumentFormType, a7 as DocumentSubmission, bf as DocumentSubmissionStatus, bg as DocumentType, bh as ETHEREUM_CHAINS, bi as EpochMillis, E as Erc20Namespace, bj as Erc20NamespaceImpl, bk as FaqItem, aq as FrontlineEventId, bl as GetCentrifugeVaultQuoteParams, bm as GetCentrifugeVaultStatusParams, bn as GetOndoQuoteParams, bo as GetOndoTradingStatusParams, bp as GetSwapAuthorizationParams, bq as GetSwapPreviewParams, br as GetTokenAllowanceParams, bs as GetTokenBalanceParams, bt as HexEncodedTransactionData, as as HttpResponse, bu as Isin, bv as Iso2CountryCode, a6 as KycLevelName, at as KycToken, bw as Link, bx as ListOptionAddressesParams, au as LogBinding, av as LogBindings, aw as LogCause, ax as LogLevel, ay as LogScope, az as LogValue, L as Logger, by as MAX_ASSET_DECIMALS, bz as MAX_UINT_256, bA as Milestone, bB as Millis, D as OAuthAccessToken, bC as OAuthRefreshToken, aH as OAuthSession, a0 as Offer, bD as OfferBase, J as OfferDetail, bE as OfferDetailBase, bF as OfferEditorial, i as OfferId, bG as OfferOption, a4 as OfferOptionAddress, am as OfferOptionAddressId, j as OfferOptionId, bH as OfferOptionSlug, bI as OfferSlug, N as OfferType, O as OfferVaultContract, F as OffersNamespace, bJ as OffersNamespaceImpl, m as OndoNamespace, s as OndoNamespaceImpl, ai as OndoQuote, bK as OndoQuoteDuration, aj as OndoQuoteSize, bL as OndoSellOutcome, bM as OndoSwapOffer, Q as OndoSwapOfferDetail, q as OndoSwapTransactionCore, af as OndoTradingStatus, r as OrderBookSide, bN as PKCEState, bO as PaginatedResponseDto, P as Participation, bP as ParticipationId, bQ as ParticipationStatus, bR as ParticipationsPaginationParams, bS as PauseFlags, bT as Pii, bU as PiiAddress, bV as PiiJurisdiction, bW as PiiKind, a9 as PinoLoggerOptions, aA as ProductionLogLevel, bX as QueryParamValue, bY as QueryParamValues, aB as RedactedWalletError, bZ as RedirectUri, b_ as RemoveOptionAddressParams, aC as RequestId, x as Requirement, b$ as RequirementActionNeededReason, a5 as RequirementId, a1 as RequirementStatusInfo, a3 as RequirementStatusValue, a2 as RequirementType, R as RequirementsNamespace, y as RequirementsNamespaceImpl, c0 as RpcConfig, aD as RpcFailureReason, c1 as SOLANA_CHAINS, c2 as STABLE_DECIMALS, aE as SafeEvent, aF as SafeFields, Z as Seconds, c3 as SolanaChain, c4 as SubmitDocumentParams, S as SuperstateSwapNamespace, w as SuperstateSwapNamespaceImpl, c5 as SuperstateSwapOffer, X as SuperstateSwapOfferDetail, c6 as SwapContractRef, c7 as SwapPreview, c8 as TermItem, c9 as Ticker, ak as TokenIdentifier, ao as TokenLogo, ca as TokenLogoImage, cb as TokenLogoUrl, cc as TokenRole, T as TokensNamespace, cd as TokensNamespaceImpl, ce as Tx, aG as UnredactedFields, cf as WalletAddress, a8 as WalletChallengeType, W as WalletError, cg as WalletOwnershipChallenge, ch as WalletProtocol, t as WalletsNamespace, ci as WalletsNamespaceImpl, cj as apiErrorCode, ck as assertUint256, cl as isChain, cm as isExpired, cn as isOfferType, co as parseUint256 } from '../time-DJU6E8KK.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-DGG5N27C.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-DGG5N27C.js';
5
5
  import { TransactionReceipt, Hash, Chain } from 'viem';
6
6
 
7
7
  /**
@@ -15,6 +15,69 @@ import { TransactionReceipt, Hash, Chain } from 'viem';
15
15
  */
16
16
  declare function fetchAllPages<A, P extends PaginationParams = PaginationParams>(fetchPage: (params: P) => Promise<PaginatedResponse<A>>, baseParams?: Omit<P, keyof PaginationParams>): Promise<A[]>;
17
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
+ * The spend the asset panel prices while the user has not confirmed an amount:
31
+ * 100 USDC.
32
+ *
33
+ * A fixed size so typing in the amount field does not restart this poll. The
34
+ * review step polls a quote for the confirmed spend, which is the estimate it
35
+ * shows.
36
+ */
37
+ declare const CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT: BlockchainAmount;
38
+
39
+ /**
40
+ * One chain a vault offer runs on, with everything a screen needs to read and
41
+ * show a position there: the proxy every request and claim goes through, the
42
+ * share token it issues, and the funding token it is paid in.
43
+ *
44
+ * The share token's `symbol` is what every `/v1/centrifuge/vault/*` call is
45
+ * keyed by.
46
+ */
47
+ type CentrifugeVault = {
48
+ chain: EthereumChain;
49
+ proxy: EvmContractAddress;
50
+ share: TokenMetadata;
51
+ funding: TokenMetadata;
52
+ };
53
+ /**
54
+ * The vaults an offer runs on, or why a chain could not be resolved: one
55
+ * entry per `vaultContracts` chain, in the offer's order.
56
+ */
57
+ type CentrifugeVaultResolution = {
58
+ type: 'resolved';
59
+ vault: CentrifugeVault;
60
+ } | {
61
+ type: 'unresolved';
62
+ chain: OfferToken['chain'];
63
+ /** Which token the offer or the registry could not name. */
64
+ missing: 'share-token' | 'funding-token' | 'evm-chain';
65
+ };
66
+ /**
67
+ * Resolves each chain of a vault offer to its share and funding tokens.
68
+ *
69
+ * The offer names tokens by role and address only - the share token as
70
+ * `vault`, the coin it is paid in as `funding` - so `lookup` turns each into
71
+ * metadata. A function rather than a registry snapshot, so this module does
72
+ * not depend on where the metadata comes from.
73
+ *
74
+ * A chain whose tokens cannot be named is reported rather than dropped: its
75
+ * position cannot be read without the symbol, and a caller has to know it is
76
+ * not showing it. When a chain lists several funding tokens, the first one
77
+ * `lookup` knows wins - a vault is priced in one.
78
+ */
79
+ declare function resolveCentrifugeVaults(offer: CentrifugeVaultOfferDetail, lookup: (token: OfferToken) => TokenMetadata | null): CentrifugeVaultResolution[];
80
+
18
81
  /**
19
82
  * How often the Ondo checkout refreshes what it is allowed to poll: the market
20
83
  * status and the indicative price. Both are free - neither spends an
@@ -129,6 +192,26 @@ declare function computeOndoSellPrice(transaction: OndoSellTransaction): Blockch
129
192
  /** The sooner of Ondo's deadline and now + {@link ONDO_QUOTE_MAX_TTL_MS}. */
130
193
  declare function ondoQuoteOfferDeadline(expiresAt: Date, nowMs?: number): Date;
131
194
 
195
+ /**
196
+ * The CoinList API's error code for an Ondo quote refused because the asset
197
+ * cannot be traded right now: the market is closed or paused, or the asset is
198
+ * paused or closed for the session. It arrives on a 409.
199
+ *
200
+ * One code for all four of Ondo's reasons, because the remedy is the same:
201
+ * wait for the market to open. Ondo pauses for a moment at every US session
202
+ * change (04:00 and 16:00 ET), so a poll can land on one even while
203
+ * `getTradingStatus` reported the asset tradable a second earlier.
204
+ */
205
+ declare const ONDO_NOT_TRADABLE_CODE = "not_tradable";
206
+ /**
207
+ * Whether `error` is the CoinList API refusing an Ondo quote because the
208
+ * market is not open, as opposed to a request that failed.
209
+ *
210
+ * Total: anything that is not an `HttpError` carrying
211
+ * {@link ONDO_NOT_TRADABLE_CODE} is `false`.
212
+ */
213
+ declare function isOndoNotTradableError(error: unknown): error is HttpError;
214
+
132
215
  /**
133
216
  * The Superstate swap contract's ABI, generated verbatim from the shared
134
217
  * `TokenSwap` base contract:
@@ -1122,6 +1205,13 @@ declare const ERC20_ABI: readonly [{
1122
1205
  declare function shortenAddress(address: EvmWalletAddress): ShortenedWalletAddress;
1123
1206
  type FormatAmountOptions = {
1124
1207
  maxFractionDigits?: AssetDecimals;
1208
+ /**
1209
+ * Trailing zeros are kept down to this many places. Defaults to
1210
+ * `maxFractionDigits` when that is set, otherwise 2 (or the token's own
1211
+ * decimals, when fewer). A figure that wants a cap and a shorter floor —
1212
+ * a share headline — passes both.
1213
+ */
1214
+ minFractionDigits?: AssetDecimals;
1125
1215
  };
1126
1216
  declare function formatAmount(amount: BlockchainAmount, locale: string, options?: FormatAmountOptions): FormattedAmountUi;
1127
1217
  declare function formatRawAmount(amount: BlockchainAmount): string;
@@ -1137,6 +1227,16 @@ declare function usdAmount(amount: FormattedAmountUi): FormattedAmountAssetUi;
1137
1227
  declare function assetAmount(amount: FormattedAmountUi, symbol: AssetSymbol): FormattedAmountAssetUi;
1138
1228
  /** Placeholder shown when an amount is unavailable (e.g. a loading quote). */
1139
1229
  declare const NA_AMOUNT_ASSET_UI: FormattedAmountAssetUi;
1230
+ /**
1231
+ * A share quantity for a headline: at most 6 decimal places, at least 2, with
1232
+ * the zeros between those dropped.
1233
+ *
1234
+ * An 18-decimal fill (`0.002689383776381483`) otherwise takes the whole
1235
+ * confirmation row and the fund name collapses to an ellipsis. Places past 6
1236
+ * are dust at share scale. The chain amount is unchanged, and the transaction
1237
+ * link still carries the exact figure.
1238
+ */
1239
+ declare function formatShareAmount(amount: BlockchainAmount, locale: string): FormattedAmountUi;
1140
1240
  /**
1141
1241
  * Formats a USD amount capped at 2 fractional digits, falling back to the
1142
1242
  * {@link NA_AMOUNT_ASSET_UI} placeholder when the amount is absent.
@@ -1273,4 +1373,4 @@ declare const User: {
1273
1373
  fromDto: (dto: UserDto) => User;
1274
1374
  };
1275
1375
 
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 };
1376
+ export { type AmountParseErrorReason, type AmountParseResult, AssetDecimals, AssetSymbol, BPS_DENOM, BlockchainAmount, Bps, CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT, 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,8 @@
1
1
  import {
2
2
  AuthorizationCode,
3
3
  BPS_DENOM,
4
+ CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT,
5
+ CENTRIFUGE_POLL_INTERVAL_MS,
4
6
  ClientId,
5
7
  ClientSecret,
6
8
  CodeChallenge,
@@ -9,6 +11,7 @@ import {
9
11
  DEFAULT_ONDO_AMOUNT_TO_COMPUTE_PRICE,
10
12
  DEFAULT_ONDO_SELL_TOKENS_TO_COMPUTE_PRICE,
11
13
  DEFAULT_SLIPPAGE_BPS,
14
+ ONDO_NOT_TRADABLE_CODE,
12
15
  ONDO_POLL_INTERVAL_MS,
13
16
  ONDO_QUOTE_MAX_TTL_MS,
14
17
  ONDO_SETTLEMENT_ASSET,
@@ -33,6 +36,7 @@ import {
33
36
  User,
34
37
  UserEmail,
35
38
  UserId,
39
+ WalletSelection,
36
40
  applyBps,
37
41
  computeOndoBuyPrice,
38
42
  computeOndoSellPrice,
@@ -41,12 +45,14 @@ import {
41
45
  decodeSwappedOutputAmount,
42
46
  formattedPricePerShare,
43
47
  generatePKCEParams,
48
+ isOndoNotTradableError,
44
49
  isSwapAvailable,
45
50
  offerDisplayTokens,
46
51
  ondoQuoteOfferDeadline,
52
+ resolveCentrifugeVaults,
47
53
  superstateSwapContractAddress,
48
54
  swapSpender
49
- } from "../chunk-VH34YC3Q.js";
55
+ } from "../chunk-OUFI3D3Q.js";
50
56
  import {
51
57
  AllowWalletResponse,
52
58
  Asset,
@@ -55,9 +61,20 @@ import {
55
61
  AssetIconUrl,
56
62
  AssetId,
57
63
  AssetSymbol,
64
+ AsyncOfferDetail,
58
65
  Blockchain,
59
66
  BlockchainAmount,
60
67
  Bps,
68
+ CentrifugeNamespaceImpl,
69
+ CentrifugeVaultBuyTransaction,
70
+ CentrifugeVaultClaimProceedsTransaction,
71
+ CentrifugeVaultClaimTransaction,
72
+ CentrifugeVaultLeg,
73
+ CentrifugeVaultLegId,
74
+ CentrifugeVaultPosition,
75
+ CentrifugeVaultQuote,
76
+ CentrifugeVaultRedeemPosition,
77
+ CentrifugeVaultStatus,
61
78
  Chain,
62
79
  ClientCredentialsOAuth,
63
80
  CoinListTokenSaleNamespaceImpl,
@@ -69,6 +86,7 @@ import {
69
86
  DocumentSubmission,
70
87
  ERC20_ABI,
71
88
  ETHEREUM_CHAINS,
89
+ EpochMillis,
72
90
  Erc20NamespaceImpl,
73
91
  EthereumChain,
74
92
  EvmContractAddress,
@@ -89,6 +107,7 @@ import {
89
107
  MAX_UINT_256,
90
108
  MathError,
91
109
  Milestone,
110
+ Millis,
92
111
  NA_AMOUNT_ASSET_UI,
93
112
  NotAuthenticatedError,
94
113
  NotImplementedError,
@@ -106,6 +125,7 @@ import {
106
125
  OfferSlug,
107
126
  OfferSwapContract,
108
127
  OfferToken,
128
+ OfferVaultContract,
109
129
  OndoBuyTransaction,
110
130
  OndoNamespaceImpl,
111
131
  OndoQuote,
@@ -127,6 +147,7 @@ import {
127
147
  SOLANA_CHAINS,
128
148
  STABLE_DECIMALS,
129
149
  SUPERSTATE_SWAP_ABI,
150
+ Seconds,
130
151
  ShortenedWalletAddress,
131
152
  SolanaChain,
132
153
  StablecoinSymbol,
@@ -154,10 +175,12 @@ import {
154
175
  formatBpsAsPercent,
155
176
  formatCompactAmount,
156
177
  formatRawAmount,
178
+ formatShareAmount,
157
179
  formattedUsdPrice,
158
180
  getChainId,
159
181
  getNetworkName,
160
182
  isChain,
183
+ isExpired,
161
184
  isOfferType,
162
185
  parseBlockchainAmount,
163
186
  parseUint256,
@@ -165,7 +188,7 @@ import {
165
188
  txExplorerUrl,
166
189
  usdAmount,
167
190
  viemChain
168
- } from "../chunk-MOE5S6CE.js";
191
+ } from "../chunk-YMDYLYL3.js";
169
192
  export {
170
193
  AllowWalletResponse,
171
194
  Asset,
@@ -174,11 +197,24 @@ export {
174
197
  AssetIconUrl,
175
198
  AssetId,
176
199
  AssetSymbol,
200
+ AsyncOfferDetail,
177
201
  AuthorizationCode,
178
202
  BPS_DENOM,
179
203
  Blockchain,
180
204
  BlockchainAmount,
181
205
  Bps,
206
+ CENTRIFUGE_INDICATIVE_QUOTE_AMOUNT,
207
+ CENTRIFUGE_POLL_INTERVAL_MS,
208
+ CentrifugeNamespaceImpl,
209
+ CentrifugeVaultBuyTransaction,
210
+ CentrifugeVaultClaimProceedsTransaction,
211
+ CentrifugeVaultClaimTransaction,
212
+ CentrifugeVaultLeg,
213
+ CentrifugeVaultLegId,
214
+ CentrifugeVaultPosition,
215
+ CentrifugeVaultQuote,
216
+ CentrifugeVaultRedeemPosition,
217
+ CentrifugeVaultStatus,
182
218
  Chain,
183
219
  ClientCredentialsOAuth,
184
220
  ClientId,
@@ -198,6 +234,7 @@ export {
198
234
  DocumentSubmission,
199
235
  ERC20_ABI,
200
236
  ETHEREUM_CHAINS,
237
+ EpochMillis,
201
238
  Erc20NamespaceImpl,
202
239
  EthereumChain,
203
240
  EvmContractAddress,
@@ -218,11 +255,13 @@ export {
218
255
  MAX_UINT_256,
219
256
  MathError,
220
257
  Milestone,
258
+ Millis,
221
259
  NA_AMOUNT_ASSET_UI,
222
260
  NotAuthenticatedError,
223
261
  NotImplementedError,
224
262
  OAuthRefreshToken,
225
263
  OAuthSession,
264
+ ONDO_NOT_TRADABLE_CODE,
226
265
  ONDO_POLL_INTERVAL_MS,
227
266
  ONDO_QUOTE_MAX_TTL_MS,
228
267
  ONDO_SETTLEMENT_ASSET,
@@ -239,6 +278,7 @@ export {
239
278
  OfferSlug,
240
279
  OfferSwapContract,
241
280
  OfferToken,
281
+ OfferVaultContract,
242
282
  OffersNamespaceImpl,
243
283
  OndoBuyTransaction,
244
284
  OndoNamespaceImpl,
@@ -270,6 +310,7 @@ export {
270
310
  SUPERSTATE_SWAP_CONTRACT_ADDRESS_SEPOLIA,
271
311
  SWAP_LEVEL,
272
312
  SWAP_POLL_INTERVAL_MS,
313
+ Seconds,
273
314
  ShortenedWalletAddress,
274
315
  SolanaChain,
275
316
  StablecoinSymbol,
@@ -296,6 +337,7 @@ export {
296
337
  ValidationError,
297
338
  WalletAddress,
298
339
  WalletOwnershipChallenge,
340
+ WalletSelection,
299
341
  WalletsNamespaceImpl,
300
342
  apiErrorCode,
301
343
  applyBps,
@@ -313,18 +355,22 @@ export {
313
355
  formatBpsAsPercent,
314
356
  formatCompactAmount,
315
357
  formatRawAmount,
358
+ formatShareAmount,
316
359
  formattedPricePerShare,
317
360
  formattedUsdPrice,
318
361
  generatePKCEParams,
319
362
  getChainId,
320
363
  getNetworkName,
321
364
  isChain,
365
+ isExpired,
322
366
  isOfferType,
367
+ isOndoNotTradableError,
323
368
  isSwapAvailable,
324
369
  offerDisplayTokens,
325
370
  ondoQuoteOfferDeadline,
326
371
  parseBlockchainAmount,
327
372
  parseUint256,
373
+ resolveCentrifugeVaults,
328
374
  shortenAddress,
329
375
  superstateSwapContractAddress,
330
376
  swapSpender,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinlist-co/react",
3
- "version": "0.12.2-rc.7b430dd",
3
+ "version": "0.12.2-rc.818bed6",
4
4
  "description": "CoinList Partner SDK",
5
5
  "type": "module",
6
6
  "scripts": {