@funkit/connect 6.14.22 → 6.14.23-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
  3. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  4. package/dist/index.css +5 -5
  5. package/dist/index.js +33 -28
  6. package/dist/utils/checkout.d.ts +1 -1
  7. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  8. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  9. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  10. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  11. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  12. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  13. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  14. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/index.js +67 -67
  17. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  26. package/package.json +8 -7
  27. package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +0 -2
  28. package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +0 -12
  29. package/dist/components/FunTransactionSummary/PaymentFeesSummary.experiment.d.ts +0 -13
  30. package/dist/components/Icons/ArrowTwoWayIcon.d.ts +0 -6
  31. package/dist/consts/moonpay.d.ts +0 -10
  32. package/dist/modals/CheckoutModal/MoonpaySetup.d.ts +0 -17
  33. package/dist/utils/moonpay.d.ts +0 -10
  34. package/dist/wallets/walletConnectors/chunk-2GJQ4XZQ.js +0 -87
  35. package/dist/wallets/walletConnectors/chunk-3CICVJUN.js +0 -70
  36. package/dist/wallets/walletConnectors/chunk-5W7VDOCL.js +0 -99
  37. package/dist/wallets/walletConnectors/chunk-AFXHGWBH.js +0 -94
  38. package/dist/wallets/walletConnectors/chunk-CJGUM55H.js +0 -92
  39. package/dist/wallets/walletConnectors/chunk-CNPKISHN.js +0 -66
  40. package/dist/wallets/walletConnectors/chunk-EC6CHBSZ.js +0 -110
  41. package/dist/wallets/walletConnectors/chunk-J3LI3FYZ.js +0 -93
  42. package/dist/wallets/walletConnectors/chunk-JCHN6A47.js +0 -95
  43. package/dist/wallets/walletConnectors/chunk-KIDC67XJ.js +0 -96
  44. package/dist/wallets/walletConnectors/chunk-LNEC5RNX.js +0 -98
  45. package/dist/wallets/walletConnectors/chunk-Q3H3TRBS.js +0 -100
  46. package/dist/wallets/walletConnectors/chunk-QLVVUKYB.js +0 -92
  47. package/dist/wallets/walletConnectors/chunk-RKPCWHXL.js +0 -106
  48. package/dist/wallets/walletConnectors/chunk-UIASLGLV.js +0 -69
  49. package/dist/wallets/walletConnectors/chunk-UYGJO62F.js +0 -218
  50. package/dist/wallets/walletConnectors/chunk-VWCLFMWJ.js +0 -96
  51. package/dist/wallets/walletConnectors/chunk-ZSI5N4VV.js +0 -103
@@ -1,153 +1,153 @@
1
1
  "use client";
2
2
  import {
3
- zerionWallet
4
- } from "./chunk-Q3H3TRBS.js";
3
+ xdefiWallet
4
+ } from "./chunk-BOU4WKRZ.js";
5
5
  import {
6
- trustWallet
7
- } from "./chunk-RKPCWHXL.js";
6
+ zealWallet
7
+ } from "./chunk-RNBEDQHF.js";
8
8
  import {
9
- uniswapWallet
10
- } from "./chunk-LH7BMNFZ.js";
9
+ zerionWallet
10
+ } from "./chunk-SULRQO27.js";
11
11
  import {
12
12
  subWallet
13
- } from "./chunk-ZSI5N4VV.js";
13
+ } from "./chunk-JWFF4AAL.js";
14
+ import {
15
+ tahoWallet
16
+ } from "./chunk-ZZZRUXZE.js";
14
17
  import {
15
18
  talismanWallet
16
19
  } from "./chunk-DRO6WYMM.js";
17
20
  import {
18
21
  tokenPocketWallet
19
- } from "./chunk-J3LI3FYZ.js";
22
+ } from "./chunk-2L43XSW3.js";
20
23
  import {
21
24
  tokenaryWallet
22
25
  } from "./chunk-D6AOOO5F.js";
23
26
  import {
24
- walletConnectWallet
25
- } from "./chunk-NP5QGWNL.js";
26
- import {
27
- ramperWallet
28
- } from "./chunk-BYXPFMI7.js";
27
+ trustWallet
28
+ } from "./chunk-VYBAYMP3.js";
29
29
  import {
30
- zealWallet
31
- } from "./chunk-RNBEDQHF.js";
30
+ uniswapWallet
31
+ } from "./chunk-LH7BMNFZ.js";
32
32
  import {
33
- xdefiWallet
34
- } from "./chunk-BOU4WKRZ.js";
33
+ walletConnectWallet
34
+ } from "./chunk-NP5QGWNL.js";
35
35
  import {
36
- omniWallet
37
- } from "./chunk-7CUY5G6R.js";
36
+ phantomWallet
37
+ } from "./chunk-362NXNTM.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-BBOM42DL.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-3CICVJUN.js";
43
+ } from "./chunk-2KUBG3S6.js";
44
+ import {
45
+ ramperWallet
46
+ } from "./chunk-BYXPFMI7.js";
44
47
  import {
45
48
  roninWallet
46
- } from "./chunk-QLVVUKYB.js";
49
+ } from "./chunk-NWIQNBJU.js";
50
+ import {
51
+ safeWallet
52
+ } from "./chunk-BQQQL6UD.js";
47
53
  import {
48
54
  safeheronWallet
49
55
  } from "./chunk-RZIO5TFF.js";
50
56
  import {
51
57
  safepalWallet
52
- } from "./chunk-EC6CHBSZ.js";
53
- import {
54
- safeWallet
55
- } from "./chunk-BQQQL6UD.js";
56
- import {
57
- tahoWallet
58
- } from "./chunk-ZZZRUXZE.js";
58
+ } from "./chunk-NT2HYJKW.js";
59
59
  import {
60
- mewWallet
61
- } from "./chunk-OL5ZO7E4.js";
60
+ ledgerWallet
61
+ } from "./chunk-BRBKM4PW.js";
62
62
  import {
63
63
  metaMaskWallet
64
- } from "./chunk-UYGJO62F.js";
64
+ } from "./chunk-2HYNUNAS.js";
65
65
  import {
66
66
  oktoWallet
67
67
  } from "./chunk-ADIXAKUL.js";
68
68
  import {
69
- ledgerWallet
70
- } from "./chunk-BRBKM4PW.js";
69
+ mewWallet
70
+ } from "./chunk-OL5ZO7E4.js";
71
71
  import {
72
72
  okxWallet
73
- } from "./chunk-AFXHGWBH.js";
73
+ } from "./chunk-TDIEHTMB.js";
74
74
  import {
75
- oneInchWallet
76
- } from "./chunk-OESTDX6I.js";
75
+ omniWallet
76
+ } from "./chunk-7CUY5G6R.js";
77
77
  import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-SHBUZ7U7.js";
80
80
  import {
81
- phantomWallet
82
- } from "./chunk-362NXNTM.js";
83
- import {
84
- frameWallet
85
- } from "./chunk-IFON7E6U.js";
81
+ oneInchWallet
82
+ } from "./chunk-OESTDX6I.js";
86
83
  import {
87
- enkryptWallet
88
- } from "./chunk-OLOIXTYS.js";
84
+ foxWallet
85
+ } from "./chunk-7QONTUXT.js";
89
86
  import {
90
87
  frontierWallet
91
- } from "./chunk-VWCLFMWJ.js";
88
+ } from "./chunk-TCAGNB4B.js";
89
+ import {
90
+ frameWallet
91
+ } from "./chunk-IFON7E6U.js";
92
92
  import {
93
93
  gateWallet
94
- } from "./chunk-CJGUM55H.js";
94
+ } from "./chunk-FKJJQNKX.js";
95
95
  import {
96
96
  imTokenWallet
97
97
  } from "./chunk-COZ7MIQS.js";
98
+ import {
99
+ injectedWallet
100
+ } from "./chunk-XWUJE7MW.js";
98
101
  import {
99
102
  kresusWallet
100
103
  } from "./chunk-MJXPRJZT.js";
101
104
  import {
102
- injectedWallet
103
- } from "./chunk-XWUJE7MW.js";
105
+ bybitWallet
106
+ } from "./chunk-2STUC6QL.js";
104
107
  import {
105
108
  clvWallet
106
- } from "./chunk-2GJQ4XZQ.js";
109
+ } from "./chunk-M3NZ6R2E.js";
107
110
  import {
108
- bitskiWallet
109
- } from "./chunk-HS3C7OQV.js";
111
+ coin98Wallet
112
+ } from "./chunk-OBOVHCEI.js";
110
113
  import {
111
- bybitWallet
112
- } from "./chunk-LNEC5RNX.js";
114
+ coinbaseWallet
115
+ } from "./chunk-H4IRCEZN.js";
113
116
  import {
114
117
  coreWallet
115
- } from "./chunk-JCHN6A47.js";
118
+ } from "./chunk-VR4TBQ6S.js";
116
119
  import {
117
120
  dawnWallet
118
121
  } from "./chunk-HWPKCIBE.js";
119
- import {
120
- coinbaseWallet
121
- } from "./chunk-H4IRCEZN.js";
122
122
  import {
123
123
  desigWallet
124
124
  } from "./chunk-OPAZMNA7.js";
125
125
  import {
126
- foxWallet
127
- } from "./chunk-CNPKISHN.js";
126
+ enkryptWallet
127
+ } from "./chunk-OLOIXTYS.js";
128
128
  import {
129
129
  argentWallet
130
130
  } from "./chunk-WSQ2YJO2.js";
131
131
  import {
132
132
  bifrostWallet
133
- } from "./chunk-UIASLGLV.js";
133
+ } from "./chunk-A5N6B5UW.js";
134
134
  import {
135
135
  bitgetWallet
136
- } from "./chunk-5W7VDOCL.js";
136
+ } from "./chunk-TDAVGY5F.js";
137
+ import {
138
+ bitskiWallet
139
+ } from "./chunk-HS3C7OQV.js";
140
+ import {
141
+ bitverseWallet
142
+ } from "./chunk-3HZRRP4Y.js";
137
143
  import {
138
144
  bloomWallet
139
145
  } from "./chunk-S27IADFU.js";
146
+ import "./chunk-23WIEY36.js";
140
147
  import {
141
148
  braveWallet
142
149
  } from "./chunk-BPZ2XJO2.js";
143
- import {
144
- bitverseWallet
145
- } from "./chunk-3HZRRP4Y.js";
146
- import {
147
- coin98Wallet
148
- } from "./chunk-KIDC67XJ.js";
149
150
  import "./chunk-DNSG5Q7V.js";
150
- import "./chunk-23WIEY36.js";
151
151
  export {
152
152
  argentWallet,
153
153
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-UYGJO62F.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2HYNUNAS.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-AFXHGWBH.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-TDIEHTMB.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-3CICVJUN.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2KUBG3S6.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  rainbowWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  roninWallet
4
- } from "../chunk-QLVVUKYB.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NWIQNBJU.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  roninWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  safepalWallet
4
- } from "../chunk-EC6CHBSZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-NT2HYJKW.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  safepalWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  subWallet
4
- } from "../chunk-ZSI5N4VV.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-JWFF4AAL.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  subWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-J3LI3FYZ.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-2L43XSW3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-RKPCWHXL.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-VYBAYMP3.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  trustWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-Q3H3TRBS.js";
5
- import "../chunk-DNSG5Q7V.js";
4
+ } from "../chunk-SULRQO27.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-DNSG5Q7V.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "6.14.22",
3
+ "version": "6.14.23-next.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -99,12 +99,12 @@
99
99
  "ua-parser-js": "^1.0.37",
100
100
  "use-debounce": "^10.0.5",
101
101
  "uuid": "^9.0.1",
102
- "@funkit/api-base": "1.12.14",
103
- "@funkit/core": "2.3.59",
104
- "@funkit/chains": "0.4.3",
105
- "@funkit/fun-relay": "2.1.9",
106
- "@funkit/utils": "1.1.16",
107
- "@funkit/wagmi-tools": "3.0.82"
102
+ "@funkit/api-base": "1.12.15-next.1",
103
+ "@funkit/chains": "0.4.4-next.0",
104
+ "@funkit/core": "2.3.60-next.1",
105
+ "@funkit/fun-relay": "2.1.10-next.0",
106
+ "@funkit/utils": "1.1.17-next.0",
107
+ "@funkit/wagmi-tools": "3.0.83-next.1"
108
108
  },
109
109
  "repository": {
110
110
  "type": "git",
@@ -124,6 +124,7 @@
124
124
  "typegen:watch": "tsc --emitDeclarationOnly --watch",
125
125
  "lint": "biome check",
126
126
  "lint:fix": "biome check --fix",
127
+ "test": "vitest",
127
128
  "storybook": "storybook dev -p 6006",
128
129
  "storybook:fast": "NODE_OPTIONS='--max-old-space-size=4096' storybook dev -p 6006 --no-open",
129
130
  "storybook:clean": "rm -rf node_modules/.vite && npm run storybook",
@@ -1,2 +0,0 @@
1
- export declare const mpClass: string;
2
- export declare const stretchStyle: string;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- export interface FunPaymentMoonpayProps {
4
- paymentAddress: Address;
5
- depositToken: string;
6
- depositTokenChainId: string;
7
- depositTokenAmount: number;
8
- onUnsupportedRegion: () => void;
9
- onTransactionCreated: () => void;
10
- onTransactionCompleted: () => void;
11
- }
12
- export declare function FunPaymentMoonpayType({ paymentAddress, depositToken, depositTokenChainId, depositTokenAmount, onTransactionCompleted, onUnsupportedRegion, onTransactionCreated, }: FunPaymentMoonpayProps): React.JSX.Element;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
3
- import { type FeeLineItemProps, type PaymentFeesSummaryProps } from './PaymentFeesSummary';
4
- export declare enum FEE_SECTION_VARIANT {
5
- A = "A",
6
- B = "B",
7
- C = "C"
8
- }
9
- export declare const PaymentSummaryFeeLineItemExperiment: ({ isExpandable, isExpanded, isLoading, label, value, valueIcon, variant, checkoutItem, quote, }: FeeLineItemProps & {
10
- variant: FEE_SECTION_VARIANT;
11
- checkoutItem: FunkitActiveCheckoutItem | null;
12
- quote: PaymentFeesSummaryProps["quote"];
13
- }) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- size?: number;
4
- }
5
- export declare const ArrowTwoWayIcon: ({ size }: Props) => React.JSX.Element;
6
- export {};
@@ -1,10 +0,0 @@
1
- export declare const MOONPAY_TOKENS_SUPPORTED_REGIONS: {
2
- [token: string]: {
3
- isSupportedInUS: boolean;
4
- notAllowedUSStates: string[];
5
- notAllowedCountries: string[];
6
- minBuyAmount: number;
7
- maxBuyAmount: number;
8
- precision: number;
9
- };
10
- };
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { Address } from 'viem';
3
- import type { PaymentMethodCardInfo } from '~/domains/paymentMethods';
4
- import { type CheckoutModalCommonState, FunCheckoutStep, type ModalStepComponentProps, type ModalStepInfo } from './stepTransition';
5
- export type MoonpaySetupState = CheckoutModalCommonState & {
6
- paymentAddress: Address;
7
- token: string;
8
- tokenChainId: string;
9
- depositAmount: number;
10
- isSendingToQr: boolean;
11
- paymentMethodInfo: PaymentMethodCardInfo;
12
- };
13
- export type MoonpaySetupNext = {
14
- depositAddress: Address;
15
- };
16
- export declare const MoonpaySetupInfo: ModalStepInfo<FunCheckoutStep.MOONPAY_SETUP>;
17
- export declare function MoonpaySetup({ modalState, onNext, }: ModalStepComponentProps<FunCheckoutStep.MOONPAY_SETUP>): React.JSX.Element;
@@ -1,10 +0,0 @@
1
- export declare const MINIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 35;
2
- export declare const MAXIMUM_MOONPAY_DEPOSIT_AMOUNT_USD = 10000;
3
- export declare const generateMoonpayCurrencyCode: (tokenSymbol: string, chainId: string) => string;
4
- export declare function checkAmountForMoonpay(amountUsd: number, isDefiMode?: boolean): {
5
- readonly isInvalid: true;
6
- readonly message: string;
7
- } | {
8
- readonly isInvalid: false;
9
- readonly message?: undefined;
10
- };
@@ -1,87 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
- var clvWallet = ({
12
- projectId,
13
- walletConnectParameters
14
- }) => {
15
- const isCLVInjected = hasInjectedProvider({ namespace: "clover" });
16
- const shouldUseWalletConnect = !isCLVInjected;
17
- return {
18
- id: "clv",
19
- name: "CLV",
20
- iconUrl: async () => (await import("./clvWallet-VVMLP7BK.js")).default,
21
- iconBackground: "#fff",
22
- iconAccent: "#BDFDE2",
23
- installed: isCLVInjected,
24
- downloadUrls: {
25
- chrome: "https://chrome.google.com/webstore/detail/clv-wallet/nhnkbkgjikgcigadomkphalanndcapjk",
26
- ios: "https://apps.apple.com/app/clover-wallet/id1570072858",
27
- mobile: "https://apps.apple.com/app/clover-wallet/id1570072858",
28
- qrCode: "https://clv.org/"
29
- },
30
- extension: {
31
- instructions: {
32
- learnMoreUrl: "https://clv.org/",
33
- steps: [
34
- {
35
- description: "wallet_connectors.clv.extension.step1.description",
36
- step: "install",
37
- title: "wallet_connectors.clv.extension.step1.title"
38
- },
39
- {
40
- description: "wallet_connectors.clv.extension.step2.description",
41
- step: "create",
42
- title: "wallet_connectors.clv.extension.step2.title"
43
- },
44
- {
45
- description: "wallet_connectors.clv.extension.step3.description",
46
- step: "refresh",
47
- title: "wallet_connectors.clv.extension.step3.title"
48
- }
49
- ]
50
- }
51
- },
52
- mobile: {
53
- getUri: shouldUseWalletConnect ? (uri) => uri : void 0
54
- },
55
- qrCode: shouldUseWalletConnect ? {
56
- getUri: (uri) => uri,
57
- instructions: {
58
- learnMoreUrl: "https://clv.org/",
59
- steps: [
60
- {
61
- description: "wallet_connectors.clv.qr_code.step1.description",
62
- step: "install",
63
- title: "wallet_connectors.clv.qr_code.step1.title"
64
- },
65
- {
66
- description: "wallet_connectors.clv.qr_code.step2.description",
67
- step: "create",
68
- title: "wallet_connectors.clv.qr_code.step2.title"
69
- },
70
- {
71
- description: "wallet_connectors.clv.qr_code.step3.description",
72
- step: "scan",
73
- title: "wallet_connectors.clv.qr_code.step3.title"
74
- }
75
- ]
76
- }
77
- } : void 0,
78
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
79
- projectId,
80
- walletConnectParameters
81
- }) : getInjectedConnector({ namespace: "clover" })
82
- };
83
- };
84
-
85
- export {
86
- clvWallet
87
- };
@@ -1,70 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-DNSG5Q7V.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-23WIEY36.js";
9
-
10
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
11
- import { isAndroid, isIOS } from "@funkit/utils";
12
- var rainbowWallet = ({
13
- projectId,
14
- walletConnectParameters
15
- }) => {
16
- const isRainbowInjected = hasInjectedProvider({ flag: "isRainbow" });
17
- const shouldUseWalletConnect = !isRainbowInjected;
18
- const getUri = (uri) => {
19
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
20
- uri
21
- )}&connector=rainbowkit`;
22
- };
23
- return {
24
- id: "rainbow",
25
- name: "Rainbow",
26
- rdns: "me.rainbow",
27
- iconUrl: async () => (await import("./rainbowWallet-MFJQCICF.js")).default,
28
- iconBackground: "#0c2f78",
29
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
30
- downloadUrls: {
31
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
32
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
33
- mobile: "https://rainbow.download?utm_source=rainbowkit",
34
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
35
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
36
- },
37
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
38
- qrCode: shouldUseWalletConnect ? {
39
- getUri,
40
- instructions: {
41
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
42
- steps: [
43
- {
44
- description: "wallet_connectors.rainbow.qr_code.step1.description",
45
- step: "install",
46
- title: "wallet_connectors.rainbow.qr_code.step1.title"
47
- },
48
- {
49
- description: "wallet_connectors.rainbow.qr_code.step2.description",
50
- step: "create",
51
- title: "wallet_connectors.rainbow.qr_code.step2.title"
52
- },
53
- {
54
- description: "wallet_connectors.rainbow.qr_code.step3.description",
55
- step: "scan",
56
- title: "wallet_connectors.rainbow.qr_code.step3.title"
57
- }
58
- ]
59
- }
60
- } : void 0,
61
- createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
62
- projectId,
63
- walletConnectParameters
64
- }) : getInjectedConnector({ flag: "isRainbow" })
65
- };
66
- };
67
-
68
- export {
69
- rainbowWallet
70
- };