@coinlist-co/react 0.12.1-rc.14ac67e → 0.12.1-rc.a230abc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3ATIDGVR.js → chunk-GFLU5OMP.js} +19 -5
- package/dist/chunk-GFLU5OMP.js.map +1 -0
- package/dist/{chunk-SOMNMOBU.js → chunk-HLL7IBIS.js} +2 -2
- package/dist/{chunk-2XBPKC4C.js → chunk-RPE7XIBV.js} +2 -2
- package/dist/client/index.cjs +414 -273
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +212 -85
- package/dist/client/index.d.ts +212 -85
- package/dist/client/index.js +365 -242
- package/dist/client/index.js.map +1 -1
- package/dist/{collections-DNbBE6Pk.d.cts → collections-CAfs2Eww.d.cts} +1 -1
- package/dist/{collections-DVCh4jUp.d.ts → collections-DZZFrizd.d.ts} +1 -1
- package/dist/{config-DFYAM0GD.d.cts → config-D19ktBr0.d.cts} +19 -1
- package/dist/{config-DFYAM0GD.d.ts → config-D19ktBr0.d.ts} +19 -1
- package/dist/server/index.cjs +17 -4
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -2
- package/dist/shared/index.cjs +19 -4
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +4 -4
- package/dist/shared/index.d.ts +4 -4
- package/dist/shared/index.js +4 -2
- package/package.json +1 -1
- package/dist/chunk-3ATIDGVR.js.map +0 -1
- /package/dist/{chunk-SOMNMOBU.js.map → chunk-HLL7IBIS.js.map} +0 -0
- /package/dist/{chunk-2XBPKC4C.js.map → chunk-RPE7XIBV.js.map} +0 -0
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { A as AuthorizationCode, C as CodeVerifier, L as Logger, W as WalletError, E as Erc20Namespace, a as EthereumChain, b as EvmContractAddress, B as BlockchainAmount, c as CoinListTokenSaleNamespace, O as OfferId, d as OfferOptionId, e as AssetId, P as Participation, f as CoinListTokenSaleNamespaceImpl, S as SharedNamespaceContext, g as OndoNamespace, h as AssetSymbol, i as OfferSwapContract, j as OndoBuyTransaction, k as OndoSellTransaction, l as OndoSwapTransactionCore, m as OrderBookSide, n as OndoNamespaceImpl, o as SuperstateSwapNamespace, p as WalletsNamespace, q as Bps, r as EvmWalletAddress, s as SuperstateSwapNamespaceImpl, R as RequirementsNamespace, t as Requirement, u as RequirementsNamespaceImpl, v as Config, w as OAuthAccessToken, x as OffersNamespace, T as TokensNamespace, y as StablecoinSymbol, z as Erc20Asset, D as OfferDetail, F as
|
|
4
|
-
export {
|
|
5
|
-
import { P as PKCEConfig, E as EvmWallet, S as SwapQuote, A as AssetIconUrl, a as ShortenedWalletAddress, F as FormattedAmountAssetUi, b as FormattedPercentUi, T as TxExplorerUrl, C as ConnectWallet, N as NonEmptyArray } from '../collections-
|
|
6
|
-
export { B as BroadcastTxParams, c as EvmSigner, W as WriteContractParams } from '../collections-
|
|
3
|
+
import { A as AuthorizationCode, C as CodeVerifier, L as Logger, W as WalletError, E as Erc20Namespace, a as EthereumChain, b as EvmContractAddress, B as BlockchainAmount, c as CoinListTokenSaleNamespace, O as OfferId, d as OfferOptionId, e as AssetId, P as Participation, f as CoinListTokenSaleNamespaceImpl, S as SharedNamespaceContext, g as OndoNamespace, h as AssetSymbol, i as OfferSwapContract, j as OndoBuyTransaction, k as OndoSellTransaction, l as OndoSwapTransactionCore, m as OrderBookSide, n as OndoNamespaceImpl, o as SuperstateSwapNamespace, p as WalletsNamespace, q as Bps, r as EvmWalletAddress, s as SuperstateSwapNamespaceImpl, R as RequirementsNamespace, t as Requirement, u as RequirementsNamespaceImpl, v as Config, w as OAuthAccessToken, x as OffersNamespace, T as TokensNamespace, y as StablecoinSymbol, z as Erc20Asset, D as OfferDetail, F as TokenMetadata, G as OfferType, H as Offer, I as RequirementStatusInfo, J as RequirementType, K as RequirementStatusValue, M as OfferOptionAddress, N as RequirementId, Q as KycLevelName, U as DocumentSubmission, V as WalletChallengeType, X as PinoLoggerOptions, Y as OndoTradingStatus, Z as AssetDecimals, _ as BuildOndoBuyParams, $ as BuildOndoSellParams, a0 as OndoQuote, a1 as OndoQuoteSize, a2 as TokenIdentifier, a3 as OfferOptionAddressId, a4 as TokenLogo } from '../config-D19ktBr0.js';
|
|
4
|
+
export { a5 as DebugEvent, a6 as FrontlineEventId, a7 as HttpError, a8 as HttpResponse, a9 as KycToken, aa as LogBinding, ab as LogBindings, ac as LogCause, ad as LogLevel, ae as LogScope, af as LogValue, ag as ProductionLogLevel, ah as RedactedWalletError, ai as RequestId, aj as SafeEvent, ak as SafeFields, al as UnredactedFields } from '../config-D19ktBr0.js';
|
|
5
|
+
import { P as PKCEConfig, E as EvmWallet, S as SwapQuote, A as AssetIconUrl, a as ShortenedWalletAddress, F as FormattedAmountAssetUi, b as FormattedPercentUi, T as TxExplorerUrl, C as ConnectWallet, N as NonEmptyArray } from '../collections-DZZFrizd.js';
|
|
6
|
+
export { B as BroadcastTxParams, c as EvmSigner, W as WriteContractParams } from '../collections-DZZFrizd.js';
|
|
7
7
|
import { Hash } from 'viem';
|
|
8
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -1117,10 +1117,8 @@ type CheckoutAssetUi = {
|
|
|
1117
1117
|
name: string;
|
|
1118
1118
|
symbol: AssetSymbol;
|
|
1119
1119
|
/**
|
|
1120
|
-
* `null` when no icon is known for this asset
|
|
1121
|
-
*
|
|
1122
|
-
* one — so absence is the common case, not an edge case, and `AssetIcon`
|
|
1123
|
-
* renders a neutral placeholder for it.
|
|
1120
|
+
* `null` when no icon is known for this asset: no registry metadata, and no
|
|
1121
|
+
* logo on the offer. `AssetIcon` renders a neutral placeholder for it.
|
|
1124
1122
|
*/
|
|
1125
1123
|
iconUrl: AssetIconUrl | null;
|
|
1126
1124
|
network: CheckoutNetworkUi;
|
|
@@ -1131,10 +1129,10 @@ declare const CheckoutAssetUi: {
|
|
|
1131
1129
|
* name and symbol, the caller supplies the chain it is being traded on and
|
|
1132
1130
|
* whatever icon it has for it.
|
|
1133
1131
|
*
|
|
1134
|
-
* `iconUrl` is a caller's parameter rather than the token's own because
|
|
1135
|
-
*
|
|
1136
|
-
*
|
|
1137
|
-
*
|
|
1132
|
+
* `iconUrl` is a caller's parameter rather than the token's own because an
|
|
1133
|
+
* `Erc20Asset` does not carry one, and which source supplies it is the
|
|
1134
|
+
* caller's to decide. Which is also why it defaults to `null`: the input
|
|
1135
|
+
* asset a user pays with has no offer behind it.
|
|
1138
1136
|
*
|
|
1139
1137
|
* An asset sourced from the offer rather than from a token has its own
|
|
1140
1138
|
* companion, {@link fromOffer}. One companion per source, not one per call
|
|
@@ -1146,7 +1144,7 @@ declare const CheckoutAssetUi: {
|
|
|
1146
1144
|
}) => CheckoutAssetUi;
|
|
1147
1145
|
/**
|
|
1148
1146
|
* The view of the asset an offer sells: the offer supplies its name and the
|
|
1149
|
-
*
|
|
1147
|
+
* fallback artwork, the caller supplies the symbol and the chain.
|
|
1150
1148
|
*
|
|
1151
1149
|
* `symbol` is a parameter rather than `offer.asset.code` because the symbol a
|
|
1152
1150
|
* provider trades under is the provider's, not the catalogue's - Ondo's
|
|
@@ -1154,13 +1152,22 @@ declare const CheckoutAssetUi: {
|
|
|
1154
1152
|
* asset stands in. Keeping it out here is what lets one companion serve every
|
|
1155
1153
|
* provider instead of forking per provider.
|
|
1156
1154
|
*
|
|
1155
|
+
* The icon is resolved from the public token registry when `tokenMetadata`
|
|
1156
|
+
* carries a listed token — `useCheckoutOfferTokenMetadata` fetches it,
|
|
1157
|
+
* keyed by the token `OfferDetail.tokens` lists for this chain — and falls
|
|
1158
|
+
* back to the offer's own logo otherwise. `null` covers every way the
|
|
1159
|
+
* registry answer can be absent (unlisted, not settled, lookup failed);
|
|
1160
|
+
* which one it is stays the concern of the hook's state machine, not of
|
|
1161
|
+
* this model, because the icon is the same either way.
|
|
1162
|
+
*
|
|
1157
1163
|
* Deliberately no decimals. An offer names an asset; it does not answer for
|
|
1158
1164
|
* the scale of any particular quantity, and every amount a checkout renders
|
|
1159
1165
|
* arrives as a `BlockchainAmount` carrying its own.
|
|
1160
1166
|
*/
|
|
1161
|
-
fromOffer: (offer: OfferDetail, { symbol, networkName }: {
|
|
1167
|
+
fromOffer: (offer: OfferDetail, { symbol, networkName, tokenMetadata, }: {
|
|
1162
1168
|
symbol: AssetSymbol;
|
|
1163
1169
|
networkName: string;
|
|
1170
|
+
tokenMetadata: TokenMetadata | null;
|
|
1164
1171
|
}) => CheckoutAssetUi;
|
|
1165
1172
|
};
|
|
1166
1173
|
/** The chain an asset lives on, as a checkout screen renders it. */
|
|
@@ -1382,7 +1389,10 @@ interface UseSuperstateReviewViewModelOptions {
|
|
|
1382
1389
|
contractAddress: EvmContractAddress;
|
|
1383
1390
|
/** The chain the order executes on: the approval and the swap. */
|
|
1384
1391
|
chain: EthereumChain;
|
|
1385
|
-
/**
|
|
1392
|
+
/**
|
|
1393
|
+
* The output asset's icon, resolved registry-first by the flow above:
|
|
1394
|
+
* the offer's logo covers an unlisted token.
|
|
1395
|
+
*/
|
|
1386
1396
|
assetIconUrl: AssetIconUrl | null;
|
|
1387
1397
|
/** Called once the swap has mined. */
|
|
1388
1398
|
onComplete: (order: SuperstateOrderPlaced) => void;
|
|
@@ -4414,13 +4424,18 @@ interface UseOndoBuyReviewViewModelOptions {
|
|
|
4414
4424
|
/** The chain the order executes on. */
|
|
4415
4425
|
chain: EthereumChain;
|
|
4416
4426
|
/**
|
|
4417
|
-
* The offer being bought: the asset's name and its
|
|
4427
|
+
* The offer being bought: the asset's name and its fallback artwork.
|
|
4418
4428
|
*
|
|
4419
4429
|
* The identity comes from here rather than from the price poll, so the card
|
|
4420
4430
|
* agrees with the reference panel beside it and a dropped poll cannot leave
|
|
4421
4431
|
* the review unable to say what was bought.
|
|
4422
4432
|
*/
|
|
4423
4433
|
offer: OfferDetail;
|
|
4434
|
+
/**
|
|
4435
|
+
* Registry metadata for the bought asset; `null` falls back to the offer's
|
|
4436
|
+
* logo.
|
|
4437
|
+
*/
|
|
4438
|
+
outputTokenMetadata: TokenMetadata | null;
|
|
4424
4439
|
/**
|
|
4425
4440
|
* When false, the step neither builds a transaction nor counts down, and
|
|
4426
4441
|
* neither refreshing the quote nor placing an order does anything. Defaults
|
|
@@ -4453,7 +4468,7 @@ interface UseOndoBuyReviewViewModelResult {
|
|
|
4453
4468
|
* Refreshing is always something the user asks for. Each refresh builds a new
|
|
4454
4469
|
* transaction, which spends an attestation, so nothing here is on a timer.
|
|
4455
4470
|
*/
|
|
4456
|
-
declare function useOndoBuyReviewViewModel({ stepInput, ondoSymbol, chain, offer, enabled, onComplete, }: UseOndoBuyReviewViewModelOptions): UseOndoBuyReviewViewModelResult;
|
|
4471
|
+
declare function useOndoBuyReviewViewModel({ stepInput, ondoSymbol, chain, offer, outputTokenMetadata, enabled, onComplete, }: UseOndoBuyReviewViewModelOptions): UseOndoBuyReviewViewModelResult;
|
|
4457
4472
|
|
|
4458
4473
|
/**
|
|
4459
4474
|
* Which step is being filled in, carrying everything the ones before it
|
|
@@ -4614,8 +4629,16 @@ interface UseOndoSellAmountViewModelOptions {
|
|
|
4614
4629
|
ondoSymbol: AssetSymbol;
|
|
4615
4630
|
/** The chain the order executes on: the balance read, the approval and the broadcast. */
|
|
4616
4631
|
chain: EthereumChain;
|
|
4617
|
-
/**
|
|
4632
|
+
/**
|
|
4633
|
+
* The offer being sold: supplies the asset's display name and its fallback
|
|
4634
|
+
* artwork.
|
|
4635
|
+
*/
|
|
4618
4636
|
offer: OfferDetail;
|
|
4637
|
+
/**
|
|
4638
|
+
* Registry metadata for the sold asset; `null` falls back to the offer's
|
|
4639
|
+
* logo.
|
|
4640
|
+
*/
|
|
4641
|
+
inputTokenMetadata: TokenMetadata | null;
|
|
4619
4642
|
/**
|
|
4620
4643
|
* When false, the step neither fetches nor polls. Defaults to true.
|
|
4621
4644
|
*
|
|
@@ -4654,7 +4677,7 @@ interface UseOndoSellAmountViewModelResult {
|
|
|
4654
4677
|
* because doing it through a price that moves between the check and the build
|
|
4655
4678
|
* would reject fillable orders and pass unfillable ones.
|
|
4656
4679
|
*/
|
|
4657
|
-
declare function useOndoSellAmountViewModel({ stepInput, ondoSymbol, chain, offer, enabled, onComplete, onEdit, }: UseOndoSellAmountViewModelOptions): UseOndoSellAmountViewModelResult;
|
|
4680
|
+
declare function useOndoSellAmountViewModel({ stepInput, ondoSymbol, chain, offer, inputTokenMetadata, enabled, onComplete, onEdit, }: UseOndoSellAmountViewModelOptions): UseOndoSellAmountViewModelResult;
|
|
4658
4681
|
type OndoSellAmountValidation = {
|
|
4659
4682
|
valid: true;
|
|
4660
4683
|
amount: BlockchainAmount;
|
|
@@ -5079,6 +5102,12 @@ interface UseOndoSidebarViewModelOptions {
|
|
|
5079
5102
|
ondoSymbol: AssetSymbol;
|
|
5080
5103
|
/** The chain the order executes on, and so the network shown. */
|
|
5081
5104
|
chain: EthereumChain;
|
|
5105
|
+
/**
|
|
5106
|
+
* Registry metadata for the offered token, from the checkout flow above.
|
|
5107
|
+
* `null` covers every way the answer can be absent (unlisted, not settled,
|
|
5108
|
+
* lookup failed); the panel falls back to the offer's own logo for it.
|
|
5109
|
+
*/
|
|
5110
|
+
tokenMetadata: TokenMetadata | null;
|
|
5082
5111
|
/** The indicative price poll. */
|
|
5083
5112
|
priceState: LoadOndoPriceState;
|
|
5084
5113
|
/** The market-status poll. */
|
|
@@ -5099,7 +5128,7 @@ interface UseOndoSidebarViewModelResult {
|
|
|
5099
5128
|
* the offer and is on screen from the first render, so a failed or in-flight
|
|
5100
5129
|
* poll never blanks it.
|
|
5101
5130
|
*/
|
|
5102
|
-
declare function useOndoSidebarViewModel({ offer, ondoSymbol, chain, priceState, tradingStatusState, }: UseOndoSidebarViewModelOptions): UseOndoSidebarViewModelResult;
|
|
5131
|
+
declare function useOndoSidebarViewModel({ offer, ondoSymbol, chain, tokenMetadata, priceState, tradingStatusState, }: UseOndoSidebarViewModelOptions): UseOndoSidebarViewModelResult;
|
|
5103
5132
|
|
|
5104
5133
|
/**
|
|
5105
5134
|
* Whether step 1 is being filled in or already answered.
|
|
@@ -5144,6 +5173,128 @@ interface UseOndoWalletSelectViewModelResult {
|
|
|
5144
5173
|
*/
|
|
5145
5174
|
declare function useOndoWalletSelectViewModel({ stepInput, wallets, chain, onComplete, onEdit, }: UseOndoWalletSelectViewModelOptions): UseOndoWalletSelectViewModelResult;
|
|
5146
5175
|
|
|
5176
|
+
/**
|
|
5177
|
+
* The state of a token-metadata lookup.
|
|
5178
|
+
*
|
|
5179
|
+
* `CONTENT` with `null` means the registry answered and does not list the
|
|
5180
|
+
* token — a real domain answer callers render on (fall back to your own
|
|
5181
|
+
* display defaults). `ERROR` means the answer is unknown; the two must not be
|
|
5182
|
+
* conflated. `DISABLED` means the hook was switched off before an answer
|
|
5183
|
+
* arrived, so there is nothing to render a loading UI for. No
|
|
5184
|
+
* `not-authenticated` reason: the registry is public.
|
|
5185
|
+
*/
|
|
5186
|
+
type LoadTokenMetadataState = {
|
|
5187
|
+
type: 'DISABLED';
|
|
5188
|
+
} | {
|
|
5189
|
+
type: 'LOADING';
|
|
5190
|
+
} | {
|
|
5191
|
+
type: 'ERROR';
|
|
5192
|
+
reason: 'generic-error';
|
|
5193
|
+
} | {
|
|
5194
|
+
type: 'CONTENT';
|
|
5195
|
+
tokenMetadata: TokenMetadata | null;
|
|
5196
|
+
};
|
|
5197
|
+
interface UseTokenMetadataOptions extends TokenIdentifier {
|
|
5198
|
+
/**
|
|
5199
|
+
* Metadata pre-fetched on the server (via `CoinListServer#tokens.get`).
|
|
5200
|
+
* When provided, the hook uses it as-is and skips the initial client-side
|
|
5201
|
+
* fetch; {@link UseTokenMetadataResult.refetch} still fetches. `null` is a
|
|
5202
|
+
* valid seed — it means "not in the registry" — and is distinct from
|
|
5203
|
+
* leaving `data` undefined.
|
|
5204
|
+
*/
|
|
5205
|
+
data?: TokenMetadata | null;
|
|
5206
|
+
/** When false: no request; see {@link LoadTokenMetadataState}. Default true. */
|
|
5207
|
+
enabled?: boolean;
|
|
5208
|
+
}
|
|
5209
|
+
interface UseTokenMetadataResult {
|
|
5210
|
+
state: LoadTokenMetadataState;
|
|
5211
|
+
/**
|
|
5212
|
+
* Fetches again: the recovery path after a transient `ERROR`, and the way
|
|
5213
|
+
* past a server seed (`data`), which only the first fetch honours. No-op
|
|
5214
|
+
* while disabled.
|
|
5215
|
+
*/
|
|
5216
|
+
refetch: () => void;
|
|
5217
|
+
}
|
|
5218
|
+
/**
|
|
5219
|
+
* Loads one token's display metadata (name, symbol, decimals, logos) from
|
|
5220
|
+
* CoinList's public token registry — the lookup `OfferDetail.tokens` entries
|
|
5221
|
+
* are keyed for. To display a whole catalogue, prefer one
|
|
5222
|
+
* `CoinListClient#tokens.list(chain)` over mounting this hook per token.
|
|
5223
|
+
*
|
|
5224
|
+
* No polling: registry content is immutable per version, so a
|
|
5225
|
+
* `(chain, address)` answer does not change under the page. `refetch` exists
|
|
5226
|
+
* for error recovery and for bypassing a server seed, not for freshness.
|
|
5227
|
+
*
|
|
5228
|
+
* Disabled without an answer in hand it reports `DISABLED` rather than
|
|
5229
|
+
* `LOADING` (nothing is in flight, so a spinner would wait forever) and
|
|
5230
|
+
* rather than an empty `CONTENT` (`CONTENT: null` asserts "not in the
|
|
5231
|
+
* registry" — an answer this hook would not actually have). A seeded or
|
|
5232
|
+
* already-fetched `CONTENT` survives disabling.
|
|
5233
|
+
*/
|
|
5234
|
+
declare function useTokenMetadata(options: UseTokenMetadataOptions): UseTokenMetadataResult;
|
|
5235
|
+
|
|
5236
|
+
interface UseCheckoutOfferTokenMetadataOptions {
|
|
5237
|
+
/**
|
|
5238
|
+
* The offer being checked out: its `tokens` list supplies the
|
|
5239
|
+
* `(chain, address)` key the registry lookup is made with.
|
|
5240
|
+
*/
|
|
5241
|
+
offer: OfferDetail;
|
|
5242
|
+
/** The chain the checkout executes on, which selects the token entry. */
|
|
5243
|
+
chain: EthereumChain;
|
|
5244
|
+
/**
|
|
5245
|
+
* Metadata pre-fetched on the server (via `CoinListServer#tokens.get`).
|
|
5246
|
+
* When provided, the hook uses it as-is and skips the client-side fetch.
|
|
5247
|
+
* `null` is a valid seed — it means "not in the registry" — and is distinct
|
|
5248
|
+
* from leaving `data` undefined.
|
|
5249
|
+
*/
|
|
5250
|
+
data?: TokenMetadata | null;
|
|
5251
|
+
/**
|
|
5252
|
+
* When false: no request; see {@link LoadTokenMetadataState}. Default true.
|
|
5253
|
+
*/
|
|
5254
|
+
enabled?: boolean;
|
|
5255
|
+
}
|
|
5256
|
+
interface UseCheckoutOfferTokenMetadataResult {
|
|
5257
|
+
state: LoadTokenMetadataState;
|
|
5258
|
+
}
|
|
5259
|
+
/**
|
|
5260
|
+
* The `(chain, address)` the public token registry keys the offer's asset by,
|
|
5261
|
+
* or `null` when the offer lists no token on this chain.
|
|
5262
|
+
*
|
|
5263
|
+
* The checkout renders the asset an offer sells, which is the `swap` entry on
|
|
5264
|
+
* its chain; a `distribution` entry names the same token for a sale product,
|
|
5265
|
+
* so it is accepted as the fallback. `funding` entries name what a swap is
|
|
5266
|
+
* paid with, never what it sells, so they are skipped — the funding row has
|
|
5267
|
+
* its own icon source in `stablecoinIconUrl`.
|
|
5268
|
+
*/
|
|
5269
|
+
declare function offerTokenIdentifier(offer: OfferDetail, chain: EthereumChain): TokenIdentifier | null;
|
|
5270
|
+
/**
|
|
5271
|
+
* The metadata value `CheckoutAssetUi.fromOffer` wants, from the shared
|
|
5272
|
+
* lookup's state: `null` while the answer is unknown (loading, error,
|
|
5273
|
+
* disabled), which is the signal that renders the offer's own logo.
|
|
5274
|
+
*
|
|
5275
|
+
* Exported because every checkout god viewmodel projects its state exactly
|
|
5276
|
+
* once for the same reason — the steps below them render a value, not a
|
|
5277
|
+
* state machine — and three hand-written copies of the load-bearing
|
|
5278
|
+
* fallback rule would drift the first time the state union grows an arm.
|
|
5279
|
+
*/
|
|
5280
|
+
declare function tokenMetadataOf(state: LoadTokenMetadataState): TokenMetadata | null;
|
|
5281
|
+
/**
|
|
5282
|
+
* Loads the public token registry's display metadata for the asset an offer
|
|
5283
|
+
* sells, keyed by the token `OfferDetail.tokens` lists for the checkout's
|
|
5284
|
+
* chain. Checkout screens feed the result into `CheckoutAssetUi.fromOffer`,
|
|
5285
|
+
* which prefers the registry logo and falls back to the offer's own.
|
|
5286
|
+
*
|
|
5287
|
+
* A composition rather than a re-implementation: `useTokenMetadata` already
|
|
5288
|
+
* owns the `(chain, address)` lookup and its state machine, so this hook
|
|
5289
|
+
* contributes only the offer step — which token entry is the asset being
|
|
5290
|
+
* sold — and delegates the rest. An offer that lists no token on this chain
|
|
5291
|
+
* is seeded with "not listed", which is a settled answer rather than a
|
|
5292
|
+
* spinner. There is deliberately no `refetch`: the offer and chain are fixed
|
|
5293
|
+
* for the lifetime of the checkout, and a failed lookup renders the offer
|
|
5294
|
+
* logo — there is no user-visible recovery to hang a retry on.
|
|
5295
|
+
*/
|
|
5296
|
+
declare function useCheckoutOfferTokenMetadata({ offer, chain, data, enabled, }: UseCheckoutOfferTokenMetadataOptions): UseCheckoutOfferTokenMetadataResult;
|
|
5297
|
+
|
|
5147
5298
|
/** How much the user is spending, and what they are spending it in. */
|
|
5148
5299
|
type SuperstateAmountConfirmed = {
|
|
5149
5300
|
amount: BlockchainAmount;
|
|
@@ -5315,7 +5466,10 @@ interface UseSuperstateSidebarViewModelOptions {
|
|
|
5315
5466
|
offer: OfferDetail;
|
|
5316
5467
|
/** The chain the token lives on, which names the network row. */
|
|
5317
5468
|
chain: EthereumChain;
|
|
5318
|
-
/**
|
|
5469
|
+
/**
|
|
5470
|
+
* The output asset's icon, resolved by the flow above: registry-first,
|
|
5471
|
+
* with the offer's logo as the fallback.
|
|
5472
|
+
*/
|
|
5319
5473
|
assetIconUrl: AssetIconUrl | null;
|
|
5320
5474
|
/**
|
|
5321
5475
|
* The swap's output token, or `null` while it is still being read. It names
|
|
@@ -6000,66 +6154,6 @@ interface UseErc20TokenBalancesResult {
|
|
|
6000
6154
|
*/
|
|
6001
6155
|
declare function useErc20TokenBalances(options: UseErc20TokenBalancesOptions): UseErc20TokenBalancesResult;
|
|
6002
6156
|
|
|
6003
|
-
/**
|
|
6004
|
-
* The state of a token-metadata lookup.
|
|
6005
|
-
*
|
|
6006
|
-
* `CONTENT` with `null` means the registry answered and does not list the
|
|
6007
|
-
* token — a real domain answer callers render on (fall back to your own
|
|
6008
|
-
* display defaults). `ERROR` means the answer is unknown; the two must not be
|
|
6009
|
-
* conflated. `DISABLED` means the hook was switched off before an answer
|
|
6010
|
-
* arrived, so there is nothing to render a loading UI for. No
|
|
6011
|
-
* `not-authenticated` reason: the registry is public.
|
|
6012
|
-
*/
|
|
6013
|
-
type LoadTokenMetadataState = {
|
|
6014
|
-
type: 'DISABLED';
|
|
6015
|
-
} | {
|
|
6016
|
-
type: 'LOADING';
|
|
6017
|
-
} | {
|
|
6018
|
-
type: 'ERROR';
|
|
6019
|
-
reason: 'generic-error';
|
|
6020
|
-
} | {
|
|
6021
|
-
type: 'CONTENT';
|
|
6022
|
-
tokenMetadata: TokenMetadata | null;
|
|
6023
|
-
};
|
|
6024
|
-
interface UseTokenMetadataOptions extends TokenIdentifier {
|
|
6025
|
-
/**
|
|
6026
|
-
* Metadata pre-fetched on the server (via `CoinListServer#tokens.get`).
|
|
6027
|
-
* When provided, the hook uses it as-is and skips the initial client-side
|
|
6028
|
-
* fetch; {@link UseTokenMetadataResult.refetch} still fetches. `null` is a
|
|
6029
|
-
* valid seed — it means "not in the registry" — and is distinct from
|
|
6030
|
-
* leaving `data` undefined.
|
|
6031
|
-
*/
|
|
6032
|
-
data?: TokenMetadata | null;
|
|
6033
|
-
/** When false: no request; see {@link LoadTokenMetadataState}. Default true. */
|
|
6034
|
-
enabled?: boolean;
|
|
6035
|
-
}
|
|
6036
|
-
interface UseTokenMetadataResult {
|
|
6037
|
-
state: LoadTokenMetadataState;
|
|
6038
|
-
/**
|
|
6039
|
-
* Fetches again: the recovery path after a transient `ERROR`, and the way
|
|
6040
|
-
* past a server seed (`data`), which only the first fetch honours. No-op
|
|
6041
|
-
* while disabled.
|
|
6042
|
-
*/
|
|
6043
|
-
refetch: () => void;
|
|
6044
|
-
}
|
|
6045
|
-
/**
|
|
6046
|
-
* Loads one token's display metadata (name, symbol, decimals, logos) from
|
|
6047
|
-
* CoinList's public token registry — the lookup `OfferDetail.tokens` entries
|
|
6048
|
-
* are keyed for. To display a whole catalogue, prefer one
|
|
6049
|
-
* `CoinListClient#tokens.list(chain)` over mounting this hook per token.
|
|
6050
|
-
*
|
|
6051
|
-
* No polling: registry content is immutable per version, so a
|
|
6052
|
-
* `(chain, address)` answer does not change under the page. `refetch` exists
|
|
6053
|
-
* for error recovery and for bypassing a server seed, not for freshness.
|
|
6054
|
-
*
|
|
6055
|
-
* Disabled without an answer in hand it reports `DISABLED` rather than
|
|
6056
|
-
* `LOADING` (nothing is in flight, so a spinner would wait forever) and
|
|
6057
|
-
* rather than an empty `CONTENT` (`CONTENT: null` asserts "not in the
|
|
6058
|
-
* registry" — an answer this hook would not actually have). A seeded or
|
|
6059
|
-
* already-fetched `CONTENT` survives disabling.
|
|
6060
|
-
*/
|
|
6061
|
-
declare function useTokenMetadata(options: UseTokenMetadataOptions): UseTokenMetadataResult;
|
|
6062
|
-
|
|
6063
6157
|
interface UseCoinListResult {
|
|
6064
6158
|
/**
|
|
6065
6159
|
* Indicates whether the CoinList client has been initialized and ready to use.
|
|
@@ -6094,9 +6188,10 @@ declare const USDT_ICON_URL: AssetIconUrl;
|
|
|
6094
6188
|
*
|
|
6095
6189
|
* `StablecoinSymbol` is a closed union of the two coins the swap flows accept,
|
|
6096
6190
|
* so the lookup is total and stays total: adding a third funding coin is a
|
|
6097
|
-
* compile error here. Every other asset a checkout renders
|
|
6098
|
-
*
|
|
6099
|
-
*
|
|
6191
|
+
* compile error here. Every other asset a checkout renders is an offer's,
|
|
6192
|
+
* whose artwork `offerAssetIconUrl` resolves registry-first; the funding
|
|
6193
|
+
* asset has no offer behind it, which is why `CheckoutAssetUi.fromErc20`
|
|
6194
|
+
* still takes `iconUrl` from its caller and still defaults to `null`.
|
|
6100
6195
|
*
|
|
6101
6196
|
* It lives in the SDK rather than in each host because the alternative was
|
|
6102
6197
|
* every partner mapping the same two symbols to the same two URLs - which is
|
|
@@ -6121,6 +6216,38 @@ declare function stablecoinIconUrl(symbol: StablecoinSymbol): AssetIconUrl;
|
|
|
6121
6216
|
* for `null`, which is what the offers grid already does.
|
|
6122
6217
|
*/
|
|
6123
6218
|
declare function offerIconUrl(offer: OfferDetail): AssetIconUrl | null;
|
|
6219
|
+
/**
|
|
6220
|
+
* The URL of a token-registry logo, or `null` when the logo carries no usable
|
|
6221
|
+
* image (unrepresentable for a registry logo today, but a consumer must not
|
|
6222
|
+
* crash on it).
|
|
6223
|
+
*
|
|
6224
|
+
* A vector logo is a single SVG and needs no picking. A raster logo ships
|
|
6225
|
+
* webp variants at 32/64/128/256/512px plus an original, and `minWidth` picks
|
|
6226
|
+
* the smallest variant that covers it — a 64px webp for a 40px render beats
|
|
6227
|
+
* the 250px original, and beats an upscaled 32px. When no variant covers
|
|
6228
|
+
* `minWidth`, the original is used rather than the largest variant: the
|
|
6229
|
+
* registry never upscales past it, and a render that wide is the one case an
|
|
6230
|
+
* original-sized image is right for. The smallest qualifying variant is
|
|
6231
|
+
* chosen by width rather than by position, so a registry that serves its
|
|
6232
|
+
* variants out of order still resolves the same answer. Defaults to 40, the
|
|
6233
|
+
* edge length `AssetIcon` renders a checkout asset at.
|
|
6234
|
+
*/
|
|
6235
|
+
declare function tokenLogoUrl(logo: TokenLogo, minWidth?: number): AssetIconUrl | null;
|
|
6236
|
+
/**
|
|
6237
|
+
* The artwork a checkout shows for the asset an offer sells.
|
|
6238
|
+
*
|
|
6239
|
+
* Resolved from the public token registry when the caller has metadata for
|
|
6240
|
+
* the offered token — `(chain, address)` entries of `OfferDetail.tokens`
|
|
6241
|
+
* key a `coinlist.tokens.get` lookup, which `useCheckoutOfferTokenMetadata`
|
|
6242
|
+
* performs for checkout screens — and from the offer's own logo otherwise.
|
|
6243
|
+
* The registry logo wins when both exist, because it is the token's real
|
|
6244
|
+
* artwork where `Offer.logoUrl` is catalogue artwork; the offer logo stays
|
|
6245
|
+
* as the fallback for `tokenMetadata: null`, which covers every way the
|
|
6246
|
+
* registry answer can be absent: the token is unlisted, the lookup has not
|
|
6247
|
+
* settled, or it failed. `null` is returned only when neither source
|
|
6248
|
+
* carries one.
|
|
6249
|
+
*/
|
|
6250
|
+
declare function offerAssetIconUrl(offer: OfferDetail, tokenMetadata: TokenMetadata | null): AssetIconUrl | null;
|
|
6124
6251
|
|
|
6125
6252
|
/**
|
|
6126
6253
|
* Date presentation helpers.
|
|
@@ -6219,4 +6346,4 @@ interface UseCountdownOptions {
|
|
|
6219
6346
|
*/
|
|
6220
6347
|
declare function useCountdown({ until, tickMs, enabled, }: UseCountdownOptions): number | null;
|
|
6221
6348
|
|
|
6222
|
-
export { type AuthState, type AuthorizeWalletParams, ChecklistStatus, CheckoutAssetUi, type CheckoutConfig, type CheckoutConfirmedWalletUi, CheckoutContainer, type CheckoutContainerProps, type CheckoutCtaUi, type CheckoutEmbeddedWalletUi, type CheckoutNetworkUi, type CheckoutSelectableInputAssetUi, type CheckoutStatusUi, type CheckoutWalletSelection, type CheckoutWalletTypeUi, type CheckoutWalletUi, type ClientAuthConfig, type ClientAuthNamespace, ClientAuthNamespaceImpl, type ClientAuthSession, type ClientCoinListTokenSaleNamespace, ClientCoinListTokenSaleNamespaceImpl, type ClientConfig, type ClientOndoNamespace, ClientOndoNamespaceImpl, type ClientRequirementsNamespace, ClientRequirementsNamespaceImpl, type ClientSuperstateSwapNamespace, ClientSuperstateSwapNamespaceImpl, type ClientSupportNamespace, ClientSupportNamespaceImpl, type CoinListClient, CoinListClientInitializationError, CoinListContext, CoinListContextProvider, type CoinListContextValue, CoinListProvider, type CoinListProviderProps, CoinListSignInButton, CoinListSignInCardContainer, type CoinListSignInCardContainerProps, type CoinListSignInCardUiEvent, type CoinListSignInCardUiState, CoinListSignInCardView, type CoinListSignInCardViewProps, CoinListStyleScope, type CoinListStyleScopeProps, type CoinListTokenSaleCheckoutConfig, type CompleteOAuthFailureReason, ConnectWallet, type ConnectWalletError, type ConnectWalletErrorCode, type ConnectWalletFlowError, type ConnectWalletFlowParams, type ConnectWalletFlowResult, ConnectWalletModalContainer, type ConnectWalletModalContainerProps, type ConnectWalletModalUiEvent, type ConnectWalletModalUiState, ConnectWalletModalView, type ConnectWalletModalViewProps, type ConnectWalletPhase, type ConnectWalletScreenUi, type ConnectWalletSignState, type ConnectWalletState, ConnectedWalletList, type ConnectedWalletListProps, type ConnectedWalletUi, ERC20_BALANCE_POLL_INTERVAL_MS, type Erc20AllowanceError, type Erc20AllowancePhase, type Erc20AllowanceResult, type Erc20ApprovalError, EvmWallet, type ExecuteOndoSwapParams, type ExecuteSwapParams, type ExecuteTokenSaleParams, IdentityVerificationContainer, type IdentityVerificationContainerProps, type IdentityVerificationUiEvent, type IdentityVerificationUiState, IdentityVerificationView, type IdentityVerificationViewProps, KycLevelName, type KycTokenErrorReason, type KycTokenState, type LoadOfferDetailsReason, type LoadOfferDetailsState, type LoadOffersReason, type LoadOffersState, type LoadOndoBuyTransactionState, type LoadOndoPriceState, type LoadOndoSellTransactionState, type LoadOndoTradingStatusState, type LoadOptionAddressesReason, type LoadOptionAddressesState, type LoadParticipationsReason, type LoadParticipationsState, type LoadRequirementsReason, type LoadRequirementsState, type LoadTokenMetadataState, Logger, OAUTH_CODE_VERIFIER_KEY, OAUTH_STATE_KEY, type OauthClientErrorReason, type OauthClientResult, OfferAssetCard, type OfferAssetCardProps, OfferAssetCardUi, OfferSaleCard, type OfferSaleCardProps, OfferSaleCardUi, OffersAssetGrid, type OffersAssetGridProps, OffersGridContainer, type OffersGridContainerProps, type OffersGridUiEvent, type OffersGridUiState, OffersGridView, type OffersGridViewProps, type OndoBuyAmountConfirmed, type OndoBuyAmountStepInput, type OndoBuyAmountUiEvent, type OndoBuyAmountUiState, type OndoBuyAmountValidation, OndoBuyAmountView, type OndoBuyAmountViewProps, OndoBuyCheckoutContainer, type OndoBuyCheckoutContainerProps, type OndoBuyCheckoutUiEvent, type OndoBuyCheckoutUiState, OndoBuyCheckoutView, type OndoBuyCheckoutViewProps, type OndoBuyExecutionResult, OndoBuyOrderConfirmed, type OndoBuyOrderPlaced, type OndoBuyOrderTerms, type OndoBuyPreparationResult, type OndoBuyQuoteStatusUi, type OndoBuyReviewStepInput, type OndoBuyReviewUiEvent, type OndoBuyReviewUiState, OndoBuyReviewView, type OndoBuyReviewViewProps, type OndoBuyStep, type OndoCheckoutConfig, OndoCheckoutError, type OndoCheckoutErrorProps, type OndoCheckoutErrorReason, type OndoLoadErrorReason, type OndoOrderConfirmedProps, type OndoOrderConfirmedUiEvent, type OndoOrderConfirmedUiState, type OndoOrderPlaced, type OndoOrderPlacedCore, type OndoSellAmountConfirmed, type OndoSellAmountStepInput, type OndoSellAmountUiEvent, type OndoSellAmountUiState, type OndoSellAmountValidation, OndoSellAmountView, type OndoSellAmountViewProps, type OndoSellAsset, type OndoSellBalanceUi, OndoSellCheckoutContainer, type OndoSellCheckoutContainerProps, type OndoSellCheckoutUiEvent, type OndoSellCheckoutUiState, OndoSellCheckoutView, type OndoSellCheckoutViewProps, type OndoSellExecutionResult, OndoSellOrderConfirmed, type OndoSellOrderConfirmedProps, type OndoSellOrderConfirmedUiEvent, type OndoSellOrderConfirmedUiState, type OndoSellOrderPlaced, type OndoSellOrderTerms, type OndoSellOutcomeUi, type OndoSellPreparationResult, type OndoSellQuoteStatusUi, type OndoSellReviewStepInput, type OndoSellReviewUiEvent, type OndoSellReviewUiState, OndoSellReviewView, type OndoSellReviewViewProps, type OndoSellSourceWalletUi, type OndoSellStep, type OndoSidebarPriceUi, type OndoSidebarUiState, OndoSidebarView, type OndoSidebarViewProps, type OndoSwapExecutionError, type OndoSwapExecutionPhase, type OndoSwapExecutionResult, type OndoSwapPreparationError, type OndoSwapPreparationPhase, type OndoSwapPreparationResult, type OndoWalletSelectStepInput, type OndoWalletSelectUiEvent, type OndoWalletSelectUiState, OndoWalletSelectView, type OndoWalletSelectViewProps, PinoLoggerOptions, type PrepareOndoBuyParams, type PrepareOndoSellParams, type PrepareOndoSwapParamsCore, type RequiredCheckoutConfig, RequirementItem, type RequirementItemProps, RequirementItemUi, RequirementStatus, RequirementVariant, RequirementsChecklistContainer, type RequirementsChecklistContainerProps, type RequirementsChecklistItemUi, type RequirementsChecklistUiEvent, type RequirementsChecklistUiState, RequirementsChecklistView, type RequirementsChecklistViewProps, type RequirementsData, type RequirementsVerificationUi, type SignState, SlippagePicker, type SlippagePickerProps, type SubmitErc20ApprovalResult, type SuperstateAmountConfirmed, type SuperstateAmountStepInput, type SuperstateAmountUiEvent, type SuperstateAmountUiState, type SuperstateAmountValidation, SuperstateAmountView, type SuperstateAmountViewProps, type SuperstateCheckoutConfig, SuperstateOrderConfirmed, type SuperstateOrderConfirmedProps, type SuperstateOrderConfirmedUiEvent, type SuperstateOrderConfirmedUiState, type SuperstateOrderPlaced, type SuperstateReviewStepInput, type SuperstateReviewUiEvent, type SuperstateReviewUiState, SuperstateReviewView, type SuperstateReviewViewProps, type SuperstateSidebarPriceUi, type SuperstateSidebarUiState, SuperstateSidebarView, type SuperstateSidebarViewProps, type SuperstateSlippageOptionUi, type SuperstateSlippageUi, SuperstateSwapCheckoutContainer, type SuperstateSwapCheckoutContainerProps, type SuperstateSwapCheckoutRetryUiEvent, type SuperstateSwapCheckoutUiEvent, type SuperstateSwapCheckoutUiState, SuperstateSwapCheckoutView, type SuperstateSwapCheckoutViewProps, type SuperstateSwapLoadErrorReason, type SuperstateSwapStep, type SuperstateWalletStepInput, type SuperstateWalletUiEvent, type SuperstateWalletUiState, SuperstateWalletView, type SuperstateWalletViewProps, type SwapExecutionError, type SwapExecutionPhase, type SwapExecutionResult, type SwapOutputTokenState, type TaxDocumentAddressParts, type TaxDocumentFieldUi, type TaxDocumentFields, TaxDocumentModalContainer, type TaxDocumentModalContainerProps, type TaxDocumentModalUiEvent, type TaxDocumentModalUiState, TaxDocumentModalView, type TaxDocumentModalViewProps, type TaxDocumentScreenUi, type TaxDocumentState, type TokenSaleExecutionError, type TokenSaleExecutionPhase, type TokenSaleExecutionResult, USDC_ICON_URL, USDT_ICON_URL, type UseCoinListResult, type UseCoinListSignInCardViewModelOptions, type UseCoinListSignInCardViewModelResult, type UseCompleteOAuthOptions, type UseConnectWalletModalViewModelOptions, type UseConnectWalletModalViewModelResult, type UseConnectWalletOptions, type UseConnectWalletResult, type UseCountdownOptions, type UseErc20BalanceOptions, type UseErc20BalanceResult, type UseErc20TokenBalancesOptions, type UseErc20TokenBalancesResult, type UseIdentityVerificationViewModelOptions, type UseIdentityVerificationViewModelResult, type UseKycTokenResult, type UseOfferDetailsOptions, type UseOfferDetailsResult, type UseOffersGridViewModelOptions, type UseOffersGridViewModelResult, type UseOffersOptions, type UseOffersResult, type UseOndoBuyAmountViewModelOptions, type UseOndoBuyAmountViewModelResult, type UseOndoBuyCheckoutViewModelOptions, type UseOndoBuyCheckoutViewModelResult, type UseOndoBuyReviewViewModelOptions, type UseOndoBuyReviewViewModelResult, type UseOndoBuyTransactionOptions, type UseOndoBuyTransactionResult, type UseOndoPriceOptions, type UseOndoPriceResult, type UseOndoSellAmountViewModelOptions, type UseOndoSellAmountViewModelResult, type UseOndoSellCheckoutViewModelOptions, type UseOndoSellCheckoutViewModelResult, type UseOndoSellReviewViewModelOptions, type UseOndoSellReviewViewModelResult, type UseOndoSellTransactionOptions, type UseOndoSellTransactionResult, type UseOndoSidebarViewModelOptions, type UseOndoSidebarViewModelResult, type UseOndoTradingStatusOptions, type UseOndoTradingStatusResult, type UseOndoWalletSelectViewModelOptions, type UseOndoWalletSelectViewModelResult, type UseOptionAddressesOptions, type UseOptionAddressesResult, type UseParticipationsOptions, type UseParticipationsResult, type UseRequirementsChecklistViewModelOptions, type UseRequirementsChecklistViewModelResult, type UseRequirementsOptions, type UseRequirementsResult, type UseSuperstateAmountViewModelOptions, type UseSuperstateAmountViewModelResult, type UseSuperstateReviewViewModelOptions, type UseSuperstateReviewViewModelResult, type UseSuperstateSidebarViewModelOptions, type UseSuperstateSidebarViewModelResult, type UseSuperstateSwapCheckoutViewModelOptions, type UseSuperstateSwapCheckoutViewModelResult, type UseSuperstateWalletViewModelOptions, type UseSuperstateWalletViewModelResult, type UseSwapOutputTokenOptions, type UseSwapOutputTokenResult, type UseSwapQuoteOptions, type UseSwapQuoteResult, type UseTaxDocumentModalViewModelOptions, type UseTaxDocumentModalViewModelResult, type UseTaxDocumentOptions, type UseTaxDocumentResult, type UseTokenMetadataOptions, type UseTokenMetadataResult, VerificationOverlay, type VerificationOverlayProps, type WalletAuthorizationError, type WalletAuthorizationPhase, type WalletAuthorizationResult, WalletError, type WalletsStatus, authorizeWallet, classifyWalletError, connectExternalWalletFlow, createCoinListClient, defaultCheckoutConfig, ensureErc20Allowance, executeOndoSwap, executeSwap, executeTokenSale, formatCountdown, formatMonthYear, formatSaleCardCountdown, offerIconUrl, ondoLoadErrorReason, pinoClientLogger, prepareOndoBuy, prepareOndoSell, quoteIsStale, quoteOverAsks, stablecoinIconUrl, submitErc20Approval, useCoinList, useCoinListSignInCardViewModel, useCompleteOAuth, useConnectWallet, useConnectWalletModalViewModel, useCountdown, useErc20Balance, useErc20TokenBalances, useIdentityVerificationViewModel, useKycToken, useOfferDetails, useOffers, useOffersGridViewModel, useOndoBuyAmountViewModel, useOndoBuyCheckoutViewModel, useOndoBuyReviewViewModel, useOndoBuyTransaction, useOndoPrice, useOndoSellAmountViewModel, useOndoSellCheckoutViewModel, useOndoSellReviewViewModel, useOndoSellTransaction, useOndoSidebarViewModel, useOndoTradingStatus, useOndoWalletSelectViewModel, useOptionAddresses, useParticipations, useRequirements, useRequirementsChecklistViewModel, useSuperstateAmountViewModel, useSuperstateReviewViewModel, useSuperstateSidebarViewModel, useSuperstateSwapCheckoutViewModel, useSuperstateWalletViewModel, useSwapOutputToken, useSwapQuote, useTaxDocument, useTaxDocumentModalViewModel, useTokenMetadata, validateAmount, validateSellAmount, validateSuperstateAmount };
|
|
6349
|
+
export { type AuthState, type AuthorizeWalletParams, ChecklistStatus, CheckoutAssetUi, type CheckoutConfig, type CheckoutConfirmedWalletUi, CheckoutContainer, type CheckoutContainerProps, type CheckoutCtaUi, type CheckoutEmbeddedWalletUi, type CheckoutNetworkUi, type CheckoutSelectableInputAssetUi, type CheckoutStatusUi, type CheckoutWalletSelection, type CheckoutWalletTypeUi, type CheckoutWalletUi, type ClientAuthConfig, type ClientAuthNamespace, ClientAuthNamespaceImpl, type ClientAuthSession, type ClientCoinListTokenSaleNamespace, ClientCoinListTokenSaleNamespaceImpl, type ClientConfig, type ClientOndoNamespace, ClientOndoNamespaceImpl, type ClientRequirementsNamespace, ClientRequirementsNamespaceImpl, type ClientSuperstateSwapNamespace, ClientSuperstateSwapNamespaceImpl, type ClientSupportNamespace, ClientSupportNamespaceImpl, type CoinListClient, CoinListClientInitializationError, CoinListContext, CoinListContextProvider, type CoinListContextValue, CoinListProvider, type CoinListProviderProps, CoinListSignInButton, CoinListSignInCardContainer, type CoinListSignInCardContainerProps, type CoinListSignInCardUiEvent, type CoinListSignInCardUiState, CoinListSignInCardView, type CoinListSignInCardViewProps, CoinListStyleScope, type CoinListStyleScopeProps, type CoinListTokenSaleCheckoutConfig, type CompleteOAuthFailureReason, ConnectWallet, type ConnectWalletError, type ConnectWalletErrorCode, type ConnectWalletFlowError, type ConnectWalletFlowParams, type ConnectWalletFlowResult, ConnectWalletModalContainer, type ConnectWalletModalContainerProps, type ConnectWalletModalUiEvent, type ConnectWalletModalUiState, ConnectWalletModalView, type ConnectWalletModalViewProps, type ConnectWalletPhase, type ConnectWalletScreenUi, type ConnectWalletSignState, type ConnectWalletState, ConnectedWalletList, type ConnectedWalletListProps, type ConnectedWalletUi, ERC20_BALANCE_POLL_INTERVAL_MS, type Erc20AllowanceError, type Erc20AllowancePhase, type Erc20AllowanceResult, type Erc20ApprovalError, EvmWallet, type ExecuteOndoSwapParams, type ExecuteSwapParams, type ExecuteTokenSaleParams, IdentityVerificationContainer, type IdentityVerificationContainerProps, type IdentityVerificationUiEvent, type IdentityVerificationUiState, IdentityVerificationView, type IdentityVerificationViewProps, KycLevelName, type KycTokenErrorReason, type KycTokenState, type LoadOfferDetailsReason, type LoadOfferDetailsState, type LoadOffersReason, type LoadOffersState, type LoadOndoBuyTransactionState, type LoadOndoPriceState, type LoadOndoSellTransactionState, type LoadOndoTradingStatusState, type LoadOptionAddressesReason, type LoadOptionAddressesState, type LoadParticipationsReason, type LoadParticipationsState, type LoadRequirementsReason, type LoadRequirementsState, type LoadTokenMetadataState, Logger, OAUTH_CODE_VERIFIER_KEY, OAUTH_STATE_KEY, type OauthClientErrorReason, type OauthClientResult, OfferAssetCard, type OfferAssetCardProps, OfferAssetCardUi, OfferSaleCard, type OfferSaleCardProps, OfferSaleCardUi, OffersAssetGrid, type OffersAssetGridProps, OffersGridContainer, type OffersGridContainerProps, type OffersGridUiEvent, type OffersGridUiState, OffersGridView, type OffersGridViewProps, type OndoBuyAmountConfirmed, type OndoBuyAmountStepInput, type OndoBuyAmountUiEvent, type OndoBuyAmountUiState, type OndoBuyAmountValidation, OndoBuyAmountView, type OndoBuyAmountViewProps, OndoBuyCheckoutContainer, type OndoBuyCheckoutContainerProps, type OndoBuyCheckoutUiEvent, type OndoBuyCheckoutUiState, OndoBuyCheckoutView, type OndoBuyCheckoutViewProps, type OndoBuyExecutionResult, OndoBuyOrderConfirmed, type OndoBuyOrderPlaced, type OndoBuyOrderTerms, type OndoBuyPreparationResult, type OndoBuyQuoteStatusUi, type OndoBuyReviewStepInput, type OndoBuyReviewUiEvent, type OndoBuyReviewUiState, OndoBuyReviewView, type OndoBuyReviewViewProps, type OndoBuyStep, type OndoCheckoutConfig, OndoCheckoutError, type OndoCheckoutErrorProps, type OndoCheckoutErrorReason, type OndoLoadErrorReason, type OndoOrderConfirmedProps, type OndoOrderConfirmedUiEvent, type OndoOrderConfirmedUiState, type OndoOrderPlaced, type OndoOrderPlacedCore, type OndoSellAmountConfirmed, type OndoSellAmountStepInput, type OndoSellAmountUiEvent, type OndoSellAmountUiState, type OndoSellAmountValidation, OndoSellAmountView, type OndoSellAmountViewProps, type OndoSellAsset, type OndoSellBalanceUi, OndoSellCheckoutContainer, type OndoSellCheckoutContainerProps, type OndoSellCheckoutUiEvent, type OndoSellCheckoutUiState, OndoSellCheckoutView, type OndoSellCheckoutViewProps, type OndoSellExecutionResult, OndoSellOrderConfirmed, type OndoSellOrderConfirmedProps, type OndoSellOrderConfirmedUiEvent, type OndoSellOrderConfirmedUiState, type OndoSellOrderPlaced, type OndoSellOrderTerms, type OndoSellOutcomeUi, type OndoSellPreparationResult, type OndoSellQuoteStatusUi, type OndoSellReviewStepInput, type OndoSellReviewUiEvent, type OndoSellReviewUiState, OndoSellReviewView, type OndoSellReviewViewProps, type OndoSellSourceWalletUi, type OndoSellStep, type OndoSidebarPriceUi, type OndoSidebarUiState, OndoSidebarView, type OndoSidebarViewProps, type OndoSwapExecutionError, type OndoSwapExecutionPhase, type OndoSwapExecutionResult, type OndoSwapPreparationError, type OndoSwapPreparationPhase, type OndoSwapPreparationResult, type OndoWalletSelectStepInput, type OndoWalletSelectUiEvent, type OndoWalletSelectUiState, OndoWalletSelectView, type OndoWalletSelectViewProps, PinoLoggerOptions, type PrepareOndoBuyParams, type PrepareOndoSellParams, type PrepareOndoSwapParamsCore, type RequiredCheckoutConfig, RequirementItem, type RequirementItemProps, RequirementItemUi, RequirementStatus, RequirementVariant, RequirementsChecklistContainer, type RequirementsChecklistContainerProps, type RequirementsChecklistItemUi, type RequirementsChecklistUiEvent, type RequirementsChecklistUiState, RequirementsChecklistView, type RequirementsChecklistViewProps, type RequirementsData, type RequirementsVerificationUi, type SignState, SlippagePicker, type SlippagePickerProps, type SubmitErc20ApprovalResult, type SuperstateAmountConfirmed, type SuperstateAmountStepInput, type SuperstateAmountUiEvent, type SuperstateAmountUiState, type SuperstateAmountValidation, SuperstateAmountView, type SuperstateAmountViewProps, type SuperstateCheckoutConfig, SuperstateOrderConfirmed, type SuperstateOrderConfirmedProps, type SuperstateOrderConfirmedUiEvent, type SuperstateOrderConfirmedUiState, type SuperstateOrderPlaced, type SuperstateReviewStepInput, type SuperstateReviewUiEvent, type SuperstateReviewUiState, SuperstateReviewView, type SuperstateReviewViewProps, type SuperstateSidebarPriceUi, type SuperstateSidebarUiState, SuperstateSidebarView, type SuperstateSidebarViewProps, type SuperstateSlippageOptionUi, type SuperstateSlippageUi, SuperstateSwapCheckoutContainer, type SuperstateSwapCheckoutContainerProps, type SuperstateSwapCheckoutRetryUiEvent, type SuperstateSwapCheckoutUiEvent, type SuperstateSwapCheckoutUiState, SuperstateSwapCheckoutView, type SuperstateSwapCheckoutViewProps, type SuperstateSwapLoadErrorReason, type SuperstateSwapStep, type SuperstateWalletStepInput, type SuperstateWalletUiEvent, type SuperstateWalletUiState, SuperstateWalletView, type SuperstateWalletViewProps, type SwapExecutionError, type SwapExecutionPhase, type SwapExecutionResult, type SwapOutputTokenState, type TaxDocumentAddressParts, type TaxDocumentFieldUi, type TaxDocumentFields, TaxDocumentModalContainer, type TaxDocumentModalContainerProps, type TaxDocumentModalUiEvent, type TaxDocumentModalUiState, TaxDocumentModalView, type TaxDocumentModalViewProps, type TaxDocumentScreenUi, type TaxDocumentState, type TokenSaleExecutionError, type TokenSaleExecutionPhase, type TokenSaleExecutionResult, USDC_ICON_URL, USDT_ICON_URL, type UseCheckoutOfferTokenMetadataOptions, type UseCheckoutOfferTokenMetadataResult, type UseCoinListResult, type UseCoinListSignInCardViewModelOptions, type UseCoinListSignInCardViewModelResult, type UseCompleteOAuthOptions, type UseConnectWalletModalViewModelOptions, type UseConnectWalletModalViewModelResult, type UseConnectWalletOptions, type UseConnectWalletResult, type UseCountdownOptions, type UseErc20BalanceOptions, type UseErc20BalanceResult, type UseErc20TokenBalancesOptions, type UseErc20TokenBalancesResult, type UseIdentityVerificationViewModelOptions, type UseIdentityVerificationViewModelResult, type UseKycTokenResult, type UseOfferDetailsOptions, type UseOfferDetailsResult, type UseOffersGridViewModelOptions, type UseOffersGridViewModelResult, type UseOffersOptions, type UseOffersResult, type UseOndoBuyAmountViewModelOptions, type UseOndoBuyAmountViewModelResult, type UseOndoBuyCheckoutViewModelOptions, type UseOndoBuyCheckoutViewModelResult, type UseOndoBuyReviewViewModelOptions, type UseOndoBuyReviewViewModelResult, type UseOndoBuyTransactionOptions, type UseOndoBuyTransactionResult, type UseOndoPriceOptions, type UseOndoPriceResult, type UseOndoSellAmountViewModelOptions, type UseOndoSellAmountViewModelResult, type UseOndoSellCheckoutViewModelOptions, type UseOndoSellCheckoutViewModelResult, type UseOndoSellReviewViewModelOptions, type UseOndoSellReviewViewModelResult, type UseOndoSellTransactionOptions, type UseOndoSellTransactionResult, type UseOndoSidebarViewModelOptions, type UseOndoSidebarViewModelResult, type UseOndoTradingStatusOptions, type UseOndoTradingStatusResult, type UseOndoWalletSelectViewModelOptions, type UseOndoWalletSelectViewModelResult, type UseOptionAddressesOptions, type UseOptionAddressesResult, type UseParticipationsOptions, type UseParticipationsResult, type UseRequirementsChecklistViewModelOptions, type UseRequirementsChecklistViewModelResult, type UseRequirementsOptions, type UseRequirementsResult, type UseSuperstateAmountViewModelOptions, type UseSuperstateAmountViewModelResult, type UseSuperstateReviewViewModelOptions, type UseSuperstateReviewViewModelResult, type UseSuperstateSidebarViewModelOptions, type UseSuperstateSidebarViewModelResult, type UseSuperstateSwapCheckoutViewModelOptions, type UseSuperstateSwapCheckoutViewModelResult, type UseSuperstateWalletViewModelOptions, type UseSuperstateWalletViewModelResult, type UseSwapOutputTokenOptions, type UseSwapOutputTokenResult, type UseSwapQuoteOptions, type UseSwapQuoteResult, type UseTaxDocumentModalViewModelOptions, type UseTaxDocumentModalViewModelResult, type UseTaxDocumentOptions, type UseTaxDocumentResult, type UseTokenMetadataOptions, type UseTokenMetadataResult, VerificationOverlay, type VerificationOverlayProps, type WalletAuthorizationError, type WalletAuthorizationPhase, type WalletAuthorizationResult, WalletError, type WalletsStatus, authorizeWallet, classifyWalletError, connectExternalWalletFlow, createCoinListClient, defaultCheckoutConfig, ensureErc20Allowance, executeOndoSwap, executeSwap, executeTokenSale, formatCountdown, formatMonthYear, formatSaleCardCountdown, offerAssetIconUrl, offerIconUrl, offerTokenIdentifier, ondoLoadErrorReason, pinoClientLogger, prepareOndoBuy, prepareOndoSell, quoteIsStale, quoteOverAsks, stablecoinIconUrl, submitErc20Approval, tokenLogoUrl, tokenMetadataOf, useCheckoutOfferTokenMetadata, useCoinList, useCoinListSignInCardViewModel, useCompleteOAuth, useConnectWallet, useConnectWalletModalViewModel, useCountdown, useErc20Balance, useErc20TokenBalances, useIdentityVerificationViewModel, useKycToken, useOfferDetails, useOffers, useOffersGridViewModel, useOndoBuyAmountViewModel, useOndoBuyCheckoutViewModel, useOndoBuyReviewViewModel, useOndoBuyTransaction, useOndoPrice, useOndoSellAmountViewModel, useOndoSellCheckoutViewModel, useOndoSellReviewViewModel, useOndoSellTransaction, useOndoSidebarViewModel, useOndoTradingStatus, useOndoWalletSelectViewModel, useOptionAddresses, useParticipations, useRequirements, useRequirementsChecklistViewModel, useSuperstateAmountViewModel, useSuperstateReviewViewModel, useSuperstateSidebarViewModel, useSuperstateSwapCheckoutViewModel, useSuperstateWalletViewModel, useSwapOutputToken, useSwapQuote, useTaxDocument, useTaxDocumentModalViewModel, useTokenMetadata, validateAmount, validateSellAmount, validateSuperstateAmount };
|