@funkit/connect 1.1.5 → 1.2.0

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 (136) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/components/CloseButton/CloseButton.d.ts +1 -1
  3. package/dist/components/ConnectButton/ConnectButton.d.ts +3 -1
  4. package/dist/components/FunButton/FunIconButton.d.ts +3 -3
  5. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.d.ts +1 -1
  6. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
  7. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +1 -1
  8. package/dist/components/Icons/ClockIcon.d.ts +1 -1
  9. package/dist/components/Icons/CoinIcon.d.ts +1 -1
  10. package/dist/components/Icons/Coinbase.d.ts +3 -1
  11. package/dist/components/Icons/Copied.d.ts +1 -1
  12. package/dist/components/Icons/EditIcon.d.ts +1 -1
  13. package/dist/components/Icons/EthereumIcon.d.ts +1 -1
  14. package/dist/components/Icons/FunkitPaymentsIconLine.d.ts +6 -0
  15. package/dist/components/Icons/LightningIcon.d.ts +1 -1
  16. package/dist/components/Icons/NoAssetsFoundIcon.d.ts +1 -1
  17. package/dist/components/Icons/PaymentMethodIcons.d.ts +1 -1
  18. package/dist/components/Icons/SearchIcon.d.ts +1 -1
  19. package/dist/components/Icons/Spinner.d.ts +2 -2
  20. package/dist/components/InfoButton/InfoButton.d.ts +1 -1
  21. package/dist/components/WalletButton/WalletButton.d.ts +1 -1
  22. package/dist/config/getDefaultConfig.d.ts +204 -60
  23. package/dist/hooks/useMesh.d.ts +6 -3
  24. package/dist/index.css +1 -1
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +455 -164
  27. package/dist/types/utils.d.ts +37 -0
  28. package/dist/utils/mesh.d.ts +4 -27
  29. package/dist/wallets/getInjectedConnector.d.ts +3 -2
  30. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  32. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +2 -2
  33. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
  34. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  35. package/dist/wallets/walletConnectors/{chunk-MIWCKFYE.js → chunk-2DWBVWFI.js} +4 -4
  36. package/dist/wallets/walletConnectors/{chunk-3WZRNEZH.js → chunk-32KBKKGT.js} +9 -5
  37. package/dist/wallets/walletConnectors/{chunk-JLQ5HJYV.js → chunk-32O7HVBJ.js} +1 -1
  38. package/dist/wallets/walletConnectors/{chunk-O5NKWWEG.js → chunk-3CLNL7LR.js} +4 -4
  39. package/dist/wallets/walletConnectors/chunk-3F5GNHAG.js +182 -0
  40. package/dist/wallets/walletConnectors/{chunk-4FQLUQNA.js → chunk-3QXMJHL4.js} +1 -1
  41. package/dist/wallets/walletConnectors/{chunk-ZNXQ4V6G.js → chunk-3R3RNCGE.js} +4 -4
  42. package/dist/wallets/walletConnectors/{chunk-KGBLSE7L.js → chunk-4PTY6XNU.js} +1 -1
  43. package/dist/wallets/walletConnectors/{chunk-ZBAQFL6G.js → chunk-5L2OLU3J.js} +4 -4
  44. package/dist/wallets/walletConnectors/{chunk-XPEBP6XV.js → chunk-5SIHQ5GA.js} +1 -1
  45. package/dist/wallets/walletConnectors/{chunk-NGXIHASN.js → chunk-5ZGE5SN5.js} +1 -1
  46. package/dist/wallets/walletConnectors/chunk-7GGRZNT3.js +96 -0
  47. package/dist/wallets/walletConnectors/chunk-7YDZTPO4.js +100 -0
  48. package/dist/wallets/walletConnectors/{chunk-6LTLPR2Q.js → chunk-AFONKDII.js} +1 -1
  49. package/dist/wallets/walletConnectors/{chunk-ZUAHWUEL.js → chunk-BCXBFAL4.js} +4 -4
  50. package/dist/wallets/walletConnectors/{chunk-Z2DGDHHZ.js → chunk-BMHNXJZK.js} +1 -1
  51. package/dist/wallets/walletConnectors/{chunk-V45EXW7A.js → chunk-CMXZK5RR.js} +4 -4
  52. package/dist/wallets/walletConnectors/{chunk-LVRXH33E.js → chunk-CNTLU4ZV.js} +1 -1
  53. package/dist/wallets/walletConnectors/chunk-EXN2ODSI.js +73 -0
  54. package/dist/wallets/walletConnectors/{chunk-QII6PY2D.js → chunk-F3VCNZXS.js} +8 -6
  55. package/dist/wallets/walletConnectors/chunk-F4EJ42XO.js +105 -0
  56. package/dist/wallets/walletConnectors/chunk-FL2VIO76.js +71 -0
  57. package/dist/wallets/walletConnectors/{chunk-63NPZXAL.js → chunk-FQDX6QIP.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-7CQPABJG.js → chunk-G4DNQN67.js} +1 -1
  59. package/dist/wallets/walletConnectors/{chunk-KIHCNUU3.js → chunk-GUJHPWTU.js} +1 -1
  60. package/dist/wallets/walletConnectors/{chunk-XXFJVY73.js → chunk-HXGBE5AH.js} +1 -1
  61. package/dist/wallets/walletConnectors/chunk-IIJOJ6AD.js +102 -0
  62. package/dist/wallets/walletConnectors/{chunk-C67TQJ6W.js → chunk-IMZRCMZR.js} +1 -1
  63. package/dist/wallets/walletConnectors/{chunk-L734HTUS.js → chunk-JNZ3EYC7.js} +1 -1
  64. package/dist/wallets/walletConnectors/{chunk-ENZLEAG2.js → chunk-JRABHUUZ.js} +1 -1
  65. package/dist/wallets/walletConnectors/{chunk-ABYQAXUX.js → chunk-KJWMF6GZ.js} +1 -1
  66. package/dist/wallets/walletConnectors/{chunk-4XQDKOGF.js → chunk-KZFAL4RZ.js} +4 -4
  67. package/dist/wallets/walletConnectors/{chunk-2UXZAUWT.js → chunk-LJRV5JY7.js} +4 -4
  68. package/dist/wallets/walletConnectors/{chunk-AM4SSLAP.js → chunk-LOEDYNWO.js} +1 -1
  69. package/dist/wallets/walletConnectors/{chunk-Q4RLUJJD.js → chunk-M4SPCKW4.js} +4 -4
  70. package/dist/wallets/walletConnectors/chunk-MFS6NY6T.js +105 -0
  71. package/dist/wallets/walletConnectors/chunk-MOAWRDEM.js +95 -0
  72. package/dist/wallets/walletConnectors/chunk-MSRKKVDE.js +98 -0
  73. package/dist/wallets/walletConnectors/chunk-ND5YG63V.js +87 -0
  74. package/dist/wallets/walletConnectors/chunk-NK3DYIAB.js +92 -0
  75. package/dist/wallets/walletConnectors/{chunk-XBUTWYE4.js → chunk-O77H3VWW.js} +14 -18
  76. package/dist/wallets/walletConnectors/chunk-OMKARG6Y.js +94 -0
  77. package/dist/wallets/walletConnectors/chunk-OPO2D6GL.js +102 -0
  78. package/dist/wallets/walletConnectors/chunk-OUQ3ZF2W.js +100 -0
  79. package/dist/wallets/walletConnectors/chunk-OXWTS7HX.js +98 -0
  80. package/dist/wallets/walletConnectors/{chunk-P4JLZ42R.js → chunk-P4C7ZHIS.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-H76YCX2M.js → chunk-PILSRRPJ.js} +1 -1
  82. package/dist/wallets/walletConnectors/chunk-PJRUHFBT.js +71 -0
  83. package/dist/wallets/walletConnectors/{chunk-SYELB4QO.js → chunk-PQSJXOGA.js} +1 -1
  84. package/dist/wallets/walletConnectors/chunk-QGQISKXF.js +94 -0
  85. package/dist/wallets/walletConnectors/{chunk-4WOV4ITL.js → chunk-QS2J6MWB.js} +1 -1
  86. package/dist/wallets/walletConnectors/chunk-QUFNIKMV.js +27 -0
  87. package/dist/wallets/walletConnectors/{chunk-H273OTQA.js → chunk-R2GYJ376.js} +1 -1
  88. package/dist/wallets/walletConnectors/chunk-R5GNFRXW.js +96 -0
  89. package/dist/wallets/walletConnectors/chunk-S2IWMXKX.js +94 -0
  90. package/dist/wallets/walletConnectors/{chunk-FLY7F4XA.js → chunk-SJWHYD45.js} +1 -1
  91. package/dist/wallets/walletConnectors/chunk-TKXMLZXG.js +66 -0
  92. package/dist/wallets/walletConnectors/chunk-TUK3HNKY.js +182 -0
  93. package/dist/wallets/walletConnectors/chunk-UWU574XS.js +95 -0
  94. package/dist/wallets/walletConnectors/chunk-WH7S23VZ.js +73 -0
  95. package/dist/wallets/walletConnectors/chunk-WS4EM7AZ.js +102 -0
  96. package/dist/wallets/walletConnectors/chunk-XB2GFXBL.js +107 -0
  97. package/dist/wallets/walletConnectors/{chunk-ZOL6ZMTJ.js → chunk-XEZPRJPV.js} +1 -1
  98. package/dist/wallets/walletConnectors/chunk-XUXFYTCV.js +96 -0
  99. package/dist/wallets/walletConnectors/{chunk-DPXMP5KS.js → chunk-Z5QFIFDP.js} +1 -1
  100. package/dist/wallets/walletConnectors/chunk-ZBQT5PV6.js +98 -0
  101. package/dist/wallets/walletConnectors/{chunk-PWYTDYBE.js → chunk-ZCSUP7CX.js} +1 -1
  102. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  104. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -1
  105. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +1 -2
  106. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  111. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +2 -2
  112. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  113. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  114. package/dist/wallets/walletConnectors/index.js +80 -80
  115. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
  116. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  117. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
  118. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  119. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
  120. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
  122. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  123. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
  124. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  125. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +2 -2
  126. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  127. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  128. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +2 -2
  129. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
  130. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  131. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
  132. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  133. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
  134. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  135. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  136. package/package.json +5 -4
package/dist/index.js CHANGED
@@ -490,10 +490,10 @@ var WalletDecoratedIcon = () => {
490
490
 
491
491
  // src/components/FunkitProvider/FunkitConfigContext.tsx
492
492
  var DEFAULT_TEXT_CUSTOMIZATIONS = {
493
- selectPaymentMethod: "Select Payment Method",
493
+ selectPaymentMethod: "Select Method",
494
494
  brokerageOrExchange: "Brokerage or Exchange",
495
495
  debitOrCredit: "Debit or Credit",
496
- accountBalance: "Wallet Balance",
496
+ accountBalance: "Cross-Chain Swap",
497
497
  transferCrypto: "Transfer Crypto",
498
498
  selectAccount: "Select Account",
499
499
  payWith: "Pay With",
@@ -1401,11 +1401,11 @@ function DialogContent({
1401
1401
  }
1402
1402
 
1403
1403
  // src/components/FunkitProvider/GeneralWalletProvider.tsx
1404
+ import { getAllWalletTokens } from "@funkit/api-base";
1404
1405
  import {
1405
1406
  Auth,
1406
1407
  FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO2,
1407
- FunWallet,
1408
- getAssetsByWalletAddress
1408
+ FunWallet
1409
1409
  } from "@funkit/core";
1410
1410
  import React18, {
1411
1411
  createContext as createContext8,
@@ -1605,7 +1605,11 @@ function GeneralWalletProvider({ children }) {
1605
1605
  if (isConnected && address) {
1606
1606
  try {
1607
1607
  setIsFetchingAssets(true);
1608
- const assets = await getAssetsByWalletAddress(address, "ALL");
1608
+ const assets = await getAllWalletTokens({
1609
+ walletAddress: address,
1610
+ onlyVerifiedTokens: true,
1611
+ apiKey
1612
+ });
1609
1613
  const assetsCombined = Object.keys(assets).reduce(
1610
1614
  (acc, curChainId) => {
1611
1615
  const chainAssets = assets == null ? void 0 : assets[curChainId];
@@ -1895,19 +1899,22 @@ import React92, { useCallback as useCallback22, useMemo as useMemo26, useState a
1895
1899
 
1896
1900
  // src/components/FunkitProvider/FunkitCheckoutContext.tsx
1897
1901
  import {
1898
- addOwnerTxParams,
1899
- Chain,
1900
- ContractInterface,
1901
- FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5,
1902
- getAssetPriceInfoForCheckout as getAssetPriceInfoForCheckout2,
1902
+ getAssetPriceInfo as getAssetPriceInfo2,
1903
1903
  getCheckoutByDepositAddress,
1904
1904
  getCheckoutQuote as getApiCheckoutQuote,
1905
1905
  getCheckoutsByRecipientAddress,
1906
1906
  getMoonpayBuyQuoteForCreditCard,
1907
- HashZero,
1908
1907
  initializeCheckout as postApiInitializeCheckout,
1908
+ meshPreviewTransfer
1909
+ } from "@funkit/api-base";
1910
+ import {
1911
+ addOwnerTxParams,
1912
+ Chain,
1913
+ ContractInterface,
1914
+ FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO5,
1915
+ getDecimals,
1916
+ HashZero,
1909
1917
  isAddress as isAddress2,
1910
- meshPreviewTransfer,
1911
1918
  WALLET_CONTRACT_INTERFACE
1912
1919
  } from "@funkit/core";
1913
1920
  import { estimateGas } from "@wagmi/core";
@@ -1992,13 +1999,13 @@ function generateQuoteApiErrorForDisplay(errorMessage = "") {
1992
1999
  }
1993
2000
 
1994
2001
  // src/utils/checkout.ts
2002
+ import { getAssetPriceInfo } from "@funkit/api-base";
1995
2003
  import {
1996
2004
  CHECKOUT_SPONSOR_SUPPORT_CHAINS,
1997
2005
  CheckoutState as CheckoutState2,
1998
2006
  CONTRACT_ADDRESSES,
1999
2007
  FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS as FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS2,
2000
2008
  FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO3,
2001
- getAssetPriceInfoForCheckout,
2002
2009
  getEnvOptions,
2003
2010
  getTokenInfo
2004
2011
  } from "@funkit/core";
@@ -2417,11 +2424,11 @@ async function decorateTokenList(tokensChainMap, targetChainId, apiKey) {
2417
2424
  let tokenUnitPriceUsd = null;
2418
2425
  try {
2419
2426
  if (erc20TokenAddress) {
2420
- const priceInfo = await getAssetPriceInfoForCheckout(
2421
- pickedChainId,
2422
- erc20TokenAddress,
2423
- apiKey
2424
- );
2427
+ const priceInfo = await getAssetPriceInfo({
2428
+ apiKey,
2429
+ chainId: pickedChainId,
2430
+ assetTokenAddress: erc20TokenAddress
2431
+ });
2425
2432
  tokenUnitPriceUsd = (priceInfo == null ? void 0 : priceInfo.unitPrice) || null;
2426
2433
  }
2427
2434
  } catch (err) {
@@ -2613,7 +2620,7 @@ function FunkitCheckoutProvider({ children }) {
2613
2620
  depositAddress: historyDepositAddress,
2614
2621
  apiKey: funkitConfig == null ? void 0 : funkitConfig.apiKey
2615
2622
  });
2616
- newCheckoutHistoryList = [singleCheckoutHistory];
2623
+ newCheckoutHistoryList = singleCheckoutHistory ? [singleCheckoutHistory] : [];
2617
2624
  }
2618
2625
  setCheckoutHistoryList(
2619
2626
  newCheckoutHistoryList.sort((a, b) => b.createdTimeMs - a.createdTimeMs)
@@ -2778,11 +2785,11 @@ function FunkitCheckoutProvider({ children }) {
2778
2785
  const [reDraftSymbol, triggerReDraftSymbol] = useSymbolRefresh_default();
2779
2786
  const _calculateAssetUsdValue = useCallback7(
2780
2787
  async (chainId, tokenAddress, tokenAmount) => {
2781
- const priceInfo = await getAssetPriceInfoForCheckout2(
2788
+ const priceInfo = await getAssetPriceInfo2({
2782
2789
  chainId,
2783
- tokenAddress,
2784
- funkitConfig.apiKey
2785
- );
2790
+ assetTokenAddress: tokenAddress,
2791
+ apiKey: funkitConfig.apiKey
2792
+ });
2786
2793
  if (!priceInfo) {
2787
2794
  throw new Error(
2788
2795
  "Unsupported targetAsset, please contact the team at Fun.xyz"
@@ -2868,14 +2875,30 @@ function FunkitCheckoutProvider({ children }) {
2868
2875
  sponsorInitialTransferGasLimit,
2869
2876
  newPaymentMethodInfo
2870
2877
  });
2871
- const inputCustomRecipient = checkoutItem.initSettings.config.customRecipient;
2872
2878
  try {
2879
+ const toChainId = checkoutItem.initSettings.config.targetChain;
2880
+ const toTokenAddress = checkoutItem.initSettings.config.targetAsset;
2881
+ const fromChainId = checkoutItem.selectedSourceAssetInfo.chainId;
2882
+ const fromTokenAddress = checkoutItem.selectedSourceAssetInfo.address;
2883
+ const [toTokenDecimals, fromTokenDecimals] = await Promise.all([
2884
+ getDecimals({
2885
+ chainId: toChainId,
2886
+ tokenAddress: toTokenAddress
2887
+ }),
2888
+ getDecimals({
2889
+ chainId: fromChainId,
2890
+ tokenAddress: fromTokenAddress
2891
+ })
2892
+ ]);
2893
+ const inputCustomRecipient = checkoutItem.initSettings.config.customRecipient;
2873
2894
  const baseQuote = await getApiCheckoutQuote({
2874
- fromChainId: checkoutItem.selectedSourceAssetInfo.chainId,
2875
- fromTokenAddress: checkoutItem.selectedSourceAssetInfo.address,
2876
- toChainId: checkoutItem.initSettings.config.targetChain,
2877
- toTokenAddress: checkoutItem.initSettings.config.targetAsset,
2895
+ fromChainId,
2896
+ fromTokenAddress,
2897
+ fromTokenDecimals,
2898
+ toChainId,
2899
+ toTokenAddress,
2878
2900
  toTokenAmount: checkoutItem.initSettings.config.targetAssetAmount,
2901
+ toTokenDecimals,
2879
2902
  recipientAddr: inputCustomRecipient ? inputCustomRecipient : walletAddress,
2880
2903
  expirationTimestampMs: parseInt(
2881
2904
  checkoutItem.initSettings.config.expirationTimestampMs.toString()
@@ -2978,19 +3001,15 @@ function FunkitCheckoutProvider({ children }) {
2978
3001
  baseQuote.estTotalFromAmount.toString(),
2979
3002
  5
2980
3003
  );
2981
- const dummyPreviewTransfer = await meshPreviewTransfer(
2982
- meshAccessToken,
2983
- meshExchangeType,
2984
- null,
2985
- null,
2986
- meshNetworkId,
2987
- (_e = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _e.symbol,
2988
- DUMMY_TRANSFER_PARAMS.toAddress,
2989
- amountInCrypto.toString(),
2990
- null,
2991
- null,
2992
- funkitConfig.apiKey
2993
- );
3004
+ const dummyPreviewTransfer = await meshPreviewTransfer({
3005
+ fromAuthToken: meshAccessToken,
3006
+ fromType: meshExchangeType,
3007
+ networkId: meshNetworkId,
3008
+ symbol: (_e = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _e.symbol,
3009
+ toAddress: DUMMY_TRANSFER_PARAMS.toAddress,
3010
+ amount: amountInCrypto.toString(),
3011
+ apiKey: funkitConfig.apiKey
3012
+ });
2994
3013
  logger.log("quote_dummyPreviewTransfer", dummyPreviewTransfer);
2995
3014
  networkFeesUsdBreakdown.networkFeesUsdFromMesh = dummyPreviewTransfer.previewResult.estimatedNetworkGasFee.feeInFiat;
2996
3015
  platformFeesUsdBreakdown.platformFeesUsdFromMesh = dummyPreviewTransfer.previewResult.institutionTransferFee.feeInFiat + dummyPreviewTransfer.previewResult.customClientFee.feeInFiat;
@@ -3375,8 +3394,8 @@ var useFunkitPostCheckoutInternal = (depositAddress) => {
3375
3394
  apiKey: funkitConfig.apiKey
3376
3395
  });
3377
3396
  }
3378
- logger.log("setupCheckoutHistory:checkoutHistory", checkoutHistory);
3379
- setCheckoutHistoryInfo(checkoutHistory);
3397
+ logger.log("setupCheckoutHistory:checkoutHistory", { checkoutHistory });
3398
+ setCheckoutHistoryInfo(checkoutHistory ? checkoutHistory : void 0);
3380
3399
  } catch (err) {
3381
3400
  logger.error("setupCheckoutHistory:error", err);
3382
3401
  } finally {
@@ -4523,13 +4542,13 @@ import React35, { createContext as createContext11, useCallback as useCallback10
4523
4542
 
4524
4543
  // src/utils/mesh.ts
4525
4544
  import {
4526
- FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST,
4527
- meshExecuteTransfer,
4528
4545
  meshGetCryptocurrencyHoldings,
4529
4546
  meshGetLinkToken,
4530
4547
  meshGetTransferIntegrations
4531
- } from "@funkit/core";
4548
+ } from "@funkit/api-base";
4549
+ import { FUNKIT_CONNECT_SUPPORTED_CHAINS_ID_LIST } from "@funkit/core";
4532
4550
  var FUNKIT_MESH_CLIENT_ID = "8132aff4-56c9-4b1d-85b4-08dbdcc6199d";
4551
+ var MESH_DEFAULT_USER_ID = "meshconnectkit";
4533
4552
  var MeshExchanges = /* @__PURE__ */ ((MeshExchanges4) => {
4534
4553
  MeshExchanges4["Robinhood"] = "Robinhood";
4535
4554
  MeshExchanges4["ETrade"] = "ETrade";
@@ -4596,23 +4615,13 @@ var EXCHANGE_NAME_TO_TYPE = {
4596
4615
  ["BitfinexDirect" /* BitfinexDirect */]: "bitfinexDirect"
4597
4616
  };
4598
4617
  async function fetchMeshLinkToken(funkitUserId, selectedExchange, funApiKey) {
4599
- return await meshGetLinkToken(
4600
- funkitUserId,
4601
- selectedExchange,
4602
- true,
4603
- null,
4604
- funApiKey
4605
- );
4606
- }
4607
- async function executeBrokerageDeposit(fromAuthToken, fromType, previewId, apiKey, mfaCode) {
4608
- const executeTransfer = await meshExecuteTransfer(
4609
- fromAuthToken,
4610
- fromType,
4611
- previewId,
4612
- mfaCode,
4613
- apiKey
4614
- );
4615
- return executeTransfer;
4618
+ return await meshGetLinkToken({
4619
+ userId: funkitUserId,
4620
+ integrationId: selectedExchange,
4621
+ apiKey: funApiKey,
4622
+ restrictMultipleAccounts: true,
4623
+ transferOptions: null
4624
+ });
4616
4625
  }
4617
4626
  async function fetchMeshAccountCryptoHoldings({
4618
4627
  authToken,
@@ -4620,14 +4629,18 @@ async function fetchMeshAccountCryptoHoldings({
4620
4629
  exchange
4621
4630
  }) {
4622
4631
  const type = EXCHANGE_NAME_TO_TYPE[exchange];
4623
- const res = await meshGetCryptocurrencyHoldings(authToken, type, apiKey);
4632
+ const res = await meshGetCryptocurrencyHoldings({
4633
+ authToken,
4634
+ apiKey,
4635
+ type
4636
+ });
4624
4637
  return res.cryptocurrencyPositions;
4625
4638
  }
4626
4639
  async function fetchMeshSupportedTokensByBrokerageAndSupportedFunkitChains({
4627
4640
  exchange,
4628
4641
  apiKey
4629
4642
  }) {
4630
- const res = await meshGetTransferIntegrations(apiKey);
4643
+ const res = await meshGetTransferIntegrations({ apiKey });
4631
4644
  const item = res.integrations.find(
4632
4645
  (item2) => item2.type === EXCHANGE_NAME_TO_TYPE[exchange]
4633
4646
  );
@@ -4762,7 +4775,7 @@ function useFunkitMesh({
4762
4775
  onConnected == null ? void 0 : onConnected(meshBrokerDataMap[brokerage]);
4763
4776
  } else {
4764
4777
  const response = await fetchMeshLinkToken(
4765
- "meshconnectkit",
4778
+ MESH_DEFAULT_USER_ID,
4766
4779
  brokerage,
4767
4780
  apiKey
4768
4781
  );
@@ -4927,10 +4940,10 @@ var CexloIcon = () => {
4927
4940
 
4928
4941
  // src/components/Icons/Coinbase.tsx
4929
4942
  import React39 from "react";
4930
- var CoinbaseIcon = () => {
4943
+ var CoinbaseIcon = ({ size = 24 }) => {
4931
4944
  return /* @__PURE__ */ React39.createElement("svg", {
4932
- width: "24",
4933
- height: "24",
4945
+ width: size,
4946
+ height: size,
4934
4947
  viewBox: "0 0 28 28",
4935
4948
  fill: "none",
4936
4949
  xmlns: "http://www.w3.org/2000/svg"
@@ -5331,6 +5344,11 @@ function useFunkitMoonpayUserIp() {
5331
5344
  }
5332
5345
 
5333
5346
  // src/components/FunMeshVerificationStep/FunMeshVerificationStep.tsx
5347
+ import {
5348
+ meshExecuteTransfer,
5349
+ MeshExecuteTransferMfaType,
5350
+ MeshExecuteTransferStatus
5351
+ } from "@funkit/api-base";
5334
5352
  import React54, { useCallback as useCallback14, useEffect as useEffect14, useMemo as useMemo11, useState as useState15 } from "react";
5335
5353
 
5336
5354
  // src/components/CopyAddress/CopyAddress.tsx
@@ -5731,35 +5749,35 @@ function FunMeshVerificationStep({
5731
5749
  return;
5732
5750
  }
5733
5751
  logger.log("inputs", { finalOtpInput });
5734
- const res = await executeBrokerageDeposit(
5735
- accessToken,
5736
- EXCHANGE_NAME_TO_TYPE[exchange],
5752
+ const res = await meshExecuteTransfer({
5753
+ fromAuthToken: accessToken,
5754
+ fromType: EXCHANGE_NAME_TO_TYPE[exchange],
5737
5755
  previewId,
5738
- funkitConfig == null ? void 0 : funkitConfig.apiKey,
5739
- finalOtpInput
5740
- );
5741
- logger.log("executeBrokerageDeposit", res);
5756
+ mfaCode: finalOtpInput,
5757
+ apiKey: funkitConfig.apiKey
5758
+ });
5759
+ logger.log("meshExecuteTransfer", res);
5742
5760
  setExecutionContent(res);
5743
5761
  switch (res == null ? void 0 : res["status"]) {
5744
- case "succeeded" /* succeeded */:
5762
+ case MeshExecuteTransferStatus.succeeded:
5745
5763
  onSuccess == null ? void 0 : onSuccess();
5746
5764
  break;
5747
- case "mfaRequired" /* mfaRequired */:
5748
- case "secondMfaRequired" /* secondMfaRequired */:
5765
+ case MeshExecuteTransferStatus.mfaRequired:
5766
+ case MeshExecuteTransferStatus.secondMfaRequired:
5749
5767
  setScreen(1 /* TWO_FACTOR */);
5750
5768
  break;
5751
- case "mfaFailed" /* mfaFailed */:
5769
+ case MeshExecuteTransferStatus.mfaFailed:
5752
5770
  setScreen(1 /* TWO_FACTOR */);
5753
5771
  setExecutionError(res.errorMessage || "");
5754
5772
  break;
5755
- case "emailConfirmationRequired" /* emailConfirmationRequired */:
5756
- case "deviceConfirmationRequired" /* deviceConfirmationRequired */:
5773
+ case MeshExecuteTransferStatus.emailConfirmationRequired:
5774
+ case MeshExecuteTransferStatus.deviceConfirmationRequired:
5757
5775
  setScreen(2 /* CONFIRMATION */);
5758
5776
  break;
5759
- case "addressWhitelistRequired" /* addressWhitelistRequired */:
5777
+ case MeshExecuteTransferStatus.addressWhitelistRequired:
5760
5778
  setScreen(3 /* WHITELIST */);
5761
5779
  break;
5762
- case "failed" /* failed */:
5780
+ case MeshExecuteTransferStatus.failed:
5763
5781
  default:
5764
5782
  setScreen(4 /* FAILED */);
5765
5783
  setExecutionError(res.errorMessage || "");
@@ -5778,35 +5796,35 @@ function FunMeshVerificationStep({
5778
5796
  );
5779
5797
  const verificationTitle = useMemo11(() => {
5780
5798
  switch (executionStatus) {
5781
- case "mfaRequired" /* mfaRequired */:
5799
+ case MeshExecuteTransferStatus.mfaRequired:
5782
5800
  return "Two Factor Required";
5783
- case "mfaFailed" /* mfaFailed */:
5801
+ case MeshExecuteTransferStatus.mfaFailed:
5784
5802
  return "Valid Two Factor Required";
5785
- case "secondMfaRequired" /* secondMfaRequired */:
5803
+ case MeshExecuteTransferStatus.secondMfaRequired:
5786
5804
  return "Second Two Factor Required";
5787
- case "deviceConfirmationRequired" /* deviceConfirmationRequired */:
5805
+ case MeshExecuteTransferStatus.deviceConfirmationRequired:
5788
5806
  return "Device Confirmation Required";
5789
- case "emailConfirmationRequired" /* emailConfirmationRequired */:
5807
+ case MeshExecuteTransferStatus.emailConfirmationRequired:
5790
5808
  return "Email Confirmation Required";
5791
- case "addressWhitelistRequired" /* addressWhitelistRequired */:
5809
+ case MeshExecuteTransferStatus.addressWhitelistRequired:
5792
5810
  return "Address Whitelisting Required";
5793
- case "failed" /* failed */:
5811
+ case MeshExecuteTransferStatus.failed:
5794
5812
  return "An Error Occurred";
5795
5813
  }
5796
5814
  }, [executionStatus]);
5797
5815
  const verificationDescription = useMemo11(() => {
5798
5816
  switch (executionStatus) {
5799
- case "mfaRequired" /* mfaRequired */:
5800
- case "mfaFailed" /* mfaFailed */:
5801
- case "secondMfaRequired" /* secondMfaRequired */:
5802
- return `Please enter the${(executionContent == null ? void 0 : executionContent.mfaType) && (executionContent == null ? void 0 : executionContent.mfaType) !== "unspecified" /* unspecified */ ? ` ${executionContent.mfaType} ` : " "}two factor code associated with your ${exchange} account. Once done, click "Continue" below.`;
5803
- case "deviceConfirmationRequired" /* deviceConfirmationRequired */:
5817
+ case MeshExecuteTransferStatus.mfaRequired:
5818
+ case MeshExecuteTransferStatus.mfaFailed:
5819
+ case MeshExecuteTransferStatus.secondMfaRequired:
5820
+ return `Please enter the${(executionContent == null ? void 0 : executionContent.mfaType) && (executionContent == null ? void 0 : executionContent.mfaType) !== MeshExecuteTransferMfaType.unspecified ? ` ${executionContent.mfaType} ` : " "}two factor code associated with your ${exchange} account. Once done, click "Continue" below.`;
5821
+ case MeshExecuteTransferStatus.deviceConfirmationRequired:
5804
5822
  return `Open the ${exchange} app on your mobile device and verify that you are trying to transfer crypto. Once done, click "Continue" below.`;
5805
- case "emailConfirmationRequired" /* emailConfirmationRequired */:
5823
+ case MeshExecuteTransferStatus.emailConfirmationRequired:
5806
5824
  return `A verification email has been sent to the email address associated with your ${exchange} account. Please follow the verification instructions accordingly. Once done, click "Continue" below.`;
5807
- case "addressWhitelistRequired" /* addressWhitelistRequired */:
5825
+ case MeshExecuteTransferStatus.addressWhitelistRequired:
5808
5826
  return `Copy the address below and whitelist it on your ${exchange} account. Once done, click "Continue" below.`;
5809
- case "failed" /* failed */:
5827
+ case MeshExecuteTransferStatus.failed:
5810
5828
  return "An error occurred during checkout but your brokerage funds are unaffected. To retry, please go back and re-confirm a new checkout. If the error still persists, please reach out to support for help.";
5811
5829
  }
5812
5830
  }, [exchange, executionContent == null ? void 0 : executionContent.mfaType, executionStatus]);
@@ -6292,7 +6310,7 @@ function FunPaymentMeshType({
6292
6310
  }
6293
6311
 
6294
6312
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
6295
- import { getMoonpayUrlSignature } from "@funkit/core";
6313
+ import { getMoonpayUrlSignature } from "@funkit/api-base";
6296
6314
  import React60, { memo, useEffect as useEffect16, useMemo as useMemo14, useState as useState18 } from "react";
6297
6315
 
6298
6316
  // src/components/FunPayments/FunPaymentMoonpayType.css.ts
@@ -6344,11 +6362,11 @@ function FunPaymentMoonpayType({
6344
6362
  currencyCode
6345
6363
  );
6346
6364
  const handleGetSignature = async (url) => {
6347
- const res = await getMoonpayUrlSignature(
6365
+ const res = await getMoonpayUrlSignature({
6348
6366
  url,
6349
- isSandboxMode,
6350
- funkitConfig == null ? void 0 : funkitConfig.apiKey
6351
- );
6367
+ apiKey: funkitConfig.apiKey,
6368
+ isSandbox: isSandboxMode
6369
+ });
6352
6370
  const queryParams = new URLSearchParams(res.split("?")[1]);
6353
6371
  const signature = queryParams.get("signature");
6354
6372
  logger.log("moonpaySignatureRequested", {
@@ -6779,11 +6797,13 @@ var CombinedCreditCardOptionsIcon = () => {
6779
6797
 
6780
6798
  // src/components/FunCheckoutModal/FunCheckoutConfirmationStep.tsx
6781
6799
  import {
6782
- ERC20_ABI,
6783
- FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6,
6784
6800
  getPaymasterDataForCheckoutSponsoredTransfer,
6785
- isAddress as isAddress3,
6786
6801
  meshPreviewTransfer as meshPreviewTransfer2
6802
+ } from "@funkit/api-base";
6803
+ import {
6804
+ ERC20_ABI,
6805
+ FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO6,
6806
+ isAddress as isAddress3
6787
6807
  } from "@funkit/core";
6788
6808
  import React78, { useCallback as useCallback17, useMemo as useMemo19, useState as useState22 } from "react";
6789
6809
  import { useAccount as useAccount4, useSendTransaction, useWriteContract } from "wagmi";
@@ -6828,7 +6848,7 @@ function FunTermsAndConditionsTextButton() {
6828
6848
  }
6829
6849
 
6830
6850
  // src/components/FunPayments/FunPaymentMethods.tsx
6831
- import { getAssetPriceInfoForCheckout as getAssetPriceInfoForCheckout3 } from "@funkit/core";
6851
+ import { getAssetPriceInfo as getAssetPriceInfo3 } from "@funkit/api-base";
6832
6852
  import React71, { useCallback as useCallback16, useEffect as useEffect17, useMemo as useMemo16, useState as useState19 } from "react";
6833
6853
 
6834
6854
  // src/components/FunPoweredTagline/FunPoweredTagline.tsx
@@ -7111,11 +7131,11 @@ function FunPaymentMethods({
7111
7131
  const { hasQuoteError, showQuoteNotification, quoteNotificationMessage } = useCheckoutQuoteNotification(checkoutId || "");
7112
7132
  const updateTargetAssetAmountForCard = useCallback16(async () => {
7113
7133
  if ((checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetChain) && (checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetAsset)) {
7114
- const info = await getAssetPriceInfoForCheckout3(
7115
- checkoutItem.initSettings.config.targetChain,
7116
- checkoutItem.initSettings.config.targetAsset,
7117
- apiKey
7118
- );
7134
+ const info = await getAssetPriceInfo3({
7135
+ apiKey,
7136
+ chainId: checkoutItem.initSettings.config.targetChain,
7137
+ assetTokenAddress: checkoutItem.initSettings.config.targetAsset
7138
+ });
7119
7139
  if (info && info.unitPrice) {
7120
7140
  const minTargetAmount = roundUpToXDecimalPlaces(
7121
7141
  (MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD / info.unitPrice).toString(),
@@ -8110,22 +8130,18 @@ function FunCheckoutConfirmationStep({
8110
8130
  if (!((_a2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _a2.symbol) || !((_b2 = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _b2.baseQuote.estTotalFromAmount) || !((_d2 = (_c2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _c2.meta) == null ? void 0 : _d2.checkoutMeshNetworkId)) {
8111
8131
  throw new Error("Invalid source asset information");
8112
8132
  }
8113
- return await meshPreviewTransfer2(
8114
- (_h2 = (_g2 = (_f2 = (_e2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _e2.meta) == null ? void 0 : _f2.accessToken) == null ? void 0 : _g2.accountTokens) == null ? void 0 : _h2[0].accessToken,
8115
- (_k2 = (_j2 = (_i2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _i2.meta) == null ? void 0 : _j2.accessToken) == null ? void 0 : _k2.brokerType,
8116
- null,
8117
- null,
8118
- (_m2 = (_l2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _l2.meta) == null ? void 0 : _m2.checkoutMeshNetworkId,
8119
- (_n2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _n2.symbol,
8120
- depositAddress,
8121
- roundUpToXDecimalPlaces(
8133
+ return await meshPreviewTransfer2({
8134
+ fromAuthToken: (_h2 = (_g2 = (_f2 = (_e2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _e2.meta) == null ? void 0 : _f2.accessToken) == null ? void 0 : _g2.accountTokens) == null ? void 0 : _h2[0].accessToken,
8135
+ fromType: (_k2 = (_j2 = (_i2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _i2.meta) == null ? void 0 : _j2.accessToken) == null ? void 0 : _k2.brokerType,
8136
+ networkId: (_m2 = (_l2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _l2.meta) == null ? void 0 : _m2.checkoutMeshNetworkId,
8137
+ symbol: (_n2 = checkoutItem == null ? void 0 : checkoutItem.selectedSourceAssetInfo) == null ? void 0 : _n2.symbol,
8138
+ toAddress: depositAddress,
8139
+ amount: roundUpToXDecimalPlaces(
8122
8140
  (_o = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _o.baseQuote.estTotalFromAmount.toString(),
8123
8141
  5
8124
8142
  ).toString(),
8125
- null,
8126
- null,
8127
- funkitConfig.apiKey
8128
- );
8143
+ apiKey: funkitConfig.apiKey
8144
+ });
8129
8145
  },
8130
8146
  [
8131
8147
  (_b = checkoutItem == null ? void 0 : checkoutItem.latestQuote) == null ? void 0 : _b.baseQuote.estTotalFromAmount,
@@ -8430,7 +8446,7 @@ function FunCheckoutConfirmationStep({
8430
8446
  }
8431
8447
 
8432
8448
  // src/components/FunCheckoutModal/FunCheckoutInputAmountStep.tsx
8433
- import { getAssetPriceInfoForCheckout as getAssetPriceInfoForCheckout4 } from "@funkit/core";
8449
+ import { getAssetPriceInfo as getAssetPriceInfo4 } from "@funkit/api-base";
8434
8450
  import React80, { useCallback as useCallback18, useEffect as useEffect19, useMemo as useMemo20, useState as useState23 } from "react";
8435
8451
 
8436
8452
  // src/components/Icons/SwitchIcon.tsx
@@ -8469,14 +8485,14 @@ function FunCheckoutInputAmountStep({
8469
8485
  const [rotateIconAnimation, setRotateIconAnimation] = useState23(false);
8470
8486
  useEffect19(() => {
8471
8487
  const fetchPrice = async () => {
8472
- var _a, _b, _c, _d;
8488
+ var _a, _b;
8473
8489
  try {
8474
8490
  if (((_b = (_a = checkoutItem == null ? void 0 : checkoutItem.initSettings) == null ? void 0 : _a.config) == null ? void 0 : _b.targetChain) && (checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetAsset)) {
8475
- const info = await getAssetPriceInfoForCheckout4(
8476
- (_d = (_c = checkoutItem == null ? void 0 : checkoutItem.initSettings) == null ? void 0 : _c.config) == null ? void 0 : _d.targetChain,
8477
- checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetAsset,
8478
- apiKey
8479
- );
8491
+ const info = await getAssetPriceInfo4({
8492
+ apiKey,
8493
+ chainId: checkoutItem.initSettings.config.targetChain,
8494
+ assetTokenAddress: checkoutItem.initSettings.config.targetAsset
8495
+ });
8480
8496
  setErrorMessage("");
8481
8497
  setUnitPrice(info.unitPrice);
8482
8498
  }
@@ -8485,7 +8501,7 @@ function FunCheckoutInputAmountStep({
8485
8501
  }
8486
8502
  };
8487
8503
  fetchPrice();
8488
- const id = setInterval(fetchPrice, 5e3);
8504
+ const id = setInterval(fetchPrice, 1e4);
8489
8505
  return () => clearInterval(id);
8490
8506
  }, []);
8491
8507
  useEffect19(() => {
@@ -8571,7 +8587,7 @@ function FunCheckoutInputAmountStep({
8571
8587
  inputStyle: {
8572
8588
  textAlign: "center",
8573
8589
  width: "100%",
8574
- paddingX: "0px",
8590
+ padding: "14px 9px 14px 0px",
8575
8591
  fontWeight: active2.fontWeight.heavy,
8576
8592
  fontStyle: "normal",
8577
8593
  fontFamily: "inherit",
@@ -8757,7 +8773,7 @@ function MeshOrAccountSelectAsset({
8757
8773
  fetchMeshAccountCryptoHoldings({
8758
8774
  authToken: (_d2 = (_c2 = (_b2 = (_a2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _a2.meta) == null ? void 0 : _b2.accessToken) == null ? void 0 : _c2.accountTokens) == null ? void 0 : _d2[0].accessToken,
8759
8775
  exchange: (_g2 = (_f2 = (_e2 = checkoutItem == null ? void 0 : checkoutItem.selectedPaymentMethodInfo) == null ? void 0 : _e2.meta) == null ? void 0 : _f2.accessToken) == null ? void 0 : _g2.brokerName,
8760
- apiKey: funkitConfig == null ? void 0 : funkitConfig.apiKey
8776
+ apiKey: funkitConfig.apiKey
8761
8777
  }),
8762
8778
  manualFetchNetworkInfo()
8763
8779
  ]);
@@ -9120,7 +9136,7 @@ function FunCheckoutModal({
9120
9136
  checkoutId || ""
9121
9137
  );
9122
9138
  const [checkoutStep, setCheckoutStep] = useState25(
9123
- (checkoutItem == null ? void 0 : checkoutItem.isFastForwarded) ? "confirmation" /* CONFIRMATION */ : (checkoutItem == null ? void 0 : checkoutItem.initSettings.config.targetAssetAmount) === 0 && !checkoutItem.initSettings.config.disableEditing ? "input_amount" /* INPUT_AMOUNT */ : "select_payment" /* SELECT_PAYMENT_METHOD */
9139
+ (checkoutItem == null ? void 0 : checkoutItem.isFastForwarded) ? "confirmation" /* CONFIRMATION */ : (checkoutItem == null ? void 0 : checkoutItem.initSettings.config.disableEditing) ? "select_payment" /* SELECT_PAYMENT_METHOD */ : "input_amount" /* INPUT_AMOUNT */
9124
9140
  );
9125
9141
  useEffect21(() => {
9126
9142
  return () => {
@@ -9336,6 +9352,7 @@ function FunCheckoutModal({
9336
9352
  generateCheckoutTransferOpItems,
9337
9353
  getCheckoutQuote,
9338
9354
  isWeb2Login,
9355
+ paymentsConfig.methodsConfig,
9339
9356
  textCustomizations.debitOrCredit
9340
9357
  ]);
9341
9358
  const [triggerSymbol, triggerSourceAssetConfirmedFn] = useSymbolRefresh_default();
@@ -10005,7 +10022,7 @@ function FunCheckoutHistoryDetail({
10005
10022
  }
10006
10023
 
10007
10024
  // src/components/FunCheckoutHistoryModal/FunCheckoutHistoryHelp.tsx
10008
- import { sendSupportMessage } from "@funkit/core";
10025
+ import { sendSupportMessage } from "@funkit/api-base";
10009
10026
  import React91, { useMemo as useMemo25, useState as useState27 } from "react";
10010
10027
 
10011
10028
  // src/css/scrollStyles.css.ts
@@ -15923,7 +15940,8 @@ var defaultProps = {
15923
15940
  chainStatus: { largeScreen: "full", smallScreen: "icon" },
15924
15941
  label: "Sign In",
15925
15942
  showBalance: { largeScreen: true, smallScreen: false },
15926
- showChainSelector: true
15943
+ showChainSelector: true,
15944
+ suffixIcon: null
15927
15945
  };
15928
15946
  function ChainSelectorButton({
15929
15947
  unsupportedChain,
@@ -16067,7 +16085,8 @@ function ConnectButton({
16067
16085
  chainStatus = defaultProps.chainStatus,
16068
16086
  label = defaultProps.label,
16069
16087
  showBalance = defaultProps.showBalance,
16070
- showChainSelector = defaultProps.showChainSelector
16088
+ showChainSelector = defaultProps.showChainSelector,
16089
+ suffixIcon = defaultProps.suffixIcon
16071
16090
  }) {
16072
16091
  const chains = useFunkitConnectChains();
16073
16092
  const connectionStatus = useConnectionStatus();
@@ -16130,7 +16149,11 @@ function ConnectButton({
16130
16149
  testId: "connect-button",
16131
16150
  transition: "default",
16132
16151
  type: "button"
16133
- }, mounted && label === "Connect Wallet" ? i18n2.t("connect_wallet.label") : label));
16152
+ }, /* @__PURE__ */ React148.createElement(Box, {
16153
+ display: "flex",
16154
+ gap: "8",
16155
+ alignItems: "center"
16156
+ }, mounted && label === "Connect Wallet" ? i18n2.t("connect_wallet.label") : label, suffixIcon)));
16134
16157
  }) : /* @__PURE__ */ React148.createElement(React148.Fragment, null);
16135
16158
  }
16136
16159
  ConnectButton.__defaultProps = defaultProps;
@@ -16334,10 +16357,11 @@ function getWalletConnectConnector({
16334
16357
  import { createConnector as createConnector2 } from "wagmi";
16335
16358
  import { injected } from "wagmi/connectors";
16336
16359
  function getExplicitInjectedProvider(flag) {
16337
- if (typeof window === "undefined" || typeof window.ethereum === "undefined")
16360
+ const _window = typeof window !== "undefined" ? window : void 0;
16361
+ if (typeof _window === "undefined" || typeof _window.ethereum === "undefined")
16338
16362
  return;
16339
- const providers = window.ethereum.providers;
16340
- return providers ? providers.find((provider) => provider[flag]) : window.ethereum[flag] ? window.ethereum : void 0;
16363
+ const providers = _window.ethereum.providers;
16364
+ return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
16341
16365
  }
16342
16366
  function getWindowProviderNamespace(namespace) {
16343
16367
  const providerSearch = (provider, namespace2) => {
@@ -16367,14 +16391,15 @@ function getInjectedProvider({
16367
16391
  namespace
16368
16392
  }) {
16369
16393
  var _a;
16370
- if (typeof window === "undefined")
16394
+ const _window = typeof window !== "undefined" ? window : void 0;
16395
+ if (typeof _window === "undefined")
16371
16396
  return;
16372
16397
  if (namespace) {
16373
16398
  const windowProvider = getWindowProviderNamespace(namespace);
16374
16399
  if (windowProvider)
16375
16400
  return windowProvider;
16376
16401
  }
16377
- const providers = (_a = window.ethereum) == null ? void 0 : _a.providers;
16402
+ const providers = (_a = _window.ethereum) == null ? void 0 : _a.providers;
16378
16403
  if (flag) {
16379
16404
  const provider = getExplicitInjectedProvider(flag);
16380
16405
  if (provider)
@@ -16382,7 +16407,7 @@ function getInjectedProvider({
16382
16407
  }
16383
16408
  if (typeof providers !== "undefined" && providers.length > 0)
16384
16409
  return providers[0];
16385
- return window.ethereum;
16410
+ return _window.ethereum;
16386
16411
  }
16387
16412
  function createInjectedConnector(provider) {
16388
16413
  return (walletDetails) => {
@@ -16410,14 +16435,10 @@ function getInjectedConnector({
16410
16435
 
16411
16436
  // src/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.ts
16412
16437
  import { createConnector as createConnector3 } from "wagmi";
16413
- import { coinbaseWallet as coinbaseWagmiWallet } from "wagmi/connectors";
16414
- var coinbaseWallet = ({
16415
- appName,
16416
- appIcon
16417
- }) => {
16418
- const isCoinbaseWalletInjected = hasInjectedProvider({
16419
- flag: "isCoinbaseWallet"
16420
- });
16438
+ import {
16439
+ coinbaseWallet as coinbaseConnector
16440
+ } from "wagmi/connectors";
16441
+ var coinbaseWallet = ({ appName, appIcon }) => {
16421
16442
  const getUri = (uri) => uri;
16422
16443
  const ios = isIOS();
16423
16444
  return {
@@ -16428,7 +16449,7 @@ var coinbaseWallet = ({
16428
16449
  iconUrl: async () => (await import("./coinbaseWallet-2OUR5TUP.js")).default,
16429
16450
  iconAccent: "#2c5ff6",
16430
16451
  iconBackground: "#2c5ff6",
16431
- installed: isCoinbaseWalletInjected || void 0,
16452
+ installed: true,
16432
16453
  downloadUrls: {
16433
16454
  android: "https://play.google.com/store/apps/details?id=org.toshi",
16434
16455
  ios: "https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",
@@ -16484,14 +16505,17 @@ var coinbaseWallet = ({
16484
16505
  }
16485
16506
  }
16486
16507
  },
16487
- createConnector: (walletDetails) => createConnector3((config) => ({
16488
- ...coinbaseWagmiWallet({
16508
+ createConnector: (walletDetails) => {
16509
+ const connector = coinbaseConnector({
16489
16510
  appName,
16490
16511
  appLogoUrl: appIcon,
16491
- headlessMode: true
16492
- })(config),
16493
- ...walletDetails
16494
- }))
16512
+ preference: coinbaseWallet.preference
16513
+ });
16514
+ return createConnector3((config) => ({
16515
+ ...connector(config),
16516
+ ...walletDetails
16517
+ }));
16518
+ }
16495
16519
  };
16496
16520
  };
16497
16521
 
@@ -16537,6 +16561,8 @@ function isMetaMask(ethereum) {
16537
16561
  return false;
16538
16562
  if (ethereum.isMathWallet)
16539
16563
  return false;
16564
+ if (ethereum.isNestWallet)
16565
+ return false;
16540
16566
  if (ethereum.isOkxWallet || ethereum.isOKExWallet)
16541
16567
  return false;
16542
16568
  if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
@@ -16652,7 +16678,9 @@ var metaMaskWallet = ({
16652
16678
  projectId,
16653
16679
  walletConnectParameters
16654
16680
  }) : getInjectedConnector({
16655
- target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(isMetaMask)) != null ? _c : window.ethereum : void 0
16681
+ target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
16682
+ isMetaMask
16683
+ )) != null ? _c : window.ethereum : void 0
16656
16684
  })
16657
16685
  };
16658
16686
  };
@@ -16964,7 +16992,7 @@ function setFunkitConnectVersion({ version }) {
16964
16992
  localStorage.setItem(storageKey6, version);
16965
16993
  }
16966
16994
  function getCurrentSdkVersion() {
16967
- return "1.1.5";
16995
+ return "1.2.0";
16968
16996
  }
16969
16997
  function useFingerprint() {
16970
16998
  const fingerprint = useCallback33(() => {
@@ -17701,6 +17729,268 @@ var __private__ = {
17701
17729
  MobileOptions
17702
17730
  };
17703
17731
 
17732
+ // src/components/Icons/FunkitPaymentsIconLine.tsx
17733
+ import React153 from "react";
17734
+ function MetaMaskPaymentIcon({ size = 16 }) {
17735
+ return /* @__PURE__ */ React153.createElement("svg", {
17736
+ width: size,
17737
+ height: size,
17738
+ viewBox: "0 0 28 28",
17739
+ fill: "none",
17740
+ xmlns: "http://www.w3.org/2000/svg"
17741
+ }, /* @__PURE__ */ React153.createElement("path", {
17742
+ d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
17743
+ fill: "#E2761B",
17744
+ stroke: "#E2761B",
17745
+ strokeWidth: "0.0878845",
17746
+ strokeLinecap: "round",
17747
+ strokeLinejoin: "round"
17748
+ }), /* @__PURE__ */ React153.createElement("path", {
17749
+ d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
17750
+ fill: "#E4761B",
17751
+ stroke: "#E4761B",
17752
+ strokeWidth: "0.0878845",
17753
+ strokeLinecap: "round",
17754
+ strokeLinejoin: "round"
17755
+ }), /* @__PURE__ */ React153.createElement("path", {
17756
+ d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
17757
+ fill: "#E4761B",
17758
+ stroke: "#E4761B",
17759
+ strokeWidth: "0.0878845",
17760
+ strokeLinecap: "round",
17761
+ strokeLinejoin: "round"
17762
+ }), /* @__PURE__ */ React153.createElement("path", {
17763
+ d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
17764
+ fill: "#E4761B",
17765
+ stroke: "#E4761B",
17766
+ strokeWidth: "0.0878845",
17767
+ strokeLinecap: "round",
17768
+ strokeLinejoin: "round"
17769
+ }), /* @__PURE__ */ React153.createElement("path", {
17770
+ d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
17771
+ fill: "#E4761B",
17772
+ stroke: "#E4761B",
17773
+ strokeWidth: "0.0878845",
17774
+ strokeLinecap: "round",
17775
+ strokeLinejoin: "round"
17776
+ }), /* @__PURE__ */ React153.createElement("path", {
17777
+ d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
17778
+ fill: "#E4761B",
17779
+ stroke: "#E4761B",
17780
+ strokeWidth: "0.0878845",
17781
+ strokeLinecap: "round",
17782
+ strokeLinejoin: "round"
17783
+ }), /* @__PURE__ */ React153.createElement("path", {
17784
+ d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
17785
+ fill: "#E4761B",
17786
+ stroke: "#E4761B",
17787
+ strokeWidth: "0.0878845",
17788
+ strokeLinecap: "round",
17789
+ strokeLinejoin: "round"
17790
+ }), /* @__PURE__ */ React153.createElement("path", {
17791
+ d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
17792
+ fill: "#E4761B",
17793
+ stroke: "#E4761B",
17794
+ strokeWidth: "0.0878845",
17795
+ strokeLinecap: "round",
17796
+ strokeLinejoin: "round"
17797
+ }), /* @__PURE__ */ React153.createElement("path", {
17798
+ d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
17799
+ fill: "#D7C1B3",
17800
+ stroke: "#D7C1B3",
17801
+ strokeWidth: "0.0878845",
17802
+ strokeLinecap: "round",
17803
+ strokeLinejoin: "round"
17804
+ }), /* @__PURE__ */ React153.createElement("path", {
17805
+ d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
17806
+ fill: "#D7C1B3",
17807
+ stroke: "#D7C1B3",
17808
+ strokeWidth: "0.0878845",
17809
+ strokeLinecap: "round",
17810
+ strokeLinejoin: "round"
17811
+ }), /* @__PURE__ */ React153.createElement("path", {
17812
+ d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
17813
+ fill: "#233447",
17814
+ stroke: "#233447",
17815
+ strokeWidth: "0.0878845",
17816
+ strokeLinecap: "round",
17817
+ strokeLinejoin: "round"
17818
+ }), /* @__PURE__ */ React153.createElement("path", {
17819
+ d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
17820
+ fill: "#233447",
17821
+ stroke: "#233447",
17822
+ strokeWidth: "0.0878845",
17823
+ strokeLinecap: "round",
17824
+ strokeLinejoin: "round"
17825
+ }), /* @__PURE__ */ React153.createElement("path", {
17826
+ d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
17827
+ fill: "#CD6116",
17828
+ stroke: "#CD6116",
17829
+ strokeWidth: "0.0878845",
17830
+ strokeLinecap: "round",
17831
+ strokeLinejoin: "round"
17832
+ }), /* @__PURE__ */ React153.createElement("path", {
17833
+ d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
17834
+ fill: "#CD6116",
17835
+ stroke: "#CD6116",
17836
+ strokeWidth: "0.0878845",
17837
+ strokeLinecap: "round",
17838
+ strokeLinejoin: "round"
17839
+ }), /* @__PURE__ */ React153.createElement("path", {
17840
+ d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
17841
+ fill: "#CD6116",
17842
+ stroke: "#CD6116",
17843
+ strokeWidth: "0.0878845",
17844
+ strokeLinecap: "round",
17845
+ strokeLinejoin: "round"
17846
+ }), /* @__PURE__ */ React153.createElement("path", {
17847
+ d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
17848
+ fill: "#CD6116",
17849
+ stroke: "#CD6116",
17850
+ strokeWidth: "0.0878845",
17851
+ strokeLinecap: "round",
17852
+ strokeLinejoin: "round"
17853
+ }), /* @__PURE__ */ React153.createElement("path", {
17854
+ d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
17855
+ fill: "#E4751F",
17856
+ stroke: "#E4751F",
17857
+ strokeWidth: "0.0878845",
17858
+ strokeLinecap: "round",
17859
+ strokeLinejoin: "round"
17860
+ }), /* @__PURE__ */ React153.createElement("path", {
17861
+ d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
17862
+ fill: "#E4751F",
17863
+ stroke: "#E4751F",
17864
+ strokeWidth: "0.0878845",
17865
+ strokeLinecap: "round",
17866
+ strokeLinejoin: "round"
17867
+ }), /* @__PURE__ */ React153.createElement("path", {
17868
+ d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
17869
+ fill: "#E4751F",
17870
+ stroke: "#E4751F",
17871
+ strokeWidth: "0.0878845",
17872
+ strokeLinecap: "round",
17873
+ strokeLinejoin: "round"
17874
+ }), /* @__PURE__ */ React153.createElement("path", {
17875
+ d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
17876
+ fill: "#E4751F",
17877
+ stroke: "#E4751F",
17878
+ strokeWidth: "0.0878845",
17879
+ strokeLinecap: "round",
17880
+ strokeLinejoin: "round"
17881
+ }), /* @__PURE__ */ React153.createElement("path", {
17882
+ d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
17883
+ fill: "#F6851B",
17884
+ stroke: "#F6851B",
17885
+ strokeWidth: "0.0878845",
17886
+ strokeLinecap: "round",
17887
+ strokeLinejoin: "round"
17888
+ }), /* @__PURE__ */ React153.createElement("path", {
17889
+ d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
17890
+ fill: "#F6851B",
17891
+ stroke: "#F6851B",
17892
+ strokeWidth: "0.0878845",
17893
+ strokeLinecap: "round",
17894
+ strokeLinejoin: "round"
17895
+ }), /* @__PURE__ */ React153.createElement("path", {
17896
+ d: "M15.8456 23.0521L15.8719 22.2348L15.6522 22.0414H12.339L12.1368 22.2348L12.1544 23.0521L9.38606 21.7426L10.3528 22.5336L12.3126 23.8958H15.6786L17.6472 22.5336L18.6139 21.7426L15.8456 23.0521Z",
17897
+ fill: "#C0AD9E",
17898
+ stroke: "#C0AD9E",
17899
+ strokeWidth: "0.0878845",
17900
+ strokeLinecap: "round",
17901
+ strokeLinejoin: "round"
17902
+ }), /* @__PURE__ */ React153.createElement("path", {
17903
+ d: "M15.6347 20.2925L15.2128 20.0025H12.7784L12.3566 20.2925L12.1368 22.2348L12.339 22.0414H15.6522L15.8719 22.2348L15.6347 20.2925Z",
17904
+ fill: "#161616",
17905
+ stroke: "#161616",
17906
+ strokeWidth: "0.0878845",
17907
+ strokeLinecap: "round",
17908
+ strokeLinejoin: "round"
17909
+ }), /* @__PURE__ */ React153.createElement("path", {
17910
+ d: "M24.4583 10.0364L25.2053 6.45072L24.0891 3.1199L15.6347 9.39485L18.8864 12.1456L23.4827 13.4903L24.5022 12.3038L24.0628 11.9874L24.7658 11.3459L24.221 10.924L24.924 10.3879L24.4583 10.0364Z",
17911
+ fill: "#763D16",
17912
+ stroke: "#763D16",
17913
+ strokeWidth: "0.0878845",
17914
+ strokeLinecap: "round",
17915
+ strokeLinejoin: "round"
17916
+ }), /* @__PURE__ */ React153.createElement("path", {
17917
+ d: "M2.79472 6.45072L3.54174 10.0364L3.06717 10.3879L3.77024 10.924L3.23415 11.3459L3.93722 11.9874L3.4978 12.3038L4.50847 13.4903L9.10483 12.1456L12.3566 9.39485L3.90207 3.1199L2.79472 6.45072Z",
17918
+ fill: "#763D16",
17919
+ stroke: "#763D16",
17920
+ strokeWidth: "0.0878845",
17921
+ strokeLinecap: "round",
17922
+ strokeLinejoin: "round"
17923
+ }), /* @__PURE__ */ React153.createElement("path", {
17924
+ d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
17925
+ fill: "#F6851B",
17926
+ stroke: "#F6851B",
17927
+ strokeWidth: "0.0878845",
17928
+ strokeLinecap: "round",
17929
+ strokeLinejoin: "round"
17930
+ }), /* @__PURE__ */ React153.createElement("path", {
17931
+ d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
17932
+ fill: "#F6851B",
17933
+ stroke: "#F6851B",
17934
+ strokeWidth: "0.0878845",
17935
+ strokeLinecap: "round",
17936
+ strokeLinejoin: "round"
17937
+ }), /* @__PURE__ */ React153.createElement("path", {
17938
+ d: "M15.3446 14.4658L15.6347 9.39485L16.9705 5.7828H11.0383L12.3566 9.39485L12.6642 14.4658L12.7696 16.0653L12.7784 20.0025H15.2128L15.2304 16.0653L15.3446 14.4658Z",
17939
+ fill: "#F6851B",
17940
+ stroke: "#F6851B",
17941
+ strokeWidth: "0.0878845",
17942
+ strokeLinecap: "round",
17943
+ strokeLinejoin: "round"
17944
+ }));
17945
+ }
17946
+ function MastercardPaymentIcon({ size = 16 }) {
17947
+ return /* @__PURE__ */ React153.createElement("svg", {
17948
+ xmlns: "http://www.w3.org/2000/svg",
17949
+ height: size,
17950
+ viewBox: "0 0 152.407 108"
17951
+ }, /* @__PURE__ */ React153.createElement("g", null, /* @__PURE__ */ React153.createElement("rect", {
17952
+ width: "152.407",
17953
+ height: "108",
17954
+ fill: "transparent"
17955
+ }), /* @__PURE__ */ React153.createElement("g", null, /* @__PURE__ */ React153.createElement("rect", {
17956
+ x: "60.4117",
17957
+ y: "25.6968",
17958
+ width: "31.5",
17959
+ height: "56.6064",
17960
+ fill: "#ff5f00"
17961
+ }), /* @__PURE__ */ React153.createElement("path", {
17962
+ d: "M382.20839,306a35.9375,35.9375,0,0,1,13.7499-28.3032,36,36,0,1,0,0,56.6064A35.938,35.938,0,0,1,382.20839,306Z",
17963
+ transform: "translate(-319.79649 -252)",
17964
+ fill: "#eb001b"
17965
+ }), /* @__PURE__ */ React153.createElement("path", {
17966
+ d: "M454.20349,306a35.99867,35.99867,0,0,1-58.2452,28.3032,36.00518,36.00518,0,0,0,0-56.6064A35.99867,35.99867,0,0,1,454.20349,306Z",
17967
+ transform: "translate(-319.79649 -252)",
17968
+ fill: "#f79e1b"
17969
+ }), /* @__PURE__ */ React153.createElement("path", {
17970
+ d: "M450.76889,328.3077v-1.1589h.4673v-.2361h-1.1901v.2361h.4675v1.1589Zm2.3105,0v-1.3973h-.3648l-.41959.9611-.41971-.9611h-.365v1.3973h.2576v-1.054l.3935.9087h.2671l.39351-.911v1.0563Z",
17971
+ transform: "translate(-319.79649 -252)",
17972
+ fill: "#f79e1b"
17973
+ }))));
17974
+ }
17975
+ function FunkitPaymentsIconLine({
17976
+ size = 16,
17977
+ gap = "2"
17978
+ }) {
17979
+ return /* @__PURE__ */ React153.createElement(Box, {
17980
+ display: "flex",
17981
+ flexDirection: "row",
17982
+ gap,
17983
+ alignItems: "center",
17984
+ justifyContent: "center"
17985
+ }, /* @__PURE__ */ React153.createElement(MetaMaskPaymentIcon, {
17986
+ size
17987
+ }), /* @__PURE__ */ React153.createElement(MastercardPaymentIcon, {
17988
+ size
17989
+ }), /* @__PURE__ */ React153.createElement(CoinbaseIcon, {
17990
+ size
17991
+ }));
17992
+ }
17993
+
17704
17994
  // src/transactions/useAddRecentTransaction.ts
17705
17995
  import { useCallback as useCallback36 } from "react";
17706
17996
  import { useAccount as useAccount17 } from "wagmi";
@@ -17721,6 +18011,7 @@ function useAddRecentTransaction() {
17721
18011
  export {
17722
18012
  ConnectButton,
17723
18013
  FunkitConnectAuthenticationProvider,
18014
+ FunkitPaymentsIconLine,
17724
18015
  FunkitProvider,
17725
18016
  FunkitSocialLoginMethod,
17726
18017
  NATIVE_TOKEN,