@coinlist-co/react 0.10.0 → 0.10.1
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-GSSAB4K5.js → chunk-AQVCOWOV.js} +163 -69
- package/dist/chunk-AQVCOWOV.js.map +1 -0
- package/dist/{chunk-7BJ2HAG7.js → chunk-TBU3EBNM.js} +2 -2
- package/dist/{chunk-TUZKKFNW.js → chunk-UOHD7US2.js} +53 -34
- package/dist/chunk-UOHD7US2.js.map +1 -0
- package/dist/client/index.cjs +292 -295
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +1 -1
- package/dist/{collections-ZYLKp8JB.d.ts → collections-Bv1Oxzu_.d.ts} +1 -1
- package/dist/{collections-CJ24dOda.d.cts → collections-DDyxbOPZ.d.cts} +1 -1
- package/dist/{requirement-CDi5NJI8.d.cts → requirement-oVZA1INj.d.cts} +5 -1
- package/dist/{requirement-CDi5NJI8.d.ts → requirement-oVZA1INj.d.ts} +5 -1
- 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 +3 -5
- package/dist/server/index.js.map +1 -1
- 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 +12 -92
- package/dist/shared/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-AAER5LOL.js +0 -22
- package/dist/chunk-AAER5LOL.js.map +0 -1
- package/dist/chunk-GSSAB4K5.js.map +0 -1
- package/dist/chunk-TUZKKFNW.js.map +0 -1
- /package/dist/{chunk-7BJ2HAG7.js.map → chunk-TBU3EBNM.js.map} +0 -0
package/dist/client/index.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
|
|
5
|
-
import { E as EvmWalletAddress, a as EthereumChain, C as CoinListSwapNamespace, O as OfferId, b as EvmContractAddress, c as CoinListErc20Namespace, B as Bps, d as BlockchainAmount, S as SwapNamespaceImpl, e as SharedNamespaceContext, f as CoinListTokenSaleNamespace, g as OfferOptionId, A as AssetId, P as Participation, T as TokenSaleNamespaceImpl, h as AuthorizationCode, i as CodeVerifier, j as Config, k as OAuthAccessToken, l as Offer, m as PaginationParams, n as PaginatedResponse, o as OfferDetail, p as CreateWalletOwnershipChallengeParams, W as WalletOwnershipChallenge, q as ConnectExternalWalletParams, r as OfferOptionAddress, s as OfferOptionAddressId, R as Requirement, t as RequirementStatusInfo, u as Pii, D as DocumentType, v as DocumentSubmission, K as KycLevelName, w as KycToken, x as WalletChallengeType, y as RequirementType, z as RequirementStatusValue, F as Erc20Asset, G as AssetDecimals, H as StablecoinSymbol } from '../requirement-
|
|
6
|
-
import { S as SwapQuote, N as NonEmptyArray } from '../collections-
|
|
5
|
+
import { E as EvmWalletAddress, a as EthereumChain, C as CoinListSwapNamespace, O as OfferId, b as EvmContractAddress, c as CoinListErc20Namespace, B as Bps, d as BlockchainAmount, S as SwapNamespaceImpl, e as SharedNamespaceContext, f as CoinListTokenSaleNamespace, g as OfferOptionId, A as AssetId, P as Participation, T as TokenSaleNamespaceImpl, h as AuthorizationCode, i as CodeVerifier, j as Config, k as OAuthAccessToken, l as Offer, m as PaginationParams, n as PaginatedResponse, o as OfferDetail, p as CreateWalletOwnershipChallengeParams, W as WalletOwnershipChallenge, q as ConnectExternalWalletParams, r as OfferOptionAddress, s as OfferOptionAddressId, R as Requirement, t as RequirementStatusInfo, u as Pii, D as DocumentType, v as DocumentSubmission, K as KycLevelName, w as KycToken, x as WalletChallengeType, y as RequirementType, z as RequirementStatusValue, F as Erc20Asset, G as AssetDecimals, H as StablecoinSymbol } from '../requirement-oVZA1INj.cjs';
|
|
6
|
+
import { S as SwapQuote, N as NonEmptyArray } from '../collections-DDyxbOPZ.cjs';
|
|
7
7
|
|
|
8
8
|
type WriteContractParams = {
|
|
9
9
|
abi: Abi;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
|
|
5
|
-
import { E as EvmWalletAddress, a as EthereumChain, C as CoinListSwapNamespace, O as OfferId, b as EvmContractAddress, c as CoinListErc20Namespace, B as Bps, d as BlockchainAmount, S as SwapNamespaceImpl, e as SharedNamespaceContext, f as CoinListTokenSaleNamespace, g as OfferOptionId, A as AssetId, P as Participation, T as TokenSaleNamespaceImpl, h as AuthorizationCode, i as CodeVerifier, j as Config, k as OAuthAccessToken, l as Offer, m as PaginationParams, n as PaginatedResponse, o as OfferDetail, p as CreateWalletOwnershipChallengeParams, W as WalletOwnershipChallenge, q as ConnectExternalWalletParams, r as OfferOptionAddress, s as OfferOptionAddressId, R as Requirement, t as RequirementStatusInfo, u as Pii, D as DocumentType, v as DocumentSubmission, K as KycLevelName, w as KycToken, x as WalletChallengeType, y as RequirementType, z as RequirementStatusValue, F as Erc20Asset, G as AssetDecimals, H as StablecoinSymbol } from '../requirement-
|
|
6
|
-
import { S as SwapQuote, N as NonEmptyArray } from '../collections-
|
|
5
|
+
import { E as EvmWalletAddress, a as EthereumChain, C as CoinListSwapNamespace, O as OfferId, b as EvmContractAddress, c as CoinListErc20Namespace, B as Bps, d as BlockchainAmount, S as SwapNamespaceImpl, e as SharedNamespaceContext, f as CoinListTokenSaleNamespace, g as OfferOptionId, A as AssetId, P as Participation, T as TokenSaleNamespaceImpl, h as AuthorizationCode, i as CodeVerifier, j as Config, k as OAuthAccessToken, l as Offer, m as PaginationParams, n as PaginatedResponse, o as OfferDetail, p as CreateWalletOwnershipChallengeParams, W as WalletOwnershipChallenge, q as ConnectExternalWalletParams, r as OfferOptionAddress, s as OfferOptionAddressId, R as Requirement, t as RequirementStatusInfo, u as Pii, D as DocumentType, v as DocumentSubmission, K as KycLevelName, w as KycToken, x as WalletChallengeType, y as RequirementType, z as RequirementStatusValue, F as Erc20Asset, G as AssetDecimals, H as StablecoinSymbol } from '../requirement-oVZA1INj.js';
|
|
6
|
+
import { S as SwapQuote, N as NonEmptyArray } from '../collections-Bv1Oxzu_.js';
|
|
7
7
|
|
|
8
8
|
type WriteContractParams = {
|
|
9
9
|
abi: Abi;
|
package/dist/client/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
fetchPii,
|
|
21
21
|
fetchRequirementStatuses,
|
|
22
22
|
submitDocument
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-TBU3EBNM.js";
|
|
24
24
|
import {
|
|
25
25
|
AuthorizationCode,
|
|
26
26
|
CodeVerifier,
|
|
@@ -32,10 +32,11 @@ import {
|
|
|
32
32
|
computePrice,
|
|
33
33
|
computeSlip,
|
|
34
34
|
decodeSwappedOutputAmount,
|
|
35
|
+
formatRawAmount,
|
|
35
36
|
generatePKCEParams,
|
|
36
37
|
isStopped,
|
|
37
38
|
shortenAddress
|
|
38
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-AQVCOWOV.js";
|
|
39
40
|
import {
|
|
40
41
|
Attributes,
|
|
41
42
|
Blockchain,
|
|
@@ -52,7 +53,7 @@ import {
|
|
|
52
53
|
getUUIDv4,
|
|
53
54
|
listOptionAddresses,
|
|
54
55
|
removeOptionAddress
|
|
55
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-UOHD7US2.js";
|
|
56
57
|
|
|
57
58
|
// src/client/CoinListProvider.tsx
|
|
58
59
|
import {
|
|
@@ -465,7 +466,7 @@ async function executeTokenSale(params) {
|
|
|
465
466
|
offerOptionId,
|
|
466
467
|
chain: Blockchain(chain),
|
|
467
468
|
walletAddress: WalletAddress(wallet.address),
|
|
468
|
-
amount: amount
|
|
469
|
+
amount: formatRawAmount(amount),
|
|
469
470
|
assetId,
|
|
470
471
|
approvalTransactionHash: approvalTxHash
|
|
471
472
|
});
|