@gitmyabi/walletsimple 1.0.28 → 1.0.29

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.
@@ -150,6 +150,75 @@ exports.WalletSimple_jsonAbi = [
150
150
  "stateMutability": "nonpayable",
151
151
  "type": "function"
152
152
  },
153
+ {
154
+ "inputs": [
155
+ {
156
+ "internalType": "address payable",
157
+ "name": "forwarderAddress",
158
+ "type": "address"
159
+ },
160
+ {
161
+ "internalType": "address",
162
+ "name": "tokenContractAddress",
163
+ "type": "address"
164
+ },
165
+ {
166
+ "internalType": "uint256[]",
167
+ "name": "tokenIds",
168
+ "type": "uint256[]"
169
+ }
170
+ ],
171
+ "name": "batchFlushERC1155ForwarderTokens",
172
+ "outputs": [],
173
+ "stateMutability": "nonpayable",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [
178
+ {
179
+ "internalType": "address payable",
180
+ "name": "forwarderAddress",
181
+ "type": "address"
182
+ },
183
+ {
184
+ "internalType": "address",
185
+ "name": "tokenContractAddress",
186
+ "type": "address"
187
+ },
188
+ {
189
+ "internalType": "uint256",
190
+ "name": "tokenId",
191
+ "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
+ },
206
+ {
207
+ "internalType": "address",
208
+ "name": "tokenContractAddress",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "internalType": "uint256",
213
+ "name": "tokenId",
214
+ "type": "uint256"
215
+ }
216
+ ],
217
+ "name": "flushERC721ForwarderTokens",
218
+ "outputs": [],
219
+ "stateMutability": "nonpayable",
220
+ "type": "function"
221
+ },
153
222
  {
154
223
  "inputs": [
155
224
  {
@@ -226,6 +295,118 @@ exports.WalletSimple_jsonAbi = [
226
295
  "stateMutability": "view",
227
296
  "type": "function"
228
297
  },
298
+ {
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",
327
+ "outputs": [
328
+ {
329
+ "internalType": "bytes4",
330
+ "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
+ "type": "uint256"
358
+ },
359
+ {
360
+ "internalType": "bytes",
361
+ "name": "data",
362
+ "type": "bytes"
363
+ }
364
+ ],
365
+ "name": "onERC1155Received",
366
+ "outputs": [
367
+ {
368
+ "internalType": "bytes4",
369
+ "name": "",
370
+ "type": "bytes4"
371
+ }
372
+ ],
373
+ "stateMutability": "nonpayable",
374
+ "type": "function"
375
+ },
376
+ {
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",
400
+ "outputs": [
401
+ {
402
+ "internalType": "bytes4",
403
+ "name": "",
404
+ "type": "bytes4"
405
+ }
406
+ ],
407
+ "stateMutability": "nonpayable",
408
+ "type": "function"
409
+ },
229
410
  {
230
411
  "inputs": [],
231
412
  "name": "safeMode",
@@ -348,6 +529,42 @@ exports.WalletSimple_jsonAbi = [
348
529
  "stateMutability": "nonpayable",
349
530
  "type": "function"
350
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"
567
+ },
351
568
  {
352
569
  "inputs": [
353
570
  {
@@ -367,6 +584,25 @@ exports.WalletSimple_jsonAbi = [
367
584
  "stateMutability": "view",
368
585
  "type": "function"
369
586
  },
587
+ {
588
+ "inputs": [
589
+ {
590
+ "internalType": "bytes4",
591
+ "name": "interfaceId",
592
+ "type": "bytes4"
593
+ }
594
+ ],
595
+ "name": "supportsInterface",
596
+ "outputs": [
597
+ {
598
+ "internalType": "bool",
599
+ "name": "",
600
+ "type": "bool"
601
+ }
602
+ ],
603
+ "stateMutability": "view",
604
+ "type": "function"
605
+ },
370
606
  {
371
607
  "stateMutability": "payable",
372
608
  "type": "receive"
@@ -464,6 +700,13 @@ class WalletSimple_json {
464
700
  async signers(arg0) {
465
701
  return this.contract.read.signers([arg0]);
466
702
  }
703
+ /**
704
+ * supportsInterface
705
+ * view
706
+ */
707
+ async supportsInterface(interfaceId) {
708
+ return this.contract.read.supportsInterface([interfaceId]);
709
+ }
467
710
  /**
468
711
  * activateSafeMode
469
712
  * nonpayable
@@ -475,6 +718,39 @@ class WalletSimple_json {
475
718
  }
476
719
  return this.contract.write.activateSafeMode(options);
477
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);
742
+ }
743
+ /**
744
+ * flushERC721ForwarderTokens
745
+ * nonpayable
746
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
747
+ */
748
+ async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
749
+ if (!this.contract.write) {
750
+ throw new Error('Wallet client is required for write operations');
751
+ }
752
+ return this.contract.write.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
753
+ }
478
754
  /**
479
755
  * flushForwarderTokens
480
756
  * nonpayable
@@ -497,6 +773,39 @@ class WalletSimple_json {
497
773
  }
498
774
  return this.contract.write.init([allowedSigners], options);
499
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
+ }
500
809
  /**
501
810
  * sendMultiSig
502
811
  * nonpayable
@@ -530,6 +839,28 @@ class WalletSimple_json {
530
839
  }
531
840
  return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
532
841
  }
842
+ /**
843
+ * setAutoFlush1155
844
+ * nonpayable
845
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
846
+ */
847
+ async setAutoFlush1155(forwarderAddress, autoFlush, options) {
848
+ if (!this.contract.write) {
849
+ throw new Error('Wallet client is required for write operations');
850
+ }
851
+ return this.contract.write.setAutoFlush1155([forwarderAddress, autoFlush], options);
852
+ }
853
+ /**
854
+ * setAutoFlush721
855
+ * nonpayable
856
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
857
+ */
858
+ async setAutoFlush721(forwarderAddress, autoFlush, options) {
859
+ if (!this.contract.write) {
860
+ throw new Error('Wallet client is required for write operations');
861
+ }
862
+ return this.contract.write.setAutoFlush721([forwarderAddress, autoFlush], options);
863
+ }
533
864
  /**
534
865
  * Simulate contract write operations (dry-run without sending transaction)
535
866
  *
@@ -552,6 +883,30 @@ class WalletSimple_json {
552
883
  async activateSafeMode(options) {
553
884
  return contract.simulate.activateSafeMode(options);
554
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
904
+ * Returns gas estimate and result without sending transaction
905
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
906
+ */
907
+ async flushERC721ForwarderTokens(forwarderAddress, tokenContractAddress, tokenId, options) {
908
+ return contract.simulate.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId], options);
909
+ },
555
910
  /**
556
911
  * Simulate flushForwarderTokens
557
912
  * Returns gas estimate and result without sending transaction
@@ -568,6 +923,30 @@ class WalletSimple_json {
568
923
  async init(allowedSigners, options) {
569
924
  return contract.simulate.init([allowedSigners], options);
570
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
+ },
571
950
  /**
572
951
  * Simulate sendMultiSig
573
952
  * Returns gas estimate and result without sending transaction
@@ -591,6 +970,22 @@ class WalletSimple_json {
591
970
  */
592
971
  async sendMultiSigToken(toAddress, value, tokenContractAddress, expireTime, sequenceId, signature, options) {
593
972
  return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature], options);
973
+ },
974
+ /**
975
+ * Simulate setAutoFlush1155
976
+ * Returns gas estimate and result without sending transaction
977
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
978
+ */
979
+ async setAutoFlush1155(forwarderAddress, autoFlush, options) {
980
+ return contract.simulate.setAutoFlush1155([forwarderAddress, autoFlush], options);
981
+ },
982
+ /**
983
+ * Simulate setAutoFlush721
984
+ * Returns gas estimate and result without sending transaction
985
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
986
+ */
987
+ async setAutoFlush721(forwarderAddress, autoFlush, options) {
988
+ return contract.simulate.setAutoFlush721([forwarderAddress, autoFlush], options);
594
989
  }
595
990
  };
596
991
  }