@wagmi/connectors 3.1.7-cjs → 3.1.8-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.
@@ -34,6 +34,7 @@ type InjectedProviderFlags = {
34
34
  isOKExWallet?: true;
35
35
  isOneInchAndroidWallet?: true;
36
36
  isOneInchIOSWallet?: true;
37
+ isOneKey?: true;
37
38
  isOpera?: true;
38
39
  isPhantom?: true;
39
40
  isPortal?: true;
@@ -84,6 +84,8 @@ function getInjectedName(ethereum) {
84
84
  return "OKX Wallet";
85
85
  if (provider.isOneInchIOSWallet || provider.isOneInchAndroidWallet)
86
86
  return "1inch Wallet";
87
+ if (provider.isOneKey)
88
+ return "OneKey Wallet";
87
89
  if (provider.isOpera)
88
90
  return "Opera";
89
91
  if (provider.isPhantom)
@@ -1,7 +1,7 @@
1
1
  import { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
2
2
  import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-e6cfa360.js';
4
+ import { C as Connector, c as WalletClient } from './base-2fe21778.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-e6cfa360.js';
1
+ export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-2fe21778.js';
2
2
  import 'eventemitter3';
3
3
  import 'viem';
4
4
  import 'viem/chains';
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
2
  import { Chain } from 'viem/chains';
3
- import { W as WindowProvider, C as Connector, c as WalletClient } from './base-e6cfa360.js';
3
+ import { W as WindowProvider, C as Connector, c as WalletClient } from './base-2fe21778.js';
4
4
  import 'eventemitter3';
5
5
 
6
6
  type InjectedConnectorOptions = {
package/dist/injected.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJTELPB65js = require('./chunk-JTELPB65.js');
3
+ var _chunkZJ3P53W7js = require('./chunk-ZJ3P53W7.js');
4
4
  require('./chunk-UGBGYVBH.js');
5
5
  require('./chunk-OQILYQDO.js');
6
6
  require('./chunk-W65LBPLT.js');
7
7
 
8
8
 
9
- exports.InjectedConnector = _chunkJTELPB65js.InjectedConnector;
9
+ exports.InjectedConnector = _chunkZJ3P53W7js.InjectedConnector;
package/dist/ledger.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EthereumProvider } from '@ledgerhq/connect-kit-loader';
2
2
  import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-e6cfa360.js';
4
+ import { C as Connector, c as WalletClient } from './base-2fe21778.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { Chain } from 'viem/chains';
2
2
  import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
3
- import { W as WindowProvider } from './base-e6cfa360.js';
3
+ import { W as WindowProvider } from './base-2fe21778.js';
4
4
  import 'viem';
5
5
  import 'eventemitter3';
6
6
 
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 _chunkJTELPB65js = require('./chunk-JTELPB65.js');
3
+ var _chunkZJ3P53W7js = require('./chunk-ZJ3P53W7.js');
4
4
 
5
5
 
6
6
  var _chunkUGBGYVBHjs = require('./chunk-UGBGYVBH.js');
@@ -18,7 +18,7 @@ var _chunkW65LBPLTjs = require('./chunk-W65LBPLT.js');
18
18
 
19
19
  var _viem = require('viem');
20
20
  var _UNSTABLE_shimOnConnectSelectAccount;
21
- var MetaMaskConnector = class extends _chunkJTELPB65js.InjectedConnector {
21
+ var MetaMaskConnector = class extends _chunkZJ3P53W7js.InjectedConnector {
22
22
  constructor({
23
23
  chains,
24
24
  options: options_
@@ -1,5 +1,5 @@
1
1
  import { Chain } from 'viem/chains';
2
- import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-e6cfa360.js';
2
+ import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-2fe21778.js';
3
3
  import EventEmitter from 'eventemitter3';
4
4
  import 'viem';
5
5
 
package/dist/safe.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SafeAppProvider } from '@safe-global/safe-apps-provider';
2
2
  import { Opts } from '@safe-global/safe-apps-sdk';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-e6cfa360.js';
4
+ import { C as Connector, c as WalletClient } from './base-2fe21778.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import WalletConnectProvider from '@walletconnect/ethereum-provider';
2
2
  import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-e6cfa360.js';
4
+ import { C as Connector, c as WalletClient } from './base-2fe21778.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import WalletConnectProvider from '@walletconnect/legacy-provider';
2
- import { C as Connector, c as WalletClient } from './base-e6cfa360.js';
2
+ import { C as Connector, c as WalletClient } from './base-2fe21778.js';
3
3
  import 'eventemitter3';
4
4
  import 'viem';
5
5
  import 'viem/chains';
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": "3.1.7-cjs",
5
+ "version": "3.1.8-cjs",
6
6
  "peerDependencies": {
7
7
  "typescript": ">=5.0.4",
8
8
  "viem": ">=0.3.35"