@wagmi/connectors 0.3.8-cjs → 0.3.9-cjs

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.
@@ -50,10 +50,16 @@ function getInjectedName(ethereum) {
50
50
  return "Frame";
51
51
  if (provider.isFrontier)
52
52
  return "Frontier Wallet";
53
+ if (provider.isGamestop)
54
+ return "GameStop Wallet";
55
+ if (provider.isHyperPay)
56
+ return "HyperPay Wallet";
53
57
  if (provider.isKuCoinWallet)
54
58
  return "KuCoin Wallet";
55
59
  if (provider.isMathWallet)
56
60
  return "MathWallet";
61
+ if (provider.isOkxWallet || provider.isOKExWallet)
62
+ return "OKX Wallet";
57
63
  if (provider.isOneInchIOSWallet || provider.isOneInchAndroidWallet)
58
64
  return "1inch Wallet";
59
65
  if (provider.isOpera)
@@ -74,14 +80,12 @@ function getInjectedName(ethereum) {
74
80
  return "Tokenary";
75
81
  if (provider.isTrust || provider.isTrustWallet)
76
82
  return "Trust Wallet";
77
- if (provider.isHyperPay)
78
- return "HyperPay Wallet";
79
- if (provider.isMetaMask)
80
- return "MetaMask";
81
83
  if (provider.isXDEFI)
82
84
  return "XDEFI Wallet";
83
- if (provider.isOkxWallet || provider.isOKExWallet)
84
- return "OKX Wallet";
85
+ if (provider.isZerion)
86
+ return "Zerion";
87
+ if (provider.isMetaMask)
88
+ return "MetaMask";
85
89
  };
86
90
  if (_optionalChain([ethereum, 'access', _ => _.providers, 'optionalAccess', _2 => _2.length])) {
87
91
  const nameSet = /* @__PURE__ */ new Set();
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as Connector, a as ConnectorData, b as ConnectorEvents } from './base-84a689bb.js';
2
- export { E as Ethereum } from './types-f66d11c6.js';
2
+ export { E as Ethereum } from './types-180a5bd0.js';
3
3
  import '@wagmi/core';
4
4
  import '@wagmi/core/chains';
5
5
  import 'eventemitter3';
@@ -2,7 +2,7 @@ import { Address } from '@wagmi/core';
2
2
  import { Chain } from '@wagmi/core/chains';
3
3
  import { providers } from 'ethers';
4
4
  import { C as Connector } from './base-84a689bb.js';
5
- import { E as Ethereum } from './types-f66d11c6.js';
5
+ import { E as Ethereum } from './types-180a5bd0.js';
6
6
  import 'eventemitter3';
7
7
  import 'abitype';
8
8
 
package/dist/injected.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkL7G4NI56js = require('./chunk-L7G4NI56.js');
3
+ var _chunkV2FVPXGHjs = require('./chunk-V2FVPXGH.js');
4
4
  require('./chunk-5NCTPR6C.js');
5
5
 
6
6
 
7
- exports.InjectedConnector = _chunkL7G4NI56js.InjectedConnector;
7
+ exports.InjectedConnector = _chunkV2FVPXGHjs.InjectedConnector;
@@ -1,6 +1,6 @@
1
1
  import { Chain } from '@wagmi/core/chains';
2
2
  import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
3
- import { E as Ethereum } from './types-f66d11c6.js';
3
+ import { E as Ethereum } from './types-180a5bd0.js';
4
4
  import '@wagmi/core';
5
5
  import 'ethers';
6
6
  import './base-84a689bb.js';
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkL7G4NI56js = require('./chunk-L7G4NI56.js');
3
+ var _chunkV2FVPXGHjs = require('./chunk-V2FVPXGH.js');
4
4
 
5
5
 
6
6
 
@@ -17,7 +17,7 @@ var _chunk5NCTPR6Cjs = require('./chunk-5NCTPR6C.js');
17
17
  var _core = require('@wagmi/core');
18
18
  var _utilsjs = require('ethers/lib/utils.js');
19
19
  var _UNSTABLE_shimOnConnectSelectAccount;
20
- var MetaMaskConnector = class extends _chunkL7G4NI56js.InjectedConnector {
20
+ var MetaMaskConnector = class extends _chunkV2FVPXGHjs.InjectedConnector {
21
21
  constructor({
22
22
  chains,
23
23
  options: options_
@@ -53,9 +53,13 @@ type InjectedProviderFlags = {
53
53
  isExodus?: true;
54
54
  isFrame?: true;
55
55
  isFrontier?: true;
56
+ isGamestop?: true;
57
+ isHyperPay?: true;
56
58
  isKuCoinWallet?: true;
57
59
  isMathWallet?: true;
58
60
  isMetaMask?: true;
61
+ isOkxWallet?: true;
62
+ isOKExWallet?: true;
59
63
  isOneInchAndroidWallet?: true;
60
64
  isOneInchIOSWallet?: true;
61
65
  isOpera?: true;
@@ -68,10 +72,8 @@ type InjectedProviderFlags = {
68
72
  isTokenary?: true;
69
73
  isTrust?: true;
70
74
  isTrustWallet?: true;
71
- isHyperPay?: true;
72
75
  isXDEFI?: true;
73
- isOkxWallet?: true;
74
- isOKExWallet?: true;
76
+ isZerion?: true;
75
77
  };
76
78
  type InjectedProviders = InjectedProviderFlags & {
77
79
  isMetaMask: true;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "0.3.8-cjs",
5
+ "version": "0.3.9-cjs",
6
6
  "peerDependencies": {
7
7
  "@wagmi/core": ">=0.9.x",
8
8
  "ethers": ">=5.5.1 <6",