@gitmyabi/walletsimple 1.0.27 → 1.0.28

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.
@@ -8,266 +8,367 @@ import { getContract } from 'viem';
8
8
  */
9
9
  export const WalletSimple_jsonAbi = [
10
10
  {
11
- "constant": false,
11
+ "anonymous": false,
12
12
  "inputs": [
13
13
  {
14
- "name": "toAddress",
14
+ "indexed": false,
15
+ "internalType": "address",
16
+ "name": "msgSender",
15
17
  "type": "address"
16
18
  },
17
19
  {
18
- "name": "value",
19
- "type": "uint256"
20
+ "indexed": false,
21
+ "internalType": "address",
22
+ "name": "otherSigner",
23
+ "type": "address"
20
24
  },
21
25
  {
22
- "name": "tokenContractAddress",
26
+ "indexed": false,
27
+ "internalType": "bytes32",
28
+ "name": "operation",
29
+ "type": "bytes32"
30
+ }
31
+ ],
32
+ "name": "BatchTransacted",
33
+ "type": "event"
34
+ },
35
+ {
36
+ "anonymous": false,
37
+ "inputs": [
38
+ {
39
+ "indexed": false,
40
+ "internalType": "address",
41
+ "name": "sender",
23
42
  "type": "address"
24
43
  },
25
44
  {
26
- "name": "expireTime",
27
- "type": "uint256"
45
+ "indexed": false,
46
+ "internalType": "address",
47
+ "name": "recipient",
48
+ "type": "address"
28
49
  },
29
50
  {
30
- "name": "sequenceId",
51
+ "indexed": false,
52
+ "internalType": "uint256",
53
+ "name": "value",
31
54
  "type": "uint256"
32
- },
33
- {
34
- "name": "signature",
35
- "type": "bytes"
36
55
  }
37
56
  ],
38
- "name": "sendMultiSigToken",
39
- "outputs": [],
40
- "payable": false,
41
- "stateMutability": "nonpayable",
42
- "type": "function"
57
+ "name": "BatchTransfer",
58
+ "type": "event"
43
59
  },
44
60
  {
45
- "constant": true,
61
+ "anonymous": false,
46
62
  "inputs": [
47
63
  {
48
- "name": "",
64
+ "indexed": false,
65
+ "internalType": "address",
66
+ "name": "from",
67
+ "type": "address"
68
+ },
69
+ {
70
+ "indexed": false,
71
+ "internalType": "uint256",
72
+ "name": "value",
49
73
  "type": "uint256"
50
- }
51
- ],
52
- "name": "signers",
53
- "outputs": [
74
+ },
54
75
  {
55
- "name": "",
56
- "type": "address"
76
+ "indexed": false,
77
+ "internalType": "bytes",
78
+ "name": "data",
79
+ "type": "bytes"
57
80
  }
58
81
  ],
59
- "payable": false,
60
- "stateMutability": "view",
61
- "type": "function"
82
+ "name": "Deposited",
83
+ "type": "event"
62
84
  },
63
85
  {
64
- "constant": false,
86
+ "anonymous": false,
65
87
  "inputs": [
66
88
  {
67
- "name": "forwarderAddress",
68
- "type": "address"
69
- },
70
- {
71
- "name": "tokenContractAddress",
89
+ "indexed": false,
90
+ "internalType": "address",
91
+ "name": "msgSender",
72
92
  "type": "address"
73
93
  }
74
94
  ],
75
- "name": "flushForwarderTokens",
76
- "outputs": [],
77
- "payable": false,
78
- "stateMutability": "nonpayable",
79
- "type": "function"
95
+ "name": "SafeModeActivated",
96
+ "type": "event"
80
97
  },
81
98
  {
82
- "constant": false,
99
+ "anonymous": false,
83
100
  "inputs": [
84
101
  {
85
- "name": "toAddress",
102
+ "indexed": false,
103
+ "internalType": "address",
104
+ "name": "msgSender",
86
105
  "type": "address"
87
106
  },
88
107
  {
89
- "name": "value",
90
- "type": "uint256"
108
+ "indexed": false,
109
+ "internalType": "address",
110
+ "name": "otherSigner",
111
+ "type": "address"
91
112
  },
92
113
  {
93
- "name": "data",
94
- "type": "bytes"
114
+ "indexed": false,
115
+ "internalType": "bytes32",
116
+ "name": "operation",
117
+ "type": "bytes32"
95
118
  },
96
119
  {
97
- "name": "expireTime",
98
- "type": "uint256"
120
+ "indexed": false,
121
+ "internalType": "address",
122
+ "name": "toAddress",
123
+ "type": "address"
99
124
  },
100
125
  {
101
- "name": "sequenceId",
126
+ "indexed": false,
127
+ "internalType": "uint256",
128
+ "name": "value",
102
129
  "type": "uint256"
103
130
  },
104
131
  {
105
- "name": "signature",
132
+ "indexed": false,
133
+ "internalType": "bytes",
134
+ "name": "data",
106
135
  "type": "bytes"
107
136
  }
108
137
  ],
109
- "name": "sendMultiSig",
138
+ "name": "Transacted",
139
+ "type": "event"
140
+ },
141
+ {
142
+ "stateMutability": "payable",
143
+ "type": "fallback"
144
+ },
145
+ {
146
+ "inputs": [],
147
+ "name": "activateSafeMode",
110
148
  "outputs": [],
111
- "payable": false,
112
149
  "stateMutability": "nonpayable",
113
150
  "type": "function"
114
151
  },
115
152
  {
116
- "constant": true,
117
153
  "inputs": [
118
154
  {
119
- "name": "signer",
155
+ "internalType": "address payable",
156
+ "name": "forwarderAddress",
120
157
  "type": "address"
121
- }
122
- ],
123
- "name": "isSigner",
124
- "outputs": [
158
+ },
125
159
  {
126
- "name": "",
127
- "type": "bool"
160
+ "internalType": "address",
161
+ "name": "tokenContractAddress",
162
+ "type": "address"
128
163
  }
129
164
  ],
130
- "payable": false,
131
- "stateMutability": "view",
165
+ "name": "flushForwarderTokens",
166
+ "outputs": [],
167
+ "stateMutability": "nonpayable",
132
168
  "type": "function"
133
169
  },
134
170
  {
135
- "constant": true,
136
171
  "inputs": [],
137
172
  "name": "getNextSequenceId",
138
173
  "outputs": [
139
174
  {
175
+ "internalType": "uint256",
140
176
  "name": "",
141
177
  "type": "uint256"
142
178
  }
143
179
  ],
144
- "payable": false,
145
180
  "stateMutability": "view",
146
181
  "type": "function"
147
182
  },
148
183
  {
149
- "constant": false,
150
- "inputs": [],
151
- "name": "createForwarder",
152
- "outputs": [
184
+ "inputs": [
153
185
  {
154
- "name": "",
155
- "type": "address"
186
+ "internalType": "address[]",
187
+ "name": "allowedSigners",
188
+ "type": "address[]"
156
189
  }
157
190
  ],
158
- "payable": false,
191
+ "name": "init",
192
+ "outputs": [],
159
193
  "stateMutability": "nonpayable",
160
194
  "type": "function"
161
195
  },
162
196
  {
163
- "constant": true,
164
197
  "inputs": [],
165
- "name": "safeMode",
198
+ "name": "initialized",
166
199
  "outputs": [
167
200
  {
201
+ "internalType": "bool",
168
202
  "name": "",
169
203
  "type": "bool"
170
204
  }
171
205
  ],
172
- "payable": false,
173
206
  "stateMutability": "view",
174
207
  "type": "function"
175
208
  },
176
- {
177
- "constant": false,
178
- "inputs": [],
179
- "name": "activateSafeMode",
180
- "outputs": [],
181
- "payable": false,
182
- "stateMutability": "nonpayable",
183
- "type": "function"
184
- },
185
209
  {
186
210
  "inputs": [
187
211
  {
188
- "name": "allowedSigners",
189
- "type": "address[]"
212
+ "internalType": "address",
213
+ "name": "signer",
214
+ "type": "address"
190
215
  }
191
216
  ],
192
- "payable": false,
193
- "stateMutability": "nonpayable",
194
- "type": "constructor"
217
+ "name": "isSigner",
218
+ "outputs": [
219
+ {
220
+ "internalType": "bool",
221
+ "name": "",
222
+ "type": "bool"
223
+ }
224
+ ],
225
+ "stateMutability": "view",
226
+ "type": "function"
195
227
  },
196
228
  {
197
- "payable": true,
198
- "stateMutability": "payable",
199
- "type": "fallback"
229
+ "inputs": [],
230
+ "name": "safeMode",
231
+ "outputs": [
232
+ {
233
+ "internalType": "bool",
234
+ "name": "",
235
+ "type": "bool"
236
+ }
237
+ ],
238
+ "stateMutability": "view",
239
+ "type": "function"
200
240
  },
201
241
  {
202
- "anonymous": false,
203
242
  "inputs": [
204
243
  {
205
- "indexed": false,
206
- "name": "from",
244
+ "internalType": "address",
245
+ "name": "toAddress",
207
246
  "type": "address"
208
247
  },
209
248
  {
210
- "indexed": false,
249
+ "internalType": "uint256",
211
250
  "name": "value",
212
251
  "type": "uint256"
213
252
  },
214
253
  {
215
- "indexed": false,
254
+ "internalType": "bytes",
216
255
  "name": "data",
217
256
  "type": "bytes"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "expireTime",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "uint256",
265
+ "name": "sequenceId",
266
+ "type": "uint256"
267
+ },
268
+ {
269
+ "internalType": "bytes",
270
+ "name": "signature",
271
+ "type": "bytes"
218
272
  }
219
273
  ],
220
- "name": "Deposited",
221
- "type": "event"
274
+ "name": "sendMultiSig",
275
+ "outputs": [],
276
+ "stateMutability": "nonpayable",
277
+ "type": "function"
222
278
  },
223
279
  {
224
- "anonymous": false,
225
280
  "inputs": [
226
281
  {
227
- "indexed": false,
228
- "name": "msgSender",
229
- "type": "address"
282
+ "internalType": "address[]",
283
+ "name": "recipients",
284
+ "type": "address[]"
285
+ },
286
+ {
287
+ "internalType": "uint256[]",
288
+ "name": "values",
289
+ "type": "uint256[]"
290
+ },
291
+ {
292
+ "internalType": "uint256",
293
+ "name": "expireTime",
294
+ "type": "uint256"
295
+ },
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "sequenceId",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "internalType": "bytes",
303
+ "name": "signature",
304
+ "type": "bytes"
230
305
  }
231
306
  ],
232
- "name": "SafeModeActivated",
233
- "type": "event"
307
+ "name": "sendMultiSigBatch",
308
+ "outputs": [],
309
+ "stateMutability": "nonpayable",
310
+ "type": "function"
234
311
  },
235
312
  {
236
- "anonymous": false,
237
313
  "inputs": [
238
314
  {
239
- "indexed": false,
240
- "name": "msgSender",
315
+ "internalType": "address",
316
+ "name": "toAddress",
241
317
  "type": "address"
242
318
  },
243
319
  {
244
- "indexed": false,
245
- "name": "otherSigner",
246
- "type": "address"
320
+ "internalType": "uint256",
321
+ "name": "value",
322
+ "type": "uint256"
247
323
  },
248
324
  {
249
- "indexed": false,
250
- "name": "operation",
251
- "type": "bytes32"
325
+ "internalType": "address",
326
+ "name": "tokenContractAddress",
327
+ "type": "address"
252
328
  },
253
329
  {
254
- "indexed": false,
255
- "name": "toAddress",
256
- "type": "address"
330
+ "internalType": "uint256",
331
+ "name": "expireTime",
332
+ "type": "uint256"
257
333
  },
258
334
  {
259
- "indexed": false,
260
- "name": "value",
335
+ "internalType": "uint256",
336
+ "name": "sequenceId",
261
337
  "type": "uint256"
262
338
  },
263
339
  {
264
- "indexed": false,
265
- "name": "data",
340
+ "internalType": "bytes",
341
+ "name": "signature",
266
342
  "type": "bytes"
267
343
  }
268
344
  ],
269
- "name": "Transacted",
270
- "type": "event"
345
+ "name": "sendMultiSigToken",
346
+ "outputs": [],
347
+ "stateMutability": "nonpayable",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [
352
+ {
353
+ "internalType": "address",
354
+ "name": "",
355
+ "type": "address"
356
+ }
357
+ ],
358
+ "name": "signers",
359
+ "outputs": [
360
+ {
361
+ "internalType": "bool",
362
+ "name": "",
363
+ "type": "bool"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "stateMutability": "payable",
371
+ "type": "receive"
271
372
  }
272
373
  ] as const satisfies Abi;
273
374
 
@@ -354,27 +455,27 @@ export class WalletSimple_json {
354
455
  }
355
456
 
356
457
  /**
357
- * signers
458
+ * getNextSequenceId
358
459
  * view
359
460
  */
360
- async signers(arg0: bigint): Promise<`0x${string}`> {
361
- return this.contract.read.signers([arg0] as const) as Promise<`0x${string}`>;
461
+ async getNextSequenceId(): Promise<bigint> {
462
+ return this.contract.read.getNextSequenceId() as Promise<bigint>;
362
463
  }
363
464
 
364
465
  /**
365
- * isSigner
466
+ * initialized
366
467
  * view
367
468
  */
368
- async isSigner(signer: `0x${string}`): Promise<boolean> {
369
- return this.contract.read.isSigner([signer] as const) as Promise<boolean>;
469
+ async initialized(): Promise<boolean> {
470
+ return this.contract.read.initialized() as Promise<boolean>;
370
471
  }
371
472
 
372
473
  /**
373
- * getNextSequenceId
474
+ * isSigner
374
475
  * view
375
476
  */
376
- async getNextSequenceId(): Promise<bigint> {
377
- return this.contract.read.getNextSequenceId() as Promise<bigint>;
477
+ async isSigner(signer: `0x${string}`): Promise<boolean> {
478
+ return this.contract.read.isSigner([signer] as const) as Promise<boolean>;
378
479
  }
379
480
 
380
481
  /**
@@ -386,11 +487,19 @@ export class WalletSimple_json {
386
487
  }
387
488
 
388
489
  /**
389
- * sendMultiSigToken
490
+ * signers
491
+ * view
492
+ */
493
+ async signers(arg0: `0x${string}`): Promise<boolean> {
494
+ return this.contract.read.signers([arg0] as const) as Promise<boolean>;
495
+ }
496
+
497
+ /**
498
+ * activateSafeMode
390
499
  * nonpayable
391
500
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
392
501
  */
393
- async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
502
+ async activateSafeMode(options?: {
394
503
  accessList?: import('viem').AccessList;
395
504
  authorizationList?: import('viem').AuthorizationList;
396
505
  chain?: import('viem').Chain | null;
@@ -405,7 +514,7 @@ export class WalletSimple_json {
405
514
  if (!this.contract.write) {
406
515
  throw new Error('Wallet client is required for write operations');
407
516
  }
408
- return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
517
+ return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
409
518
  }
410
519
 
411
520
  /**
@@ -431,6 +540,29 @@ export class WalletSimple_json {
431
540
  return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress] as const, options) as Promise<`0x${string}`>;
432
541
  }
433
542
 
543
+ /**
544
+ * init
545
+ * nonpayable
546
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
547
+ */
548
+ async init(allowedSigners: `0x${string}`[], options?: {
549
+ accessList?: import('viem').AccessList;
550
+ authorizationList?: import('viem').AuthorizationList;
551
+ chain?: import('viem').Chain | null;
552
+ dataSuffix?: `0x${string}`;
553
+ gas?: bigint;
554
+ gasPrice?: bigint;
555
+ maxFeePerGas?: bigint;
556
+ maxPriorityFeePerGas?: bigint;
557
+ nonce?: number;
558
+ value?: bigint;
559
+ }): Promise<`0x${string}`> {
560
+ if (!this.contract.write) {
561
+ throw new Error('Wallet client is required for write operations');
562
+ }
563
+ return this.contract.write.init([allowedSigners] as const, options) as Promise<`0x${string}`>;
564
+ }
565
+
434
566
  /**
435
567
  * sendMultiSig
436
568
  * nonpayable
@@ -455,11 +587,11 @@ export class WalletSimple_json {
455
587
  }
456
588
 
457
589
  /**
458
- * createForwarder
590
+ * sendMultiSigBatch
459
591
  * nonpayable
460
592
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
461
593
  */
462
- async createForwarder(options?: {
594
+ async sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
463
595
  accessList?: import('viem').AccessList;
464
596
  authorizationList?: import('viem').AuthorizationList;
465
597
  chain?: import('viem').Chain | null;
@@ -474,15 +606,15 @@ export class WalletSimple_json {
474
606
  if (!this.contract.write) {
475
607
  throw new Error('Wallet client is required for write operations');
476
608
  }
477
- return this.contract.write.createForwarder(options) as Promise<`0x${string}`>;
609
+ return this.contract.write.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
478
610
  }
479
611
 
480
612
  /**
481
- * activateSafeMode
613
+ * sendMultiSigToken
482
614
  * nonpayable
483
615
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
484
616
  */
485
- async activateSafeMode(options?: {
617
+ async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
486
618
  accessList?: import('viem').AccessList;
487
619
  authorizationList?: import('viem').AuthorizationList;
488
620
  chain?: import('viem').Chain | null;
@@ -497,7 +629,7 @@ export class WalletSimple_json {
497
629
  if (!this.contract.write) {
498
630
  throw new Error('Wallet client is required for write operations');
499
631
  }
500
- return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
632
+ return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
501
633
  }
502
634
 
503
635
 
@@ -517,11 +649,11 @@ export class WalletSimple_json {
517
649
  }
518
650
  return {
519
651
  /**
520
- * Simulate sendMultiSigToken
652
+ * Simulate activateSafeMode
521
653
  * Returns gas estimate and result without sending transaction
522
654
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
523
655
  */
524
- async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
656
+ async activateSafeMode(options?: {
525
657
  accessList?: import('viem').AccessList;
526
658
  authorizationList?: import('viem').AuthorizationList;
527
659
  chain?: import('viem').Chain | null;
@@ -533,7 +665,7 @@ export class WalletSimple_json {
533
665
  nonce?: number;
534
666
  value?: bigint;
535
667
  }): Promise<void> {
536
- return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<void>;
668
+ return contract.simulate.activateSafeMode(options) as Promise<void>;
537
669
  },
538
670
  /**
539
671
  * Simulate flushForwarderTokens
@@ -554,6 +686,25 @@ export class WalletSimple_json {
554
686
  }): Promise<void> {
555
687
  return contract.simulate.flushForwarderTokens([forwarderAddress, tokenContractAddress] as const, options) as Promise<void>;
556
688
  },
689
+ /**
690
+ * Simulate init
691
+ * Returns gas estimate and result without sending transaction
692
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
693
+ */
694
+ async init(allowedSigners: `0x${string}`[], options?: {
695
+ accessList?: import('viem').AccessList;
696
+ authorizationList?: import('viem').AuthorizationList;
697
+ chain?: import('viem').Chain | null;
698
+ dataSuffix?: `0x${string}`;
699
+ gas?: bigint;
700
+ gasPrice?: bigint;
701
+ maxFeePerGas?: bigint;
702
+ maxPriorityFeePerGas?: bigint;
703
+ nonce?: number;
704
+ value?: bigint;
705
+ }): Promise<void> {
706
+ return contract.simulate.init([allowedSigners] as const, options) as Promise<void>;
707
+ },
557
708
  /**
558
709
  * Simulate sendMultiSig
559
710
  * Returns gas estimate and result without sending transaction
@@ -574,11 +725,11 @@ export class WalletSimple_json {
574
725
  return contract.simulate.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature] as const, options) as Promise<void>;
575
726
  },
576
727
  /**
577
- * Simulate createForwarder
728
+ * Simulate sendMultiSigBatch
578
729
  * Returns gas estimate and result without sending transaction
579
730
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
580
731
  */
581
- async createForwarder(options?: {
732
+ async sendMultiSigBatch(recipients: `0x${string}`[], values: bigint[], expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
582
733
  accessList?: import('viem').AccessList;
583
734
  authorizationList?: import('viem').AuthorizationList;
584
735
  chain?: import('viem').Chain | null;
@@ -589,15 +740,15 @@ export class WalletSimple_json {
589
740
  maxPriorityFeePerGas?: bigint;
590
741
  nonce?: number;
591
742
  value?: bigint;
592
- }): Promise<`0x${string}`> {
593
- return contract.simulate.createForwarder(options) as Promise<`0x${string}`>;
743
+ }): Promise<void> {
744
+ return contract.simulate.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature] as const, options) as Promise<void>;
594
745
  },
595
746
  /**
596
- * Simulate activateSafeMode
747
+ * Simulate sendMultiSigToken
597
748
  * Returns gas estimate and result without sending transaction
598
749
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
599
750
  */
600
- async activateSafeMode(options?: {
751
+ async sendMultiSigToken(toAddress: `0x${string}`, value: bigint, tokenContractAddress: `0x${string}`, expireTime: bigint, sequenceId: bigint, signature: `0x${string}`, options?: {
601
752
  accessList?: import('viem').AccessList;
602
753
  authorizationList?: import('viem').AuthorizationList;
603
754
  chain?: import('viem').Chain | null;
@@ -609,7 +760,7 @@ export class WalletSimple_json {
609
760
  nonce?: number;
610
761
  value?: bigint;
611
762
  }): Promise<void> {
612
- return contract.simulate.activateSafeMode(options) as Promise<void>;
763
+ return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<void>;
613
764
  }
614
765
  };
615
766
  }
@@ -628,6 +779,44 @@ export class WalletSimple_json {
628
779
  */
629
780
  get watch() {
630
781
  return {
782
+ /**
783
+ * Watch BatchTransacted events
784
+ * @param callback Function to call when event is emitted
785
+ * @param filter Optional filter for indexed parameters
786
+ * @returns Unwatch function to stop listening
787
+ */
788
+ BatchTransacted: (callback: (event: { msgSender: `0x${string}`; otherSigner: `0x${string}`; operation: `0x${string}` }) => void) => {
789
+ return this.publicClient.watchContractEvent({
790
+ address: this.contractAddress,
791
+ abi: WalletSimple_jsonAbi,
792
+ eventName: 'BatchTransacted',
793
+
794
+ onLogs: (logs: any[]) => {
795
+ logs.forEach((log: any) => {
796
+ callback(log.args as any);
797
+ });
798
+ },
799
+ }) as () => void;
800
+ },
801
+ /**
802
+ * Watch BatchTransfer events
803
+ * @param callback Function to call when event is emitted
804
+ * @param filter Optional filter for indexed parameters
805
+ * @returns Unwatch function to stop listening
806
+ */
807
+ BatchTransfer: (callback: (event: { sender: `0x${string}`; recipient: `0x${string}`; value: bigint }) => void) => {
808
+ return this.publicClient.watchContractEvent({
809
+ address: this.contractAddress,
810
+ abi: WalletSimple_jsonAbi,
811
+ eventName: 'BatchTransfer',
812
+
813
+ onLogs: (logs: any[]) => {
814
+ logs.forEach((log: any) => {
815
+ callback(log.args as any);
816
+ });
817
+ },
818
+ }) as () => void;
819
+ },
631
820
  /**
632
821
  * Watch Deposited events
633
822
  * @param callback Function to call when event is emitted