@wagmi/connectors 2.2.0 → 2.3.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.
- package/dist/{base-1553d802.d.ts → base-0473abd3.d.ts} +1 -0
- package/dist/{chunk-O5Y7FFC6.js → chunk-4BSCIAHY.js} +2 -0
- package/dist/coinbaseWallet.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/injected.d.ts +1 -1
- package/dist/injected.js +1 -1
- package/dist/ledger.d.ts +1 -1
- package/dist/metaMask.d.ts +1 -1
- package/dist/metaMask.js +1 -1
- package/dist/mock/index.d.ts +1 -1
- package/dist/safe.d.ts +1 -1
- package/dist/walletConnect.d.ts +1 -1
- package/dist/walletConnect.js +8 -2
- package/dist/walletConnectLegacy.d.ts +1 -1
- package/package.json +5 -5
|
@@ -99,6 +99,8 @@ function getInjectedName(ethereum) {
|
|
|
99
99
|
return "Tokenary";
|
|
100
100
|
if (provider.isTrust || provider.isTrustWallet)
|
|
101
101
|
return "Trust Wallet";
|
|
102
|
+
if (provider.isTTWallet)
|
|
103
|
+
return "TTWallet";
|
|
102
104
|
if (provider.isXDEFI)
|
|
103
105
|
return "XDEFI Wallet";
|
|
104
106
|
if (provider.isZerion)
|
package/dist/coinbaseWallet.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
|
|
3
3
|
import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
|
|
4
4
|
import { Chain } from '@wagmi/chains';
|
|
5
|
-
import { C as Connector } from './base-
|
|
5
|
+
import { C as Connector } from './base-0473abd3.js';
|
|
6
6
|
import 'eventemitter3';
|
|
7
7
|
|
|
8
8
|
type Options = Omit<CoinbaseWalletSDKOptions, 'reloadOnDisconnect'> & {
|
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-
|
|
1
|
+
export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-0473abd3.js';
|
|
2
2
|
import '@wagmi/chains';
|
|
3
3
|
import 'eventemitter3';
|
|
4
4
|
import 'viem';
|
package/dist/injected.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Address } from 'viem';
|
|
3
3
|
import { Chain } from '@wagmi/chains';
|
|
4
|
-
import { W as WindowProvider, C as Connector } from './base-
|
|
4
|
+
import { W as WindowProvider, C as Connector } from './base-0473abd3.js';
|
|
5
5
|
import 'eventemitter3';
|
|
6
6
|
|
|
7
7
|
type InjectedConnectorOptions = {
|
package/dist/injected.js
CHANGED
package/dist/ledger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { EthereumProvider } from '@ledgerhq/connect-kit-loader';
|
|
3
3
|
import { Chain } from '@wagmi/chains';
|
|
4
|
-
import { C as Connector, a as ConnectorData } from './base-
|
|
4
|
+
import { C as Connector, a as ConnectorData } from './base-0473abd3.js';
|
|
5
5
|
import 'eventemitter3';
|
|
6
6
|
|
|
7
7
|
type LedgerConnectorOptions = {
|
package/dist/metaMask.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Chain } from '@wagmi/chains';
|
|
2
2
|
import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
|
|
3
|
-
import { W as WindowProvider } from './base-
|
|
3
|
+
import { W as WindowProvider } from './base-0473abd3.js';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import 'eventemitter3';
|
|
6
6
|
|
package/dist/metaMask.js
CHANGED
package/dist/mock/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Chain } from '@wagmi/chains';
|
|
3
|
-
import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-
|
|
3
|
+
import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-0473abd3.js';
|
|
4
4
|
import EventEmitter from 'eventemitter3';
|
|
5
5
|
|
|
6
6
|
type MockProviderOptions = {
|
package/dist/safe.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { SafeAppProvider } from '@safe-global/safe-apps-provider';
|
|
3
3
|
import { Opts } from '@safe-global/safe-apps-sdk';
|
|
4
4
|
import { Chain } from '@wagmi/chains';
|
|
5
|
-
import { C as Connector } from './base-
|
|
5
|
+
import { C as Connector } from './base-0473abd3.js';
|
|
6
6
|
import 'eventemitter3';
|
|
7
7
|
|
|
8
8
|
type SafeConnectorProvider = SafeAppProvider;
|
package/dist/walletConnect.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as viem from 'viem';
|
|
|
2
2
|
import { Chain } from '@wagmi/chains';
|
|
3
3
|
import WalletConnectProvider from '@walletconnect/ethereum-provider';
|
|
4
4
|
import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
|
|
5
|
-
import { C as Connector } from './base-
|
|
5
|
+
import { C as Connector } from './base-0473abd3.js';
|
|
6
6
|
import 'eventemitter3';
|
|
7
7
|
|
|
8
8
|
type WalletConnectOptions = {
|
package/dist/walletConnect.js
CHANGED
|
@@ -227,7 +227,12 @@ initProvider_fn = async function() {
|
|
|
227
227
|
} = await import("@walletconnect/ethereum-provider");
|
|
228
228
|
const [defaultChain, ...optionalChains] = this.chains.map(({ id }) => id);
|
|
229
229
|
if (defaultChain) {
|
|
230
|
-
const {
|
|
230
|
+
const {
|
|
231
|
+
projectId,
|
|
232
|
+
showQrModal = true,
|
|
233
|
+
qrModalOptions,
|
|
234
|
+
metadata
|
|
235
|
+
} = this.options;
|
|
231
236
|
__privateSet(this, _provider, await EthereumProvider.init({
|
|
232
237
|
showQrModal,
|
|
233
238
|
qrModalOptions,
|
|
@@ -241,7 +246,8 @@ initProvider_fn = async function() {
|
|
|
241
246
|
chain.id,
|
|
242
247
|
chain.rpcUrls.default.http[0]
|
|
243
248
|
])
|
|
244
|
-
)
|
|
249
|
+
),
|
|
250
|
+
metadata
|
|
245
251
|
}));
|
|
246
252
|
}
|
|
247
253
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
2
|
import { Chain } from '@wagmi/chains';
|
|
3
3
|
import WalletConnectProvider from '@walletconnect/legacy-provider';
|
|
4
|
-
import { C as Connector } from './base-
|
|
4
|
+
import { C as Connector } from './base-0473abd3.js';
|
|
5
5
|
import 'eventemitter3';
|
|
6
6
|
|
|
7
7
|
type WalletConnectOptions = ConstructorParameters<typeof WalletConnectProvider>[0];
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"name": "@wagmi/connectors",
|
|
3
3
|
"description": "A collection of connectors for wagmi",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.3.0",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@wagmi/chains": ">=1.
|
|
7
|
+
"@wagmi/chains": ">=1.2.0",
|
|
8
8
|
"typescript": ">=5.0.4",
|
|
9
9
|
"viem": ">=0.3.35"
|
|
10
10
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@coinbase/wallet-sdk": "^3.6.6",
|
|
21
21
|
"@ledgerhq/connect-kit-loader": "^1.0.1",
|
|
22
|
-
"@walletconnect/ethereum-provider": "2.8.
|
|
22
|
+
"@walletconnect/ethereum-provider": "2.8.1",
|
|
23
23
|
"@walletconnect/legacy-provider": "^2.0.0",
|
|
24
|
-
"@walletconnect/modal": "^2.4.
|
|
24
|
+
"@walletconnect/modal": "^2.4.6",
|
|
25
25
|
"@safe-global/safe-apps-provider": "^0.15.2",
|
|
26
26
|
"@safe-global/safe-apps-sdk": "^7.9.0",
|
|
27
27
|
"abitype": "0.8.7",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"viem": "^1.0.0",
|
|
32
|
-
"@wagmi/chains": "1.
|
|
32
|
+
"@wagmi/chains": "1.2.0"
|
|
33
33
|
},
|
|
34
34
|
"type": "module",
|
|
35
35
|
"main": "dist/index.js",
|