@gitmyabi/multisigwallet 1.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.
@@ -0,0 +1,929 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * MultiSigWallet_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const MultiSigWallet_jsonAbi: readonly [{
8
+ readonly constant: true;
9
+ readonly inputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "uint256";
12
+ }];
13
+ readonly name: "owners";
14
+ readonly outputs: readonly [{
15
+ readonly name: "";
16
+ readonly type: "address";
17
+ }];
18
+ readonly payable: false;
19
+ readonly stateMutability: "view";
20
+ readonly type: "function";
21
+ }, {
22
+ readonly constant: false;
23
+ readonly inputs: readonly [{
24
+ readonly name: "owner";
25
+ readonly type: "address";
26
+ }];
27
+ readonly name: "removeOwner";
28
+ readonly outputs: readonly [];
29
+ readonly payable: false;
30
+ readonly stateMutability: "nonpayable";
31
+ readonly type: "function";
32
+ }, {
33
+ readonly constant: false;
34
+ readonly inputs: readonly [{
35
+ readonly name: "transactionId";
36
+ readonly type: "uint256";
37
+ }];
38
+ readonly name: "revokeConfirmation";
39
+ readonly outputs: readonly [];
40
+ readonly payable: false;
41
+ readonly stateMutability: "nonpayable";
42
+ readonly type: "function";
43
+ }, {
44
+ readonly constant: true;
45
+ readonly inputs: readonly [{
46
+ readonly name: "";
47
+ readonly type: "address";
48
+ }];
49
+ readonly name: "isOwner";
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly type: "bool";
53
+ }];
54
+ readonly payable: false;
55
+ readonly stateMutability: "view";
56
+ readonly type: "function";
57
+ }, {
58
+ readonly constant: true;
59
+ readonly inputs: readonly [{
60
+ readonly name: "";
61
+ readonly type: "uint256";
62
+ }, {
63
+ readonly name: "";
64
+ readonly type: "address";
65
+ }];
66
+ readonly name: "confirmations";
67
+ readonly outputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "bool";
70
+ }];
71
+ readonly payable: false;
72
+ readonly stateMutability: "view";
73
+ readonly type: "function";
74
+ }, {
75
+ readonly constant: true;
76
+ readonly inputs: readonly [{
77
+ readonly name: "pending";
78
+ readonly type: "bool";
79
+ }, {
80
+ readonly name: "executed";
81
+ readonly type: "bool";
82
+ }];
83
+ readonly name: "getTransactionCount";
84
+ readonly outputs: readonly [{
85
+ readonly name: "count";
86
+ readonly type: "uint256";
87
+ }];
88
+ readonly payable: false;
89
+ readonly stateMutability: "view";
90
+ readonly type: "function";
91
+ }, {
92
+ readonly constant: false;
93
+ readonly inputs: readonly [{
94
+ readonly name: "owner";
95
+ readonly type: "address";
96
+ }];
97
+ readonly name: "addOwner";
98
+ readonly outputs: readonly [];
99
+ readonly payable: false;
100
+ readonly stateMutability: "nonpayable";
101
+ readonly type: "function";
102
+ }, {
103
+ readonly constant: true;
104
+ readonly inputs: readonly [{
105
+ readonly name: "transactionId";
106
+ readonly type: "uint256";
107
+ }];
108
+ readonly name: "isConfirmed";
109
+ readonly outputs: readonly [{
110
+ readonly name: "";
111
+ readonly type: "bool";
112
+ }];
113
+ readonly payable: false;
114
+ readonly stateMutability: "view";
115
+ readonly type: "function";
116
+ }, {
117
+ readonly constant: true;
118
+ readonly inputs: readonly [{
119
+ readonly name: "transactionId";
120
+ readonly type: "uint256";
121
+ }];
122
+ readonly name: "getConfirmationCount";
123
+ readonly outputs: readonly [{
124
+ readonly name: "count";
125
+ readonly type: "uint256";
126
+ }];
127
+ readonly payable: false;
128
+ readonly stateMutability: "view";
129
+ readonly type: "function";
130
+ }, {
131
+ readonly constant: true;
132
+ readonly inputs: readonly [{
133
+ readonly name: "";
134
+ readonly type: "uint256";
135
+ }];
136
+ readonly name: "transactions";
137
+ readonly outputs: readonly [{
138
+ readonly name: "destination";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly name: "value";
142
+ readonly type: "uint256";
143
+ }, {
144
+ readonly name: "data";
145
+ readonly type: "bytes";
146
+ }, {
147
+ readonly name: "executed";
148
+ readonly type: "bool";
149
+ }];
150
+ readonly payable: false;
151
+ readonly stateMutability: "view";
152
+ readonly type: "function";
153
+ }, {
154
+ readonly constant: true;
155
+ readonly inputs: readonly [];
156
+ readonly name: "getOwners";
157
+ readonly outputs: readonly [{
158
+ readonly name: "";
159
+ readonly type: "address[]";
160
+ }];
161
+ readonly payable: false;
162
+ readonly stateMutability: "view";
163
+ readonly type: "function";
164
+ }, {
165
+ readonly constant: true;
166
+ readonly inputs: readonly [{
167
+ readonly name: "from";
168
+ readonly type: "uint256";
169
+ }, {
170
+ readonly name: "to";
171
+ readonly type: "uint256";
172
+ }, {
173
+ readonly name: "pending";
174
+ readonly type: "bool";
175
+ }, {
176
+ readonly name: "executed";
177
+ readonly type: "bool";
178
+ }];
179
+ readonly name: "getTransactionIds";
180
+ readonly outputs: readonly [{
181
+ readonly name: "_transactionIds";
182
+ readonly type: "uint256[]";
183
+ }];
184
+ readonly payable: false;
185
+ readonly stateMutability: "view";
186
+ readonly type: "function";
187
+ }, {
188
+ readonly constant: true;
189
+ readonly inputs: readonly [{
190
+ readonly name: "transactionId";
191
+ readonly type: "uint256";
192
+ }];
193
+ readonly name: "getConfirmations";
194
+ readonly outputs: readonly [{
195
+ readonly name: "_confirmations";
196
+ readonly type: "address[]";
197
+ }];
198
+ readonly payable: false;
199
+ readonly stateMutability: "view";
200
+ readonly type: "function";
201
+ }, {
202
+ readonly constant: true;
203
+ readonly inputs: readonly [];
204
+ readonly name: "transactionCount";
205
+ readonly outputs: readonly [{
206
+ readonly name: "";
207
+ readonly type: "uint256";
208
+ }];
209
+ readonly payable: false;
210
+ readonly stateMutability: "view";
211
+ readonly type: "function";
212
+ }, {
213
+ readonly constant: false;
214
+ readonly inputs: readonly [{
215
+ readonly name: "_required";
216
+ readonly type: "uint256";
217
+ }];
218
+ readonly name: "changeRequirement";
219
+ readonly outputs: readonly [];
220
+ readonly payable: false;
221
+ readonly stateMutability: "nonpayable";
222
+ readonly type: "function";
223
+ }, {
224
+ readonly constant: false;
225
+ readonly inputs: readonly [{
226
+ readonly name: "transactionId";
227
+ readonly type: "uint256";
228
+ }];
229
+ readonly name: "confirmTransaction";
230
+ readonly outputs: readonly [];
231
+ readonly payable: false;
232
+ readonly stateMutability: "nonpayable";
233
+ readonly type: "function";
234
+ }, {
235
+ readonly constant: false;
236
+ readonly inputs: readonly [{
237
+ readonly name: "destination";
238
+ readonly type: "address";
239
+ }, {
240
+ readonly name: "value";
241
+ readonly type: "uint256";
242
+ }, {
243
+ readonly name: "data";
244
+ readonly type: "bytes";
245
+ }];
246
+ readonly name: "submitTransaction";
247
+ readonly outputs: readonly [{
248
+ readonly name: "transactionId";
249
+ readonly type: "uint256";
250
+ }];
251
+ readonly payable: false;
252
+ readonly stateMutability: "nonpayable";
253
+ readonly type: "function";
254
+ }, {
255
+ readonly constant: true;
256
+ readonly inputs: readonly [];
257
+ readonly name: "MAX_OWNER_COUNT";
258
+ readonly outputs: readonly [{
259
+ readonly name: "";
260
+ readonly type: "uint256";
261
+ }];
262
+ readonly payable: false;
263
+ readonly stateMutability: "view";
264
+ readonly type: "function";
265
+ }, {
266
+ readonly constant: true;
267
+ readonly inputs: readonly [];
268
+ readonly name: "required";
269
+ readonly outputs: readonly [{
270
+ readonly name: "";
271
+ readonly type: "uint256";
272
+ }];
273
+ readonly payable: false;
274
+ readonly stateMutability: "view";
275
+ readonly type: "function";
276
+ }, {
277
+ readonly constant: false;
278
+ readonly inputs: readonly [{
279
+ readonly name: "owner";
280
+ readonly type: "address";
281
+ }, {
282
+ readonly name: "newOwner";
283
+ readonly type: "address";
284
+ }];
285
+ readonly name: "replaceOwner";
286
+ readonly outputs: readonly [];
287
+ readonly payable: false;
288
+ readonly stateMutability: "nonpayable";
289
+ readonly type: "function";
290
+ }, {
291
+ readonly constant: false;
292
+ readonly inputs: readonly [{
293
+ readonly name: "transactionId";
294
+ readonly type: "uint256";
295
+ }];
296
+ readonly name: "executeTransaction";
297
+ readonly outputs: readonly [];
298
+ readonly payable: false;
299
+ readonly stateMutability: "nonpayable";
300
+ readonly type: "function";
301
+ }, {
302
+ readonly inputs: readonly [{
303
+ readonly name: "_owners";
304
+ readonly type: "address[]";
305
+ }, {
306
+ readonly name: "_required";
307
+ readonly type: "uint256";
308
+ }];
309
+ readonly payable: false;
310
+ readonly stateMutability: "nonpayable";
311
+ readonly type: "constructor";
312
+ }, {
313
+ readonly payable: true;
314
+ readonly stateMutability: "payable";
315
+ readonly type: "fallback";
316
+ }, {
317
+ readonly anonymous: false;
318
+ readonly inputs: readonly [{
319
+ readonly indexed: true;
320
+ readonly name: "sender";
321
+ readonly type: "address";
322
+ }, {
323
+ readonly indexed: true;
324
+ readonly name: "transactionId";
325
+ readonly type: "uint256";
326
+ }];
327
+ readonly name: "Confirmation";
328
+ readonly type: "event";
329
+ }, {
330
+ readonly anonymous: false;
331
+ readonly inputs: readonly [{
332
+ readonly indexed: true;
333
+ readonly name: "sender";
334
+ readonly type: "address";
335
+ }, {
336
+ readonly indexed: true;
337
+ readonly name: "transactionId";
338
+ readonly type: "uint256";
339
+ }];
340
+ readonly name: "Revocation";
341
+ readonly type: "event";
342
+ }, {
343
+ readonly anonymous: false;
344
+ readonly inputs: readonly [{
345
+ readonly indexed: true;
346
+ readonly name: "transactionId";
347
+ readonly type: "uint256";
348
+ }];
349
+ readonly name: "Submission";
350
+ readonly type: "event";
351
+ }, {
352
+ readonly anonymous: false;
353
+ readonly inputs: readonly [{
354
+ readonly indexed: true;
355
+ readonly name: "transactionId";
356
+ readonly type: "uint256";
357
+ }];
358
+ readonly name: "Execution";
359
+ readonly type: "event";
360
+ }, {
361
+ readonly anonymous: false;
362
+ readonly inputs: readonly [{
363
+ readonly indexed: true;
364
+ readonly name: "transactionId";
365
+ readonly type: "uint256";
366
+ }];
367
+ readonly name: "ExecutionFailure";
368
+ readonly type: "event";
369
+ }, {
370
+ readonly anonymous: false;
371
+ readonly inputs: readonly [{
372
+ readonly indexed: true;
373
+ readonly name: "sender";
374
+ readonly type: "address";
375
+ }, {
376
+ readonly indexed: false;
377
+ readonly name: "value";
378
+ readonly type: "uint256";
379
+ }];
380
+ readonly name: "Deposit";
381
+ readonly type: "event";
382
+ }, {
383
+ readonly anonymous: false;
384
+ readonly inputs: readonly [{
385
+ readonly indexed: true;
386
+ readonly name: "owner";
387
+ readonly type: "address";
388
+ }];
389
+ readonly name: "OwnerAddition";
390
+ readonly type: "event";
391
+ }, {
392
+ readonly anonymous: false;
393
+ readonly inputs: readonly [{
394
+ readonly indexed: true;
395
+ readonly name: "owner";
396
+ readonly type: "address";
397
+ }];
398
+ readonly name: "OwnerRemoval";
399
+ readonly type: "event";
400
+ }, {
401
+ readonly anonymous: false;
402
+ readonly inputs: readonly [{
403
+ readonly indexed: false;
404
+ readonly name: "required";
405
+ readonly type: "uint256";
406
+ }];
407
+ readonly name: "RequirementChange";
408
+ readonly type: "event";
409
+ }];
410
+ /**
411
+ * Type-safe ABI for MultiSigWallet_json
412
+ */
413
+ export type MultiSigWallet_jsonAbi = typeof MultiSigWallet_jsonAbi;
414
+ /**
415
+ * Contract instance type for MultiSigWallet_json
416
+ */
417
+ export type MultiSigWallet_jsonContract = any;
418
+ /**
419
+ * MultiSigWallet_json Contract Class
420
+ *
421
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
422
+ *
423
+ * @example
424
+ * ```typescript
425
+ * import { createPublicClient, createWalletClient, http } from 'viem';
426
+ * import { mainnet } from 'viem/chains';
427
+ * import { MultiSigWallet_json } from 'MultiSigWallet_json';
428
+ *
429
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
430
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
431
+ *
432
+ * const contract = new MultiSigWallet_json('0x...', { publicClient, walletClient });
433
+ *
434
+ * // Read functions
435
+ * const result = await contract.balanceOf('0x...');
436
+ *
437
+ * // Write functions
438
+ * const hash = await contract.transfer('0x...', 1000n);
439
+ *
440
+ * // Simulate transactions (dry-run)
441
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
442
+ * console.log('Gas estimate:', simulation.request.gas);
443
+ *
444
+ * // Watch events
445
+ * const unwatch = contract.watch.Transfer((event) => {
446
+ * console.log('Transfer event:', event);
447
+ * });
448
+ * ```
449
+ */
450
+ export declare class MultiSigWallet_json {
451
+ private contract;
452
+ private contractAddress;
453
+ private publicClient;
454
+ constructor(address: Address, clients: {
455
+ publicClient: PublicClient;
456
+ walletClient?: WalletClient;
457
+ });
458
+ /**
459
+ * Get the contract address
460
+ */
461
+ get address(): Address;
462
+ /**
463
+ * Get the underlying viem contract instance
464
+ */
465
+ getContract(): MultiSigWallet_jsonContract;
466
+ /**
467
+ * owners
468
+ * view
469
+ */
470
+ owners(arg0: bigint): Promise<`0x${string}`>;
471
+ /**
472
+ * isOwner
473
+ * view
474
+ */
475
+ isOwner(arg0: `0x${string}`): Promise<boolean>;
476
+ /**
477
+ * confirmations
478
+ * view
479
+ */
480
+ confirmations(arg0: bigint, arg1: `0x${string}`): Promise<boolean>;
481
+ /**
482
+ * getTransactionCount
483
+ * view
484
+ */
485
+ getTransactionCount(pending: boolean, executed: boolean): Promise<bigint>;
486
+ /**
487
+ * isConfirmed
488
+ * view
489
+ */
490
+ isConfirmed(transactionId: bigint): Promise<boolean>;
491
+ /**
492
+ * getConfirmationCount
493
+ * view
494
+ */
495
+ getConfirmationCount(transactionId: bigint): Promise<bigint>;
496
+ /**
497
+ * transactions
498
+ * view
499
+ */
500
+ transactions(arg0: bigint): Promise<[`0x${string}`, bigint, `0x${string}`, boolean]>;
501
+ /**
502
+ * getOwners
503
+ * view
504
+ */
505
+ getOwners(): Promise<`0x${string}`[]>;
506
+ /**
507
+ * getTransactionIds
508
+ * view
509
+ */
510
+ getTransactionIds(from: bigint, to: bigint, pending: boolean, executed: boolean): Promise<bigint[]>;
511
+ /**
512
+ * getConfirmations
513
+ * view
514
+ */
515
+ getConfirmations(transactionId: bigint): Promise<`0x${string}`[]>;
516
+ /**
517
+ * transactionCount
518
+ * view
519
+ */
520
+ transactionCount(): Promise<bigint>;
521
+ /**
522
+ * MAX_OWNER_COUNT
523
+ * view
524
+ */
525
+ MAX_OWNER_COUNT(): Promise<bigint>;
526
+ /**
527
+ * required
528
+ * view
529
+ */
530
+ required(): Promise<bigint>;
531
+ /**
532
+ * removeOwner
533
+ * nonpayable
534
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
535
+ */
536
+ removeOwner(owner: `0x${string}`, options?: {
537
+ accessList?: import('viem').AccessList;
538
+ authorizationList?: import('viem').AuthorizationList;
539
+ chain?: import('viem').Chain | null;
540
+ dataSuffix?: `0x${string}`;
541
+ gas?: bigint;
542
+ gasPrice?: bigint;
543
+ maxFeePerGas?: bigint;
544
+ maxPriorityFeePerGas?: bigint;
545
+ nonce?: number;
546
+ value?: bigint;
547
+ }): Promise<`0x${string}`>;
548
+ /**
549
+ * revokeConfirmation
550
+ * nonpayable
551
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
552
+ */
553
+ revokeConfirmation(transactionId: bigint, options?: {
554
+ accessList?: import('viem').AccessList;
555
+ authorizationList?: import('viem').AuthorizationList;
556
+ chain?: import('viem').Chain | null;
557
+ dataSuffix?: `0x${string}`;
558
+ gas?: bigint;
559
+ gasPrice?: bigint;
560
+ maxFeePerGas?: bigint;
561
+ maxPriorityFeePerGas?: bigint;
562
+ nonce?: number;
563
+ value?: bigint;
564
+ }): Promise<`0x${string}`>;
565
+ /**
566
+ * addOwner
567
+ * nonpayable
568
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
569
+ */
570
+ addOwner(owner: `0x${string}`, options?: {
571
+ accessList?: import('viem').AccessList;
572
+ authorizationList?: import('viem').AuthorizationList;
573
+ chain?: import('viem').Chain | null;
574
+ dataSuffix?: `0x${string}`;
575
+ gas?: bigint;
576
+ gasPrice?: bigint;
577
+ maxFeePerGas?: bigint;
578
+ maxPriorityFeePerGas?: bigint;
579
+ nonce?: number;
580
+ value?: bigint;
581
+ }): Promise<`0x${string}`>;
582
+ /**
583
+ * changeRequirement
584
+ * nonpayable
585
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
586
+ */
587
+ changeRequirement(_required: bigint, options?: {
588
+ accessList?: import('viem').AccessList;
589
+ authorizationList?: import('viem').AuthorizationList;
590
+ chain?: import('viem').Chain | null;
591
+ dataSuffix?: `0x${string}`;
592
+ gas?: bigint;
593
+ gasPrice?: bigint;
594
+ maxFeePerGas?: bigint;
595
+ maxPriorityFeePerGas?: bigint;
596
+ nonce?: number;
597
+ value?: bigint;
598
+ }): Promise<`0x${string}`>;
599
+ /**
600
+ * confirmTransaction
601
+ * nonpayable
602
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
603
+ */
604
+ confirmTransaction(transactionId: bigint, options?: {
605
+ accessList?: import('viem').AccessList;
606
+ authorizationList?: import('viem').AuthorizationList;
607
+ chain?: import('viem').Chain | null;
608
+ dataSuffix?: `0x${string}`;
609
+ gas?: bigint;
610
+ gasPrice?: bigint;
611
+ maxFeePerGas?: bigint;
612
+ maxPriorityFeePerGas?: bigint;
613
+ nonce?: number;
614
+ value?: bigint;
615
+ }): Promise<`0x${string}`>;
616
+ /**
617
+ * submitTransaction
618
+ * nonpayable
619
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
620
+ */
621
+ submitTransaction(destination: `0x${string}`, value: bigint, data: `0x${string}`, options?: {
622
+ accessList?: import('viem').AccessList;
623
+ authorizationList?: import('viem').AuthorizationList;
624
+ chain?: import('viem').Chain | null;
625
+ dataSuffix?: `0x${string}`;
626
+ gas?: bigint;
627
+ gasPrice?: bigint;
628
+ maxFeePerGas?: bigint;
629
+ maxPriorityFeePerGas?: bigint;
630
+ nonce?: number;
631
+ value?: bigint;
632
+ }): Promise<`0x${string}`>;
633
+ /**
634
+ * replaceOwner
635
+ * nonpayable
636
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
637
+ */
638
+ replaceOwner(owner: `0x${string}`, newOwner: `0x${string}`, options?: {
639
+ accessList?: import('viem').AccessList;
640
+ authorizationList?: import('viem').AuthorizationList;
641
+ chain?: import('viem').Chain | null;
642
+ dataSuffix?: `0x${string}`;
643
+ gas?: bigint;
644
+ gasPrice?: bigint;
645
+ maxFeePerGas?: bigint;
646
+ maxPriorityFeePerGas?: bigint;
647
+ nonce?: number;
648
+ value?: bigint;
649
+ }): Promise<`0x${string}`>;
650
+ /**
651
+ * executeTransaction
652
+ * nonpayable
653
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
654
+ */
655
+ executeTransaction(transactionId: bigint, options?: {
656
+ accessList?: import('viem').AccessList;
657
+ authorizationList?: import('viem').AuthorizationList;
658
+ chain?: import('viem').Chain | null;
659
+ dataSuffix?: `0x${string}`;
660
+ gas?: bigint;
661
+ gasPrice?: bigint;
662
+ maxFeePerGas?: bigint;
663
+ maxPriorityFeePerGas?: bigint;
664
+ nonce?: number;
665
+ value?: bigint;
666
+ }): Promise<`0x${string}`>;
667
+ /**
668
+ * Simulate contract write operations (dry-run without sending transaction)
669
+ *
670
+ * @example
671
+ * const result = await contract.simulate.transfer('0x...', 1000n);
672
+ * console.log('Gas estimate:', result.request.gas);
673
+ * console.log('Would succeed:', result.result);
674
+ */
675
+ get simulate(): {
676
+ /**
677
+ * Simulate removeOwner
678
+ * Returns gas estimate and result without sending transaction
679
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
680
+ */
681
+ removeOwner(owner: `0x${string}`, options?: {
682
+ accessList?: import("viem").AccessList;
683
+ authorizationList?: import("viem").AuthorizationList;
684
+ chain?: import("viem").Chain | null;
685
+ dataSuffix?: `0x${string}`;
686
+ gas?: bigint;
687
+ gasPrice?: bigint;
688
+ maxFeePerGas?: bigint;
689
+ maxPriorityFeePerGas?: bigint;
690
+ nonce?: number;
691
+ value?: bigint;
692
+ }): Promise<void>;
693
+ /**
694
+ * Simulate revokeConfirmation
695
+ * Returns gas estimate and result without sending transaction
696
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
697
+ */
698
+ revokeConfirmation(transactionId: bigint, options?: {
699
+ accessList?: import("viem").AccessList;
700
+ authorizationList?: import("viem").AuthorizationList;
701
+ chain?: import("viem").Chain | null;
702
+ dataSuffix?: `0x${string}`;
703
+ gas?: bigint;
704
+ gasPrice?: bigint;
705
+ maxFeePerGas?: bigint;
706
+ maxPriorityFeePerGas?: bigint;
707
+ nonce?: number;
708
+ value?: bigint;
709
+ }): Promise<void>;
710
+ /**
711
+ * Simulate addOwner
712
+ * Returns gas estimate and result without sending transaction
713
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
714
+ */
715
+ addOwner(owner: `0x${string}`, options?: {
716
+ accessList?: import("viem").AccessList;
717
+ authorizationList?: import("viem").AuthorizationList;
718
+ chain?: import("viem").Chain | null;
719
+ dataSuffix?: `0x${string}`;
720
+ gas?: bigint;
721
+ gasPrice?: bigint;
722
+ maxFeePerGas?: bigint;
723
+ maxPriorityFeePerGas?: bigint;
724
+ nonce?: number;
725
+ value?: bigint;
726
+ }): Promise<void>;
727
+ /**
728
+ * Simulate changeRequirement
729
+ * Returns gas estimate and result without sending transaction
730
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
731
+ */
732
+ changeRequirement(_required: bigint, options?: {
733
+ accessList?: import("viem").AccessList;
734
+ authorizationList?: import("viem").AuthorizationList;
735
+ chain?: import("viem").Chain | null;
736
+ dataSuffix?: `0x${string}`;
737
+ gas?: bigint;
738
+ gasPrice?: bigint;
739
+ maxFeePerGas?: bigint;
740
+ maxPriorityFeePerGas?: bigint;
741
+ nonce?: number;
742
+ value?: bigint;
743
+ }): Promise<void>;
744
+ /**
745
+ * Simulate confirmTransaction
746
+ * Returns gas estimate and result without sending transaction
747
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
748
+ */
749
+ confirmTransaction(transactionId: bigint, options?: {
750
+ accessList?: import("viem").AccessList;
751
+ authorizationList?: import("viem").AuthorizationList;
752
+ chain?: import("viem").Chain | null;
753
+ dataSuffix?: `0x${string}`;
754
+ gas?: bigint;
755
+ gasPrice?: bigint;
756
+ maxFeePerGas?: bigint;
757
+ maxPriorityFeePerGas?: bigint;
758
+ nonce?: number;
759
+ value?: bigint;
760
+ }): Promise<void>;
761
+ /**
762
+ * Simulate submitTransaction
763
+ * Returns gas estimate and result without sending transaction
764
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
765
+ */
766
+ submitTransaction(destination: `0x${string}`, value: bigint, data: `0x${string}`, options?: {
767
+ accessList?: import("viem").AccessList;
768
+ authorizationList?: import("viem").AuthorizationList;
769
+ chain?: import("viem").Chain | null;
770
+ dataSuffix?: `0x${string}`;
771
+ gas?: bigint;
772
+ gasPrice?: bigint;
773
+ maxFeePerGas?: bigint;
774
+ maxPriorityFeePerGas?: bigint;
775
+ nonce?: number;
776
+ value?: bigint;
777
+ }): Promise<bigint>;
778
+ /**
779
+ * Simulate replaceOwner
780
+ * Returns gas estimate and result without sending transaction
781
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
782
+ */
783
+ replaceOwner(owner: `0x${string}`, newOwner: `0x${string}`, options?: {
784
+ accessList?: import("viem").AccessList;
785
+ authorizationList?: import("viem").AuthorizationList;
786
+ chain?: import("viem").Chain | null;
787
+ dataSuffix?: `0x${string}`;
788
+ gas?: bigint;
789
+ gasPrice?: bigint;
790
+ maxFeePerGas?: bigint;
791
+ maxPriorityFeePerGas?: bigint;
792
+ nonce?: number;
793
+ value?: bigint;
794
+ }): Promise<void>;
795
+ /**
796
+ * Simulate executeTransaction
797
+ * Returns gas estimate and result without sending transaction
798
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
799
+ */
800
+ executeTransaction(transactionId: bigint, options?: {
801
+ accessList?: import("viem").AccessList;
802
+ authorizationList?: import("viem").AuthorizationList;
803
+ chain?: import("viem").Chain | null;
804
+ dataSuffix?: `0x${string}`;
805
+ gas?: bigint;
806
+ gasPrice?: bigint;
807
+ maxFeePerGas?: bigint;
808
+ maxPriorityFeePerGas?: bigint;
809
+ nonce?: number;
810
+ value?: bigint;
811
+ }): Promise<void>;
812
+ };
813
+ /**
814
+ * Watch contract events
815
+ *
816
+ * @example
817
+ * // Watch all Transfer events
818
+ * const unwatch = contract.watch.Transfer((event) => {
819
+ * console.log('Transfer:', event);
820
+ * });
821
+ *
822
+ * // Stop watching
823
+ * unwatch();
824
+ */
825
+ get watch(): {
826
+ /**
827
+ * Watch Confirmation events
828
+ * @param callback Function to call when event is emitted
829
+ * @param filter Optional filter for indexed parameters
830
+ * @returns Unwatch function to stop listening
831
+ */
832
+ Confirmation: (callback: (event: {
833
+ sender: `0x${string}`;
834
+ transactionId: bigint;
835
+ }) => void, filter?: {
836
+ sender: `0x${string}`;
837
+ transactionId: bigint;
838
+ }) => () => void;
839
+ /**
840
+ * Watch Revocation events
841
+ * @param callback Function to call when event is emitted
842
+ * @param filter Optional filter for indexed parameters
843
+ * @returns Unwatch function to stop listening
844
+ */
845
+ Revocation: (callback: (event: {
846
+ sender: `0x${string}`;
847
+ transactionId: bigint;
848
+ }) => void, filter?: {
849
+ sender: `0x${string}`;
850
+ transactionId: bigint;
851
+ }) => () => void;
852
+ /**
853
+ * Watch Submission events
854
+ * @param callback Function to call when event is emitted
855
+ * @param filter Optional filter for indexed parameters
856
+ * @returns Unwatch function to stop listening
857
+ */
858
+ Submission: (callback: (event: {
859
+ transactionId: bigint;
860
+ }) => void, filter?: {
861
+ transactionId: bigint;
862
+ }) => () => void;
863
+ /**
864
+ * Watch Execution events
865
+ * @param callback Function to call when event is emitted
866
+ * @param filter Optional filter for indexed parameters
867
+ * @returns Unwatch function to stop listening
868
+ */
869
+ Execution: (callback: (event: {
870
+ transactionId: bigint;
871
+ }) => void, filter?: {
872
+ transactionId: bigint;
873
+ }) => () => void;
874
+ /**
875
+ * Watch ExecutionFailure events
876
+ * @param callback Function to call when event is emitted
877
+ * @param filter Optional filter for indexed parameters
878
+ * @returns Unwatch function to stop listening
879
+ */
880
+ ExecutionFailure: (callback: (event: {
881
+ transactionId: bigint;
882
+ }) => void, filter?: {
883
+ transactionId: bigint;
884
+ }) => () => void;
885
+ /**
886
+ * Watch Deposit events
887
+ * @param callback Function to call when event is emitted
888
+ * @param filter Optional filter for indexed parameters
889
+ * @returns Unwatch function to stop listening
890
+ */
891
+ Deposit: (callback: (event: {
892
+ sender: `0x${string}`;
893
+ value: bigint;
894
+ }) => void, filter?: {
895
+ sender: `0x${string}`;
896
+ }) => () => void;
897
+ /**
898
+ * Watch OwnerAddition events
899
+ * @param callback Function to call when event is emitted
900
+ * @param filter Optional filter for indexed parameters
901
+ * @returns Unwatch function to stop listening
902
+ */
903
+ OwnerAddition: (callback: (event: {
904
+ owner: `0x${string}`;
905
+ }) => void, filter?: {
906
+ owner: `0x${string}`;
907
+ }) => () => void;
908
+ /**
909
+ * Watch OwnerRemoval events
910
+ * @param callback Function to call when event is emitted
911
+ * @param filter Optional filter for indexed parameters
912
+ * @returns Unwatch function to stop listening
913
+ */
914
+ OwnerRemoval: (callback: (event: {
915
+ owner: `0x${string}`;
916
+ }) => void, filter?: {
917
+ owner: `0x${string}`;
918
+ }) => () => void;
919
+ /**
920
+ * Watch RequirementChange events
921
+ * @param callback Function to call when event is emitted
922
+ * @param filter Optional filter for indexed parameters
923
+ * @returns Unwatch function to stop listening
924
+ */
925
+ RequirementChange: (callback: (event: {
926
+ required: bigint;
927
+ }) => void) => () => void;
928
+ };
929
+ }