@gitmyabi/walletsimple 1.0.33 → 1.0.35

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.
@@ -9,277 +9,114 @@ const viem_1 = require("viem");
9
9
  */
10
10
  exports.WalletSimple_jsonAbi = [
11
11
  {
12
- "anonymous": false,
12
+ "constant": false,
13
13
  "inputs": [
14
14
  {
15
- "indexed": false,
16
- "internalType": "address",
17
- "name": "msgSender",
18
- "type": "address"
19
- },
20
- {
21
- "indexed": false,
22
- "internalType": "address",
23
- "name": "otherSigner",
15
+ "name": "toAddress",
24
16
  "type": "address"
25
17
  },
26
18
  {
27
- "indexed": false,
28
- "internalType": "bytes32",
29
- "name": "operation",
30
- "type": "bytes32"
31
- }
32
- ],
33
- "name": "BatchTransacted",
34
- "type": "event"
35
- },
36
- {
37
- "anonymous": false,
38
- "inputs": [
39
- {
40
- "indexed": false,
41
- "internalType": "address",
42
- "name": "sender",
43
- "type": "address"
19
+ "name": "value",
20
+ "type": "uint256"
44
21
  },
45
22
  {
46
- "indexed": false,
47
- "internalType": "address",
48
- "name": "recipient",
23
+ "name": "tokenContractAddress",
49
24
  "type": "address"
50
25
  },
51
26
  {
52
- "indexed": false,
53
- "internalType": "uint256",
54
- "name": "value",
27
+ "name": "expireTime",
55
28
  "type": "uint256"
56
- }
57
- ],
58
- "name": "BatchTransfer",
59
- "type": "event"
60
- },
61
- {
62
- "anonymous": false,
63
- "inputs": [
64
- {
65
- "indexed": false,
66
- "internalType": "address",
67
- "name": "from",
68
- "type": "address"
69
29
  },
70
30
  {
71
- "indexed": false,
72
- "internalType": "uint256",
73
- "name": "value",
31
+ "name": "sequenceId",
74
32
  "type": "uint256"
75
33
  },
76
34
  {
77
- "indexed": false,
78
- "internalType": "bytes",
79
- "name": "data",
35
+ "name": "signature",
80
36
  "type": "bytes"
81
37
  }
82
38
  ],
83
- "name": "Deposited",
84
- "type": "event"
39
+ "name": "sendMultiSigToken",
40
+ "outputs": [],
41
+ "payable": false,
42
+ "stateMutability": "nonpayable",
43
+ "type": "function"
85
44
  },
86
45
  {
87
- "anonymous": false,
46
+ "constant": true,
88
47
  "inputs": [
89
48
  {
90
- "indexed": false,
91
- "internalType": "address",
92
- "name": "msgSender",
93
- "type": "address"
49
+ "name": "",
50
+ "type": "uint256"
94
51
  }
95
52
  ],
96
- "name": "SafeModeActivated",
97
- "type": "event"
98
- },
99
- {
100
- "anonymous": false,
101
- "inputs": [
102
- {
103
- "indexed": false,
104
- "internalType": "address",
105
- "name": "msgSender",
106
- "type": "address"
107
- },
108
- {
109
- "indexed": false,
110
- "internalType": "address",
111
- "name": "otherSigner",
112
- "type": "address"
113
- },
114
- {
115
- "indexed": false,
116
- "internalType": "bytes32",
117
- "name": "operation",
118
- "type": "bytes32"
119
- },
53
+ "name": "signers",
54
+ "outputs": [
120
55
  {
121
- "indexed": false,
122
- "internalType": "address",
123
- "name": "toAddress",
56
+ "name": "",
124
57
  "type": "address"
125
- },
126
- {
127
- "indexed": false,
128
- "internalType": "uint256",
129
- "name": "value",
130
- "type": "uint256"
131
- },
132
- {
133
- "indexed": false,
134
- "internalType": "bytes",
135
- "name": "data",
136
- "type": "bytes"
137
58
  }
138
59
  ],
139
- "name": "Transacted",
140
- "type": "event"
141
- },
142
- {
143
- "stateMutability": "payable",
144
- "type": "fallback"
145
- },
146
- {
147
- "inputs": [],
148
- "name": "activateSafeMode",
149
- "outputs": [],
150
- "stateMutability": "nonpayable",
60
+ "payable": false,
61
+ "stateMutability": "view",
151
62
  "type": "function"
152
63
  },
153
64
  {
65
+ "constant": false,
154
66
  "inputs": [
155
67
  {
156
- "internalType": "address payable",
157
68
  "name": "forwarderAddress",
158
69
  "type": "address"
159
70
  },
160
71
  {
161
- "internalType": "address",
162
72
  "name": "tokenContractAddress",
163
73
  "type": "address"
164
- },
165
- {
166
- "internalType": "uint256[]",
167
- "name": "tokenIds",
168
- "type": "uint256[]"
169
74
  }
170
75
  ],
171
- "name": "batchFlushERC1155ForwarderTokens",
76
+ "name": "flushForwarderTokens",
172
77
  "outputs": [],
78
+ "payable": false,
173
79
  "stateMutability": "nonpayable",
174
80
  "type": "function"
175
81
  },
176
82
  {
83
+ "constant": false,
177
84
  "inputs": [
178
85
  {
179
- "internalType": "address payable",
180
- "name": "forwarderAddress",
181
- "type": "address"
182
- },
183
- {
184
- "internalType": "address",
185
- "name": "tokenContractAddress",
86
+ "name": "toAddress",
186
87
  "type": "address"
187
88
  },
188
89
  {
189
- "internalType": "uint256",
190
- "name": "tokenId",
90
+ "name": "value",
191
91
  "type": "uint256"
192
- }
193
- ],
194
- "name": "flushERC1155ForwarderTokens",
195
- "outputs": [],
196
- "stateMutability": "nonpayable",
197
- "type": "function"
198
- },
199
- {
200
- "inputs": [
201
- {
202
- "internalType": "address payable",
203
- "name": "forwarderAddress",
204
- "type": "address"
205
92
  },
206
93
  {
207
- "internalType": "address",
208
- "name": "tokenContractAddress",
209
- "type": "address"
94
+ "name": "data",
95
+ "type": "bytes"
210
96
  },
211
97
  {
212
- "internalType": "uint256",
213
- "name": "tokenId",
98
+ "name": "expireTime",
214
99
  "type": "uint256"
215
- }
216
- ],
217
- "name": "flushERC721ForwarderTokens",
218
- "outputs": [],
219
- "stateMutability": "nonpayable",
220
- "type": "function"
221
- },
222
- {
223
- "inputs": [
224
- {
225
- "internalType": "address payable",
226
- "name": "forwarderAddress",
227
- "type": "address"
228
100
  },
229
101
  {
230
- "internalType": "address",
231
- "name": "tokenContractAddress",
232
- "type": "address"
233
- }
234
- ],
235
- "name": "flushForwarderTokens",
236
- "outputs": [],
237
- "stateMutability": "nonpayable",
238
- "type": "function"
239
- },
240
- {
241
- "inputs": [],
242
- "name": "getNextSequenceId",
243
- "outputs": [
244
- {
245
- "internalType": "uint256",
246
- "name": "",
102
+ "name": "sequenceId",
247
103
  "type": "uint256"
248
- }
249
- ],
250
- "stateMutability": "view",
251
- "type": "function"
252
- },
253
- {
254
- "inputs": [
104
+ },
255
105
  {
256
- "internalType": "address[]",
257
- "name": "allowedSigners",
258
- "type": "address[]"
106
+ "name": "signature",
107
+ "type": "bytes"
259
108
  }
260
109
  ],
261
- "name": "init",
110
+ "name": "sendMultiSig",
262
111
  "outputs": [],
112
+ "payable": false,
263
113
  "stateMutability": "nonpayable",
264
114
  "type": "function"
265
115
  },
266
116
  {
267
- "inputs": [],
268
- "name": "initialized",
269
- "outputs": [
270
- {
271
- "internalType": "bool",
272
- "name": "",
273
- "type": "bool"
274
- }
275
- ],
276
- "stateMutability": "view",
277
- "type": "function"
278
- },
279
- {
117
+ "constant": true,
280
118
  "inputs": [
281
119
  {
282
- "internalType": "address",
283
120
  "name": "signer",
284
121
  "type": "address"
285
122
  }
@@ -287,325 +124,151 @@ exports.WalletSimple_jsonAbi = [
287
124
  "name": "isSigner",
288
125
  "outputs": [
289
126
  {
290
- "internalType": "bool",
291
127
  "name": "",
292
128
  "type": "bool"
293
129
  }
294
130
  ],
131
+ "payable": false,
295
132
  "stateMutability": "view",
296
133
  "type": "function"
297
134
  },
298
135
  {
299
- "inputs": [
300
- {
301
- "internalType": "address",
302
- "name": "_operator",
303
- "type": "address"
304
- },
305
- {
306
- "internalType": "address",
307
- "name": "_from",
308
- "type": "address"
309
- },
310
- {
311
- "internalType": "uint256[]",
312
- "name": "ids",
313
- "type": "uint256[]"
314
- },
315
- {
316
- "internalType": "uint256[]",
317
- "name": "values",
318
- "type": "uint256[]"
319
- },
320
- {
321
- "internalType": "bytes",
322
- "name": "data",
323
- "type": "bytes"
324
- }
325
- ],
326
- "name": "onERC1155BatchReceived",
136
+ "constant": true,
137
+ "inputs": [],
138
+ "name": "getNextSequenceId",
327
139
  "outputs": [
328
140
  {
329
- "internalType": "bytes4",
330
141
  "name": "",
331
- "type": "bytes4"
332
- }
333
- ],
334
- "stateMutability": "nonpayable",
335
- "type": "function"
336
- },
337
- {
338
- "inputs": [
339
- {
340
- "internalType": "address",
341
- "name": "_operator",
342
- "type": "address"
343
- },
344
- {
345
- "internalType": "address",
346
- "name": "_from",
347
- "type": "address"
348
- },
349
- {
350
- "internalType": "uint256",
351
- "name": "id",
352
- "type": "uint256"
353
- },
354
- {
355
- "internalType": "uint256",
356
- "name": "value",
357
142
  "type": "uint256"
358
- },
359
- {
360
- "internalType": "bytes",
361
- "name": "data",
362
- "type": "bytes"
363
143
  }
364
144
  ],
365
- "name": "onERC1155Received",
366
- "outputs": [
367
- {
368
- "internalType": "bytes4",
369
- "name": "",
370
- "type": "bytes4"
371
- }
372
- ],
373
- "stateMutability": "nonpayable",
145
+ "payable": false,
146
+ "stateMutability": "view",
374
147
  "type": "function"
375
148
  },
376
149
  {
377
- "inputs": [
378
- {
379
- "internalType": "address",
380
- "name": "_operator",
381
- "type": "address"
382
- },
383
- {
384
- "internalType": "address",
385
- "name": "_from",
386
- "type": "address"
387
- },
388
- {
389
- "internalType": "uint256",
390
- "name": "_tokenId",
391
- "type": "uint256"
392
- },
393
- {
394
- "internalType": "bytes",
395
- "name": "_data",
396
- "type": "bytes"
397
- }
398
- ],
399
- "name": "onERC721Received",
150
+ "constant": false,
151
+ "inputs": [],
152
+ "name": "createForwarder",
400
153
  "outputs": [
401
154
  {
402
- "internalType": "bytes4",
403
155
  "name": "",
404
- "type": "bytes4"
156
+ "type": "address"
405
157
  }
406
158
  ],
159
+ "payable": false,
407
160
  "stateMutability": "nonpayable",
408
161
  "type": "function"
409
162
  },
410
163
  {
164
+ "constant": true,
411
165
  "inputs": [],
412
166
  "name": "safeMode",
413
167
  "outputs": [
414
168
  {
415
- "internalType": "bool",
416
169
  "name": "",
417
170
  "type": "bool"
418
171
  }
419
172
  ],
173
+ "payable": false,
420
174
  "stateMutability": "view",
421
175
  "type": "function"
422
176
  },
423
177
  {
424
- "inputs": [
425
- {
426
- "internalType": "address",
427
- "name": "toAddress",
428
- "type": "address"
429
- },
430
- {
431
- "internalType": "uint256",
432
- "name": "value",
433
- "type": "uint256"
434
- },
435
- {
436
- "internalType": "bytes",
437
- "name": "data",
438
- "type": "bytes"
439
- },
440
- {
441
- "internalType": "uint256",
442
- "name": "expireTime",
443
- "type": "uint256"
444
- },
445
- {
446
- "internalType": "uint256",
447
- "name": "sequenceId",
448
- "type": "uint256"
449
- },
450
- {
451
- "internalType": "bytes",
452
- "name": "signature",
453
- "type": "bytes"
454
- }
455
- ],
456
- "name": "sendMultiSig",
178
+ "constant": false,
179
+ "inputs": [],
180
+ "name": "activateSafeMode",
457
181
  "outputs": [],
182
+ "payable": false,
458
183
  "stateMutability": "nonpayable",
459
184
  "type": "function"
460
185
  },
461
186
  {
462
187
  "inputs": [
463
188
  {
464
- "internalType": "address[]",
465
- "name": "recipients",
189
+ "name": "allowedSigners",
466
190
  "type": "address[]"
467
- },
468
- {
469
- "internalType": "uint256[]",
470
- "name": "values",
471
- "type": "uint256[]"
472
- },
473
- {
474
- "internalType": "uint256",
475
- "name": "expireTime",
476
- "type": "uint256"
477
- },
478
- {
479
- "internalType": "uint256",
480
- "name": "sequenceId",
481
- "type": "uint256"
482
- },
483
- {
484
- "internalType": "bytes",
485
- "name": "signature",
486
- "type": "bytes"
487
191
  }
488
192
  ],
489
- "name": "sendMultiSigBatch",
490
- "outputs": [],
193
+ "payable": false,
491
194
  "stateMutability": "nonpayable",
492
- "type": "function"
195
+ "type": "constructor"
196
+ },
197
+ {
198
+ "payable": true,
199
+ "stateMutability": "payable",
200
+ "type": "fallback"
493
201
  },
494
202
  {
203
+ "anonymous": false,
495
204
  "inputs": [
496
205
  {
497
- "internalType": "address",
498
- "name": "toAddress",
206
+ "indexed": false,
207
+ "name": "from",
499
208
  "type": "address"
500
209
  },
501
210
  {
502
- "internalType": "uint256",
211
+ "indexed": false,
503
212
  "name": "value",
504
213
  "type": "uint256"
505
214
  },
506
215
  {
507
- "internalType": "address",
508
- "name": "tokenContractAddress",
509
- "type": "address"
510
- },
511
- {
512
- "internalType": "uint256",
513
- "name": "expireTime",
514
- "type": "uint256"
515
- },
516
- {
517
- "internalType": "uint256",
518
- "name": "sequenceId",
519
- "type": "uint256"
520
- },
521
- {
522
- "internalType": "bytes",
523
- "name": "signature",
216
+ "indexed": false,
217
+ "name": "data",
524
218
  "type": "bytes"
525
- }
526
- ],
527
- "name": "sendMultiSigToken",
528
- "outputs": [],
529
- "stateMutability": "nonpayable",
530
- "type": "function"
531
- },
532
- {
533
- "inputs": [
534
- {
535
- "internalType": "address",
536
- "name": "forwarderAddress",
537
- "type": "address"
538
- },
539
- {
540
- "internalType": "bool",
541
- "name": "autoFlush",
542
- "type": "bool"
543
- }
544
- ],
545
- "name": "setAutoFlush1155",
546
- "outputs": [],
547
- "stateMutability": "nonpayable",
548
- "type": "function"
549
- },
550
- {
551
- "inputs": [
552
- {
553
- "internalType": "address",
554
- "name": "forwarderAddress",
555
- "type": "address"
556
- },
557
- {
558
- "internalType": "bool",
559
- "name": "autoFlush",
560
- "type": "bool"
561
- }
562
- ],
563
- "name": "setAutoFlush721",
564
- "outputs": [],
565
- "stateMutability": "nonpayable",
566
- "type": "function"
219
+ }
220
+ ],
221
+ "name": "Deposited",
222
+ "type": "event"
567
223
  },
568
224
  {
225
+ "anonymous": false,
569
226
  "inputs": [
570
227
  {
571
- "internalType": "address",
572
- "name": "",
228
+ "indexed": false,
229
+ "name": "msgSender",
573
230
  "type": "address"
574
231
  }
575
232
  ],
576
- "name": "signers",
577
- "outputs": [
578
- {
579
- "internalType": "bool",
580
- "name": "",
581
- "type": "bool"
582
- }
583
- ],
584
- "stateMutability": "view",
585
- "type": "function"
233
+ "name": "SafeModeActivated",
234
+ "type": "event"
586
235
  },
587
236
  {
237
+ "anonymous": false,
588
238
  "inputs": [
589
239
  {
590
- "internalType": "bytes4",
591
- "name": "interfaceId",
592
- "type": "bytes4"
593
- }
594
- ],
595
- "name": "supportsInterface",
596
- "outputs": [
240
+ "indexed": false,
241
+ "name": "msgSender",
242
+ "type": "address"
243
+ },
597
244
  {
598
- "internalType": "bool",
599
- "name": "",
600
- "type": "bool"
245
+ "indexed": false,
246
+ "name": "otherSigner",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "name": "operation",
252
+ "type": "bytes32"
253
+ },
254
+ {
255
+ "indexed": false,
256
+ "name": "toAddress",
257
+ "type": "address"
258
+ },
259
+ {
260
+ "indexed": false,
261
+ "name": "value",
262
+ "type": "uint256"
263
+ },
264
+ {
265
+ "indexed": false,
266
+ "name": "data",
267
+ "type": "bytes"
601
268
  }
602
269
  ],
603
- "stateMutability": "view",
604
- "type": "function"
605
- },
606
- {
607
- "stateMutability": "payable",
608
- "type": "receive"
270
+ "name": "Transacted",
271
+ "type": "event"
609
272
  }
610
273
  ];
611
274
  /**
@@ -666,18 +329,11 @@ class WalletSimple_json {
666
329
  return this.contract;
667
330
  }
668
331
  /**
669
- * getNextSequenceId
670
- * view
671
- */
672
- async getNextSequenceId() {
673
- return this.contract.read.getNextSequenceId();
674
- }
675
- /**
676
- * initialized
332
+ * signers
677
333
  * view
678
334
  */
679
- async initialized() {
680
- return this.contract.read.initialized();
335
+ async signers(arg0) {
336
+ return this.contract.read.signers([arg0]);
681
337
  }
682
338
  /**
683
339
  * isSigner
@@ -687,69 +343,29 @@ class WalletSimple_json {
687
343
  return this.contract.read.isSigner([signer]);
688
344
  }
689
345
  /**
690
- * safeMode
691
- * view
692
- */
693
- async safeMode() {
694
- return this.contract.read.safeMode();
695
- }
696
- /**
697
- * signers
346
+ * getNextSequenceId
698
347
  * view
699
348
  */
700
- async signers(arg0) {
701
- return this.contract.read.signers([arg0]);
349
+ async getNextSequenceId() {
350
+ return this.contract.read.getNextSequenceId();
702
351
  }
703
352
  /**
704
- * supportsInterface
353
+ * safeMode
705
354
  * view
706
355
  */
707
- async supportsInterface(interfaceId) {
708
- return this.contract.read.supportsInterface([interfaceId]);
709
- }
710
- /**
711
- * activateSafeMode
712
- * nonpayable
713
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
714
- */
715
- async activateSafeMode(options) {
716
- if (!this.contract.write) {
717
- throw new Error('Wallet client is required for write operations');
718
- }
719
- return this.contract.write.activateSafeMode(options);
720
- }
721
- /**
722
- * batchFlushERC1155ForwarderTokens
723
- * nonpayable
724
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
725
- */
726
- async batchFlushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenIds, options) {
727
- if (!this.contract.write) {
728
- throw new Error('Wallet client is required for write operations');
729
- }
730
- return this.contract.write.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds], options);
731
- }
732
- /**
733
- * flushERC1155ForwarderTokens
734
- * nonpayable
735
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
736
- */
737
- async flushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
738
- if (!this.contract.write) {
739
- throw new Error('Wallet client is required for write operations');
740
- }
741
- return this.contract.write.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
356
+ async safeMode() {
357
+ return this.contract.read.safeMode();
742
358
  }
743
359
  /**
744
- * flushERC721ForwarderTokens
360
+ * sendMultiSigToken
745
361
  * nonpayable
746
362
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
747
363
  */
748
- async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
364
+ async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
749
365
  if (!this.contract.write) {
750
366
  throw new Error('Wallet client is required for write operations');
751
367
  }
752
- return this.contract.write.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
368
+ return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
753
369
  }
754
370
  /**
755
371
  * flushForwarderTokens
@@ -762,50 +378,6 @@ class WalletSimple_json {
762
378
  }
763
379
  return this.contract.write.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
764
380
  }
765
- /**
766
- * init
767
- * nonpayable
768
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
769
- */
770
- async init(allowedSigners, options) {
771
- if (!this.contract.write) {
772
- throw new Error('Wallet client is required for write operations');
773
- }
774
- return this.contract.write.init([allowedSigners], options);
775
- }
776
- /**
777
- * onERC1155BatchReceived
778
- * nonpayable
779
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
780
- */
781
- async onERC1155BatchReceived(_operator, _from, ids, values, data, options) {
782
- if (!this.contract.write) {
783
- throw new Error('Wallet client is required for write operations');
784
- }
785
- return this.contract.write.onERC1155BatchReceived([_operator, _from, ids, values, data], options);
786
- }
787
- /**
788
- * onERC1155Received
789
- * nonpayable
790
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
791
- */
792
- async onERC1155Received(_operator, _from, id, value, data, options) {
793
- if (!this.contract.write) {
794
- throw new Error('Wallet client is required for write operations');
795
- }
796
- return this.contract.write.onERC1155Received([_operator, _from, id, value, data], options);
797
- }
798
- /**
799
- * onERC721Received
800
- * nonpayable
801
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
802
- */
803
- async onERC721Received(_operator, _from, _tokenId, _data, options) {
804
- if (!this.contract.write) {
805
- throw new Error('Wallet client is required for write operations');
806
- }
807
- return this.contract.write.onERC721Received([_operator, _from, _tokenId, _data], options);
808
- }
809
381
  /**
810
382
  * sendMultiSig
811
383
  * nonpayable
@@ -818,48 +390,26 @@ class WalletSimple_json {
818
390
  return this.contract.write.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
819
391
  }
820
392
  /**
821
- * sendMultiSigBatch
822
- * nonpayable
823
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
824
- */
825
- async sendMultiSigBatch(recipients, values, expireTime, sequenceId, signature, options) {
826
- if (!this.contract.write) {
827
- throw new Error('Wallet client is required for write operations');
828
- }
829
- return this.contract.write.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature], options);
830
- }
831
- /**
832
- * sendMultiSigToken
833
- * nonpayable
834
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
835
- */
836
- async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
837
- if (!this.contract.write) {
838
- throw new Error('Wallet client is required for write operations');
839
- }
840
- return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
841
- }
842
- /**
843
- * setAutoFlush1155
393
+ * createForwarder
844
394
  * nonpayable
845
395
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
396
  */
847
- async setAutoFlush1155(forwarderAddress, autoFlush, options) {
397
+ async createForwarder(options) {
848
398
  if (!this.contract.write) {
849
399
  throw new Error('Wallet client is required for write operations');
850
400
  }
851
- return this.contract.write.setAutoFlush1155([forwarderAddress, autoFlush], options);
401
+ return this.contract.write.createForwarder(options);
852
402
  }
853
403
  /**
854
- * setAutoFlush721
404
+ * activateSafeMode
855
405
  * nonpayable
856
406
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
857
407
  */
858
- async setAutoFlush721(forwarderAddress, autoFlush, options) {
408
+ async activateSafeMode(options) {
859
409
  if (!this.contract.write) {
860
410
  throw new Error('Wallet client is required for write operations');
861
411
  }
862
- return this.contract.write.setAutoFlush721([forwarderAddress, autoFlush], options);
412
+ return this.contract.write.activateSafeMode(options);
863
413
  }
864
414
  /**
865
415
  * Simulate contract write operations (dry-run without sending transaction)
@@ -876,36 +426,12 @@ class WalletSimple_json {
876
426
  }
877
427
  return {
878
428
  /**
879
- * Simulate activateSafeMode
880
- * Returns gas estimate and result without sending transaction
881
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
882
- */
883
- async activateSafeMode(options) {
884
- return contract.simulate.activateSafeMode(options);
885
- },
886
- /**
887
- * Simulate batchFlushERC1155ForwarderTokens
888
- * Returns gas estimate and result without sending transaction
889
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
890
- */
891
- async batchFlushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenIds, options) {
892
- return contract.simulate.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds], options);
893
- },
894
- /**
895
- * Simulate flushERC1155ForwarderTokens
896
- * Returns gas estimate and result without sending transaction
897
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
898
- */
899
- async flushERC1155ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
900
- return contract.simulate.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
901
- },
902
- /**
903
- * Simulate flushERC721ForwarderTokens
429
+ * Simulate sendMultiSigToken
904
430
  * Returns gas estimate and result without sending transaction
905
431
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
906
432
  */
907
- async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
908
- return contract.simulate.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
433
+ async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
434
+ return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
909
435
  },
910
436
  /**
911
437
  * Simulate flushForwarderTokens
@@ -915,38 +441,6 @@ class WalletSimple_json {
915
441
  async flushForwarderTokens(forwarderAddress, tokenContractAddress, options) {
916
442
  return contract.simulate.flushForwarderTokens([forwarderAddress, tokenContractAddress], options);
917
443
  },
918
- /**
919
- * Simulate init
920
- * Returns gas estimate and result without sending transaction
921
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
922
- */
923
- async init(allowedSigners, options) {
924
- return contract.simulate.init([allowedSigners], options);
925
- },
926
- /**
927
- * Simulate onERC1155BatchReceived
928
- * Returns gas estimate and result without sending transaction
929
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
930
- */
931
- async onERC1155BatchReceived(_operator, _from, ids, values, data, options) {
932
- return contract.simulate.onERC1155BatchReceived([_operator, _from, ids, values, data], options);
933
- },
934
- /**
935
- * Simulate onERC1155Received
936
- * Returns gas estimate and result without sending transaction
937
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
938
- */
939
- async onERC1155Received(_operator, _from, id, value, data, options) {
940
- return contract.simulate.onERC1155Received([_operator, _from, id, value, data], options);
941
- },
942
- /**
943
- * Simulate onERC721Received
944
- * Returns gas estimate and result without sending transaction
945
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
946
- */
947
- async onERC721Received(_operator, _from, _tokenId, _data, options) {
948
- return contract.simulate.onERC721Received([_operator, _from, _tokenId, _data], options);
949
- },
950
444
  /**
951
445
  * Simulate sendMultiSig
952
446
  * Returns gas estimate and result without sending transaction
@@ -956,36 +450,20 @@ class WalletSimple_json {
956
450
  return contract.simulate.sendMultiSig([toAddress, value, data, expireTime, sequenceId, signature], options);
957
451
  },
958
452
  /**
959
- * Simulate sendMultiSigBatch
960
- * Returns gas estimate and result without sending transaction
961
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
962
- */
963
- async sendMultiSigBatch(recipients, values, expireTime, sequenceId, signature, options) {
964
- return contract.simulate.sendMultiSigBatch([recipients, values, expireTime, sequenceId, signature], options);
965
- },
966
- /**
967
- * Simulate sendMultiSigToken
968
- * Returns gas estimate and result without sending transaction
969
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
970
- */
971
- async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
972
- return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
973
- },
974
- /**
975
- * Simulate setAutoFlush1155
453
+ * Simulate createForwarder
976
454
  * Returns gas estimate and result without sending transaction
977
455
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
978
456
  */
979
- async setAutoFlush1155(forwarderAddress, autoFlush, options) {
980
- return contract.simulate.setAutoFlush1155([forwarderAddress, autoFlush], options);
457
+ async createForwarder(options) {
458
+ return contract.simulate.createForwarder(options);
981
459
  },
982
460
  /**
983
- * Simulate setAutoFlush721
461
+ * Simulate activateSafeMode
984
462
  * Returns gas estimate and result without sending transaction
985
463
  * @param options Optional transaction parameters (value, gas, nonce, etc.)
986
464
  */
987
- async setAutoFlush721(forwarderAddress, autoFlush, options) {
988
- return contract.simulate.setAutoFlush721([forwarderAddress, autoFlush], options);
465
+ async activateSafeMode(options) {
466
+ return contract.simulate.activateSafeMode(options);
989
467
  }
990
468
  };
991
469
  }
@@ -1003,42 +481,6 @@ class WalletSimple_json {
1003
481
  */
1004
482
  get watch() {
1005
483
  return {
1006
- /**
1007
- * Watch BatchTransacted events
1008
- * @param callback Function to call when event is emitted
1009
- * @param filter Optional filter for indexed parameters
1010
- * @returns Unwatch function to stop listening
1011
- */
1012
- BatchTransacted: (callback) => {
1013
- return this.publicClient.watchContractEvent({
1014
- address: this.contractAddress,
1015
- abi: exports.WalletSimple_jsonAbi,
1016
- eventName: 'BatchTransacted',
1017
- onLogs: (logs) => {
1018
- logs.forEach((log) => {
1019
- callback(log.args);
1020
- });
1021
- },
1022
- });
1023
- },
1024
- /**
1025
- * Watch BatchTransfer events
1026
- * @param callback Function to call when event is emitted
1027
- * @param filter Optional filter for indexed parameters
1028
- * @returns Unwatch function to stop listening
1029
- */
1030
- BatchTransfer: (callback) => {
1031
- return this.publicClient.watchContractEvent({
1032
- address: this.contractAddress,
1033
- abi: exports.WalletSimple_jsonAbi,
1034
- eventName: 'BatchTransfer',
1035
- onLogs: (logs) => {
1036
- logs.forEach((log) => {
1037
- callback(log.args);
1038
- });
1039
- },
1040
- });
1041
- },
1042
484
  /**
1043
485
  * Watch Deposited events
1044
486
  * @param callback Function to call when event is emitted