@wagmi/connectors 0.3.2-cjs → 0.3.3-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.
- package/dist/{chunk-CYQSS77O.js → chunk-RAYRYMYO.js} +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/injected.d.ts +1 -1
- package/dist/injected.js +2 -2
- package/dist/metaMask.d.ts +1 -1
- package/dist/metaMask.js +2 -2
- package/dist/{types-47f9e468.d.ts → types-372079e0.d.ts} +2 -0
- package/dist/walletConnectLegacy.js +1 -1
- package/package.json +2 -2
|
@@ -29,6 +29,8 @@ function getInjectedName(ethereum) {
|
|
|
29
29
|
return "Apex Wallet";
|
|
30
30
|
if (provider.isAvalanche)
|
|
31
31
|
return "Core Wallet";
|
|
32
|
+
if (provider.isBifrost)
|
|
33
|
+
return "Bifrost Wallet";
|
|
32
34
|
if (provider.isBitKeep)
|
|
33
35
|
return "BitKeep";
|
|
34
36
|
if (provider.isBitski)
|
|
@@ -51,10 +53,14 @@ function getInjectedName(ethereum) {
|
|
|
51
53
|
return "1inch Wallet";
|
|
52
54
|
if (provider.isOpera)
|
|
53
55
|
return "Opera";
|
|
56
|
+
if (provider.isPhantom)
|
|
57
|
+
return "Phantom";
|
|
54
58
|
if (provider.isPortal)
|
|
55
59
|
return "Ripio Portal";
|
|
56
60
|
if (provider.isRainbow)
|
|
57
61
|
return "Rainbow";
|
|
62
|
+
if (provider.isStatus)
|
|
63
|
+
return "Status";
|
|
58
64
|
if (provider.isTally)
|
|
59
65
|
return "Tally";
|
|
60
66
|
if (provider.isTokenPocket)
|
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-
|
|
2
|
+
export { E as Ethereum } from './types-372079e0.js';
|
|
3
3
|
import '@wagmi/core';
|
|
4
4
|
import '@wagmi/core/chains';
|
|
5
5
|
import 'eventemitter3';
|
package/dist/injected.d.ts
CHANGED
|
@@ -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-
|
|
5
|
+
import { E as Ethereum } from './types-372079e0.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
|
|
3
|
+
var _chunkRAYRYMYOjs = require('./chunk-RAYRYMYO.js');
|
|
4
4
|
require('./chunk-5NCTPR6C.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.InjectedConnector =
|
|
7
|
+
exports.InjectedConnector = _chunkRAYRYMYOjs.InjectedConnector;
|
package/dist/metaMask.d.ts
CHANGED
|
@@ -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-
|
|
3
|
+
import { E as Ethereum } from './types-372079e0.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
|
|
3
|
+
var _chunkRAYRYMYOjs = require('./chunk-RAYRYMYO.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
|
|
20
|
+
var MetaMaskConnector = class extends _chunkRAYRYMYOjs.InjectedConnector {
|
|
21
21
|
constructor({
|
|
22
22
|
chains,
|
|
23
23
|
options: options_
|
|
@@ -43,6 +43,7 @@ type WatchAssetParams = {
|
|
|
43
43
|
type InjectedProviderFlags = {
|
|
44
44
|
isApexWallet?: true;
|
|
45
45
|
isAvalanche?: true;
|
|
46
|
+
isBifrost?: true;
|
|
46
47
|
isBitKeep?: true;
|
|
47
48
|
isBitski?: true;
|
|
48
49
|
isBraveWallet?: true;
|
|
@@ -59,6 +60,7 @@ type InjectedProviderFlags = {
|
|
|
59
60
|
isPhantom?: true;
|
|
60
61
|
isPortal?: true;
|
|
61
62
|
isRainbow?: true;
|
|
63
|
+
isStatus?: true;
|
|
62
64
|
isTally?: true;
|
|
63
65
|
isTokenPocket?: true;
|
|
64
66
|
isTokenary?: true;
|
|
@@ -16,7 +16,7 @@ var _chunk5NCTPR6Cjs = require('./chunk-5NCTPR6C.js');
|
|
|
16
16
|
var _core = require('@wagmi/core');
|
|
17
17
|
var _ethers = require('ethers');
|
|
18
18
|
var _utilsjs = require('ethers/lib/utils.js');
|
|
19
|
-
var switchChainAllowedRegex = /(imtoken|metamask|rainbow|trust wallet)/i;
|
|
19
|
+
var switchChainAllowedRegex = /(imtoken|metamask|rainbow|trust wallet|uniswap wallet)/i;
|
|
20
20
|
var _provider, _switchChain, switchChain_fn;
|
|
21
21
|
var WalletConnectLegacyConnector = class extends _chunk5NCTPR6Cjs.Connector {
|
|
22
22
|
constructor(config) {
|
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.
|
|
5
|
+
"version": "0.3.3-cjs",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@wagmi/core": ">=0.9.x",
|
|
8
8
|
"ethers": ">=5.5.1 <6",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@coinbase/wallet-sdk": "^3.5.4",
|
|
21
21
|
"@ledgerhq/connect-kit-loader": "^1.0.1",
|
|
22
|
-
"@walletconnect/ethereum-provider": "^2.4.
|
|
22
|
+
"@walletconnect/ethereum-provider": "^2.4.8",
|
|
23
23
|
"@walletconnect/legacy-provider": "^2.0.0",
|
|
24
24
|
"@safe-global/safe-apps-provider": "^0.15.2",
|
|
25
25
|
"@safe-global/safe-apps-sdk": "^7.9.0",
|