@funkit/connect 3.2.1 → 3.4.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 (140) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +0 -3
  3. package/dist/{chunk-76VEFMWE.js → chunk-77C753LI.js} +6 -2
  4. package/dist/{chunk-HFT6OV3T.js → chunk-BY224HGT.js} +1 -1
  5. package/dist/{chunk-EUSK63OY.js → chunk-XWW5QOD4.js} +6 -2
  6. package/dist/components/Box/Box.d.ts +44 -43
  7. package/dist/components/CopyAddress/CopyAddress.d.ts +7 -1
  8. package/dist/components/Dialog/Dialog.css.d.ts +2 -5
  9. package/dist/components/Dialog/Dialog.d.ts +2 -2
  10. package/dist/components/Dropdown/BaseActiveDropdownItem.d.ts +12 -0
  11. package/dist/components/Dropdown/BaseDropdown.d.ts +23 -0
  12. package/dist/components/Dropdown/BaseDropdownItem.d.ts +13 -0
  13. package/dist/components/Dropdown/ChainDropdown.d.ts +8 -0
  14. package/dist/components/Dropdown/TokenDropdown.d.ts +9 -0
  15. package/dist/components/FunAlert/FunAlert.d.ts +6 -3
  16. package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
  17. package/dist/components/FunButton/FunIconButton.d.ts +4 -1
  18. package/dist/components/FunButton/FunSignInButton.d.ts +8 -0
  19. package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +6 -1
  20. package/dist/components/FunConnectOptions/FunConnectOptions.d.ts +5 -2
  21. package/dist/components/FunConnectOptions/FunConnectResultStep.d.ts +1 -3
  22. package/dist/components/FunConnectOptions/FunSignInStep.d.ts +2 -1
  23. package/dist/components/FunConnectOptions/FunWeb3ConnectingStep.d.ts +1 -1
  24. package/dist/components/FunCountdown/FunCountdown.css.d.ts +2 -0
  25. package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
  26. package/dist/components/FunDivider/FunDivider.d.ts +2 -2
  27. package/dist/components/FunNotification/FunNotification.d.ts +1 -1
  28. package/dist/components/FunPayments/FunPaymentMethods.d.ts +22 -10
  29. package/dist/components/FunTransactionSummary/FunTxSummaryComponents.d.ts +4 -5
  30. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +6 -0
  31. package/dist/components/Icons/BrokerageIcon.d.ts +4 -0
  32. package/dist/components/Icons/CopyDoublePaperSheetIcon.d.ts +5 -0
  33. package/dist/components/Icons/CopyDoubleRoundedSquareIcon.d.ts +5 -0
  34. package/dist/components/Icons/CreditCardIcon.d.ts +4 -0
  35. package/dist/components/Icons/EvmWallet.d.ts +3 -1
  36. package/dist/components/Icons/Gas.d.ts +4 -0
  37. package/dist/components/Icons/LightningBoltIcon.d.ts +4 -0
  38. package/dist/components/Icons/SocialMediaIcons.d.ts +12 -4
  39. package/dist/components/QRCode/QRCode.d.ts +8 -1
  40. package/dist/consts/assets.d.ts +1 -0
  41. package/dist/consts/funkit.d.ts +5 -1
  42. package/dist/css/sprinkles.css.d.ts +53 -45
  43. package/dist/domains/checkoutFees.d.ts +40 -0
  44. package/dist/domains/clientMetadata.d.ts +37 -0
  45. package/dist/{consts/payment.d.ts → domains/paymentMethods.d.ts} +5 -8
  46. package/dist/domains/quote.d.ts +16 -0
  47. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  48. package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
  49. package/dist/hooks/useCheckoutStateBooleans.d.ts +5 -1
  50. package/dist/hooks/useCheckoutTransferDepositAddress.d.ts +3 -0
  51. package/dist/hooks/useCheckoutType.d.ts +3 -3
  52. package/dist/hooks/useIsCheckoutRisky.d.ts +2 -0
  53. package/dist/hooks/useMesh.d.ts +4 -4
  54. package/dist/hooks/usePaymentMethodIcon.d.ts +22 -0
  55. package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +3 -2
  56. package/dist/index.css +2413 -2098
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +12541 -11733
  59. package/dist/modals/CheckoutModal/CheckoutPrimaryInfo.d.ts +1 -12
  60. package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +2 -2
  61. package/dist/modals/CheckoutModal/ConnectExchange.d.ts +1 -1
  62. package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +1 -2
  63. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +11 -0
  64. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +10 -0
  65. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +7 -0
  66. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +73 -0
  67. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +9 -0
  68. package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +17 -0
  69. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +23 -0
  70. package/dist/modals/CheckoutModal/InputAmount.d.ts +2 -2
  71. package/dist/modals/CheckoutModal/LoadingAccount.d.ts +1 -1
  72. package/dist/modals/CheckoutModal/MeshVerification.d.ts +1 -1
  73. package/dist/modals/CheckoutModal/SelectAsset.d.ts +1 -1
  74. package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +2 -2
  75. package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +5 -2
  76. package/dist/modals/CheckoutModal/SourceChange.d.ts +1 -1
  77. package/dist/modals/CheckoutModal/TransferToken.d.ts +18 -0
  78. package/dist/modals/CheckoutModal/stepTransition.d.ts +9 -9
  79. package/dist/modals/CheckoutModal/useAccountBalancePostCheckout.d.ts +1 -2
  80. package/dist/modals/CheckoutModal/useAvailableBalanceForCheckout.d.ts +2 -2
  81. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +2 -7
  82. package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +1 -1
  83. package/dist/modals/ConnectModal/ConnectModal.d.ts +3 -1
  84. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +3 -2
  85. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +8 -6
  86. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.d.ts +0 -1
  87. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.d.ts +5 -2
  88. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +2 -0
  89. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.d.ts +2 -1
  90. package/dist/providers/FunkitCheckoutContext.d.ts +36 -43
  91. package/dist/providers/FunkitConfigContext.d.ts +13 -0
  92. package/dist/providers/FunkitFlagsProvider.d.ts +2 -2
  93. package/dist/providers/FunkitMoonpayProvider.d.ts +1 -1
  94. package/dist/providers/FunkitThemeProvider.d.ts +20 -4
  95. package/dist/providers/GeneralWalletProvider.d.ts +12 -13
  96. package/dist/providers/ModalContext.d.ts +1 -1
  97. package/dist/providers/useAccountBalancePaymentDefaultInfo.d.ts +4 -0
  98. package/dist/themes/baseTheme.js +1 -1
  99. package/dist/themes/darkTheme.d.ts +5 -1
  100. package/dist/themes/darkTheme.js +2 -2
  101. package/dist/themes/lightTheme.d.ts +5 -1
  102. package/dist/themes/lightTheme.js +2 -2
  103. package/dist/utils/assets.d.ts +1 -1
  104. package/dist/utils/checkout.d.ts +24 -5
  105. package/dist/utils/deposit.d.ts +10 -2
  106. package/dist/utils/flags/config.d.ts +11 -8
  107. package/dist/utils/formatNumber.d.ts +1 -0
  108. package/dist/utils/formatTimestamp.d.ts +8 -8
  109. package/dist/utils/payment.d.ts +1 -1
  110. package/dist/wallets/walletConnectors/index.js +44 -44
  111. package/package.json +4 -4
  112. package/dist/components/FunCallToAction/FunCallToAction.d.ts +0 -10
  113. package/dist/components/FunContainer/FunContainer.d.ts +0 -9
  114. package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
  115. package/dist/components/FunToast/FunShortToast.d.ts +0 -3
  116. package/dist/components/FunToast/FunToast.d.ts +0 -18
  117. package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +0 -14
  118. package/dist/components/Icons/CopyDoubleIcon.d.ts +0 -2
  119. package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -30
  120. package/dist/consts/checkoutFees.d.ts +0 -27
  121. package/dist/modals/CheckoutModal/TransferSetup.d.ts +0 -14
  122. package/dist/providers/FunToastProvider.d.ts +0 -11
  123. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  124. package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +0 -95
  125. package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +0 -71
  126. package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +0 -95
  127. package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +0 -94
  128. package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +0 -73
  129. package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +0 -101
  130. package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +0 -98
  131. package/dist/wallets/walletConnectors/chunk-HLH777AC.js +0 -108
  132. package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +0 -98
  133. package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +0 -103
  134. package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +0 -87
  135. package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +0 -102
  136. package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +0 -66
  137. package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
  138. package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +0 -96
  139. package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +0 -149
  140. package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +0 -110
@@ -1,88 +1,88 @@
1
1
  "use client";
2
- import {
3
- xdefiWallet
4
- } from "./chunk-RVIZMVFR.js";
5
2
  import {
6
3
  zealWallet
7
4
  } from "./chunk-BUUV6BS4.js";
5
+ import {
6
+ trustWallet
7
+ } from "./chunk-X45WXZDO.js";
8
8
  import {
9
9
  zerionWallet
10
10
  } from "./chunk-DBP432DI.js";
11
- import {
12
- mewWallet
13
- } from "./chunk-CVYXTHZ6.js";
14
11
  import {
15
12
  tahoWallet
16
13
  } from "./chunk-6AYBA6IH.js";
17
14
  import {
18
- talismanWallet
19
- } from "./chunk-OTXHQMSG.js";
15
+ safepalWallet
16
+ } from "./chunk-AKAT37SI.js";
20
17
  import {
21
18
  tokenPocketWallet
22
19
  } from "./chunk-ISJYPD3T.js";
23
20
  import {
24
21
  tokenaryWallet
25
22
  } from "./chunk-FAYEL4JP.js";
26
- import {
27
- trustWallet
28
- } from "./chunk-X45WXZDO.js";
29
23
  import {
30
24
  uniswapWallet
31
25
  } from "./chunk-QFRZGNNV.js";
26
+ import {
27
+ talismanWallet
28
+ } from "./chunk-OTXHQMSG.js";
32
29
  import {
33
30
  walletConnectWallet
34
31
  } from "./chunk-OFU3PEVT.js";
35
32
  import {
36
- rabbyWallet
37
- } from "./chunk-H5LLXNOI.js";
33
+ xdefiWallet
34
+ } from "./chunk-RVIZMVFR.js";
38
35
  import {
39
36
  rainbowWallet
40
37
  } from "./chunk-OHJBALD3.js";
41
38
  import {
42
- ramperWallet
43
- } from "./chunk-TKXQYHWJ.js";
39
+ rabbyWallet
40
+ } from "./chunk-H5LLXNOI.js";
44
41
  import {
45
42
  roninWallet
46
43
  } from "./chunk-63YLN6R5.js";
44
+ import {
45
+ enkryptWallet
46
+ } from "./chunk-JJ4DXD7R.js";
47
47
  import {
48
48
  safeWallet
49
49
  } from "./chunk-Z2QCE6O6.js";
50
50
  import {
51
- safeheronWallet
52
- } from "./chunk-FCIRHRFH.js";
53
- import {
54
- safepalWallet
55
- } from "./chunk-AKAT37SI.js";
51
+ ramperWallet
52
+ } from "./chunk-TKXQYHWJ.js";
56
53
  import {
57
54
  subWallet
58
55
  } from "./chunk-N3ELQYCY.js";
59
56
  import {
60
- injectedWallet
61
- } from "./chunk-E5NYR4SS.js";
57
+ safeheronWallet
58
+ } from "./chunk-FCIRHRFH.js";
62
59
  import {
63
60
  metaMaskWallet
64
61
  } from "./chunk-ODRDT73B.js";
62
+ import {
63
+ mewWallet
64
+ } from "./chunk-CVYXTHZ6.js";
65
65
  import {
66
66
  oktoWallet
67
67
  } from "./chunk-MBQTOALG.js";
68
- import {
69
- omniWallet
70
- } from "./chunk-II6YBG2B.js";
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-5HXH52SO.js";
74
71
  import {
75
- oneInchWallet
76
- } from "./chunk-I7MKK24W.js";
72
+ omniWallet
73
+ } from "./chunk-II6YBG2B.js";
77
74
  import {
78
75
  oneKeyWallet
79
76
  } from "./chunk-ZP2SV6KN.js";
77
+ import {
78
+ oneInchWallet
79
+ } from "./chunk-I7MKK24W.js";
80
80
  import {
81
81
  phantomWallet
82
82
  } from "./chunk-KEVUI6AA.js";
83
83
  import {
84
- foxWallet
85
- } from "./chunk-WAOREEBE.js";
84
+ frameWallet
85
+ } from "./chunk-KPVNJO3R.js";
86
86
  import {
87
87
  frontierWallet
88
88
  } from "./chunk-LCOUKF2U.js";
@@ -90,8 +90,11 @@ import {
90
90
  gateWallet
91
91
  } from "./chunk-YIJ5ULO3.js";
92
92
  import {
93
- frameWallet
94
- } from "./chunk-KPVNJO3R.js";
93
+ injectedWallet
94
+ } from "./chunk-E5NYR4SS.js";
95
+ import {
96
+ imTokenWallet
97
+ } from "./chunk-BMJOLT2N.js";
95
98
  import {
96
99
  kresusWallet
97
100
  } from "./chunk-QQJKQCII.js";
@@ -99,32 +102,29 @@ import {
99
102
  ledgerWallet
100
103
  } from "./chunk-ZMHCZCGS.js";
101
104
  import {
102
- imTokenWallet
103
- } from "./chunk-BMJOLT2N.js";
105
+ clvWallet
106
+ } from "./chunk-UHHA5V52.js";
104
107
  import {
105
108
  bybitWallet
106
109
  } from "./chunk-3AZNOY75.js";
107
- import {
108
- clvWallet
109
- } from "./chunk-UHHA5V52.js";
110
110
  import {
111
111
  coin98Wallet
112
112
  } from "./chunk-ZXGMW3OS.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-PNEDRY6O.js";
116
- import {
117
- coreWallet
118
- } from "./chunk-MOOW2AOC.js";
119
116
  import {
120
117
  dawnWallet
121
118
  } from "./chunk-KCTWDMQP.js";
119
+ import {
120
+ coreWallet
121
+ } from "./chunk-MOOW2AOC.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-44CHUPEQ.js";
125
125
  import {
126
- enkryptWallet
127
- } from "./chunk-JJ4DXD7R.js";
126
+ foxWallet
127
+ } from "./chunk-WAOREEBE.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-ZHFISYEQ.js";
@@ -134,12 +134,12 @@ import {
134
134
  import {
135
135
  bitgetWallet
136
136
  } from "./chunk-IEVZW3XR.js";
137
- import {
138
- bitskiWallet
139
- } from "./chunk-OCCT5PIN.js";
140
137
  import {
141
138
  bitverseWallet
142
139
  } from "./chunk-BQEOIDHP.js";
140
+ import {
141
+ bitskiWallet
142
+ } from "./chunk-OCCT5PIN.js";
143
143
  import {
144
144
  bloomWallet
145
145
  } from "./chunk-J64P6XK3.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.2.1",
3
+ "version": "3.4.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -91,9 +91,9 @@
91
91
  "react-virtuoso": "4.10.1",
92
92
  "ua-parser-js": "^1.0.37",
93
93
  "uuid": "^9.0.1",
94
- "@funkit/api-base": "1.1.2",
95
- "@funkit/wagmi-tools": "3.0.9",
96
- "@funkit/core": "2.1.7"
94
+ "@funkit/api-base": "1.3.0",
95
+ "@funkit/core": "2.2.0",
96
+ "@funkit/wagmi-tools": "3.0.11"
97
97
  },
98
98
  "repository": {
99
99
  "type": "git",
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { BoxProps } from '../Box/Box';
3
- interface CallToActionProps {
4
- badgeText: string;
5
- badgeBackground: BoxProps['background'];
6
- badgeColor: BoxProps['color'];
7
- children: React.ReactNode;
8
- }
9
- export declare function FunCallToAction({ badgeText, badgeBackground, badgeColor, children, }: CallToActionProps): React.JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- export interface FunContainerProps {
3
- title?: string;
4
- titlePrefix?: React.ReactNode;
5
- isCollapsed?: boolean;
6
- showHoverEffect?: boolean;
7
- onClick?: () => void;
8
- }
9
- export declare function FunContainer({ children, title, titlePrefix, isCollapsed, showHoverEffect, onClick, }: PropsWithChildren<FunContainerProps>): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- export declare const contentAnimationDefaults: {
2
- animationDuration: string;
3
- animationTimingFunction: string;
4
- animationFillMode: string;
5
- };
6
- export declare const shortToastContainer: string;
7
- export declare const shortToast: string;
8
- export declare const shortToastExit: string;
9
- export declare const typeDisplay: string;
10
- export declare const descriptionDisplay: string;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { FunToastProps } from './FunToast';
3
- export declare const ShortFunToast: ({ type, title, closing, }: FunToastProps) => React.JSX.Element;
@@ -1,18 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export declare enum FunToastType {
3
- INFO = 0,
4
- ERROR = 1,
5
- PENDING = 2,
6
- SUCCESS = 3
7
- }
8
- export interface FunToastProps {
9
- type?: FunToastType;
10
- title: string;
11
- hideTitleSuffix?: boolean;
12
- titleSuffix?: ReactNode;
13
- description: string | ReactNode;
14
- isDescriptionText?: boolean;
15
- icon?: ReactNode;
16
- closing?: boolean;
17
- }
18
- export declare function FunToast({ type, title, titleSuffix, hideTitleSuffix, description, isDescriptionText, icon, }: FunToastProps): React.JSX.Element;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export type FeesItem = null | {
3
- totalUsd: string | number | null;
4
- transactionFeesUsd: string | number | null;
5
- transactionFeesTokenAmount?: string | number | null;
6
- transactionFeesTokenSymbol?: string | null;
7
- platformFeesUsd: string | number | null;
8
- platformFeesTokenAmount?: string | number | null;
9
- platformFeesTokenSymbol?: string | null;
10
- };
11
- export declare function FunTransactionSummary({ checkoutId, errorMessage, }: {
12
- checkoutId: string;
13
- errorMessage?: string;
14
- }): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const CopyDoubleIcon: () => React.JSX.Element;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import { FunkitUserInfoBase } from '../../consts/funkit';
3
- import { PaymentMethod } from '../../consts/payment';
4
- export declare const CreditCardIcon: () => React.JSX.Element;
5
- export declare const AchBankIcon: () => React.JSX.Element;
6
- export declare const TransferCryptoIcon: ({ color, }: {
7
- color?: string;
8
- }) => React.JSX.Element;
9
- export declare const BrokerageIcon: () => React.JSX.Element;
10
- export declare const PAYMENT_METHOD_ICONS: {
11
- brokerage: React.JSX.Element;
12
- card: React.JSX.Element;
13
- transfer: React.JSX.Element;
14
- };
15
- type AccountInfo = {
16
- loginType: 'web2' | 'web3';
17
- userInfo: FunkitUserInfoBase;
18
- } | {
19
- loginType: 'unlogin';
20
- };
21
- /**
22
- Reference ENG-716
23
- * web2 users -> social icon
24
- * EOA wallet users
25
- * detect connectors and show builtin icon in SDK
26
- * if no SDK icons available, show icon from wagmi
27
- * otherwise show fallback icon EVM
28
- */
29
- export declare function useAccountBalanceIcon(paymentMethod: PaymentMethod, accountInfo: AccountInfo): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
30
- export {};
@@ -1,27 +0,0 @@
1
- interface NetworkFeesUsdBreakdownItem {
2
- networkFeesUsdFromFun: number;
3
- networkFeesUsdFromMoonpay: number;
4
- networkFeesUsdFromMesh: number;
5
- networkFeesUsdFromEoaGas: number;
6
- }
7
- interface PlatformFeesUsdBreakdownItem {
8
- platformFeesUsdFromFun: number;
9
- platformFeesUsdFromMoonpay: number;
10
- platformFeesUsdFromMesh: number;
11
- }
12
- export interface CheckoutFeesBreakdownItem {
13
- /** Network fees incurred from Fun.xyz and 3rd party providers in USD **/
14
- networkFeesUsd: number;
15
- /** Breakdown of network fees in USD. Mainly used for logging. **/
16
- networkFeesUsdBreakdown: NetworkFeesUsdBreakdownItem;
17
- /** Platform fees incurred from Fun.xyz and 3rd party providers in USD **/
18
- platformFeesUsd: number;
19
- /** Breakdown of platform fees in USD. Mainly used for logging. **/
20
- platformFeesUsdBreakdown: PlatformFeesUsdBreakdownItem;
21
- /** Sum of networkFeesUsd and platformFeesUsd **/
22
- totalFeesUsd: number;
23
- /** Fees incurred in the form of payment token amount (non-base unit) **/
24
- additionalFeesTokenAmount: number;
25
- }
26
- export declare const GAS_ESTIMATE_MULTIPLER = 1.2;
27
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { Address } from 'viem';
3
- import { CheckoutModalCommonState, FunCheckoutStep, StateTransitionProps, StepTransition } from './stepTransition';
4
- export type TransferSetupState = CheckoutModalCommonState & {
5
- step: FunCheckoutStep.TRANSFER_SETUP;
6
- address: Address;
7
- };
8
- export type TransferSetupNext = {
9
- step: FunCheckoutStep.TRANSFER_SETUP;
10
- };
11
- export declare function transferSetupNext(_state: TransferSetupState, _payload: TransferSetupNext): StepTransition[FunCheckoutStep.TRANSFER_SETUP];
12
- type Props = StateTransitionProps<TransferSetupState, TransferSetupNext>;
13
- export declare function TransferSetup({ modalState }: Props): React.JSX.Element;
14
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { FunToastProps } from '../components/FunToast/FunToast';
3
- interface FunToastContextProps {
4
- showToast: (args: FunToastProps, displayTimeMs?: number) => void;
5
- hideToast: () => void;
6
- toastContent: FunToastProps | null;
7
- closing: boolean;
8
- }
9
- export declare function useFunToast(): FunToastContextProps;
10
- export declare function FunToastProvider({ children }: any): React.JSX.Element;
11
- export {};
@@ -1,92 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
- var roninWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isRoninInjected = hasInjectedProvider({
16
- namespace: "ronin.provider"
17
- });
18
- return {
19
- id: "ronin",
20
- name: "Ronin Wallet",
21
- iconUrl: async () => (await import("./roninWallet-SAB5ESVK.js")).default,
22
- iconBackground: "#ffffff",
23
- rdns: "com.roninchain.wallet",
24
- installed: isRoninInjected || void 0,
25
- downloadUrls: {
26
- android: "https://play.google.com/store/apps/details?id=com.skymavis.genesis",
27
- ios: "https://apps.apple.com/us/app/ronin-wallet/id1592675001",
28
- mobile: "https://wallet.roninchain.com",
29
- chrome: "https://chrome.google.com/webstore/detail/ronin-wallet/fnjhmkhhmkbjkkabndcnnogagogbneec",
30
- edge: "https://microsoftedge.microsoft.com/addons/detail/ronin-wallet/kjmoohlgokccodicjjfebfomlbljgfhk",
31
- firefox: "https://addons.mozilla.org/firefox/addon/ronin-wallet",
32
- browserExtension: "https://wallet.roninchain.com/",
33
- qrCode: "https://wallet.roninchain.com/"
34
- },
35
- mobile: {
36
- getUri: (uri) => `roninwallet://wc?uri=${encodeURIComponent(uri)}`
37
- },
38
- qrCode: {
39
- getUri: (uri) => uri,
40
- instructions: {
41
- learnMoreUrl: "https://wallet.roninchain.com/",
42
- steps: [
43
- {
44
- description: "wallet_connectors.ronin.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.ronin.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.ronin.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.ronin.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.ronin.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.ronin.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- },
61
- extension: {
62
- instructions: {
63
- learnMoreUrl: "https://wallet.roninchain.com/",
64
- steps: [
65
- {
66
- description: "wallet_connectors.ronin.extension.step1.description",
67
- step: "install",
68
- title: "wallet_connectors.ronin.extension.step1.title"
69
- },
70
- {
71
- description: "wallet_connectors.ronin.extension.step2.description",
72
- step: "create",
73
- title: "wallet_connectors.ronin.extension.step2.title"
74
- },
75
- {
76
- description: "wallet_connectors.ronin.extension.step3.description",
77
- step: "refresh",
78
- title: "wallet_connectors.ronin.extension.step3.title"
79
- }
80
- ]
81
- }
82
- },
83
- createConnector: isRoninInjected ? getInjectedConnector({ namespace: "ronin.provider" }) : getWalletConnectConnector({
84
- projectId,
85
- walletConnectParameters
86
- })
87
- };
88
- };
89
-
90
- export {
91
- roninWallet
92
- };
@@ -1,95 +0,0 @@
1
- "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-WRA2DVJ7.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.js";
12
-
13
- // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
- var tokenPocketWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isTokenPocketInjected = hasInjectedProvider({ flag: "isTokenPocket" });
19
- const shouldUseWalletConnect = !isTokenPocketInjected;
20
- const getUri = (uri) => {
21
- return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
22
- };
23
- return {
24
- id: "tokenPocket",
25
- name: "TokenPocket",
26
- rdns: "pro.tokenpocket",
27
- iconUrl: async () => (await import("./tokenPocketWallet-BVMBOYTC.js")).default,
28
- iconBackground: "#2980FE",
29
- installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
30
- downloadUrls: {
31
- chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
32
- browserExtension: "https://extension.tokenpocket.pro/",
33
- android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
34
- ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
35
- qrCode: "https://tokenpocket.pro/en/download/app",
36
- mobile: "https://tokenpocket.pro/en/download/app"
37
- },
38
- mobile: {
39
- getUri: shouldUseWalletConnect ? getUri : void 0
40
- },
41
- qrCode: shouldUseWalletConnect ? {
42
- getUri,
43
- instructions: {
44
- learnMoreUrl: "https://help.tokenpocket.pro/en/",
45
- steps: [
46
- {
47
- description: "wallet_connectors.token_pocket.qr_code.step1.description",
48
- step: "install",
49
- title: "wallet_connectors.token_pocket.qr_code.step1.title"
50
- },
51
- {
52
- description: "wallet_connectors.token_pocket.qr_code.step2.description",
53
- step: "create",
54
- title: "wallet_connectors.token_pocket.qr_code.step2.title"
55
- },
56
- {
57
- description: "wallet_connectors.token_pocket.qr_code.step3.description",
58
- step: "scan",
59
- title: "wallet_connectors.token_pocket.qr_code.step3.title"
60
- }
61
- ]
62
- }
63
- } : void 0,
64
- extension: {
65
- instructions: {
66
- learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
67
- steps: [
68
- {
69
- description: "wallet_connectors.token_pocket.extension.step1.description",
70
- step: "install",
71
- title: "wallet_connectors.token_pocket.extension.step1.title"
72
- },
73
- {
74
- description: "wallet_connectors.token_pocket.extension.step2.description",
75
- step: "create",
76
- title: "wallet_connectors.token_pocket.extension.step2.title"
77
- },
78
- {
79
- description: "wallet_connectors.token_pocket.extension.step3.description",
80
- step: "refresh",
81
- title: "wallet_connectors.token_pocket.extension.step3.title"
82
- }
83
- ]
84
- }
85
- },
86
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
87
- projectId,
88
- walletConnectParameters
89
- }) : getInjectedConnector({ flag: "isTokenPocket" })
90
- };
91
- };
92
-
93
- export {
94
- tokenPocketWallet
95
- };
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
- import {
6
- getInjectedConnector,
7
- hasInjectedProvider
8
- } from "./chunk-WRA2DVJ7.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.js";
12
-
13
- // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
- var bifrostWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
19
- const shouldUseWalletConnect = !isBifrostInjected;
20
- const getUri = (uri) => {
21
- return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
22
- };
23
- return {
24
- id: "bifrostWallet",
25
- name: "Bifrost Wallet",
26
- iconUrl: async () => (await import("./bifrostWallet-ORF3DABG.js")).default,
27
- iconBackground: "#fff",
28
- installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
29
- downloadUrls: {
30
- android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
31
- ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
32
- qrCode: "https://bifrostwallet.com/#download-app"
33
- },
34
- mobile: {
35
- getUri: shouldUseWalletConnect ? getUri : void 0
36
- },
37
- qrCode: shouldUseWalletConnect ? {
38
- getUri: (uri) => uri,
39
- instructions: {
40
- learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
41
- steps: [
42
- {
43
- description: "wallet_connectors.bifrost.qr_code.step1.description",
44
- step: "install",
45
- title: "wallet_connectors.bifrost.qr_code.step1.title"
46
- },
47
- {
48
- description: "wallet_connectors.bifrost.qr_code.step2.description",
49
- step: "create",
50
- title: "wallet_connectors.bifrost.qr_code.step2.title"
51
- },
52
- {
53
- description: "wallet_connectors.bifrost.qr_code.step3.description",
54
- step: "scan",
55
- title: "wallet_connectors.bifrost.qr_code.step3.title"
56
- }
57
- ]
58
- }
59
- } : void 0,
60
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
61
- projectId,
62
- walletConnectParameters
63
- }) : getInjectedConnector({
64
- flag: "isBifrost"
65
- })
66
- };
67
- };
68
-
69
- export {
70
- bifrostWallet
71
- };