@wagmi/connectors 1.0.0-next.3 → 1.0.0-next.4

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/safe.d.ts CHANGED
@@ -1,822 +1 @@
1
- import * as abitype_dist_abi_7aa1f183 from 'abitype/dist/abi-7aa1f183';
2
- import * as viem_dist_types_types_eip1193 from 'viem/dist/types/types/eip1193';
3
- import * as viem_dist_types_types from 'viem/dist/types/types';
4
- import * as viem from 'viem';
5
- import { SafeAppProvider } from '@safe-global/safe-apps-provider';
6
- import { Opts } from '@safe-global/safe-apps-sdk';
7
- import { Chain } from '@wagmi/chains';
8
- import { C as Connector } from './base-335f54fd.js';
9
- import 'abitype';
10
- import 'eventemitter3';
11
-
12
- type SafeConnectorProvider = SafeAppProvider;
13
- type SafeConnectorOptions = Opts & {
14
- /**
15
- * Connector automatically connects when used as Safe App.
16
- *
17
- * This flag simulates the disconnect behavior by keeping track of connection status in storage
18
- * and only autoconnecting when previously connected by user action (e.g. explicitly choosing to connect).
19
- *
20
- * @default false
21
- */
22
- shimDisconnect?: boolean;
23
- };
24
- /**
25
- * Connector for [Safe Wallet](https://safe.global)
26
- */
27
- declare class SafeConnector extends Connector<SafeConnectorProvider, SafeConnectorOptions> {
28
- #private;
29
- readonly id = "safe";
30
- readonly name = "Safe";
31
- ready: boolean;
32
- protected shimDisconnectKey: string;
33
- constructor({ chains, options: options_, }: {
34
- chains?: Chain[];
35
- options?: SafeConnectorOptions;
36
- });
37
- connect(): Promise<{
38
- account: `0x${string}`;
39
- chain: {
40
- id: number;
41
- unsupported: boolean;
42
- };
43
- }>;
44
- disconnect(): Promise<void>;
45
- getAccount(): Promise<`0x${string}`>;
46
- getChainId(): Promise<number>;
47
- getProvider(): Promise<SafeAppProvider>;
48
- getWalletClient({ chainId }?: {
49
- chainId?: number;
50
- }): Promise<{
51
- chain: Chain;
52
- key: string;
53
- name: string;
54
- pollingInterval: number;
55
- request: {
56
- (args: {
57
- method: "web3_clientVersion";
58
- params?: undefined;
59
- }): Promise<string>;
60
- (args: {
61
- method: "web3_sha3";
62
- params: [data: `0x${string}`];
63
- }): Promise<string>;
64
- (args: {
65
- method: "net_listening";
66
- params?: undefined;
67
- }): Promise<boolean>;
68
- (args: {
69
- method: "net_peerCount";
70
- params?: undefined;
71
- }): Promise<`0x${string}`>;
72
- (args: {
73
- method: "net_version";
74
- params?: undefined;
75
- }): Promise<`0x${string}`>;
76
- (args: {
77
- method: "eth_blockNumber";
78
- params?: undefined;
79
- }): Promise<`0x${string}`>;
80
- (args: {
81
- method: "eth_call";
82
- params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
83
- }): Promise<`0x${string}`>;
84
- (args: {
85
- method: "eth_chainId";
86
- params?: undefined;
87
- }): Promise<`0x${string}`>;
88
- (args: {
89
- method: "eth_coinbase";
90
- params?: undefined;
91
- }): Promise<`0x${string}`>;
92
- (args: {
93
- method: "eth_estimateGas";
94
- params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
95
- }): Promise<`0x${string}`>;
96
- (args: {
97
- method: "eth_feeHistory";
98
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
99
- }): Promise<viem.RpcFeeHistory>;
100
- (args: {
101
- method: "eth_gasPrice";
102
- params?: undefined;
103
- }): Promise<`0x${string}`>;
104
- (args: {
105
- method: "eth_getBalance";
106
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
107
- }): Promise<`0x${string}`>;
108
- (args: {
109
- method: "eth_getBlockByHash";
110
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
111
- }): Promise<viem.RpcBlock | null>;
112
- (args: {
113
- method: "eth_getBlockByNumber";
114
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
115
- }): Promise<viem.RpcBlock | null>;
116
- (args: {
117
- method: "eth_getBlockTransactionCountByHash";
118
- params: [hash: `0x${string}`];
119
- }): Promise<`0x${string}`>;
120
- (args: {
121
- method: "eth_getBlockTransactionCountByNumber";
122
- params: [block: `0x${string}` | viem.BlockTag];
123
- }): Promise<`0x${string}`>;
124
- (args: {
125
- method: "eth_getCode";
126
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
127
- }): Promise<`0x${string}`>;
128
- (args: {
129
- method: "eth_getFilterChanges";
130
- params: [filterId: `0x${string}`];
131
- }): Promise<{
132
- address: `0x${string}`;
133
- blockHash: `0x${string}` | null;
134
- blockNumber: `0x${string}` | null;
135
- data: `0x${string}`;
136
- logIndex: `0x${string}` | null;
137
- transactionHash: `0x${string}` | null;
138
- transactionIndex: `0x${string}` | null;
139
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
140
- removed: boolean;
141
- }[] | `0x${string}`[]>;
142
- (args: {
143
- method: "eth_getFilterLogs";
144
- params: [filterId: `0x${string}`];
145
- }): Promise<{
146
- address: `0x${string}`;
147
- blockHash: `0x${string}` | null;
148
- blockNumber: `0x${string}` | null;
149
- data: `0x${string}`;
150
- logIndex: `0x${string}` | null;
151
- transactionHash: `0x${string}` | null;
152
- transactionIndex: `0x${string}` | null;
153
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
154
- removed: boolean;
155
- }[]>;
156
- (args: {
157
- method: "eth_getLogs";
158
- params: [parameters: {
159
- address?: `0x${string}` | `0x${string}`[] | undefined;
160
- topics?: viem_dist_types_types.LogTopic[] | undefined;
161
- } & ({
162
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
163
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
164
- blockHash?: undefined;
165
- } | {
166
- fromBlock?: undefined;
167
- toBlock?: undefined;
168
- blockHash?: `0x${string}` | undefined;
169
- })];
170
- }): Promise<{
171
- address: `0x${string}`;
172
- blockHash: `0x${string}` | null;
173
- blockNumber: `0x${string}` | null;
174
- data: `0x${string}`;
175
- logIndex: `0x${string}` | null;
176
- transactionHash: `0x${string}` | null;
177
- transactionIndex: `0x${string}` | null;
178
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
179
- removed: boolean;
180
- }[]>;
181
- (args: {
182
- method: "eth_getStorageAt";
183
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
184
- }): Promise<`0x${string}`>;
185
- (args: {
186
- method: "eth_getTransactionByBlockHashAndIndex";
187
- params: [hash: `0x${string}`, index: `0x${string}`];
188
- }): Promise<viem.RpcTransaction | null>;
189
- (args: {
190
- method: "eth_getTransactionByBlockNumberAndIndex";
191
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
192
- }): Promise<viem.RpcTransaction | null>;
193
- (args: {
194
- method: "eth_getTransactionByHash";
195
- params: [hash: `0x${string}`];
196
- }): Promise<viem.RpcTransaction | null>;
197
- (args: {
198
- method: "eth_getTransactionCount";
199
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
200
- }): Promise<`0x${string}`>;
201
- (args: {
202
- method: "eth_getTransactionReceipt";
203
- params: [hash: `0x${string}`];
204
- }): Promise<viem.RpcTransactionReceipt | null>;
205
- (args: {
206
- method: "eth_getUncleByBlockHashAndIndex";
207
- params: [hash: `0x${string}`, index: `0x${string}`];
208
- }): Promise<viem.RpcUncle | null>;
209
- (args: {
210
- method: "eth_getUncleByBlockNumberAndIndex";
211
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
212
- }): Promise<viem.RpcUncle | null>;
213
- (args: {
214
- method: "eth_getUncleCountByBlockHash";
215
- params: [hash: `0x${string}`];
216
- }): Promise<`0x${string}`>;
217
- (args: {
218
- method: "eth_getUncleCountByBlockNumber";
219
- params: [block: `0x${string}` | viem.BlockTag];
220
- }): Promise<`0x${string}`>;
221
- (args: {
222
- method: "eth_newBlockFilter";
223
- params?: undefined;
224
- }): Promise<`0x${string}`>;
225
- (args: {
226
- method: "eth_newFilter";
227
- params: [filter: {
228
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
229
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
230
- address?: `0x${string}` | `0x${string}`[] | undefined;
231
- topics?: viem_dist_types_types.LogTopic[] | undefined;
232
- }];
233
- }): Promise<`0x${string}`>;
234
- (args: {
235
- method: "eth_newPendingTransactionFilter";
236
- params?: undefined;
237
- }): Promise<`0x${string}`>;
238
- (args: {
239
- method: "eth_protocolVersion";
240
- params?: undefined;
241
- }): Promise<string>;
242
- (args: {
243
- method: "eth_sendRawTransaction";
244
- params: [signedTransaction: `0x${string}`];
245
- }): Promise<`0x${string}`>;
246
- (args: {
247
- method: "eth_uninstallFilter";
248
- params: [filterId: `0x${string}`];
249
- }): Promise<boolean>;
250
- } & {
251
- (args: {
252
- method: "eth_sendTransaction";
253
- params: [request: viem.RpcTransactionRequest];
254
- }): Promise<`0x${string}`>;
255
- (args: {
256
- method: "eth_sign";
257
- params: [address: `0x${string}`, data: `0x${string}`];
258
- }): Promise<`0x${string}`>;
259
- (args: {
260
- method: "eth_signTransaction";
261
- params: [request: viem.RpcTransactionRequest];
262
- }): Promise<`0x${string}`>;
263
- (args: {
264
- method: "eth_signTypedData_v4";
265
- params: [address: `0x${string}`, message: string];
266
- }): Promise<`0x${string}`>;
267
- (args: {
268
- method: "eth_syncing";
269
- params?: undefined;
270
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
271
- (args: {
272
- method: "personal_sign";
273
- params: [data: `0x${string}`, address: `0x${string}`];
274
- }): Promise<`0x${string}`>;
275
- } & {
276
- (args: {
277
- method: "eth_accounts";
278
- params?: undefined;
279
- }): Promise<`0x${string}`[]>;
280
- (args: {
281
- method: "eth_chainId";
282
- params?: undefined;
283
- }): Promise<`0x${string}`>;
284
- (args: {
285
- method: "eth_requestAccounts";
286
- params?: undefined;
287
- }): Promise<`0x${string}`[]>;
288
- (args: {
289
- method: "wallet_requestPermissions";
290
- params: [permissions: {
291
- eth_accounts: Record<string, any>;
292
- }];
293
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
294
- (args: {
295
- method: "wallet_getPermissions";
296
- params?: undefined;
297
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
298
- (args: {
299
- method: "wallet_addEthereumChain";
300
- params: [chain: viem_dist_types_types_eip1193.Chain];
301
- }): Promise<null>;
302
- (args: {
303
- method: "wallet_switchEthereumChain";
304
- params: [chain: {
305
- chainId: string;
306
- }];
307
- }): Promise<null>;
308
- (args: {
309
- method: "wallet_watchAsset";
310
- params: viem_dist_types_types_eip1193.WatchAssetParams;
311
- }): Promise<boolean>;
312
- };
313
- transport: viem.TransportConfig<"custom", {
314
- (args: {
315
- method: "web3_clientVersion";
316
- params?: undefined;
317
- }): Promise<string>;
318
- (args: {
319
- method: "web3_sha3";
320
- params: [data: `0x${string}`];
321
- }): Promise<string>;
322
- (args: {
323
- method: "net_listening";
324
- params?: undefined;
325
- }): Promise<boolean>;
326
- (args: {
327
- method: "net_peerCount";
328
- params?: undefined;
329
- }): Promise<`0x${string}`>;
330
- (args: {
331
- method: "net_version";
332
- params?: undefined;
333
- }): Promise<`0x${string}`>;
334
- (args: {
335
- method: "eth_blockNumber";
336
- params?: undefined;
337
- }): Promise<`0x${string}`>;
338
- (args: {
339
- method: "eth_call";
340
- params: [request: Partial<viem.RpcTransactionRequest>, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
341
- }): Promise<`0x${string}`>;
342
- (args: {
343
- method: "eth_chainId";
344
- params?: undefined;
345
- }): Promise<`0x${string}`>;
346
- (args: {
347
- method: "eth_coinbase";
348
- params?: undefined;
349
- }): Promise<`0x${string}`>;
350
- (args: {
351
- method: "eth_estimateGas";
352
- params: [parameters: viem.RpcTransactionRequest, block: `0x${string}` | viem.BlockTag];
353
- }): Promise<`0x${string}`>;
354
- (args: {
355
- method: "eth_feeHistory";
356
- params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | viem.BlockTag, rewardPercentiles: number[] | undefined];
357
- }): Promise<viem.RpcFeeHistory>;
358
- (args: {
359
- method: "eth_gasPrice";
360
- params?: undefined;
361
- }): Promise<`0x${string}`>;
362
- (args: {
363
- method: "eth_getBalance";
364
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
365
- }): Promise<`0x${string}`>;
366
- (args: {
367
- method: "eth_getBlockByHash";
368
- params: [hash: `0x${string}`, includeTransactionObjects: boolean];
369
- }): Promise<viem.RpcBlock | null>;
370
- (args: {
371
- method: "eth_getBlockByNumber";
372
- params: [block: `0x${string}` | viem.BlockTag, includeTransactionObjects: boolean];
373
- }): Promise<viem.RpcBlock | null>;
374
- (args: {
375
- method: "eth_getBlockTransactionCountByHash";
376
- params: [hash: `0x${string}`];
377
- }): Promise<`0x${string}`>;
378
- (args: {
379
- method: "eth_getBlockTransactionCountByNumber";
380
- params: [block: `0x${string}` | viem.BlockTag];
381
- }): Promise<`0x${string}`>;
382
- (args: {
383
- method: "eth_getCode";
384
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
385
- }): Promise<`0x${string}`>;
386
- (args: {
387
- method: "eth_getFilterChanges";
388
- params: [filterId: `0x${string}`];
389
- }): Promise<{
390
- address: `0x${string}`;
391
- blockHash: `0x${string}` | null;
392
- blockNumber: `0x${string}` | null;
393
- data: `0x${string}`;
394
- logIndex: `0x${string}` | null;
395
- transactionHash: `0x${string}` | null;
396
- transactionIndex: `0x${string}` | null;
397
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
398
- removed: boolean;
399
- }[] | `0x${string}`[]>;
400
- (args: {
401
- method: "eth_getFilterLogs";
402
- params: [filterId: `0x${string}`];
403
- }): Promise<{
404
- address: `0x${string}`;
405
- blockHash: `0x${string}` | null;
406
- blockNumber: `0x${string}` | null;
407
- data: `0x${string}`;
408
- logIndex: `0x${string}` | null;
409
- transactionHash: `0x${string}` | null;
410
- transactionIndex: `0x${string}` | null;
411
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
412
- removed: boolean;
413
- }[]>;
414
- (args: {
415
- method: "eth_getLogs";
416
- params: [parameters: {
417
- address?: `0x${string}` | `0x${string}`[] | undefined;
418
- topics?: viem_dist_types_types.LogTopic[] | undefined;
419
- } & ({
420
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
421
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
422
- blockHash?: undefined;
423
- } | {
424
- fromBlock?: undefined;
425
- toBlock?: undefined;
426
- blockHash?: `0x${string}` | undefined;
427
- })];
428
- }): Promise<{
429
- address: `0x${string}`;
430
- blockHash: `0x${string}` | null;
431
- blockNumber: `0x${string}` | null;
432
- data: `0x${string}`;
433
- logIndex: `0x${string}` | null;
434
- transactionHash: `0x${string}` | null;
435
- transactionIndex: `0x${string}` | null;
436
- topics: [] | [`0x${string}`, ...`0x${string}`[]];
437
- removed: boolean;
438
- }[]>;
439
- (args: {
440
- method: "eth_getStorageAt";
441
- params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
442
- }): Promise<`0x${string}`>;
443
- (args: {
444
- method: "eth_getTransactionByBlockHashAndIndex";
445
- params: [hash: `0x${string}`, index: `0x${string}`];
446
- }): Promise<viem.RpcTransaction | null>;
447
- (args: {
448
- method: "eth_getTransactionByBlockNumberAndIndex";
449
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
450
- }): Promise<viem.RpcTransaction | null>;
451
- (args: {
452
- method: "eth_getTransactionByHash";
453
- params: [hash: `0x${string}`];
454
- }): Promise<viem.RpcTransaction | null>;
455
- (args: {
456
- method: "eth_getTransactionCount";
457
- params: [address: `0x${string}`, block: `0x${string}` | viem.BlockTag | viem.RpcBlockIdentifier];
458
- }): Promise<`0x${string}`>;
459
- (args: {
460
- method: "eth_getTransactionReceipt";
461
- params: [hash: `0x${string}`];
462
- }): Promise<viem.RpcTransactionReceipt | null>;
463
- (args: {
464
- method: "eth_getUncleByBlockHashAndIndex";
465
- params: [hash: `0x${string}`, index: `0x${string}`];
466
- }): Promise<viem.RpcUncle | null>;
467
- (args: {
468
- method: "eth_getUncleByBlockNumberAndIndex";
469
- params: [block: `0x${string}` | viem.BlockTag, index: `0x${string}`];
470
- }): Promise<viem.RpcUncle | null>;
471
- (args: {
472
- method: "eth_getUncleCountByBlockHash";
473
- params: [hash: `0x${string}`];
474
- }): Promise<`0x${string}`>;
475
- (args: {
476
- method: "eth_getUncleCountByBlockNumber";
477
- params: [block: `0x${string}` | viem.BlockTag];
478
- }): Promise<`0x${string}`>;
479
- (args: {
480
- method: "eth_newBlockFilter";
481
- params?: undefined;
482
- }): Promise<`0x${string}`>;
483
- (args: {
484
- method: "eth_newFilter";
485
- params: [filter: {
486
- fromBlock?: `0x${string}` | viem.BlockTag | undefined;
487
- toBlock?: `0x${string}` | viem.BlockTag | undefined;
488
- address?: `0x${string}` | `0x${string}`[] | undefined;
489
- topics?: viem_dist_types_types.LogTopic[] | undefined;
490
- }];
491
- }): Promise<`0x${string}`>;
492
- (args: {
493
- method: "eth_newPendingTransactionFilter";
494
- params?: undefined;
495
- }): Promise<`0x${string}`>;
496
- (args: {
497
- method: "eth_protocolVersion";
498
- params?: undefined;
499
- }): Promise<string>;
500
- (args: {
501
- method: "eth_sendRawTransaction";
502
- params: [signedTransaction: `0x${string}`];
503
- }): Promise<`0x${string}`>;
504
- (args: {
505
- method: "eth_uninstallFilter";
506
- params: [filterId: `0x${string}`];
507
- }): Promise<boolean>;
508
- } & {
509
- (args: {
510
- method: "eth_sendTransaction";
511
- params: [request: viem.RpcTransactionRequest];
512
- }): Promise<`0x${string}`>;
513
- (args: {
514
- method: "eth_sign";
515
- params: [address: `0x${string}`, data: `0x${string}`];
516
- }): Promise<`0x${string}`>;
517
- (args: {
518
- method: "eth_signTransaction";
519
- params: [request: viem.RpcTransactionRequest];
520
- }): Promise<`0x${string}`>;
521
- (args: {
522
- method: "eth_signTypedData_v4";
523
- params: [address: `0x${string}`, message: string];
524
- }): Promise<`0x${string}`>;
525
- (args: {
526
- method: "eth_syncing";
527
- params?: undefined;
528
- }): Promise<false | viem_dist_types_types_eip1193.NetworkSync>;
529
- (args: {
530
- method: "personal_sign";
531
- params: [data: `0x${string}`, address: `0x${string}`];
532
- }): Promise<`0x${string}`>;
533
- } & {
534
- (args: {
535
- method: "eth_accounts";
536
- params?: undefined;
537
- }): Promise<`0x${string}`[]>;
538
- (args: {
539
- method: "eth_chainId";
540
- params?: undefined;
541
- }): Promise<`0x${string}`>;
542
- (args: {
543
- method: "eth_requestAccounts";
544
- params?: undefined;
545
- }): Promise<`0x${string}`[]>;
546
- (args: {
547
- method: "wallet_requestPermissions";
548
- params: [permissions: {
549
- eth_accounts: Record<string, any>;
550
- }];
551
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
552
- (args: {
553
- method: "wallet_getPermissions";
554
- params?: undefined;
555
- }): Promise<viem_dist_types_types_eip1193.WalletPermission[]>;
556
- (args: {
557
- method: "wallet_addEthereumChain";
558
- params: [chain: viem_dist_types_types_eip1193.Chain];
559
- }): Promise<null>;
560
- (args: {
561
- method: "wallet_switchEthereumChain";
562
- params: [chain: {
563
- chainId: string;
564
- }];
565
- }): Promise<null>;
566
- (args: {
567
- method: "wallet_watchAsset";
568
- params: viem_dist_types_types_eip1193.WatchAssetParams;
569
- }): Promise<boolean>;
570
- }> & ((...args: any) => Promise<any>);
571
- type: string;
572
- uid: string;
573
- addChain: (args: viem.AddChainParameters) => Promise<void>;
574
- deployContract: <TAbi extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TChainOverride extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.DeployContractParameters<TAbi, Chain, {
575
- address: `0x${string}`;
576
- type: "json-rpc";
577
- }, TChainOverride>) => Promise<`0x${string}`>;
578
- getAddresses: () => Promise<viem.GetAddressesReturnType>;
579
- getChainId: () => Promise<number>;
580
- getPermissions: () => Promise<viem.GetPermissionsReturnType>;
581
- requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
582
- requestPermissions: (args: {
583
- [x: string]: Record<string, any>;
584
- eth_accounts: Record<string, any>;
585
- }) => Promise<viem.RequestPermissionsReturnType>;
586
- sendTransaction: <TChainOverride_1 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.SendTransactionParameters<Chain, {
587
- address: `0x${string}`;
588
- type: "json-rpc";
589
- }, TChainOverride_1>) => Promise<`0x${string}`>;
590
- signMessage: (args: viem.SignMessageParameters<{
591
- address: `0x${string}`;
592
- type: "json-rpc";
593
- }>) => Promise<`0x${string}`>;
594
- signTypedData: <TTypedData extends {
595
- [x: string]: readonly abitype_dist_abi_7aa1f183.o[];
596
- [x: `string[${string}]`]: undefined;
597
- [x: `function[${string}]`]: undefined;
598
- [x: `address[${string}]`]: undefined;
599
- [x: `bool[${string}]`]: undefined;
600
- [x: `bytes[${string}]`]: undefined;
601
- [x: `bytes2[${string}]`]: undefined;
602
- [x: `bytes1[${string}]`]: undefined;
603
- [x: `bytes3[${string}]`]: undefined;
604
- [x: `bytes4[${string}]`]: undefined;
605
- [x: `bytes5[${string}]`]: undefined;
606
- [x: `bytes6[${string}]`]: undefined;
607
- [x: `bytes7[${string}]`]: undefined;
608
- [x: `bytes8[${string}]`]: undefined;
609
- [x: `bytes9[${string}]`]: undefined;
610
- [x: `bytes10[${string}]`]: undefined;
611
- [x: `bytes11[${string}]`]: undefined;
612
- [x: `bytes12[${string}]`]: undefined;
613
- [x: `bytes13[${string}]`]: undefined;
614
- [x: `bytes14[${string}]`]: undefined;
615
- [x: `bytes15[${string}]`]: undefined;
616
- [x: `bytes16[${string}]`]: undefined;
617
- [x: `bytes17[${string}]`]: undefined;
618
- [x: `bytes18[${string}]`]: undefined;
619
- [x: `bytes19[${string}]`]: undefined;
620
- [x: `bytes20[${string}]`]: undefined;
621
- [x: `bytes21[${string}]`]: undefined;
622
- [x: `bytes22[${string}]`]: undefined;
623
- [x: `bytes23[${string}]`]: undefined;
624
- [x: `bytes24[${string}]`]: undefined;
625
- [x: `bytes25[${string}]`]: undefined;
626
- [x: `bytes26[${string}]`]: undefined;
627
- [x: `bytes27[${string}]`]: undefined;
628
- [x: `bytes28[${string}]`]: undefined;
629
- [x: `bytes29[${string}]`]: undefined;
630
- [x: `bytes30[${string}]`]: undefined;
631
- [x: `bytes31[${string}]`]: undefined;
632
- [x: `bytes32[${string}]`]: undefined;
633
- [x: `int[${string}]`]: undefined;
634
- [x: `int8[${string}]`]: undefined;
635
- [x: `int16[${string}]`]: undefined;
636
- [x: `int24[${string}]`]: undefined;
637
- [x: `int32[${string}]`]: undefined;
638
- [x: `int40[${string}]`]: undefined;
639
- [x: `int48[${string}]`]: undefined;
640
- [x: `int56[${string}]`]: undefined;
641
- [x: `int64[${string}]`]: undefined;
642
- [x: `int72[${string}]`]: undefined;
643
- [x: `int80[${string}]`]: undefined;
644
- [x: `int88[${string}]`]: undefined;
645
- [x: `int96[${string}]`]: undefined;
646
- [x: `int104[${string}]`]: undefined;
647
- [x: `int112[${string}]`]: undefined;
648
- [x: `int120[${string}]`]: undefined;
649
- [x: `int128[${string}]`]: undefined;
650
- [x: `int136[${string}]`]: undefined;
651
- [x: `int144[${string}]`]: undefined;
652
- [x: `int152[${string}]`]: undefined;
653
- [x: `int160[${string}]`]: undefined;
654
- [x: `int168[${string}]`]: undefined;
655
- [x: `int176[${string}]`]: undefined;
656
- [x: `int184[${string}]`]: undefined;
657
- [x: `int192[${string}]`]: undefined;
658
- [x: `int200[${string}]`]: undefined;
659
- [x: `int208[${string}]`]: undefined;
660
- [x: `int216[${string}]`]: undefined;
661
- [x: `int224[${string}]`]: undefined;
662
- [x: `int232[${string}]`]: undefined;
663
- [x: `int240[${string}]`]: undefined;
664
- [x: `int248[${string}]`]: undefined;
665
- [x: `int256[${string}]`]: undefined;
666
- [x: `uint[${string}]`]: undefined;
667
- [x: `uint8[${string}]`]: undefined;
668
- [x: `uint16[${string}]`]: undefined;
669
- [x: `uint24[${string}]`]: undefined;
670
- [x: `uint32[${string}]`]: undefined;
671
- [x: `uint40[${string}]`]: undefined;
672
- [x: `uint48[${string}]`]: undefined;
673
- [x: `uint56[${string}]`]: undefined;
674
- [x: `uint64[${string}]`]: undefined;
675
- [x: `uint72[${string}]`]: undefined;
676
- [x: `uint80[${string}]`]: undefined;
677
- [x: `uint88[${string}]`]: undefined;
678
- [x: `uint96[${string}]`]: undefined;
679
- [x: `uint104[${string}]`]: undefined;
680
- [x: `uint112[${string}]`]: undefined;
681
- [x: `uint120[${string}]`]: undefined;
682
- [x: `uint128[${string}]`]: undefined;
683
- [x: `uint136[${string}]`]: undefined;
684
- [x: `uint144[${string}]`]: undefined;
685
- [x: `uint152[${string}]`]: undefined;
686
- [x: `uint160[${string}]`]: undefined;
687
- [x: `uint168[${string}]`]: undefined;
688
- [x: `uint176[${string}]`]: undefined;
689
- [x: `uint184[${string}]`]: undefined;
690
- [x: `uint192[${string}]`]: undefined;
691
- [x: `uint200[${string}]`]: undefined;
692
- [x: `uint208[${string}]`]: undefined;
693
- [x: `uint216[${string}]`]: undefined;
694
- [x: `uint224[${string}]`]: undefined;
695
- [x: `uint232[${string}]`]: undefined;
696
- [x: `uint240[${string}]`]: undefined;
697
- [x: `uint248[${string}]`]: undefined;
698
- [x: `uint256[${string}]`]: undefined;
699
- string?: undefined;
700
- address?: undefined;
701
- bool?: undefined;
702
- bytes?: undefined;
703
- bytes2?: undefined;
704
- bytes1?: undefined;
705
- bytes3?: undefined;
706
- bytes4?: undefined;
707
- bytes5?: undefined;
708
- bytes6?: undefined;
709
- bytes7?: undefined;
710
- bytes8?: undefined;
711
- bytes9?: undefined;
712
- bytes10?: undefined;
713
- bytes11?: undefined;
714
- bytes12?: undefined;
715
- bytes13?: undefined;
716
- bytes14?: undefined;
717
- bytes15?: undefined;
718
- bytes16?: undefined;
719
- bytes17?: undefined;
720
- bytes18?: undefined;
721
- bytes19?: undefined;
722
- bytes20?: undefined;
723
- bytes21?: undefined;
724
- bytes22?: undefined;
725
- bytes23?: undefined;
726
- bytes24?: undefined;
727
- bytes25?: undefined;
728
- bytes26?: undefined;
729
- bytes27?: undefined;
730
- bytes28?: undefined;
731
- bytes29?: undefined;
732
- bytes30?: undefined;
733
- bytes31?: undefined;
734
- bytes32?: undefined;
735
- int8?: undefined;
736
- int16?: undefined;
737
- int24?: undefined;
738
- int32?: undefined;
739
- int40?: undefined;
740
- int48?: undefined;
741
- int56?: undefined;
742
- int64?: undefined;
743
- int72?: undefined;
744
- int80?: undefined;
745
- int88?: undefined;
746
- int96?: undefined;
747
- int104?: undefined;
748
- int112?: undefined;
749
- int120?: undefined;
750
- int128?: undefined;
751
- int136?: undefined;
752
- int144?: undefined;
753
- int152?: undefined;
754
- int160?: undefined;
755
- int168?: undefined;
756
- int176?: undefined;
757
- int184?: undefined;
758
- int192?: undefined;
759
- int200?: undefined;
760
- int208?: undefined;
761
- int216?: undefined;
762
- int224?: undefined;
763
- int232?: undefined;
764
- int240?: undefined;
765
- int248?: undefined;
766
- int256?: undefined;
767
- uint8?: undefined;
768
- uint16?: undefined;
769
- uint24?: undefined;
770
- uint32?: undefined;
771
- uint40?: undefined;
772
- uint48?: undefined;
773
- uint56?: undefined;
774
- uint64?: undefined;
775
- uint72?: undefined;
776
- uint80?: undefined;
777
- uint88?: undefined;
778
- uint96?: undefined;
779
- uint104?: undefined;
780
- uint112?: undefined;
781
- uint120?: undefined;
782
- uint128?: undefined;
783
- uint136?: undefined;
784
- uint144?: undefined;
785
- uint152?: undefined;
786
- uint160?: undefined;
787
- uint168?: undefined;
788
- uint176?: undefined;
789
- uint184?: undefined;
790
- uint192?: undefined;
791
- uint200?: undefined;
792
- uint208?: undefined;
793
- uint216?: undefined;
794
- uint224?: undefined;
795
- uint232?: undefined;
796
- uint240?: undefined;
797
- uint248?: undefined;
798
- uint256?: undefined;
799
- } | {
800
- [key: string]: unknown;
801
- }, TPrimaryType extends string>(args: viem.SignTypedDataParameters<TTypedData, TPrimaryType, {
802
- address: `0x${string}`;
803
- type: "json-rpc";
804
- }>) => Promise<`0x${string}`>;
805
- switchChain: (args: viem.SwitchChainParameters) => Promise<void>;
806
- watchAsset: (args: viem_dist_types_types_eip1193.WatchAssetParams) => Promise<boolean>;
807
- writeContract: <TAbi_1 extends readonly unknown[] | abitype_dist_abi_7aa1f183.l, TFunctionName extends string, TChainOverride_2 extends viem.Chain<viem_dist_types_types.Formatters> | undefined>(args: viem.WriteContractParameters<TAbi_1, TFunctionName, Chain, {
808
- address: `0x${string}`;
809
- type: "json-rpc";
810
- }, TChainOverride_2>) => Promise<`0x${string}`>;
811
- account: {
812
- address: `0x${string}`;
813
- type: "json-rpc";
814
- };
815
- }>;
816
- isAuthorized(): Promise<boolean>;
817
- protected onAccountsChanged(_accounts: string[]): void;
818
- protected onChainChanged(_chainId: string | number): void;
819
- protected onDisconnect(): void;
820
- }
821
-
822
- export { SafeConnector, SafeConnectorOptions, SafeConnectorProvider };
1
+ export * from '../src/safe'