@coinlist-co/react 0.12.2-rc.726778a → 0.12.2-rc.7b430dd
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-C6F5FOFP.js → chunk-DCW7NQXH.js} +2 -2
- package/dist/{chunk-IRV5YU42.js → chunk-MOE5S6CE.js} +3 -17
- package/dist/chunk-MOE5S6CE.js.map +1 -0
- package/dist/{chunk-3UQPCAU4.js → chunk-VH34YC3Q.js} +2 -2
- package/dist/client/index.cjs +43 -35
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +66 -46
- package/dist/client/index.js.map +1 -1
- package/dist/server/index.cjs +0 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/universal/index.cjs +2 -17
- package/dist/universal/index.cjs.map +1 -1
- package/dist/universal/index.d.cts +1 -18
- package/dist/universal/index.d.ts +1 -18
- package/dist/universal/index.js +2 -4
- package/package.json +1 -1
- package/dist/chunk-IRV5YU42.js.map +0 -1
- /package/dist/{chunk-C6F5FOFP.js.map → chunk-DCW7NQXH.js.map} +0 -0
- /package/dist/{chunk-3UQPCAU4.js.map → chunk-VH34YC3Q.js.map} +0 -0
|
@@ -1122,13 +1122,6 @@ declare const ERC20_ABI: readonly [{
|
|
|
1122
1122
|
declare function shortenAddress(address: EvmWalletAddress): ShortenedWalletAddress;
|
|
1123
1123
|
type FormatAmountOptions = {
|
|
1124
1124
|
maxFractionDigits?: AssetDecimals;
|
|
1125
|
-
/**
|
|
1126
|
-
* Trailing zeros are kept down to this many places. Defaults to
|
|
1127
|
-
* `maxFractionDigits` when that is set, otherwise 2 (or the token's own
|
|
1128
|
-
* decimals, when fewer). A figure that wants a cap and a shorter floor —
|
|
1129
|
-
* a share headline — passes both.
|
|
1130
|
-
*/
|
|
1131
|
-
minFractionDigits?: AssetDecimals;
|
|
1132
1125
|
};
|
|
1133
1126
|
declare function formatAmount(amount: BlockchainAmount, locale: string, options?: FormatAmountOptions): FormattedAmountUi;
|
|
1134
1127
|
declare function formatRawAmount(amount: BlockchainAmount): string;
|
|
@@ -1144,16 +1137,6 @@ declare function usdAmount(amount: FormattedAmountUi): FormattedAmountAssetUi;
|
|
|
1144
1137
|
declare function assetAmount(amount: FormattedAmountUi, symbol: AssetSymbol): FormattedAmountAssetUi;
|
|
1145
1138
|
/** Placeholder shown when an amount is unavailable (e.g. a loading quote). */
|
|
1146
1139
|
declare const NA_AMOUNT_ASSET_UI: FormattedAmountAssetUi;
|
|
1147
|
-
/**
|
|
1148
|
-
* A share quantity for a headline: at most 6 decimal places, at least 2, with
|
|
1149
|
-
* the zeros between those dropped.
|
|
1150
|
-
*
|
|
1151
|
-
* An 18-decimal fill (`0.002689383776381483`) otherwise takes the whole
|
|
1152
|
-
* confirmation row and the fund name collapses to an ellipsis. Places past 6
|
|
1153
|
-
* are dust at share scale. The chain amount is unchanged, and the transaction
|
|
1154
|
-
* link still carries the exact figure.
|
|
1155
|
-
*/
|
|
1156
|
-
declare function formatShareAmount(amount: BlockchainAmount, locale: string): FormattedAmountUi;
|
|
1157
1140
|
/**
|
|
1158
1141
|
* Formats a USD amount capped at 2 fractional digits, falling back to the
|
|
1159
1142
|
* {@link NA_AMOUNT_ASSET_UI} placeholder when the amount is absent.
|
|
@@ -1290,4 +1273,4 @@ declare const User: {
|
|
|
1290
1273
|
fromDto: (dto: UserDto) => User;
|
|
1291
1274
|
};
|
|
1292
1275
|
|
|
1293
|
-
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,
|
|
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 };
|
|
@@ -1122,13 +1122,6 @@ declare const ERC20_ABI: readonly [{
|
|
|
1122
1122
|
declare function shortenAddress(address: EvmWalletAddress): ShortenedWalletAddress;
|
|
1123
1123
|
type FormatAmountOptions = {
|
|
1124
1124
|
maxFractionDigits?: AssetDecimals;
|
|
1125
|
-
/**
|
|
1126
|
-
* Trailing zeros are kept down to this many places. Defaults to
|
|
1127
|
-
* `maxFractionDigits` when that is set, otherwise 2 (or the token's own
|
|
1128
|
-
* decimals, when fewer). A figure that wants a cap and a shorter floor —
|
|
1129
|
-
* a share headline — passes both.
|
|
1130
|
-
*/
|
|
1131
|
-
minFractionDigits?: AssetDecimals;
|
|
1132
1125
|
};
|
|
1133
1126
|
declare function formatAmount(amount: BlockchainAmount, locale: string, options?: FormatAmountOptions): FormattedAmountUi;
|
|
1134
1127
|
declare function formatRawAmount(amount: BlockchainAmount): string;
|
|
@@ -1144,16 +1137,6 @@ declare function usdAmount(amount: FormattedAmountUi): FormattedAmountAssetUi;
|
|
|
1144
1137
|
declare function assetAmount(amount: FormattedAmountUi, symbol: AssetSymbol): FormattedAmountAssetUi;
|
|
1145
1138
|
/** Placeholder shown when an amount is unavailable (e.g. a loading quote). */
|
|
1146
1139
|
declare const NA_AMOUNT_ASSET_UI: FormattedAmountAssetUi;
|
|
1147
|
-
/**
|
|
1148
|
-
* A share quantity for a headline: at most 6 decimal places, at least 2, with
|
|
1149
|
-
* the zeros between those dropped.
|
|
1150
|
-
*
|
|
1151
|
-
* An 18-decimal fill (`0.002689383776381483`) otherwise takes the whole
|
|
1152
|
-
* confirmation row and the fund name collapses to an ellipsis. Places past 6
|
|
1153
|
-
* are dust at share scale. The chain amount is unchanged, and the transaction
|
|
1154
|
-
* link still carries the exact figure.
|
|
1155
|
-
*/
|
|
1156
|
-
declare function formatShareAmount(amount: BlockchainAmount, locale: string): FormattedAmountUi;
|
|
1157
1140
|
/**
|
|
1158
1141
|
* Formats a USD amount capped at 2 fractional digits, falling back to the
|
|
1159
1142
|
* {@link NA_AMOUNT_ASSET_UI} placeholder when the amount is absent.
|
|
@@ -1290,4 +1273,4 @@ declare const User: {
|
|
|
1290
1273
|
fromDto: (dto: UserDto) => User;
|
|
1291
1274
|
};
|
|
1292
1275
|
|
|
1293
|
-
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,
|
|
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 };
|
package/dist/universal/index.js
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
ondoQuoteOfferDeadline,
|
|
47
47
|
superstateSwapContractAddress,
|
|
48
48
|
swapSpender
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-VH34YC3Q.js";
|
|
50
50
|
import {
|
|
51
51
|
AllowWalletResponse,
|
|
52
52
|
Asset,
|
|
@@ -154,7 +154,6 @@ import {
|
|
|
154
154
|
formatBpsAsPercent,
|
|
155
155
|
formatCompactAmount,
|
|
156
156
|
formatRawAmount,
|
|
157
|
-
formatShareAmount,
|
|
158
157
|
formattedUsdPrice,
|
|
159
158
|
getChainId,
|
|
160
159
|
getNetworkName,
|
|
@@ -166,7 +165,7 @@ import {
|
|
|
166
165
|
txExplorerUrl,
|
|
167
166
|
usdAmount,
|
|
168
167
|
viemChain
|
|
169
|
-
} from "../chunk-
|
|
168
|
+
} from "../chunk-MOE5S6CE.js";
|
|
170
169
|
export {
|
|
171
170
|
AllowWalletResponse,
|
|
172
171
|
Asset,
|
|
@@ -314,7 +313,6 @@ export {
|
|
|
314
313
|
formatBpsAsPercent,
|
|
315
314
|
formatCompactAmount,
|
|
316
315
|
formatRawAmount,
|
|
317
|
-
formatShareAmount,
|
|
318
316
|
formattedPricePerShare,
|
|
319
317
|
formattedUsdPrice,
|
|
320
318
|
generatePKCEParams,
|