@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.
@@ -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-CDi5NJI8.cjs';
6
- import { S as SwapQuote, N as NonEmptyArray } from '../collections-CJ24dOda.cjs';
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;
@@ -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-CDi5NJI8.js';
6
- import { S as SwapQuote, N as NonEmptyArray } from '../collections-ZYLKp8JB.js';
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;
@@ -20,7 +20,7 @@ import {
20
20
  fetchPii,
21
21
  fetchRequirementStatuses,
22
22
  submitDocument
23
- } from "../chunk-7BJ2HAG7.js";
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-GSSAB4K5.js";
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-TUZKKFNW.js";
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.raw.toString(),
469
+ amount: formatRawAmount(amount),
469
470
  assetId,
470
471
  approvalTransactionHash: approvalTxHash
471
472
  });