@funkit/connect 3.3.0 → 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 (103) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +0 -3
  3. package/dist/{chunk-YOJVBRUJ.js → chunk-77C753LI.js} +2 -2
  4. package/dist/{chunk-HFT6OV3T.js → chunk-BY224HGT.js} +1 -1
  5. package/dist/{chunk-ZGK66FYG.js → chunk-XWW5QOD4.js} +2 -2
  6. package/dist/components/Box/Box.d.ts +36 -36
  7. package/dist/components/Dialog/Dialog.css.d.ts +2 -5
  8. package/dist/components/Dropdown/BaseDropdown.d.ts +4 -2
  9. package/dist/components/Dropdown/ChainDropdown.d.ts +3 -1
  10. package/dist/components/Dropdown/TokenDropdown.d.ts +7 -1
  11. package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +6 -1
  12. package/dist/components/FunCountdown/FunCountdown.d.ts +2 -1
  13. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  14. package/dist/components/FunPayments/FunPaymentMethods.d.ts +5 -13
  15. package/dist/components/Icons/BrokerageIcon.d.ts +4 -0
  16. package/dist/components/Icons/CreditCardIcon.d.ts +4 -0
  17. package/dist/components/Icons/EvmWallet.d.ts +3 -1
  18. package/dist/components/Icons/LightningBoltIcon.d.ts +3 -1
  19. package/dist/components/Icons/SocialMediaIcons.d.ts +12 -4
  20. package/dist/consts/assets.d.ts +1 -0
  21. package/dist/consts/funkit.d.ts +5 -1
  22. package/dist/css/sprinkles.css.d.ts +38 -38
  23. package/dist/domains/checkoutFees.d.ts +4 -2
  24. package/dist/domains/clientMetadata.d.ts +37 -0
  25. package/dist/domains/paymentMethods.d.ts +0 -5
  26. package/dist/domains/quote.d.ts +16 -0
  27. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  28. package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
  29. package/dist/hooks/useCheckoutTransferDepositAddress.d.ts +2 -1
  30. package/dist/hooks/useIsCheckoutRisky.d.ts +2 -0
  31. package/dist/hooks/usePaymentMethodIcon.d.ts +22 -0
  32. package/dist/hooks/useUsableWalletAssetsForCheckout.d.ts +3 -2
  33. package/dist/index.css +2143 -2124
  34. package/dist/index.js +10080 -9850
  35. package/dist/modals/CheckoutModal/CheckoutPrimaryInfo.d.ts +1 -2
  36. package/dist/modals/CheckoutModal/ConfirmationStep.d.ts +1 -1
  37. package/dist/modals/CheckoutModal/FunCheckoutModal.d.ts +1 -2
  38. package/dist/modals/CheckoutModal/InputAmount/InputAmountLayout.d.ts +11 -0
  39. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +10 -0
  40. package/dist/modals/CheckoutModal/InputAmount/InputAmountLoading.d.ts +7 -0
  41. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +73 -0
  42. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +9 -0
  43. package/dist/modals/CheckoutModal/InputAmount/useCheckoutQuote.d.ts +17 -0
  44. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +23 -0
  45. package/dist/modals/CheckoutModal/InputAmount.d.ts +1 -1
  46. package/dist/modals/CheckoutModal/SelectBrokerage.d.ts +1 -1
  47. package/dist/modals/CheckoutModal/SelectPaymentMethod.d.ts +1 -1
  48. package/dist/modals/CheckoutModal/TransferToken.d.ts +4 -1
  49. package/dist/modals/CheckoutModal/useAccountBalancePostCheckout.d.ts +1 -1
  50. package/dist/modals/CheckoutModal/useAvailableBalanceForCheckout.d.ts +1 -1
  51. package/dist/modals/CheckoutModal/useSourceAssetConfirm.d.ts +2 -7
  52. package/dist/modals/CheckoutModal/useUpdateSourceAssetForCard.d.ts +1 -1
  53. package/dist/modals/FunCheckoutHistoryModal/FunCheckoutStatus.css.d.ts +2 -0
  54. package/dist/providers/FunkitCheckoutContext.d.ts +35 -60
  55. package/dist/providers/FunkitFlagsProvider.d.ts +2 -2
  56. package/dist/providers/FunkitMoonpayProvider.d.ts +1 -1
  57. package/dist/providers/FunkitThemeProvider.d.ts +4 -4
  58. package/dist/themes/baseTheme.js +1 -1
  59. package/dist/themes/darkTheme.d.ts +1 -1
  60. package/dist/themes/darkTheme.js +2 -2
  61. package/dist/themes/lightTheme.d.ts +1 -1
  62. package/dist/themes/lightTheme.js +2 -2
  63. package/dist/utils/checkout.d.ts +21 -2
  64. package/dist/utils/deposit.d.ts +10 -2
  65. package/dist/utils/flags/config.d.ts +11 -8
  66. package/dist/utils/formatNumber.d.ts +1 -1
  67. package/dist/utils/formatTimestamp.d.ts +8 -8
  68. package/dist/wallets/walletConnectors/index.js +40 -40
  69. package/package.json +4 -4
  70. package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
  71. package/dist/components/FunToast/FunShortToast.d.ts +0 -3
  72. package/dist/components/FunToast/FunToast.d.ts +0 -18
  73. package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -27
  74. package/dist/providers/FunToastProvider.d.ts +0 -11
  75. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
  76. package/dist/wallets/walletConnectors/chunk-2EMZOYQI.js +0 -101
  77. package/dist/wallets/walletConnectors/chunk-4HKPVECK.js +0 -95
  78. package/dist/wallets/walletConnectors/chunk-4K3EKHXR.js +0 -71
  79. package/dist/wallets/walletConnectors/chunk-57UUMOOZ.js +0 -95
  80. package/dist/wallets/walletConnectors/chunk-5K4DIMYR.js +0 -95
  81. package/dist/wallets/walletConnectors/chunk-5MVCKMZT.js +0 -94
  82. package/dist/wallets/walletConnectors/chunk-5NZLWT3Y.js +0 -73
  83. package/dist/wallets/walletConnectors/chunk-AUVBWDIK.js +0 -102
  84. package/dist/wallets/walletConnectors/chunk-AXPQHNUI.js +0 -71
  85. package/dist/wallets/walletConnectors/chunk-B5D7DYVV.js +0 -101
  86. package/dist/wallets/walletConnectors/chunk-B7FHT3CB.js +0 -94
  87. package/dist/wallets/walletConnectors/chunk-EFIENLEE.js +0 -98
  88. package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +0 -27
  89. package/dist/wallets/walletConnectors/chunk-HCKLWBE5.js +0 -98
  90. package/dist/wallets/walletConnectors/chunk-HLH777AC.js +0 -108
  91. package/dist/wallets/walletConnectors/chunk-HMDUVRZP.js +0 -98
  92. package/dist/wallets/walletConnectors/chunk-IR3YKU2N.js +0 -103
  93. package/dist/wallets/walletConnectors/chunk-J2BF4L2V.js +0 -87
  94. package/dist/wallets/walletConnectors/chunk-KDGMYRMC.js +0 -102
  95. package/dist/wallets/walletConnectors/chunk-L7QI6PBN.js +0 -108
  96. package/dist/wallets/walletConnectors/chunk-OKUX4BC4.js +0 -66
  97. package/dist/wallets/walletConnectors/chunk-QP2BIVXD.js +0 -73
  98. package/dist/wallets/walletConnectors/chunk-UWZQZY4S.js +0 -149
  99. package/dist/wallets/walletConnectors/chunk-UZEMNN3Q.js +0 -96
  100. package/dist/wallets/walletConnectors/chunk-VU6B3HMD.js +0 -96
  101. package/dist/wallets/walletConnectors/chunk-WAMHUVNP.js +0 -96
  102. package/dist/wallets/walletConnectors/chunk-YRK6XWL6.js +0 -149
  103. package/dist/wallets/walletConnectors/chunk-ZCKNEKQQ.js +0 -110
@@ -1,4 +1,4 @@
1
- import type { BooleanFlagConfig, StringFlagConfig } from './types';
1
+ import { BooleanFlagConfig, StringFlagConfig } from './types';
2
2
  /**
3
3
  * Remember that these values show up in our logs
4
4
  * Make sure the enum values are unique
@@ -7,22 +7,25 @@ import type { BooleanFlagConfig, StringFlagConfig } from './types';
7
7
  export declare enum FlagKey {
8
8
  /** Whether mantle assets can be used as source asset for payment for any checkout */
9
9
  DisableMantleSourceAssets = "disable_mantle_source_assets",
10
- /** Whether zksync assets can be used as source asset for payment in a mantle checkout */
11
- DisableZkSyncSourceAssetsForMantleCheckouts = "disable_zksync_source_assets_for_mantle_checkouts",
12
- /** Whether zksync assets can be used as source asset for payment in a dydx checkout */
13
- DisableZkSyncSourceAssetsForDydxCheckouts = "disable_zksync_source_assets_for_dydx_checkouts",
10
+ /** Whether zksync assets can be used as source asset for payment for any checkout */
11
+ DisableZkSyncSourceAssets = "disable_zksync_source_assets",
14
12
  /** Which exchanges to show in the exchange selection screen */
15
13
  SupportedExchanges = "supported_exchanges",
16
14
  /** Which countries should be blocked for Funkit Checkout. Reference Alpha-2 Code format https://www.iban.com/country-codes. */
17
15
  BlockedCountries = "blocked_countries",
18
16
  /** Whether to show the [Powered by Fun.xyz] tagline at the bottom of the checkout modal. */
19
- ShowPoweredTagline = "show_powered_tagline"
17
+ ShowPoweredTagline = "show_powered_tagline",
18
+ /** Whether to enable Token Transfer as a payment method. */
19
+ EnableTokenTransfer = "enable_token_transfer",
20
+ /** Token Transfer payment method accepted source chain and assets */
21
+ TokenTransferSourceChainsAndAssets = "token_transfer_source_chains_and_assets"
20
22
  }
21
23
  export declare const flagConfig: {
22
24
  [FlagKey.DisableMantleSourceAssets]: BooleanFlagConfig;
23
- [FlagKey.DisableZkSyncSourceAssetsForMantleCheckouts]: BooleanFlagConfig;
24
- [FlagKey.DisableZkSyncSourceAssetsForDydxCheckouts]: BooleanFlagConfig;
25
+ [FlagKey.DisableZkSyncSourceAssets]: BooleanFlagConfig;
25
26
  [FlagKey.SupportedExchanges]: StringFlagConfig;
26
27
  [FlagKey.BlockedCountries]: StringFlagConfig;
27
28
  [FlagKey.ShowPoweredTagline]: BooleanFlagConfig;
29
+ [FlagKey.EnableTokenTransfer]: BooleanFlagConfig;
30
+ [FlagKey.TokenTransferSourceChainsAndAssets]: StringFlagConfig;
28
31
  };
@@ -36,7 +36,7 @@ export declare function formatCurrencyAndStringify(amount: number,
36
36
  options?: FormatNumberOptions,
37
37
  /** Options to pass toLocaleString */
38
38
  numberFormatOptions?: Intl.NumberFormatOptions): string;
39
- export declare function formatPercent(percent: number): string;
39
+ export declare function formatPercent(percent: number, decimalPlaces?: number): string;
40
40
  /**
41
41
  * Formats a cryptocurrency amount as a string for display.
42
42
  *
@@ -11,14 +11,14 @@ interface FormatTimeOption extends FormatDateOption {
11
11
  export declare function formatTimestamp(date: Date, opt?: FormatTimeOption): string;
12
12
  /**
13
13
  * Formats seconds to mins and seconds string
14
- * - seconds = 10, output = '10s'
15
- * - seconds = 20.3, output = '21s'
16
- * - seconds = 20.3, specifyUnderMinute=true, output = '< 1min'
17
- * - seconds = 60, output = '1min'
18
- * - seconds = 61, output = '1min 1s'
19
- * - seconds = 300, output = '5mins'
20
- * - seconds = 320, output = '5mins 20s'
21
- * - seconds = 320, omitSeconds=true, output = '6mins'
14
+ * - seconds = 10, output = '10 s'
15
+ * - seconds = 20.3, output = '21 s'
16
+ * - seconds = 20.3, specifyUnderMinute=true, output = '< 1 min'
17
+ * - seconds = 60, output = '1 min'
18
+ * - seconds = 61, output = '1 min 1 s'
19
+ * - seconds = 300, output = '5 mins'
20
+ * - seconds = 320, output = '5 mins 20 s'
21
+ * - seconds = 320, omitSeconds=true, output = '6 mins'
22
22
  */
23
23
  export declare function formatSecondsToReadableForm(seconds: number, specifyUnderMinute?: boolean, omitSeconds?: boolean): string;
24
24
  export declare function formatSecondsToCountdownForm(seconds: number): string;
@@ -1,22 +1,19 @@
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
- subWallet
13
- } from "./chunk-N3ELQYCY.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";
@@ -26,39 +23,39 @@ import {
26
23
  import {
27
24
  uniswapWallet
28
25
  } from "./chunk-QFRZGNNV.js";
26
+ import {
27
+ talismanWallet
28
+ } from "./chunk-OTXHQMSG.js";
29
29
  import {
30
30
  walletConnectWallet
31
31
  } from "./chunk-OFU3PEVT.js";
32
32
  import {
33
- trustWallet
34
- } from "./chunk-X45WXZDO.js";
35
- import {
36
- phantomWallet
37
- } from "./chunk-KEVUI6AA.js";
38
- import {
39
- rabbyWallet
40
- } from "./chunk-H5LLXNOI.js";
33
+ xdefiWallet
34
+ } from "./chunk-RVIZMVFR.js";
41
35
  import {
42
36
  rainbowWallet
43
37
  } from "./chunk-OHJBALD3.js";
44
38
  import {
45
- ramperWallet
46
- } from "./chunk-TKXQYHWJ.js";
39
+ rabbyWallet
40
+ } from "./chunk-H5LLXNOI.js";
47
41
  import {
48
42
  roninWallet
49
43
  } from "./chunk-63YLN6R5.js";
44
+ import {
45
+ enkryptWallet
46
+ } from "./chunk-JJ4DXD7R.js";
50
47
  import {
51
48
  safeWallet
52
49
  } from "./chunk-Z2QCE6O6.js";
53
50
  import {
54
- safepalWallet
55
- } from "./chunk-AKAT37SI.js";
51
+ ramperWallet
52
+ } from "./chunk-TKXQYHWJ.js";
53
+ import {
54
+ subWallet
55
+ } from "./chunk-N3ELQYCY.js";
56
56
  import {
57
57
  safeheronWallet
58
58
  } from "./chunk-FCIRHRFH.js";
59
- import {
60
- kresusWallet
61
- } from "./chunk-QQJKQCII.js";
62
59
  import {
63
60
  metaMaskWallet
64
61
  } from "./chunk-ODRDT73B.js";
@@ -71,54 +68,57 @@ import {
71
68
  import {
72
69
  okxWallet
73
70
  } from "./chunk-5HXH52SO.js";
74
- import {
75
- oneInchWallet
76
- } from "./chunk-I7MKK24W.js";
77
71
  import {
78
72
  omniWallet
79
73
  } from "./chunk-II6YBG2B.js";
80
74
  import {
81
75
  oneKeyWallet
82
76
  } from "./chunk-ZP2SV6KN.js";
77
+ import {
78
+ oneInchWallet
79
+ } from "./chunk-I7MKK24W.js";
80
+ import {
81
+ phantomWallet
82
+ } from "./chunk-KEVUI6AA.js";
83
83
  import {
84
84
  frameWallet
85
85
  } from "./chunk-KPVNJO3R.js";
86
- import {
87
- enkryptWallet
88
- } from "./chunk-JJ4DXD7R.js";
89
86
  import {
90
87
  frontierWallet
91
88
  } from "./chunk-LCOUKF2U.js";
92
89
  import {
93
90
  gateWallet
94
91
  } from "./chunk-YIJ5ULO3.js";
92
+ import {
93
+ injectedWallet
94
+ } from "./chunk-E5NYR4SS.js";
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-BMJOLT2N.js";
98
98
  import {
99
- injectedWallet
100
- } from "./chunk-E5NYR4SS.js";
99
+ kresusWallet
100
+ } from "./chunk-QQJKQCII.js";
101
101
  import {
102
102
  ledgerWallet
103
103
  } from "./chunk-ZMHCZCGS.js";
104
+ import {
105
+ clvWallet
106
+ } from "./chunk-UHHA5V52.js";
104
107
  import {
105
108
  bybitWallet
106
109
  } from "./chunk-3AZNOY75.js";
107
110
  import {
108
111
  coin98Wallet
109
112
  } from "./chunk-ZXGMW3OS.js";
110
- import {
111
- clvWallet
112
- } from "./chunk-UHHA5V52.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";
@@ -131,15 +131,15 @@ import {
131
131
  import {
132
132
  bifrostWallet
133
133
  } from "./chunk-KL5Z3XHJ.js";
134
- import {
135
- bitskiWallet
136
- } from "./chunk-OCCT5PIN.js";
137
134
  import {
138
135
  bitgetWallet
139
136
  } from "./chunk-IEVZW3XR.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.3.0",
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.2.0",
95
- "@funkit/core": "2.1.8",
96
- "@funkit/wagmi-tools": "3.0.10"
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
- 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,27 +0,0 @@
1
- import React from 'react';
2
- import { FunkitUserInfoBase } from '../../consts/funkit';
3
- import { PaymentMethod } from '../../domains/paymentMethods';
4
- export declare const CreditCardIcon: () => React.JSX.Element;
5
- export declare const AchBankIcon: () => React.JSX.Element;
6
- export declare const BrokerageIcon: () => React.JSX.Element;
7
- export declare const PAYMENT_METHOD_ICONS: {
8
- brokerage: React.JSX.Element;
9
- card: React.JSX.Element;
10
- token_transfer: React.JSX.Element;
11
- };
12
- type AccountInfo = {
13
- loginType: 'web2' | 'web3';
14
- userInfo: FunkitUserInfoBase;
15
- } | {
16
- loginType: 'unlogin';
17
- };
18
- /**
19
- Reference ENG-716
20
- * web2 users -> social icon
21
- * EOA wallet users
22
- * detect connectors and show builtin icon in SDK
23
- * if no SDK icons available, show icon from wagmi
24
- * otherwise show fallback icon EVM
25
- */
26
- export declare function useAccountBalanceIcon(paymentMethod: PaymentMethod, accountInfo: AccountInfo): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
27
- 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,101 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-WRA2DVJ7.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-RETKWSKD.js";
9
- import {
10
- getWalletConnectConnector
11
- } from "./chunk-23WIEY36.js";
12
-
13
- // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
14
- var bitgetWallet = ({
15
- projectId,
16
- walletConnectParameters
17
- }) => {
18
- const isBitKeepInjected = hasInjectedProvider({
19
- namespace: "bitkeep.ethereum",
20
- flag: "isBitKeep"
21
- });
22
- const shouldUseWalletConnect = !isBitKeepInjected;
23
- return {
24
- id: "bitget",
25
- name: "Bitget Wallet",
26
- rdns: "com.bitget.web3",
27
- iconUrl: async () => (await import("./bitgetWallet-CLYTW54T.js")).default,
28
- iconAccent: "#f6851a",
29
- iconBackground: "#fff",
30
- installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
31
- downloadUrls: {
32
- android: "https://web3.bitget.com/en/wallet-download?type=0",
33
- ios: "https://apps.apple.com/app/bitkeep/id1395301115",
34
- mobile: "https://web3.bitget.com/en/wallet-download?type=2",
35
- qrCode: "https://web3.bitget.com/en/wallet-download",
36
- chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
37
- browserExtension: "https://web3.bitget.com/en/wallet-download"
38
- },
39
- extension: {
40
- instructions: {
41
- learnMoreUrl: "https://web3.bitget.com/en/academy",
42
- steps: [
43
- {
44
- description: "wallet_connectors.bitget.extension.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.bitget.extension.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.bitget.extension.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.bitget.extension.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.bitget.extension.step3.description",
55
- step: "refresh",
56
- title: "wallet_connectors.bitget.extension.step3.description"
57
- }
58
- ]
59
- }
60
- },
61
- mobile: {
62
- getUri: shouldUseWalletConnect ? (uri) => {
63
- return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
64
- } : void 0
65
- },
66
- qrCode: shouldUseWalletConnect ? {
67
- getUri: (uri) => uri,
68
- instructions: {
69
- learnMoreUrl: "https://web3.bitget.com/en/academy",
70
- steps: [
71
- {
72
- description: "wallet_connectors.bitget.qr_code.step1.description",
73
- step: "install",
74
- title: "wallet_connectors.bitget.qr_code.step1.title"
75
- },
76
- {
77
- description: "wallet_connectors.bitget.qr_code.step2.description",
78
- step: "create",
79
- title: "wallet_connectors.bitget.qr_code.step2.title"
80
- },
81
- {
82
- description: "wallet_connectors.bitget.qr_code.step3.description",
83
- step: "scan",
84
- title: "wallet_connectors.bitget.qr_code.step3.title"
85
- }
86
- ]
87
- }
88
- } : void 0,
89
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
90
- projectId,
91
- walletConnectParameters
92
- }) : getInjectedConnector({
93
- namespace: "bitkeep.ethereum",
94
- flag: "isBitKeep"
95
- })
96
- };
97
- };
98
-
99
- export {
100
- bitgetWallet
101
- };
@@ -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
- };