@funkit/connect 0.1.14 → 0.1.16

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 (66) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/dist/{chunk-OYE6VAAG.js → chunk-FUDTZOKU.js} +4108 -3703
  3. package/dist/components/AsyncImage/AsyncImage.d.ts +2 -1
  4. package/dist/components/Box/Box.d.ts +6 -6
  5. package/dist/components/FunAssetAvatar/FunAssetAvatar.css.d.ts +3 -0
  6. package/dist/components/FunAssetAvatar/FunAssetAvatar.d.ts +12 -0
  7. package/dist/components/FunButton/FunIconButton.d.ts +2 -1
  8. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
  9. package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +2 -1
  10. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +3 -1
  11. package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +8 -2
  12. package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +3 -1
  13. package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +3 -1
  14. package/dist/components/FunInput/FunInput.d.ts +2 -1
  15. package/dist/components/FunKeyValue/FunKeyValue.d.ts +4 -1
  16. package/dist/components/FunPayments/FunPaymentMeshType.d.ts +2 -1
  17. package/dist/components/FunPayments/FunPaymentSetup.d.ts +2 -1
  18. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +6 -2
  19. package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +20 -4
  20. package/dist/components/FunkitProvider/ModalContext.d.ts +1 -1
  21. package/dist/components/Icons/Copied.d.ts +3 -1
  22. package/dist/components/Icons/EditIcon.d.ts +4 -0
  23. package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +0 -1
  24. package/dist/components/index.css +1317 -1271
  25. package/dist/components/index.js +1 -1
  26. package/dist/consts/assets.d.ts +3 -0
  27. package/dist/css/sprinkles.css.d.ts +36 -0
  28. package/dist/hooks/useCheckoutType.d.ts +9 -0
  29. package/dist/hooks/useFunListeners.d.ts +2 -1
  30. package/dist/index.css +1317 -1271
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +1 -1
  33. package/dist/utils/checkout.d.ts +1 -0
  34. package/dist/utils/deposit.d.ts +5 -0
  35. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  36. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  37. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  38. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  39. package/dist/wallets/walletConnectors/index.js +46 -46
  40. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  41. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  42. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  43. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  44. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  45. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  46. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  47. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  48. package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
  49. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  50. package/package.json +6 -5
  51. package/dist/wallets/walletConnectors/chunk-4W6RLMME.js +0 -117
  52. package/dist/wallets/walletConnectors/chunk-4WS4ZSRN.js +0 -84
  53. package/dist/wallets/walletConnectors/{chunk-KUXG7P5Q.js → chunk-3XLDPS4Y.js} +3 -3
  54. package/dist/wallets/walletConnectors/{chunk-JJICTRJY.js → chunk-4EKX7Z25.js} +3 -3
  55. package/dist/wallets/walletConnectors/{chunk-Q6N2YWW4.js → chunk-6FQF7H7H.js} +3 -3
  56. package/dist/wallets/walletConnectors/{chunk-MDDT3PSR.js → chunk-77KYAV4P.js} +3 -3
  57. package/dist/wallets/walletConnectors/{chunk-RL5OHS6R.js → chunk-GHYJ56FA.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-VAR774R5.js → chunk-GLB4HFDR.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-NZ4YUZKF.js → chunk-IEAKLGB6.js} +4 -4
  60. package/dist/wallets/walletConnectors/{chunk-FTTYELWN.js → chunk-LEWQ7DQV.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-LBSWP7R6.js → chunk-LL6T7V77.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-2XHTO74O.js → chunk-MOWIPEYK.js} +4 -4
  63. package/dist/wallets/walletConnectors/{chunk-X6A7D2EA.js → chunk-NEDPCNTA.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-BDKAIAQA.js → chunk-VW5SMBMG.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-DBMFZSXN.js → chunk-XXTDCRCW.js} +3 -3
  66. package/dist/wallets/walletConnectors/{chunk-TORM2ZGA.js → chunk-YWKKNHO3.js} +4 -4
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './components';
3
3
  export type { AuthenticationConfig, AuthenticationStatus, } from './components/FunkitProvider/AuthenticationContext';
4
4
  export { createAuthenticationAdapter, RainbowKitAuthenticationProvider, } from './components/FunkitProvider/AuthenticationContext';
5
5
  export type { AvatarComponent } from './components/FunkitProvider/AvatarContext';
6
+ export type { FunkitConfig } from './components/FunkitProvider/FunkitConfigContext';
6
7
  export type { Chain } from './components/FunkitProvider/FunkitConnectChainContext';
7
8
  export type { Theme } from './components/FunkitProvider/FunkitThemeProvider';
8
9
  export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  useFunCheckoutModal,
32
32
  useFunkitCheckout,
33
33
  useWalletConnectors
34
- } from "./chunk-OYE6VAAG.js";
34
+ } from "./chunk-FUDTZOKU.js";
35
35
  import {
36
36
  darkTheme
37
37
  } from "./chunk-47OHV4T2.js";
@@ -99,6 +99,7 @@ export interface CheckoutHistoryStateMap {
99
99
  export declare function categorizeCheckoutHistories(checkoutHistoryList: CheckoutHistoryItem[]): {
100
100
  stateMap: CheckoutHistoryStateMap;
101
101
  depositAddrMap: CheckoutHistoryDepositAddrMap;
102
+ currentDepositAddrMap: CheckoutHistoryDepositAddrMap;
102
103
  };
103
104
  export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
104
105
  export declare function formatTokenAmountForMoonpay(amount: number): string;
@@ -0,0 +1,5 @@
1
+ import { PaymentFlow } from '../components/FunPayments/FunPaymentMethods';
2
+ export declare function isAmountValidForMoonpay({ amountUsd, }: {
3
+ amountUsd: string | undefined | null;
4
+ }): boolean;
5
+ export declare function generateInsufficientAmountForMoonpayError(paymentFlow: PaymentFlow, isShortened: boolean): string;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-FTTYELWN.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-LEWQ7DQV.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-LBSWP7R6.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-LL6T7V77.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  bifrostWallet
9
9
  };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  bitKeepWallet,
4
4
  bitgetWallet
5
- } from "../chunk-Q6N2YWW4.js";
6
- import "../chunk-6T5K52ZY.js";
5
+ } from "../chunk-6FQF7H7H.js";
7
6
  import "../chunk-ZOLACFTK.js";
7
+ import "../chunk-6T5K52ZY.js";
8
8
  export {
9
9
  bitKeepWallet,
10
10
  bitgetWallet
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-JJICTRJY.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-4EKX7Z25.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  frontierWallet
9
9
  };
@@ -1,34 +1,34 @@
1
1
  "use client";
2
2
  import {
3
- coin98Wallet
4
- } from "./chunk-LVMQKSKW.js";
3
+ zerionWallet
4
+ } from "./chunk-77KYAV4P.js";
5
5
  import {
6
- walletConnectWallet
7
- } from "./chunk-DBMFZSXN.js";
6
+ oktoWallet
7
+ } from "./chunk-VW5SMBMG.js";
8
8
  import {
9
- tahoWallet
10
- } from "./chunk-OOGGCCFQ.js";
9
+ talismanWallet
10
+ } from "./chunk-5UETJ33B.js";
11
11
  import {
12
12
  tokenPocketWallet
13
- } from "./chunk-KUXG7P5Q.js";
13
+ } from "./chunk-3XLDPS4Y.js";
14
+ import {
15
+ safepalWallet
16
+ } from "./chunk-TZR3P22N.js";
14
17
  import {
15
18
  trustWallet
16
- } from "./chunk-TORM2ZGA.js";
19
+ } from "./chunk-YWKKNHO3.js";
17
20
  import {
18
- talismanWallet
19
- } from "./chunk-5UETJ33B.js";
21
+ uniswapWallet
22
+ } from "./chunk-APZ6YBCA.js";
20
23
  import {
21
- zealWallet
22
- } from "./chunk-QBKHMTGI.js";
24
+ walletConnectWallet
25
+ } from "./chunk-XXTDCRCW.js";
23
26
  import {
24
27
  xdefiWallet
25
28
  } from "./chunk-5ZLRNFDM.js";
26
29
  import {
27
- zerionWallet
28
- } from "./chunk-MDDT3PSR.js";
29
- import {
30
- uniswapWallet
31
- } from "./chunk-APZ6YBCA.js";
30
+ zealWallet
31
+ } from "./chunk-QBKHMTGI.js";
32
32
  import {
33
33
  oneKeyWallet
34
34
  } from "./chunk-6CW3SAA3.js";
@@ -40,52 +40,56 @@ import {
40
40
  } from "./chunk-TNC2B7LX.js";
41
41
  import {
42
42
  rainbowWallet
43
- } from "./chunk-4WS4ZSRN.js";
43
+ } from "./chunk-IEAKLGB6.js";
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-BNTZHUB6.js";
47
47
  import {
48
- safepalWallet
49
- } from "./chunk-TZR3P22N.js";
48
+ safeheronWallet
49
+ } from "./chunk-7WTKIVCW.js";
50
50
  import {
51
51
  subWallet
52
52
  } from "./chunk-PTF3JKWO.js";
53
53
  import {
54
- safeheronWallet
55
- } from "./chunk-7WTKIVCW.js";
54
+ tahoWallet
55
+ } from "./chunk-OOGGCCFQ.js";
56
+ import {
57
+ frontierWallet
58
+ } from "./chunk-4EKX7Z25.js";
56
59
  import {
57
60
  injectedWallet
58
61
  } from "./chunk-U32TVZ7G.js";
62
+ import {
63
+ imTokenWallet
64
+ } from "./chunk-7EOFWORX.js";
59
65
  import {
60
66
  ledgerWallet
61
- } from "./chunk-VAR774R5.js";
67
+ } from "./chunk-GLB4HFDR.js";
62
68
  import {
63
69
  metaMaskWallet
64
- } from "./chunk-2XHTO74O.js";
65
- import {
66
- foxWallet
67
- } from "./chunk-TG2HN6KW.js";
70
+ } from "./chunk-MOWIPEYK.js";
68
71
  import {
69
72
  mewWallet
70
73
  } from "./chunk-BZFEDZQJ.js";
71
74
  import {
72
75
  okxWallet
73
- } from "./chunk-RL5OHS6R.js";
74
- import {
75
- oktoWallet
76
- } from "./chunk-BDKAIAQA.js";
76
+ } from "./chunk-GHYJ56FA.js";
77
77
  import {
78
78
  omniWallet
79
- } from "./chunk-X6A7D2EA.js";
79
+ } from "./chunk-NEDPCNTA.js";
80
+ import {
81
+ coin98Wallet
82
+ } from "./chunk-LVMQKSKW.js";
83
+ import {
84
+ coinbaseWallet
85
+ } from "./chunk-WFTAXMQP.js";
86
+ import "./chunk-UZ5XLPAW.js";
80
87
  import {
81
88
  coreWallet
82
89
  } from "./chunk-T3RIVRAX.js";
83
90
  import {
84
91
  dawnWallet
85
92
  } from "./chunk-QJNS6IE4.js";
86
- import {
87
- argentWallet
88
- } from "./chunk-FTTYELWN.js";
89
93
  import {
90
94
  desigWallet
91
95
  } from "./chunk-SXUVHZCG.js";
@@ -96,18 +100,19 @@ import {
96
100
  frameWallet
97
101
  } from "./chunk-MBFEMLUU.js";
98
102
  import {
99
- frontierWallet
100
- } from "./chunk-JJICTRJY.js";
103
+ foxWallet
104
+ } from "./chunk-TG2HN6KW.js";
101
105
  import {
102
- imTokenWallet
103
- } from "./chunk-7EOFWORX.js";
106
+ argentWallet
107
+ } from "./chunk-LEWQ7DQV.js";
104
108
  import {
105
109
  bifrostWallet
106
- } from "./chunk-LBSWP7R6.js";
110
+ } from "./chunk-LL6T7V77.js";
107
111
  import {
108
112
  bitKeepWallet,
109
113
  bitgetWallet
110
- } from "./chunk-Q6N2YWW4.js";
114
+ } from "./chunk-6FQF7H7H.js";
115
+ import "./chunk-ZOLACFTK.js";
111
116
  import {
112
117
  bitskiWallet
113
118
  } from "./chunk-FL3REGA5.js";
@@ -118,11 +123,6 @@ import {
118
123
  clvWallet
119
124
  } from "./chunk-EHO4MJZJ.js";
120
125
  import "./chunk-6T5K52ZY.js";
121
- import {
122
- coinbaseWallet
123
- } from "./chunk-WFTAXMQP.js";
124
- import "./chunk-UZ5XLPAW.js";
125
- import "./chunk-ZOLACFTK.js";
126
126
  export {
127
127
  argentWallet,
128
128
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-VAR774R5.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-GLB4HFDR.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-2XHTO74O.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-MOWIPEYK.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  metaMaskWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-BDKAIAQA.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-VW5SMBMG.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-RL5OHS6R.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-GHYJ56FA.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  okxWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-X6A7D2EA.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-NEDPCNTA.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-4WS4ZSRN.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-IEAKLGB6.js";
6
5
  import "../chunk-UZ5XLPAW.js";
7
6
  import "../chunk-ZOLACFTK.js";
7
+ import "../chunk-6T5K52ZY.js";
8
8
  export {
9
9
  rainbowWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-KUXG7P5Q.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-3XLDPS4Y.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  tokenPocketWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-TORM2ZGA.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-YWKKNHO3.js";
6
5
  import "../chunk-UZ5XLPAW.js";
7
6
  import "../chunk-ZOLACFTK.js";
7
+ import "../chunk-6T5K52ZY.js";
8
8
  export {
9
9
  trustWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  walletConnectWallet
4
- } from "../chunk-DBMFZSXN.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-XXTDCRCW.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  walletConnectWallet
9
9
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-MDDT3PSR.js";
5
- import "../chunk-6T5K52ZY.js";
4
+ } from "../chunk-77KYAV4P.js";
6
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-6T5K52ZY.js";
7
7
  export {
8
8
  zerionWallet
9
9
  };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
7
7
  "styles.css",
8
- "wallets"
8
+ "wallets",
9
+ "CHANGELOG.md"
9
10
  ],
10
11
  "type": "module",
11
12
  "exports": {
@@ -84,9 +85,9 @@
84
85
  "wagmi": "~1.4.6"
85
86
  },
86
87
  "dependencies": {
87
- "@front-finance/link": "^1.1.9",
88
- "@funkit/core": "^0.10.10",
89
- "@funkit/wagmi-tools": "^0.1.9",
88
+ "@meshconnect/web-link-sdk": "^2.0.1",
89
+ "@funkit/core": "^0.10.11",
90
+ "@funkit/wagmi-tools": "^0.1.10",
90
91
  "@moonpay/moonpay-react": "^1.4.1",
91
92
  "@privy-io/js-sdk-core": "^0.11.0",
92
93
  "@types/uuid": "^9.0.1",
@@ -1,117 +0,0 @@
1
- "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-UZ5XLPAW.js";
6
- import {
7
- getWalletConnectConnector,
8
- getWalletConnectUri
9
- } from "./chunk-6T5K52ZY.js";
10
- import {
11
- isMobile
12
- } from "./chunk-ZOLACFTK.js";
13
-
14
- // src/wallets/walletConnectors/trustWallet/trustWallet.ts
15
- var trustWallet = ({
16
- chains,
17
- projectId,
18
- walletConnectOptions,
19
- walletConnectVersion = "2",
20
- ...options
21
- }) => {
22
- const isTrustWalletInjected = isMobile() ? hasInjectedProvider("isTrust") : hasInjectedProvider("isTrustWallet");
23
- const shouldUseWalletConnect = !isTrustWalletInjected;
24
- return {
25
- id: "trust",
26
- name: "Trust Wallet",
27
- iconUrl: async () => (await import("./trustWallet-XIQD5AVI.js")).default,
28
- installed: isTrustWalletInjected || void 0,
29
- iconAccent: "#3375BB",
30
- iconBackground: "#fff",
31
- downloadUrls: {
32
- android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
33
- ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
34
- mobile: "https://trustwallet.com/download",
35
- qrCode: "https://trustwallet.com/download",
36
- chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
37
- browserExtension: "https://trustwallet.com/browser-extension"
38
- },
39
- createConnector: () => {
40
- const getUriMobile = async () => {
41
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
42
- return `trust://wc?uri=${encodeURIComponent(uri)}`;
43
- };
44
- const getUriQR = async () => {
45
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
46
- return uri;
47
- };
48
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
49
- projectId,
50
- chains,
51
- version: walletConnectVersion,
52
- options: walletConnectOptions
53
- }) : isMobile() ? getInjectedConnector({ flag: "isTrust", chains, options }) : getInjectedConnector({ flag: "isTrustWallet", chains, options });
54
- const mobileConnector = {
55
- getUri: shouldUseWalletConnect ? getUriMobile : void 0
56
- };
57
- let qrConnector = void 0;
58
- if (shouldUseWalletConnect) {
59
- qrConnector = {
60
- getUri: getUriQR,
61
- instructions: {
62
- learnMoreUrl: "https://trustwallet.com/",
63
- steps: [
64
- {
65
- description: "wallet_connectors.trust.qr_code.step1.description",
66
- step: "install",
67
- title: "wallet_connectors.trust.qr_code.step1.title"
68
- },
69
- {
70
- description: "wallet_connectors.trust.qr_code.step2.description",
71
- step: "create",
72
- title: "wallet_connectors.trust.qr_code.step2.title"
73
- },
74
- {
75
- description: "wallet_connectors.trust.qr_code.step3.description",
76
- step: "scan",
77
- title: "wallet_connectors.trust.qr_code.step3.title"
78
- }
79
- ]
80
- }
81
- };
82
- }
83
- const extensionConnector = {
84
- instructions: {
85
- learnMoreUrl: "https://trustwallet.com/browser-extension",
86
- steps: [
87
- {
88
- description: "wallet_connectors.trust.extension.step1.description",
89
- step: "install",
90
- title: "wallet_connectors.trust.extension.step1.title"
91
- },
92
- {
93
- description: "wallet_connectors.trust.extension.step2.description",
94
- step: "create",
95
- title: "wallet_connectors.trust.extension.step2.title"
96
- },
97
- {
98
- description: "wallet_connectors.trust.extension.step3.description",
99
- step: "refresh",
100
- title: "wallet_connectors.trust.extension.step3.title"
101
- }
102
- ]
103
- }
104
- };
105
- return {
106
- connector,
107
- mobile: mobileConnector,
108
- qrCode: qrConnector,
109
- extension: extensionConnector
110
- };
111
- }
112
- };
113
- };
114
-
115
- export {
116
- trustWallet
117
- };
@@ -1,84 +0,0 @@
1
- "use client";
2
- import {
3
- getWalletConnectConnector,
4
- getWalletConnectUri
5
- } from "./chunk-6T5K52ZY.js";
6
- import {
7
- getInjectedConnector,
8
- hasInjectedProvider
9
- } from "./chunk-UZ5XLPAW.js";
10
- import {
11
- isAndroid,
12
- isIOS
13
- } from "./chunk-ZOLACFTK.js";
14
-
15
- // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
16
- var rainbowWallet = ({
17
- chains,
18
- projectId,
19
- walletConnectOptions,
20
- walletConnectVersion = "2",
21
- ...options
22
- }) => {
23
- const isRainbowInjected = hasInjectedProvider("isRainbow");
24
- const shouldUseWalletConnect = !isRainbowInjected;
25
- return {
26
- id: "rainbow",
27
- name: "Rainbow",
28
- iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
29
- iconBackground: "#0c2f78",
30
- installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
31
- downloadUrls: {
32
- android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
33
- ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
34
- mobile: "https://rainbow.download?utm_source=rainbowkit",
35
- qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
36
- browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
37
- },
38
- createConnector: () => {
39
- const connector = shouldUseWalletConnect ? getWalletConnectConnector({
40
- projectId,
41
- chains,
42
- version: walletConnectVersion,
43
- options: walletConnectOptions
44
- }) : getInjectedConnector({ flag: "isRainbow", chains, options });
45
- const getUri = async () => {
46
- const uri = await getWalletConnectUri(connector, walletConnectVersion);
47
- return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
48
- uri
49
- )}&connector=rainbowkit`;
50
- };
51
- return {
52
- connector,
53
- mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
54
- qrCode: shouldUseWalletConnect ? {
55
- getUri,
56
- instructions: {
57
- learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
58
- steps: [
59
- {
60
- description: "wallet_connectors.rainbow.qr_code.step1.description",
61
- step: "install",
62
- title: "wallet_connectors.rainbow.qr_code.step1.title"
63
- },
64
- {
65
- description: "wallet_connectors.rainbow.qr_code.step2.description",
66
- step: "create",
67
- title: "wallet_connectors.rainbow.qr_code.step2.title"
68
- },
69
- {
70
- description: "wallet_connectors.rainbow.qr_code.step3.description",
71
- step: "scan",
72
- title: "wallet_connectors.rainbow.qr_code.step3.title"
73
- }
74
- ]
75
- }
76
- } : void 0
77
- };
78
- }
79
- };
80
- };
81
-
82
- export {
83
- rainbowWallet
84
- };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ isMobile
4
+ } from "./chunk-ZOLACFTK.js";
2
5
  import {
3
6
  getWalletConnectConnector,
4
7
  getWalletConnectUri
5
8
  } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isMobile
8
- } from "./chunk-ZOLACFTK.js";
9
9
 
10
10
  // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
11
11
  import { InjectedConnector } from "wagmi/connectors/injected";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ isAndroid
4
+ } from "./chunk-ZOLACFTK.js";
2
5
  import {
3
6
  getWalletConnectConnector,
4
7
  getWalletConnectUri
5
8
  } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
9
 
10
10
  // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
11
11
  import { InjectedConnector } from "wagmi/connectors/injected";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
+ import {
3
+ isAndroid
4
+ } from "./chunk-ZOLACFTK.js";
2
5
  import {
3
6
  getWalletConnectConnector,
4
7
  getWalletConnectUri
5
8
  } from "./chunk-6T5K52ZY.js";
6
- import {
7
- isAndroid
8
- } from "./chunk-ZOLACFTK.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
11
11
  import { InjectedConnector } from "wagmi/connectors/injected";