@wagmi/connectors 4.0.0 → 4.0.1
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/README.md +13 -0
- package/dist/esm/coinbaseWallet.js +15 -16
- package/dist/esm/coinbaseWallet.js.map +1 -1
- package/dist/esm/exports/index.js +7 -0
- package/dist/esm/exports/index.js.map +1 -0
- package/dist/esm/exports/index.test-d.js.map +1 -0
- package/dist/esm/metaMask.js +264 -0
- package/dist/esm/metaMask.js.map +1 -0
- package/dist/esm/safe.js +19 -16
- package/dist/esm/safe.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/walletConnect.js +15 -16
- package/dist/esm/walletConnect.js.map +1 -1
- package/dist/types/coinbaseWallet.d.ts +3 -0
- package/dist/types/coinbaseWallet.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +7 -0
- package/dist/types/exports/index.d.ts.map +1 -0
- package/dist/types/exports/index.test-d.d.ts.map +1 -0
- package/dist/types/metaMask.d.ts +13 -0
- package/dist/types/metaMask.d.ts.map +1 -0
- package/dist/types/safe.d.ts +5 -2
- package/dist/types/safe.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/walletConnect.d.ts +3 -0
- package/dist/types/walletConnect.d.ts.map +1 -1
- package/package.json +21 -38
- package/src/coinbaseWallet.ts +16 -16
- package/src/exports/index.ts +22 -0
- package/src/metaMask.ts +333 -0
- package/src/safe.ts +26 -20
- package/src/version.ts +1 -1
- package/src/walletConnect.ts +15 -20
- package/dist/esm/index.js +0 -7
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.test-d.js.map +0 -1
- package/dist/esm/injected.js +0 -372
- package/dist/esm/injected.js.map +0 -1
- package/dist/esm/ledger.js +0 -162
- package/dist/esm/ledger.js.map +0 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.test-d.d.ts.map +0 -1
- package/dist/types/injected.d.ts +0 -381
- package/dist/types/injected.d.ts.map +0 -1
- package/dist/types/ledger.d.ts +0 -18
- package/dist/types/ledger.d.ts.map +0 -1
- package/src/index.ts +0 -17
- package/src/injected.ts +0 -527
- package/src/ledger.ts +0 -210
- /package/dist/esm/{index.test-d.js → exports/index.test-d.js} +0 -0
- /package/dist/types/{index.test-d.d.ts → exports/index.test-d.d.ts} +0 -0
package/dist/types/injected.d.ts
DELETED
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import type { Evaluate } from '@wagmi/core/internal';
|
|
2
|
-
import { type EIP1193Provider, type ProviderConnectInfo } from 'viem';
|
|
3
|
-
export type InjectedParameters = {
|
|
4
|
-
/**
|
|
5
|
-
* MetaMask and other injected providers do not support programmatic disconnect.
|
|
6
|
-
* This flag simulates the disconnect behavior by keeping track of connection status in storage. See [GitHub issue](https://github.com/MetaMask/metamask-extension/issues/10353) for more info.
|
|
7
|
-
* @default true
|
|
8
|
-
*/
|
|
9
|
-
shimDisconnect?: boolean | undefined;
|
|
10
|
-
unstable_shimAsyncInject?: boolean | number | undefined;
|
|
11
|
-
/**
|
|
12
|
-
* [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) Ethereum Provider to target
|
|
13
|
-
*/
|
|
14
|
-
wallet?: WalletId | (() => (WalletMap[WalletId] & {
|
|
15
|
-
id: string;
|
|
16
|
-
}) | undefined) | undefined;
|
|
17
|
-
};
|
|
18
|
-
export declare function injected(parameters?: InjectedParameters): import("@wagmi/core").CreateConnectorFn<{
|
|
19
|
-
on: <TEvent extends keyof import("viem").EIP1193EventMap>(event: TEvent, listener: import("viem").EIP1193EventMap[TEvent]) => void;
|
|
20
|
-
removeListener: <TEvent_1 extends keyof import("viem").EIP1193EventMap>(event: TEvent_1, listener: import("viem").EIP1193EventMap[TEvent_1]) => void;
|
|
21
|
-
request: import("viem").EIP1193RequestFn<[{
|
|
22
|
-
Method: "web3_clientVersion";
|
|
23
|
-
Parameters?: undefined;
|
|
24
|
-
ReturnType: string;
|
|
25
|
-
}, {
|
|
26
|
-
Method: "web3_sha3";
|
|
27
|
-
Parameters: [data: `0x${string}`];
|
|
28
|
-
ReturnType: string;
|
|
29
|
-
}, {
|
|
30
|
-
Method: "net_listening";
|
|
31
|
-
Parameters?: undefined;
|
|
32
|
-
ReturnType: boolean;
|
|
33
|
-
}, {
|
|
34
|
-
Method: "net_peerCount";
|
|
35
|
-
Parameters?: undefined;
|
|
36
|
-
ReturnType: `0x${string}`;
|
|
37
|
-
}, {
|
|
38
|
-
Method: "net_version";
|
|
39
|
-
Parameters?: undefined;
|
|
40
|
-
ReturnType: `0x${string}`;
|
|
41
|
-
}, {
|
|
42
|
-
Method: "eth_blockNumber";
|
|
43
|
-
Parameters?: undefined;
|
|
44
|
-
ReturnType: `0x${string}`;
|
|
45
|
-
}, {
|
|
46
|
-
Method: "eth_call";
|
|
47
|
-
Parameters: [transaction: Partial<import("viem").RpcTransactionRequest>] | [transaction: Partial<import("viem").RpcTransactionRequest>, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
48
|
-
ReturnType: `0x${string}`;
|
|
49
|
-
}, {
|
|
50
|
-
Method: "eth_chainId";
|
|
51
|
-
Parameters?: undefined;
|
|
52
|
-
ReturnType: `0x${string}`;
|
|
53
|
-
}, {
|
|
54
|
-
Method: "eth_coinbase";
|
|
55
|
-
Parameters?: undefined;
|
|
56
|
-
ReturnType: `0x${string}`;
|
|
57
|
-
}, {
|
|
58
|
-
Method: "eth_estimateGas";
|
|
59
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
60
|
-
ReturnType: `0x${string}`;
|
|
61
|
-
}, {
|
|
62
|
-
Method: "eth_feeHistory";
|
|
63
|
-
Parameters: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
|
|
64
|
-
ReturnType: import("viem").RpcFeeHistory;
|
|
65
|
-
}, {
|
|
66
|
-
Method: "eth_gasPrice";
|
|
67
|
-
Parameters?: undefined;
|
|
68
|
-
ReturnType: `0x${string}`;
|
|
69
|
-
}, {
|
|
70
|
-
Method: "eth_getBalance";
|
|
71
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
72
|
-
ReturnType: `0x${string}`;
|
|
73
|
-
}, {
|
|
74
|
-
Method: "eth_getBlockByHash";
|
|
75
|
-
Parameters: [hash: `0x${string}`, includeTransactionObjects: boolean];
|
|
76
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
77
|
-
}, {
|
|
78
|
-
Method: "eth_getBlockByNumber";
|
|
79
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
|
|
80
|
-
ReturnType: import("viem").RpcBlock | null;
|
|
81
|
-
}, {
|
|
82
|
-
Method: "eth_getBlockTransactionCountByHash";
|
|
83
|
-
Parameters: [hash: `0x${string}`];
|
|
84
|
-
ReturnType: `0x${string}`;
|
|
85
|
-
}, {
|
|
86
|
-
Method: "eth_getBlockTransactionCountByNumber";
|
|
87
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
88
|
-
ReturnType: `0x${string}`;
|
|
89
|
-
}, {
|
|
90
|
-
Method: "eth_getCode";
|
|
91
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
92
|
-
ReturnType: `0x${string}`;
|
|
93
|
-
}, {
|
|
94
|
-
Method: "eth_getFilterChanges";
|
|
95
|
-
Parameters: [filterId: `0x${string}`];
|
|
96
|
-
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
97
|
-
}, {
|
|
98
|
-
Method: "eth_getFilterLogs";
|
|
99
|
-
Parameters: [filterId: `0x${string}`];
|
|
100
|
-
ReturnType: import("viem").RpcLog[];
|
|
101
|
-
}, {
|
|
102
|
-
Method: "eth_getLogs";
|
|
103
|
-
Parameters: [{
|
|
104
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
105
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
106
|
-
} & ({
|
|
107
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
108
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
109
|
-
blockHash?: undefined;
|
|
110
|
-
} | {
|
|
111
|
-
fromBlock?: undefined;
|
|
112
|
-
toBlock?: undefined;
|
|
113
|
-
blockHash?: `0x${string}` | undefined;
|
|
114
|
-
})];
|
|
115
|
-
ReturnType: import("viem").RpcLog[];
|
|
116
|
-
}, {
|
|
117
|
-
Method: "eth_getStorageAt";
|
|
118
|
-
Parameters: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
119
|
-
ReturnType: `0x${string}`;
|
|
120
|
-
}, {
|
|
121
|
-
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
122
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
123
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
124
|
-
}, {
|
|
125
|
-
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
126
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
127
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
128
|
-
}, {
|
|
129
|
-
Method: "eth_getTransactionByHash";
|
|
130
|
-
Parameters: [hash: `0x${string}`];
|
|
131
|
-
ReturnType: import("viem").RpcTransaction | null;
|
|
132
|
-
}, {
|
|
133
|
-
Method: "eth_getTransactionCount";
|
|
134
|
-
Parameters: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
|
|
135
|
-
ReturnType: `0x${string}`;
|
|
136
|
-
}, {
|
|
137
|
-
Method: "eth_getTransactionReceipt";
|
|
138
|
-
Parameters: [hash: `0x${string}`];
|
|
139
|
-
ReturnType: import("viem").RpcTransactionReceipt | null;
|
|
140
|
-
}, {
|
|
141
|
-
Method: "eth_getUncleByBlockHashAndIndex";
|
|
142
|
-
Parameters: [hash: `0x${string}`, index: `0x${string}`];
|
|
143
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
144
|
-
}, {
|
|
145
|
-
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
146
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
|
|
147
|
-
ReturnType: import("viem").RpcUncle | null;
|
|
148
|
-
}, {
|
|
149
|
-
Method: "eth_getUncleCountByBlockHash";
|
|
150
|
-
Parameters: [hash: `0x${string}`];
|
|
151
|
-
ReturnType: `0x${string}`;
|
|
152
|
-
}, {
|
|
153
|
-
Method: "eth_getUncleCountByBlockNumber";
|
|
154
|
-
Parameters: [block: `0x${string}` | import("viem").BlockTag];
|
|
155
|
-
ReturnType: `0x${string}`;
|
|
156
|
-
}, {
|
|
157
|
-
Method: "eth_maxPriorityFeePerGas";
|
|
158
|
-
Parameters?: undefined;
|
|
159
|
-
ReturnType: `0x${string}`;
|
|
160
|
-
}, {
|
|
161
|
-
Method: "eth_newBlockFilter";
|
|
162
|
-
Parameters?: undefined;
|
|
163
|
-
ReturnType: `0x${string}`;
|
|
164
|
-
}, {
|
|
165
|
-
Method: "eth_newFilter";
|
|
166
|
-
Parameters: [filter: {
|
|
167
|
-
fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
168
|
-
toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
|
|
169
|
-
address?: `0x${string}` | `0x${string}`[] | undefined;
|
|
170
|
-
topics?: import("viem").LogTopic[] | undefined;
|
|
171
|
-
}];
|
|
172
|
-
ReturnType: `0x${string}`;
|
|
173
|
-
}, {
|
|
174
|
-
Method: "eth_newPendingTransactionFilter";
|
|
175
|
-
Parameters?: undefined;
|
|
176
|
-
ReturnType: `0x${string}`;
|
|
177
|
-
}, {
|
|
178
|
-
Method: "eth_protocolVersion";
|
|
179
|
-
Parameters?: undefined;
|
|
180
|
-
ReturnType: string;
|
|
181
|
-
}, {
|
|
182
|
-
Method: "eth_sendRawTransaction";
|
|
183
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
184
|
-
ReturnType: `0x${string}`;
|
|
185
|
-
}, {
|
|
186
|
-
Method: "eth_uninstallFilter";
|
|
187
|
-
Parameters: [filterId: `0x${string}`];
|
|
188
|
-
ReturnType: boolean;
|
|
189
|
-
}, {
|
|
190
|
-
Method: "eth_accounts";
|
|
191
|
-
Parameters?: undefined;
|
|
192
|
-
ReturnType: `0x${string}`[];
|
|
193
|
-
}, {
|
|
194
|
-
Method: "eth_chainId";
|
|
195
|
-
Parameters?: undefined;
|
|
196
|
-
ReturnType: `0x${string}`;
|
|
197
|
-
}, {
|
|
198
|
-
Method: "eth_estimateGas";
|
|
199
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest] | [transaction: import("viem").RpcTransactionRequest, block: `0x${string}` | import("viem").BlockTag];
|
|
200
|
-
ReturnType: `0x${string}`;
|
|
201
|
-
}, {
|
|
202
|
-
Method: "eth_requestAccounts";
|
|
203
|
-
Parameters?: undefined;
|
|
204
|
-
ReturnType: `0x${string}`[];
|
|
205
|
-
}, {
|
|
206
|
-
Method: "eth_sendTransaction";
|
|
207
|
-
Parameters: [transaction: import("viem").RpcTransactionRequest];
|
|
208
|
-
ReturnType: `0x${string}`;
|
|
209
|
-
}, {
|
|
210
|
-
Method: "eth_sendRawTransaction";
|
|
211
|
-
Parameters: [signedTransaction: `0x${string}`];
|
|
212
|
-
ReturnType: `0x${string}`;
|
|
213
|
-
}, {
|
|
214
|
-
Method: "eth_sign";
|
|
215
|
-
Parameters: [address: `0x${string}`, data: `0x${string}`];
|
|
216
|
-
ReturnType: `0x${string}`;
|
|
217
|
-
}, {
|
|
218
|
-
Method: "eth_signTransaction";
|
|
219
|
-
Parameters: [request: import("viem").RpcTransactionRequest];
|
|
220
|
-
ReturnType: `0x${string}`;
|
|
221
|
-
}, {
|
|
222
|
-
Method: "eth_signTypedData_v4";
|
|
223
|
-
Parameters: [address: `0x${string}`, message: string];
|
|
224
|
-
ReturnType: `0x${string}`;
|
|
225
|
-
}, {
|
|
226
|
-
Method: "eth_syncing";
|
|
227
|
-
Parameters?: undefined;
|
|
228
|
-
ReturnType: false | import("viem").NetworkSync;
|
|
229
|
-
}, {
|
|
230
|
-
Method: "personal_sign";
|
|
231
|
-
Parameters: [data: `0x${string}`, address: `0x${string}`];
|
|
232
|
-
ReturnType: `0x${string}`;
|
|
233
|
-
}, {
|
|
234
|
-
Method: "wallet_addEthereumChain";
|
|
235
|
-
Parameters: [chain: import("viem").AddEthereumChainParameter];
|
|
236
|
-
ReturnType: null;
|
|
237
|
-
}, {
|
|
238
|
-
Method: "wallet_getPermissions";
|
|
239
|
-
Parameters?: undefined;
|
|
240
|
-
ReturnType: import("viem").WalletPermission[];
|
|
241
|
-
}, {
|
|
242
|
-
Method: "wallet_requestPermissions";
|
|
243
|
-
Parameters: [permissions: {
|
|
244
|
-
eth_accounts: Record<string, any>;
|
|
245
|
-
}];
|
|
246
|
-
ReturnType: import("viem").WalletPermission[];
|
|
247
|
-
}, {
|
|
248
|
-
Method: "wallet_switchEthereumChain";
|
|
249
|
-
Parameters: [chain: {
|
|
250
|
-
chainId: string;
|
|
251
|
-
}];
|
|
252
|
-
ReturnType: null;
|
|
253
|
-
}, {
|
|
254
|
-
Method: "wallet_watchAsset";
|
|
255
|
-
Parameters: import("viem").WatchAssetParams;
|
|
256
|
-
ReturnType: boolean;
|
|
257
|
-
}]>;
|
|
258
|
-
isApexWallet?: true | undefined;
|
|
259
|
-
isAvalanche?: true | undefined;
|
|
260
|
-
isBackpack?: true | undefined;
|
|
261
|
-
isBifrost?: true | undefined;
|
|
262
|
-
isBitKeep?: true | undefined;
|
|
263
|
-
isBitski?: true | undefined;
|
|
264
|
-
isBlockWallet?: true | undefined;
|
|
265
|
-
isBraveWallet?: true | undefined;
|
|
266
|
-
isCoinbaseWallet?: true | undefined;
|
|
267
|
-
isDawn?: true | undefined;
|
|
268
|
-
isEnkrypt?: true | undefined;
|
|
269
|
-
isExodus?: true | undefined;
|
|
270
|
-
isFrame?: true | undefined;
|
|
271
|
-
isFrontier?: true | undefined;
|
|
272
|
-
isGamestop?: true | undefined;
|
|
273
|
-
isHyperPay?: true | undefined;
|
|
274
|
-
isImToken?: true | undefined;
|
|
275
|
-
isKuCoinWallet?: true | undefined;
|
|
276
|
-
isMathWallet?: true | undefined;
|
|
277
|
-
isMetaMask: true;
|
|
278
|
-
isOkxWallet?: true | undefined;
|
|
279
|
-
isOKExWallet?: true | undefined;
|
|
280
|
-
isOneInchAndroidWallet?: true | undefined;
|
|
281
|
-
isOneInchIOSWallet?: true | undefined;
|
|
282
|
-
isOpera?: true | undefined;
|
|
283
|
-
isPhantom?: true | undefined;
|
|
284
|
-
isPortal?: true | undefined;
|
|
285
|
-
isRabby?: true | undefined;
|
|
286
|
-
isRainbow?: true | undefined;
|
|
287
|
-
isStatus?: true | undefined;
|
|
288
|
-
isTally?: true | undefined;
|
|
289
|
-
isTokenPocket?: true | undefined;
|
|
290
|
-
isTokenary?: true | undefined;
|
|
291
|
-
isTrust?: true | undefined;
|
|
292
|
-
isTrustWallet?: true | undefined;
|
|
293
|
-
isXDEFI?: true | undefined;
|
|
294
|
-
isZerion?: true | undefined;
|
|
295
|
-
providers?: any[] | undefined;
|
|
296
|
-
_events: {
|
|
297
|
-
connect?: (() => void) | undefined;
|
|
298
|
-
};
|
|
299
|
-
_state?: {
|
|
300
|
-
accounts?: string[] | undefined;
|
|
301
|
-
initialized?: boolean | undefined;
|
|
302
|
-
isConnected?: boolean | undefined;
|
|
303
|
-
isPermanentlyDisconnected?: boolean | undefined;
|
|
304
|
-
isUnlocked?: boolean | undefined;
|
|
305
|
-
} | undefined;
|
|
306
|
-
} | undefined, {
|
|
307
|
-
onConnect(connectInfo: ProviderConnectInfo): void;
|
|
308
|
-
}, {
|
|
309
|
-
[x: `${string}.connected`]: true;
|
|
310
|
-
}>;
|
|
311
|
-
export type WalletId = 'coinbaseWallet' | 'metaMask' | 'phantom' | 'rainbow';
|
|
312
|
-
type Wallet = {
|
|
313
|
-
name: string;
|
|
314
|
-
provider: keyof WindowProviderFlags | ((window?: Window) => WindowProvider | undefined);
|
|
315
|
-
features?: readonly 'wallet_requestPermissions'[];
|
|
316
|
-
};
|
|
317
|
-
type WalletMap = Record<WalletId, Wallet>;
|
|
318
|
-
type WindowProviderFlags = {
|
|
319
|
-
isApexWallet?: true | undefined;
|
|
320
|
-
isAvalanche?: true | undefined;
|
|
321
|
-
isBackpack?: true | undefined;
|
|
322
|
-
isBifrost?: true | undefined;
|
|
323
|
-
isBitKeep?: true | undefined;
|
|
324
|
-
isBitski?: true | undefined;
|
|
325
|
-
isBlockWallet?: true | undefined;
|
|
326
|
-
isBraveWallet?: true | undefined;
|
|
327
|
-
isCoinbaseWallet?: true | undefined;
|
|
328
|
-
isDawn?: true | undefined;
|
|
329
|
-
isEnkrypt?: true | undefined;
|
|
330
|
-
isExodus?: true | undefined;
|
|
331
|
-
isFrame?: true | undefined;
|
|
332
|
-
isFrontier?: true | undefined;
|
|
333
|
-
isGamestop?: true | undefined;
|
|
334
|
-
isHyperPay?: true | undefined;
|
|
335
|
-
isImToken?: true | undefined;
|
|
336
|
-
isKuCoinWallet?: true | undefined;
|
|
337
|
-
isMathWallet?: true | undefined;
|
|
338
|
-
isMetaMask?: true | undefined;
|
|
339
|
-
isOkxWallet?: true | undefined;
|
|
340
|
-
isOKExWallet?: true | undefined;
|
|
341
|
-
isOneInchAndroidWallet?: true | undefined;
|
|
342
|
-
isOneInchIOSWallet?: true | undefined;
|
|
343
|
-
isOpera?: true | undefined;
|
|
344
|
-
isPhantom?: true | undefined;
|
|
345
|
-
isPortal?: true | undefined;
|
|
346
|
-
isRabby?: true | undefined;
|
|
347
|
-
isRainbow?: true | undefined;
|
|
348
|
-
isStatus?: true | undefined;
|
|
349
|
-
isTally?: true | undefined;
|
|
350
|
-
isTokenPocket?: true | undefined;
|
|
351
|
-
isTokenary?: true | undefined;
|
|
352
|
-
isTrust?: true | undefined;
|
|
353
|
-
isTrustWallet?: true | undefined;
|
|
354
|
-
isXDEFI?: true | undefined;
|
|
355
|
-
isZerion?: true | undefined;
|
|
356
|
-
};
|
|
357
|
-
type WindowProvider = Evaluate<EIP1193Provider & WindowProviderFlags & {
|
|
358
|
-
providers?: WindowProvider[] | undefined;
|
|
359
|
-
isMetaMask: true;
|
|
360
|
-
/** Only exists in MetaMask as of 2022/04/03 */
|
|
361
|
-
_events: {
|
|
362
|
-
connect?: (() => void) | undefined;
|
|
363
|
-
};
|
|
364
|
-
/** Only exists in MetaMask as of 2022/04/03 */
|
|
365
|
-
_state?: {
|
|
366
|
-
accounts?: string[];
|
|
367
|
-
initialized?: boolean;
|
|
368
|
-
isConnected?: boolean;
|
|
369
|
-
isPermanentlyDisconnected?: boolean;
|
|
370
|
-
isUnlocked?: boolean;
|
|
371
|
-
} | undefined;
|
|
372
|
-
}>;
|
|
373
|
-
type Window = {
|
|
374
|
-
coinbaseWalletExtension?: WindowProvider | undefined;
|
|
375
|
-
ethereum?: WindowProvider | undefined;
|
|
376
|
-
phantom?: {
|
|
377
|
-
ethereum: WindowProvider;
|
|
378
|
-
} | undefined;
|
|
379
|
-
};
|
|
380
|
-
export {};
|
|
381
|
-
//# sourceMappingURL=injected.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injected.d.ts","sourceRoot":"","sources":["../../src/injected.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,mBAAmB,EAQzB,MAAM,MAAM,CAAA;AAEb,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,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d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type EthereumProvider } from '@ledgerhq/connect-kit-loader';
|
|
2
|
-
import { type ProviderConnectInfo } from 'viem';
|
|
3
|
-
export type LedgerParameters = {
|
|
4
|
-
enableDebugLogs?: boolean | undefined;
|
|
5
|
-
optionalEvents?: string[] | undefined;
|
|
6
|
-
optionalMethods?: string[] | undefined;
|
|
7
|
-
projectId?: string | undefined;
|
|
8
|
-
requiredChains?: number[] | undefined;
|
|
9
|
-
requiredEvents?: string[] | undefined;
|
|
10
|
-
requiredMethods?: string[] | undefined;
|
|
11
|
-
};
|
|
12
|
-
export declare function ledger(parameters?: LedgerParameters): import("@wagmi/core").CreateConnectorFn<EthereumProvider, {
|
|
13
|
-
onConnect(connectInfo: ProviderConnectInfo): void;
|
|
14
|
-
onSessionDelete(data: {
|
|
15
|
-
topic: string;
|
|
16
|
-
}): void;
|
|
17
|
-
}, {}>;
|
|
18
|
-
//# sourceMappingURL=ledger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../src/ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,8BAA8B,CAAA;AAMrC,OAAO,EACL,KAAK,mBAAmB,EAMzB,MAAM,MAAM,CAAA;AAEb,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACrC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACrC,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACrC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACrC,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CACvC,CAAA;AAED,wBAAgB,MAAM,CAAC,UAAU,GAAE,gBAAqB;2BAG7B,mBAAmB,GAAG,IAAI;0BAC3B;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;OAgLjD"}
|
package/src/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
type CoinbaseWalletParameters,
|
|
3
|
-
coinbaseWallet,
|
|
4
|
-
} from './coinbaseWallet.js'
|
|
5
|
-
|
|
6
|
-
export { type InjectedParameters, injected } from './injected.js'
|
|
7
|
-
|
|
8
|
-
export { type LedgerParameters, ledger } from './ledger.js'
|
|
9
|
-
|
|
10
|
-
export { type SafeParameters, safe } from './safe.js'
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
type WalletConnectParameters,
|
|
14
|
-
walletConnect,
|
|
15
|
-
} from './walletConnect.js'
|
|
16
|
-
|
|
17
|
-
export { version } from './version.js'
|