@funkit/connect 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/CloseButton/CloseButton.d.ts +1 -1
  3. package/dist/components/FunButton/FunIconButton.d.ts +3 -3
  4. package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +1 -1
  5. package/dist/components/Icons/ClockIcon.d.ts +1 -1
  6. package/dist/components/Icons/CoinIcon.d.ts +1 -1
  7. package/dist/components/Icons/Coinbase.d.ts +1 -1
  8. package/dist/components/Icons/Copied.d.ts +1 -1
  9. package/dist/components/Icons/EditIcon.d.ts +1 -1
  10. package/dist/components/Icons/EthereumIcon.d.ts +1 -1
  11. package/dist/components/Icons/FunkitPaymentsIconLine.d.ts +2 -2
  12. package/dist/components/Icons/LightningIcon.d.ts +1 -1
  13. package/dist/components/Icons/NoAssetsFoundIcon.d.ts +1 -1
  14. package/dist/components/Icons/PaymentMethodIcons.d.ts +1 -1
  15. package/dist/components/Icons/SearchIcon.d.ts +1 -1
  16. package/dist/components/Icons/Spinner.d.ts +2 -2
  17. package/dist/components/InfoButton/InfoButton.d.ts +1 -1
  18. package/dist/components/WalletButton/WalletButton.d.ts +1 -1
  19. package/dist/config/getDefaultConfig.d.ts +204 -60
  20. package/dist/index.js +31 -26
  21. package/dist/types/utils.d.ts +37 -0
  22. package/dist/wallets/getInjectedConnector.d.ts +3 -2
  23. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/braveWallet/braveWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/{chunk-MIWCKFYE.js → chunk-2DWBVWFI.js} +4 -4
  29. package/dist/wallets/walletConnectors/{chunk-X255T3C4.js → chunk-32KBKKGT.js} +6 -2
  30. package/dist/wallets/walletConnectors/{chunk-IBWFKX7P.js → chunk-32O7HVBJ.js} +4 -4
  31. package/dist/wallets/walletConnectors/{chunk-FDIIMYTB.js → chunk-3CLNL7LR.js} +1 -1
  32. package/dist/wallets/walletConnectors/{chunk-3WZRNEZH.js → chunk-3F5GNHAG.js} +9 -5
  33. package/dist/wallets/walletConnectors/{chunk-4FQLUQNA.js → chunk-3QXMJHL4.js} +1 -1
  34. package/dist/wallets/walletConnectors/{chunk-ZNXQ4V6G.js → chunk-3R3RNCGE.js} +4 -4
  35. package/dist/wallets/walletConnectors/{chunk-KGBLSE7L.js → chunk-4PTY6XNU.js} +1 -1
  36. package/dist/wallets/walletConnectors/{chunk-2GAW2UBU.js → chunk-5L2OLU3J.js} +1 -1
  37. package/dist/wallets/walletConnectors/{chunk-XPEBP6XV.js → chunk-5SIHQ5GA.js} +1 -1
  38. package/dist/wallets/walletConnectors/{chunk-NGXIHASN.js → chunk-5ZGE5SN5.js} +1 -1
  39. package/dist/wallets/walletConnectors/{chunk-XSSD5ZVD.js → chunk-7GGRZNT3.js} +1 -1
  40. package/dist/wallets/walletConnectors/{chunk-75A2U7T7.js → chunk-7YDZTPO4.js} +1 -1
  41. package/dist/wallets/walletConnectors/{chunk-6LTLPR2Q.js → chunk-AFONKDII.js} +1 -1
  42. package/dist/wallets/walletConnectors/{chunk-ZUAHWUEL.js → chunk-BCXBFAL4.js} +4 -4
  43. package/dist/wallets/walletConnectors/{chunk-OAEJQOAV.js → chunk-BMHNXJZK.js} +4 -4
  44. package/dist/wallets/walletConnectors/{chunk-2PC2XXUH.js → chunk-CMXZK5RR.js} +1 -1
  45. package/dist/wallets/walletConnectors/{chunk-GW6EF4G2.js → chunk-CNTLU4ZV.js} +4 -4
  46. package/dist/wallets/walletConnectors/{chunk-O5NKWWEG.js → chunk-EXN2ODSI.js} +1 -1
  47. package/dist/wallets/walletConnectors/{chunk-QII6PY2D.js → chunk-F3VCNZXS.js} +8 -6
  48. package/dist/wallets/walletConnectors/{chunk-Z2DGDHHZ.js → chunk-F4EJ42XO.js} +4 -4
  49. package/dist/wallets/walletConnectors/{chunk-SL4VH23R.js → chunk-FL2VIO76.js} +1 -1
  50. package/dist/wallets/walletConnectors/{chunk-63NPZXAL.js → chunk-FQDX6QIP.js} +1 -1
  51. package/dist/wallets/walletConnectors/{chunk-7CQPABJG.js → chunk-G4DNQN67.js} +1 -1
  52. package/dist/wallets/walletConnectors/{chunk-KIHCNUU3.js → chunk-GUJHPWTU.js} +1 -1
  53. package/dist/wallets/walletConnectors/{chunk-XXFJVY73.js → chunk-HXGBE5AH.js} +1 -1
  54. package/dist/wallets/walletConnectors/{chunk-SQGFKNNZ.js → chunk-IIJOJ6AD.js} +1 -1
  55. package/dist/wallets/walletConnectors/{chunk-C67TQJ6W.js → chunk-IMZRCMZR.js} +1 -1
  56. package/dist/wallets/walletConnectors/{chunk-L734HTUS.js → chunk-JNZ3EYC7.js} +1 -1
  57. package/dist/wallets/walletConnectors/{chunk-ENZLEAG2.js → chunk-JRABHUUZ.js} +1 -1
  58. package/dist/wallets/walletConnectors/{chunk-ABYQAXUX.js → chunk-KJWMF6GZ.js} +1 -1
  59. package/dist/wallets/walletConnectors/{chunk-4XQDKOGF.js → chunk-KZFAL4RZ.js} +4 -4
  60. package/dist/wallets/walletConnectors/{chunk-2UXZAUWT.js → chunk-LJRV5JY7.js} +4 -4
  61. package/dist/wallets/walletConnectors/{chunk-N3VZE65M.js → chunk-LOEDYNWO.js} +4 -4
  62. package/dist/wallets/walletConnectors/{chunk-Q4RLUJJD.js → chunk-M4SPCKW4.js} +4 -4
  63. package/dist/wallets/walletConnectors/chunk-MFS6NY6T.js +105 -0
  64. package/dist/wallets/walletConnectors/{chunk-OR3PU2W4.js → chunk-MOAWRDEM.js} +4 -4
  65. package/dist/wallets/walletConnectors/{chunk-AM4SSLAP.js → chunk-MSRKKVDE.js} +4 -4
  66. package/dist/wallets/walletConnectors/{chunk-T6JVHES7.js → chunk-ND5YG63V.js} +4 -4
  67. package/dist/wallets/walletConnectors/{chunk-LVRXH33E.js → chunk-NK3DYIAB.js} +4 -4
  68. package/dist/wallets/walletConnectors/{chunk-XBUTWYE4.js → chunk-O77H3VWW.js} +14 -18
  69. package/dist/wallets/walletConnectors/{chunk-JLQ5HJYV.js → chunk-OMKARG6Y.js} +4 -4
  70. package/dist/wallets/walletConnectors/chunk-OPO2D6GL.js +102 -0
  71. package/dist/wallets/walletConnectors/chunk-OUQ3ZF2W.js +100 -0
  72. package/dist/wallets/walletConnectors/chunk-OXWTS7HX.js +98 -0
  73. package/dist/wallets/walletConnectors/{chunk-P4JLZ42R.js → chunk-P4C7ZHIS.js} +1 -1
  74. package/dist/wallets/walletConnectors/{chunk-H76YCX2M.js → chunk-PILSRRPJ.js} +1 -1
  75. package/dist/wallets/walletConnectors/chunk-PJRUHFBT.js +71 -0
  76. package/dist/wallets/walletConnectors/{chunk-RTW6PVQI.js → chunk-PQSJXOGA.js} +4 -4
  77. package/dist/wallets/walletConnectors/{chunk-V45EXW7A.js → chunk-QGQISKXF.js} +1 -1
  78. package/dist/wallets/walletConnectors/{chunk-4WOV4ITL.js → chunk-QS2J6MWB.js} +1 -1
  79. package/dist/wallets/walletConnectors/{chunk-VWZEDVW6.js → chunk-QUFNIKMV.js} +4 -4
  80. package/dist/wallets/walletConnectors/{chunk-H273OTQA.js → chunk-R2GYJ376.js} +1 -1
  81. package/dist/wallets/walletConnectors/{chunk-Z2HIQYVN.js → chunk-R5GNFRXW.js} +1 -1
  82. package/dist/wallets/walletConnectors/chunk-S2IWMXKX.js +94 -0
  83. package/dist/wallets/walletConnectors/{chunk-FLY7F4XA.js → chunk-SJWHYD45.js} +1 -1
  84. package/dist/wallets/walletConnectors/{chunk-OKWOB3DN.js → chunk-TKXMLZXG.js} +4 -4
  85. package/dist/wallets/walletConnectors/chunk-TUK3HNKY.js +182 -0
  86. package/dist/wallets/walletConnectors/chunk-UWU574XS.js +95 -0
  87. package/dist/wallets/walletConnectors/chunk-WH7S23VZ.js +73 -0
  88. package/dist/wallets/walletConnectors/{chunk-ZBAQFL6G.js → chunk-WS4EM7AZ.js} +1 -1
  89. package/dist/wallets/walletConnectors/{chunk-SYELB4QO.js → chunk-XB2GFXBL.js} +4 -4
  90. package/dist/wallets/walletConnectors/{chunk-ZOL6ZMTJ.js → chunk-XEZPRJPV.js} +1 -1
  91. package/dist/wallets/walletConnectors/chunk-XUXFYTCV.js +96 -0
  92. package/dist/wallets/walletConnectors/{chunk-DPXMP5KS.js → chunk-Z5QFIFDP.js} +1 -1
  93. package/dist/wallets/walletConnectors/{chunk-CUKVUCIP.js → chunk-ZBQT5PV6.js} +4 -4
  94. package/dist/wallets/walletConnectors/{chunk-PWYTDYBE.js → chunk-ZCSUP7CX.js} +1 -1
  95. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  97. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -1
  98. package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.js +1 -2
  99. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/desigWallet/desigWallet.js +2 -2
  102. package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  104. package/dist/wallets/walletConnectors/frameWallet/frameWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/index.js +78 -78
  108. package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/mewWallet/mewWallet.js +2 -2
  111. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  112. package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.js +2 -2
  113. package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.js +2 -2
  114. package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.js +2 -2
  115. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  116. package/dist/wallets/walletConnectors/ramperWallet/ramperWallet.js +2 -2
  117. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  118. package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.js +2 -2
  119. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  120. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  121. package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.js +2 -2
  122. package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.js +2 -2
  123. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  124. package/dist/wallets/walletConnectors/tokenaryWallet/tokenaryWallet.js +2 -2
  125. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  126. package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.js +2 -2
  127. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  128. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  129. package/package.json +4 -4
  130. package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +0 -98
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  en_US_default
4
4
  } from "./chunk-SW6GAS7K.js";
5
- import {
6
- lightTheme
7
- } from "./chunk-UDJBGTFV.js";
8
5
  import {
9
6
  darkTheme
10
7
  } from "./chunk-RRG76BJM.js";
8
+ import {
9
+ lightTheme
10
+ } from "./chunk-UDJBGTFV.js";
11
11
  import "./chunk-FECCKVZV.js";
12
12
 
13
13
  // src/components/ConnectButton/ConnectButton.tsx
@@ -16357,10 +16357,11 @@ function getWalletConnectConnector({
16357
16357
  import { createConnector as createConnector2 } from "wagmi";
16358
16358
  import { injected } from "wagmi/connectors";
16359
16359
  function getExplicitInjectedProvider(flag) {
16360
- if (typeof window === "undefined" || typeof window.ethereum === "undefined")
16360
+ const _window = typeof window !== "undefined" ? window : void 0;
16361
+ if (typeof _window === "undefined" || typeof _window.ethereum === "undefined")
16361
16362
  return;
16362
- const providers = window.ethereum.providers;
16363
- return providers ? providers.find((provider) => provider[flag]) : window.ethereum[flag] ? window.ethereum : void 0;
16363
+ const providers = _window.ethereum.providers;
16364
+ return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
16364
16365
  }
16365
16366
  function getWindowProviderNamespace(namespace) {
16366
16367
  const providerSearch = (provider, namespace2) => {
@@ -16390,14 +16391,15 @@ function getInjectedProvider({
16390
16391
  namespace
16391
16392
  }) {
16392
16393
  var _a;
16393
- if (typeof window === "undefined")
16394
+ const _window = typeof window !== "undefined" ? window : void 0;
16395
+ if (typeof _window === "undefined")
16394
16396
  return;
16395
16397
  if (namespace) {
16396
16398
  const windowProvider = getWindowProviderNamespace(namespace);
16397
16399
  if (windowProvider)
16398
16400
  return windowProvider;
16399
16401
  }
16400
- const providers = (_a = window.ethereum) == null ? void 0 : _a.providers;
16402
+ const providers = (_a = _window.ethereum) == null ? void 0 : _a.providers;
16401
16403
  if (flag) {
16402
16404
  const provider = getExplicitInjectedProvider(flag);
16403
16405
  if (provider)
@@ -16405,7 +16407,7 @@ function getInjectedProvider({
16405
16407
  }
16406
16408
  if (typeof providers !== "undefined" && providers.length > 0)
16407
16409
  return providers[0];
16408
- return window.ethereum;
16410
+ return _window.ethereum;
16409
16411
  }
16410
16412
  function createInjectedConnector(provider) {
16411
16413
  return (walletDetails) => {
@@ -16433,14 +16435,10 @@ function getInjectedConnector({
16433
16435
 
16434
16436
  // src/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.ts
16435
16437
  import { createConnector as createConnector3 } from "wagmi";
16436
- import { coinbaseWallet as coinbaseWagmiWallet } from "wagmi/connectors";
16437
- var coinbaseWallet = ({
16438
- appName,
16439
- appIcon
16440
- }) => {
16441
- const isCoinbaseWalletInjected = hasInjectedProvider({
16442
- flag: "isCoinbaseWallet"
16443
- });
16438
+ import {
16439
+ coinbaseWallet as coinbaseConnector
16440
+ } from "wagmi/connectors";
16441
+ var coinbaseWallet = ({ appName, appIcon }) => {
16444
16442
  const getUri = (uri) => uri;
16445
16443
  const ios = isIOS();
16446
16444
  return {
@@ -16451,7 +16449,7 @@ var coinbaseWallet = ({
16451
16449
  iconUrl: async () => (await import("./coinbaseWallet-2OUR5TUP.js")).default,
16452
16450
  iconAccent: "#2c5ff6",
16453
16451
  iconBackground: "#2c5ff6",
16454
- installed: isCoinbaseWalletInjected || void 0,
16452
+ installed: true,
16455
16453
  downloadUrls: {
16456
16454
  android: "https://play.google.com/store/apps/details?id=org.toshi",
16457
16455
  ios: "https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",
@@ -16507,14 +16505,17 @@ var coinbaseWallet = ({
16507
16505
  }
16508
16506
  }
16509
16507
  },
16510
- createConnector: (walletDetails) => createConnector3((config) => ({
16511
- ...coinbaseWagmiWallet({
16508
+ createConnector: (walletDetails) => {
16509
+ const connector = coinbaseConnector({
16512
16510
  appName,
16513
16511
  appLogoUrl: appIcon,
16514
- headlessMode: true
16515
- })(config),
16516
- ...walletDetails
16517
- }))
16512
+ preference: coinbaseWallet.preference
16513
+ });
16514
+ return createConnector3((config) => ({
16515
+ ...connector(config),
16516
+ ...walletDetails
16517
+ }));
16518
+ }
16518
16519
  };
16519
16520
  };
16520
16521
 
@@ -16560,6 +16561,8 @@ function isMetaMask(ethereum) {
16560
16561
  return false;
16561
16562
  if (ethereum.isMathWallet)
16562
16563
  return false;
16564
+ if (ethereum.isNestWallet)
16565
+ return false;
16563
16566
  if (ethereum.isOkxWallet || ethereum.isOKExWallet)
16564
16567
  return false;
16565
16568
  if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
@@ -16675,7 +16678,9 @@ var metaMaskWallet = ({
16675
16678
  projectId,
16676
16679
  walletConnectParameters
16677
16680
  }) : getInjectedConnector({
16678
- target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(isMetaMask)) != null ? _c : window.ethereum : void 0
16681
+ target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
16682
+ isMetaMask
16683
+ )) != null ? _c : window.ethereum : void 0
16679
16684
  })
16680
16685
  };
16681
16686
  };
@@ -16987,7 +16992,7 @@ function setFunkitConnectVersion({ version }) {
16987
16992
  localStorage.setItem(storageKey6, version);
16988
16993
  }
16989
16994
  function getCurrentSdkVersion() {
16990
- return "1.1.6";
16995
+ return "1.2.0";
16991
16996
  }
16992
16997
  function useFingerprint() {
16993
16998
  const fingerprint = useCallback33(() => {
@@ -0,0 +1,37 @@
1
+ import { type EIP1193Provider } from 'viem';
2
+ /** Combines members of an intersection into a readable type. */
3
+ export type Evaluate<type> = {
4
+ [key in keyof type]: type[key];
5
+ } & unknown;
6
+ /** Removes `readonly` from all properties of an object. */
7
+ export type Mutable<type extends object> = {
8
+ -readonly [key in keyof type]: type[key];
9
+ };
10
+ /** Strict version of built-in Omit type */
11
+ export type Omit<type, keys extends keyof type> = Pick<type, Exclude<keyof type, keys>>;
12
+ export type WalletProviderFlags = 'isApexWallet' | 'isAvalanche' | 'isBackpack' | 'isBifrost' | 'isBitKeep' | 'isBitski' | 'isBlockWallet' | 'isBraveWallet' | 'isCoinbaseWallet' | 'isDawn' | 'isEnkrypt' | 'isExodus' | 'isFrame' | 'isFrontier' | 'isGamestop' | 'isHyperPay' | 'isImToken' | 'isKuCoinWallet' | 'isMathWallet' | 'isMetaMask' | 'isNestWallet' | 'isOkxWallet' | 'isOKExWallet' | 'isOneInchAndroidWallet' | 'isOneInchIOSWallet' | 'isOpera' | 'isPhantom' | 'isPortal' | 'isRabby' | 'isRainbow' | 'isStatus' | 'isTally' | 'isTokenPocket' | 'isTokenary' | 'isTrust' | 'isTrustWallet' | 'isXDEFI' | 'isZerion' | 'isTalisman' | 'isZeal' | 'isCoin98' | 'isMEWwallet' | 'isSafeheron' | 'isSafePal';
13
+ export type WalletProvider = Evaluate<EIP1193Provider & {
14
+ [key in WalletProviderFlags]?: true | undefined;
15
+ } & {
16
+ providers?: any[] | undefined;
17
+ /** Only exists in MetaMask as of 2022/04/03 */
18
+ _events?: {
19
+ connect?: (() => void) | undefined;
20
+ } | undefined;
21
+ /** Only exists in MetaMask as of 2022/04/03 */
22
+ _state?: {
23
+ accounts?: string[];
24
+ initialized?: boolean;
25
+ isConnected?: boolean;
26
+ isPermanentlyDisconnected?: boolean;
27
+ isUnlocked?: boolean;
28
+ } | undefined;
29
+ }>;
30
+ export type WindowProvider = {
31
+ coinbaseWalletExtension?: WalletProvider | undefined;
32
+ ethereum?: WalletProvider | undefined;
33
+ phantom?: {
34
+ ethereum: WalletProvider;
35
+ } | undefined;
36
+ providers?: any[] | undefined;
37
+ };
@@ -1,10 +1,11 @@
1
+ import { WalletProviderFlags } from '../types/utils';
1
2
  import { CreateConnector } from './Wallet';
2
3
  export declare function hasInjectedProvider({ flag, namespace, }: {
3
- flag?: string;
4
+ flag?: WalletProviderFlags;
4
5
  namespace?: string;
5
6
  }): boolean;
6
7
  export declare function getInjectedConnector({ flag, namespace, target, }: {
7
- flag?: string;
8
+ flag?: WalletProviderFlags;
8
9
  namespace?: string;
9
10
  target?: any;
10
11
  }): CreateConnector;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-6LTLPR2Q.js";
4
+ } from "../chunk-PJRUHFBT.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-F3VCNZXS.js";
6
7
  import "../chunk-ZDU3JFGR.js";
7
- import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bifrostWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-ZNXQ4V6G.js";
4
+ } from "../chunk-3R3RNCGE.js";
5
5
  import "../chunk-ZOLACFTK.js";
6
+ import "../chunk-F3VCNZXS.js";
6
7
  import "../chunk-ZDU3JFGR.js";
7
- import "../chunk-QII6PY2D.js";
8
8
  export {
9
9
  bitgetWallet
10
10
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  bitskiWallet
4
- } from "../chunk-C67TQJ6W.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-IMZRCMZR.js";
5
+ import "../chunk-F3VCNZXS.js";
6
6
  export {
7
7
  bitskiWallet
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  braveWallet
4
- } from "../chunk-ABYQAXUX.js";
5
- import "../chunk-QII6PY2D.js";
4
+ } from "../chunk-KJWMF6GZ.js";
5
+ import "../chunk-F3VCNZXS.js";
6
6
  export {
7
7
  braveWallet
8
8
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bybitWallet
4
- } from "../chunk-ZUAHWUEL.js";
4
+ } from "../chunk-BCXBFAL4.js";
5
+ import "../chunk-F3VCNZXS.js";
5
6
  import "../chunk-ZDU3JFGR.js";
6
- import "../chunk-QII6PY2D.js";
7
7
  export {
8
8
  bybitWallet
9
9
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-ZDU3JFGR.js";
9
9
 
10
10
  // src/wallets/walletConnectors/clvWallet/clvWallet.ts
11
11
  var clvWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid,
8
8
  isIOS
@@ -53,6 +53,8 @@ function isMetaMask(ethereum) {
53
53
  return false;
54
54
  if (ethereum.isMathWallet)
55
55
  return false;
56
+ if (ethereum.isNestWallet)
57
+ return false;
56
58
  if (ethereum.isOkxWallet || ethereum.isOKExWallet)
57
59
  return false;
58
60
  if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
@@ -168,7 +170,9 @@ var metaMaskWallet = ({
168
170
  projectId,
169
171
  walletConnectParameters
170
172
  }) : getInjectedConnector({
171
- target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(isMetaMask)) != null ? _c : window.ethereum : void 0
173
+ target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
174
+ isMetaMask
175
+ )) != null ? _c : window.ethereum : void 0
172
176
  })
173
177
  };
174
178
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
2
  import {
7
3
  getWalletConnectConnector
8
4
  } from "./chunk-ZDU3JFGR.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-F3VCNZXS.js";
9
9
 
10
10
  // src/wallets/walletConnectors/coreWallet/coreWallet.ts
11
11
  var coreWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid,
8
8
  isIOS
@@ -3,13 +3,13 @@ import {
3
3
  isAndroid,
4
4
  isIOS
5
5
  } from "./chunk-ZOLACFTK.js";
6
- import {
7
- getWalletConnectConnector
8
- } from "./chunk-ZDU3JFGR.js";
9
6
  import {
10
7
  getInjectedConnector,
11
8
  hasInjectedProvider
12
- } from "./chunk-QII6PY2D.js";
9
+ } from "./chunk-F3VCNZXS.js";
10
+ import {
11
+ getWalletConnectConnector
12
+ } from "./chunk-ZDU3JFGR.js";
13
13
 
14
14
  // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
15
15
  function isMetaMask(ethereum) {
@@ -53,6 +53,8 @@ function isMetaMask(ethereum) {
53
53
  return false;
54
54
  if (ethereum.isMathWallet)
55
55
  return false;
56
+ if (ethereum.isNestWallet)
57
+ return false;
56
58
  if (ethereum.isOkxWallet || ethereum.isOKExWallet)
57
59
  return false;
58
60
  if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet)
@@ -168,7 +170,9 @@ var metaMaskWallet = ({
168
170
  projectId,
169
171
  walletConnectParameters
170
172
  }) : getInjectedConnector({
171
- target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(isMetaMask)) != null ? _c : window.ethereum : void 0
173
+ target: typeof window !== "undefined" ? (_c = (_b = (_a = window.ethereum) == null ? void 0 : _a.providers) == null ? void 0 : _b.find(
174
+ isMetaMask
175
+ )) != null ? _c : window.ethereum : void 0
172
176
  })
173
177
  };
174
178
  };
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getInjectedConnector,
7
7
  hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
8
+ } from "./chunk-F3VCNZXS.js";
9
9
 
10
10
  // src/wallets/walletConnectors/coin98Wallet/coin98Wallet.ts
11
11
  var coin98Wallet = ({
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  isAndroid
4
4
  } from "./chunk-ZOLACFTK.js";
5
- import {
6
- getWalletConnectConnector
7
- } from "./chunk-ZDU3JFGR.js";
8
5
  import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
8
+ } from "./chunk-F3VCNZXS.js";
9
+ import {
10
+ getWalletConnectConnector
11
+ } from "./chunk-ZDU3JFGR.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
14
14
  var bitgetWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
 
7
7
  // src/wallets/walletConnectors/phantomWallet/phantomWallet.ts
8
8
  var phantomWallet = () => {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  getWalletConnectConnector
8
8
  } from "./chunk-ZDU3JFGR.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
 
7
7
  // src/wallets/walletConnectors/rabbyWallet/rabbyWallet.ts
8
8
  var rabbyWallet = () => ({
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  getInjectedConnector,
10
10
  hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
11
+ } from "./chunk-F3VCNZXS.js";
12
12
 
13
13
  // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
14
  var okxWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid
8
8
  } from "./chunk-ZOLACFTK.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid
8
8
  } from "./chunk-ZOLACFTK.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  getInjectedConnector,
10
10
  hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
11
+ } from "./chunk-F3VCNZXS.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
14
  var bifrostWallet = ({
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getWalletConnectConnector
4
- } from "./chunk-ZDU3JFGR.js";
5
2
  import {
6
3
  getInjectedConnector,
7
4
  hasInjectedProvider
8
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
+ import {
7
+ getWalletConnectConnector
8
+ } from "./chunk-ZDU3JFGR.js";
9
9
 
10
10
  // src/wallets/walletConnectors/bybitWallet/bybitWallet.ts
11
11
  var bybitWallet = ({
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
2
  import {
7
3
  isMobile
8
4
  } from "./chunk-ZOLACFTK.js";
9
5
  import {
10
6
  getWalletConnectConnector
11
7
  } from "./chunk-ZDU3JFGR.js";
8
+ import {
9
+ getInjectedConnector,
10
+ hasInjectedProvider
11
+ } from "./chunk-F3VCNZXS.js";
12
12
 
13
13
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
14
14
  var trustWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid
8
8
  } from "./chunk-ZOLACFTK.js";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import {
3
- getInjectedConnector,
4
- hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
6
2
  import {
7
3
  getWalletConnectConnector
8
4
  } from "./chunk-ZDU3JFGR.js";
5
+ import {
6
+ getInjectedConnector,
7
+ hasInjectedProvider
8
+ } from "./chunk-F3VCNZXS.js";
9
9
 
10
10
  // src/wallets/walletConnectors/roninWallet/roninWallet.ts
11
11
  var roninWallet = ({
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  getInjectedConnector,
11
11
  hasInjectedProvider
12
- } from "./chunk-QII6PY2D.js";
12
+ } from "./chunk-F3VCNZXS.js";
13
13
 
14
14
  // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
15
  var rainbowWallet = ({
@@ -3,10 +3,11 @@
3
3
  import { createConnector } from "wagmi";
4
4
  import { injected } from "wagmi/connectors";
5
5
  function getExplicitInjectedProvider(flag) {
6
- if (typeof window === "undefined" || typeof window.ethereum === "undefined")
6
+ const _window = typeof window !== "undefined" ? window : void 0;
7
+ if (typeof _window === "undefined" || typeof _window.ethereum === "undefined")
7
8
  return;
8
- const providers = window.ethereum.providers;
9
- return providers ? providers.find((provider) => provider[flag]) : window.ethereum[flag] ? window.ethereum : void 0;
9
+ const providers = _window.ethereum.providers;
10
+ return providers ? providers.find((provider) => provider[flag]) : _window.ethereum[flag] ? _window.ethereum : void 0;
10
11
  }
11
12
  function getWindowProviderNamespace(namespace) {
12
13
  const providerSearch = (provider, namespace2) => {
@@ -36,14 +37,15 @@ function getInjectedProvider({
36
37
  namespace
37
38
  }) {
38
39
  var _a;
39
- if (typeof window === "undefined")
40
+ const _window = typeof window !== "undefined" ? window : void 0;
41
+ if (typeof _window === "undefined")
40
42
  return;
41
43
  if (namespace) {
42
44
  const windowProvider = getWindowProviderNamespace(namespace);
43
45
  if (windowProvider)
44
46
  return windowProvider;
45
47
  }
46
- const providers = (_a = window.ethereum) == null ? void 0 : _a.providers;
48
+ const providers = (_a = _window.ethereum) == null ? void 0 : _a.providers;
47
49
  if (flag) {
48
50
  const provider = getExplicitInjectedProvider(flag);
49
51
  if (provider)
@@ -51,7 +53,7 @@ function getInjectedProvider({
51
53
  }
52
54
  if (typeof providers !== "undefined" && providers.length > 0)
53
55
  return providers[0];
54
- return window.ethereum;
56
+ return _window.ethereum;
55
57
  }
56
58
  function createInjectedConnector(provider) {
57
59
  return (walletDetails) => {
@@ -1,14 +1,14 @@
1
1
  "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-F3VCNZXS.js";
2
6
  import {
3
7
  isMobile
4
8
  } from "./chunk-ZOLACFTK.js";
5
9
  import {
6
10
  getWalletConnectConnector
7
11
  } from "./chunk-ZDU3JFGR.js";
8
- import {
9
- getInjectedConnector,
10
- hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
12
12
 
13
13
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
14
14
  var trustWallet = ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
  import {
7
7
  isAndroid
8
8
  } from "./chunk-ZOLACFTK.js";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
 
7
7
  // src/wallets/walletConnectors/safeheronWallet/safeheronWallet.ts
8
8
  var safeheronWallet = () => ({
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  getInjectedConnector,
10
10
  hasInjectedProvider
11
- } from "./chunk-QII6PY2D.js";
11
+ } from "./chunk-F3VCNZXS.js";
12
12
 
13
13
  // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
14
14
  var zerionWallet = ({
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  getInjectedConnector
4
- } from "./chunk-QII6PY2D.js";
4
+ } from "./chunk-F3VCNZXS.js";
5
5
 
6
6
  // src/wallets/walletConnectors/injectedWallet/injectedWallet.ts
7
7
  var injectedWallet = () => ({
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getInjectedConnector,
4
4
  hasInjectedProvider
5
- } from "./chunk-QII6PY2D.js";
5
+ } from "./chunk-F3VCNZXS.js";
6
6
 
7
7
  // src/wallets/walletConnectors/frameWallet/frameWallet.ts
8
8
  var frameWallet = () => ({