@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.
- package/README.md +3 -3
- package/contracts/WalletSimple_json.d.ts +459 -0
- package/contracts/WalletSimple_json.js +395 -0
- package/contracts/WalletSimple_json.ts +580 -0
- package/package.json +3 -3
|
@@ -149,6 +149,75 @@ export const WalletSimple_jsonAbi = [
|
|
|
149
149
|
"stateMutability": "nonpayable",
|
|
150
150
|
"type": "function"
|
|
151
151
|
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "address payable",
|
|
156
|
+
"name": "forwarderAddress",
|
|
157
|
+
"type": "address"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "address",
|
|
161
|
+
"name": "tokenContractAddress",
|
|
162
|
+
"type": "address"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"internalType": "uint256[]",
|
|
166
|
+
"name": "tokenIds",
|
|
167
|
+
"type": "uint256[]"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"name": "batchFlushERC1155ForwarderTokens",
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "nonpayable",
|
|
173
|
+
"type": "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [
|
|
177
|
+
{
|
|
178
|
+
"internalType": "address payable",
|
|
179
|
+
"name": "forwarderAddress",
|
|
180
|
+
"type": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "tokenContractAddress",
|
|
185
|
+
"type": "address"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"internalType": "uint256",
|
|
189
|
+
"name": "tokenId",
|
|
190
|
+
"type": "uint256"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"name": "flushERC1155ForwarderTokens",
|
|
194
|
+
"outputs": [],
|
|
195
|
+
"stateMutability": "nonpayable",
|
|
196
|
+
"type": "function"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"inputs": [
|
|
200
|
+
{
|
|
201
|
+
"internalType": "address payable",
|
|
202
|
+
"name": "forwarderAddress",
|
|
203
|
+
"type": "address"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"internalType": "address",
|
|
207
|
+
"name": "tokenContractAddress",
|
|
208
|
+
"type": "address"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"internalType": "uint256",
|
|
212
|
+
"name": "tokenId",
|
|
213
|
+
"type": "uint256"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"name": "flushERC721ForwarderTokens",
|
|
217
|
+
"outputs": [],
|
|
218
|
+
"stateMutability": "nonpayable",
|
|
219
|
+
"type": "function"
|
|
220
|
+
},
|
|
152
221
|
{
|
|
153
222
|
"inputs": [
|
|
154
223
|
{
|
|
@@ -225,6 +294,118 @@ export const WalletSimple_jsonAbi = [
|
|
|
225
294
|
"stateMutability": "view",
|
|
226
295
|
"type": "function"
|
|
227
296
|
},
|
|
297
|
+
{
|
|
298
|
+
"inputs": [
|
|
299
|
+
{
|
|
300
|
+
"internalType": "address",
|
|
301
|
+
"name": "_operator",
|
|
302
|
+
"type": "address"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"internalType": "address",
|
|
306
|
+
"name": "_from",
|
|
307
|
+
"type": "address"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"internalType": "uint256[]",
|
|
311
|
+
"name": "ids",
|
|
312
|
+
"type": "uint256[]"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"internalType": "uint256[]",
|
|
316
|
+
"name": "values",
|
|
317
|
+
"type": "uint256[]"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"internalType": "bytes",
|
|
321
|
+
"name": "data",
|
|
322
|
+
"type": "bytes"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"name": "onERC1155BatchReceived",
|
|
326
|
+
"outputs": [
|
|
327
|
+
{
|
|
328
|
+
"internalType": "bytes4",
|
|
329
|
+
"name": "",
|
|
330
|
+
"type": "bytes4"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"stateMutability": "nonpayable",
|
|
334
|
+
"type": "function"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"inputs": [
|
|
338
|
+
{
|
|
339
|
+
"internalType": "address",
|
|
340
|
+
"name": "_operator",
|
|
341
|
+
"type": "address"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"internalType": "address",
|
|
345
|
+
"name": "_from",
|
|
346
|
+
"type": "address"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"internalType": "uint256",
|
|
350
|
+
"name": "id",
|
|
351
|
+
"type": "uint256"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"internalType": "uint256",
|
|
355
|
+
"name": "value",
|
|
356
|
+
"type": "uint256"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"internalType": "bytes",
|
|
360
|
+
"name": "data",
|
|
361
|
+
"type": "bytes"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"name": "onERC1155Received",
|
|
365
|
+
"outputs": [
|
|
366
|
+
{
|
|
367
|
+
"internalType": "bytes4",
|
|
368
|
+
"name": "",
|
|
369
|
+
"type": "bytes4"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"stateMutability": "nonpayable",
|
|
373
|
+
"type": "function"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"inputs": [
|
|
377
|
+
{
|
|
378
|
+
"internalType": "address",
|
|
379
|
+
"name": "_operator",
|
|
380
|
+
"type": "address"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"internalType": "address",
|
|
384
|
+
"name": "_from",
|
|
385
|
+
"type": "address"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"internalType": "uint256",
|
|
389
|
+
"name": "_tokenId",
|
|
390
|
+
"type": "uint256"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"internalType": "bytes",
|
|
394
|
+
"name": "_data",
|
|
395
|
+
"type": "bytes"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"name": "onERC721Received",
|
|
399
|
+
"outputs": [
|
|
400
|
+
{
|
|
401
|
+
"internalType": "bytes4",
|
|
402
|
+
"name": "",
|
|
403
|
+
"type": "bytes4"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"stateMutability": "nonpayable",
|
|
407
|
+
"type": "function"
|
|
408
|
+
},
|
|
228
409
|
{
|
|
229
410
|
"inputs": [],
|
|
230
411
|
"name": "safeMode",
|
|
@@ -347,6 +528,42 @@ export const WalletSimple_jsonAbi = [
|
|
|
347
528
|
"stateMutability": "nonpayable",
|
|
348
529
|
"type": "function"
|
|
349
530
|
},
|
|
531
|
+
{
|
|
532
|
+
"inputs": [
|
|
533
|
+
{
|
|
534
|
+
"internalType": "address",
|
|
535
|
+
"name": "forwarderAddress",
|
|
536
|
+
"type": "address"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"internalType": "bool",
|
|
540
|
+
"name": "autoFlush",
|
|
541
|
+
"type": "bool"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"name": "setAutoFlush1155",
|
|
545
|
+
"outputs": [],
|
|
546
|
+
"stateMutability": "nonpayable",
|
|
547
|
+
"type": "function"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"inputs": [
|
|
551
|
+
{
|
|
552
|
+
"internalType": "address",
|
|
553
|
+
"name": "forwarderAddress",
|
|
554
|
+
"type": "address"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"internalType": "bool",
|
|
558
|
+
"name": "autoFlush",
|
|
559
|
+
"type": "bool"
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"name": "setAutoFlush721",
|
|
563
|
+
"outputs": [],
|
|
564
|
+
"stateMutability": "nonpayable",
|
|
565
|
+
"type": "function"
|
|
566
|
+
},
|
|
350
567
|
{
|
|
351
568
|
"inputs": [
|
|
352
569
|
{
|
|
@@ -366,6 +583,25 @@ export const WalletSimple_jsonAbi = [
|
|
|
366
583
|
"stateMutability": "view",
|
|
367
584
|
"type": "function"
|
|
368
585
|
},
|
|
586
|
+
{
|
|
587
|
+
"inputs": [
|
|
588
|
+
{
|
|
589
|
+
"internalType": "bytes4",
|
|
590
|
+
"name": "interfaceId",
|
|
591
|
+
"type": "bytes4"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"name": "supportsInterface",
|
|
595
|
+
"outputs": [
|
|
596
|
+
{
|
|
597
|
+
"internalType": "bool",
|
|
598
|
+
"name": "",
|
|
599
|
+
"type": "bool"
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"stateMutability": "view",
|
|
603
|
+
"type": "function"
|
|
604
|
+
},
|
|
369
605
|
{
|
|
370
606
|
"stateMutability": "payable",
|
|
371
607
|
"type": "receive"
|
|
@@ -494,6 +730,14 @@ export class WalletSimple_json {
|
|
|
494
730
|
return this.contract.read.signers([arg0] as const) as Promise<boolean>;
|
|
495
731
|
}
|
|
496
732
|
|
|
733
|
+
/**
|
|
734
|
+
* supportsInterface
|
|
735
|
+
* view
|
|
736
|
+
*/
|
|
737
|
+
async supportsInterface(interfaceId: `0x${string}`): Promise<boolean> {
|
|
738
|
+
return this.contract.read.supportsInterface([interfaceId] as const) as Promise<boolean>;
|
|
739
|
+
}
|
|
740
|
+
|
|
497
741
|
/**
|
|
498
742
|
* activateSafeMode
|
|
499
743
|
* nonpayable
|
|
@@ -517,6 +761,75 @@ export class WalletSimple_json {
|
|
|
517
761
|
return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
|
|
518
762
|
}
|
|
519
763
|
|
|
764
|
+
/**
|
|
765
|
+
* batchFlushERC1155ForwarderTokens
|
|
766
|
+
* nonpayable
|
|
767
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
768
|
+
*/
|
|
769
|
+
async batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
770
|
+
accessList?: import('viem').AccessList;
|
|
771
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
772
|
+
chain?: import('viem').Chain | null;
|
|
773
|
+
dataSuffix?: `0x${string}`;
|
|
774
|
+
gas?: bigint;
|
|
775
|
+
gasPrice?: bigint;
|
|
776
|
+
maxFeePerGas?: bigint;
|
|
777
|
+
maxPriorityFeePerGas?: bigint;
|
|
778
|
+
nonce?: number;
|
|
779
|
+
value?: bigint;
|
|
780
|
+
}): Promise<`0x${string}`> {
|
|
781
|
+
if (!this.contract.write) {
|
|
782
|
+
throw new Error('Wallet client is required for write operations');
|
|
783
|
+
}
|
|
784
|
+
return this.contract.write.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds] as const, options) as Promise<`0x${string}`>;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* flushERC1155ForwarderTokens
|
|
789
|
+
* nonpayable
|
|
790
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
791
|
+
*/
|
|
792
|
+
async flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
793
|
+
accessList?: import('viem').AccessList;
|
|
794
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
795
|
+
chain?: import('viem').Chain | null;
|
|
796
|
+
dataSuffix?: `0x${string}`;
|
|
797
|
+
gas?: bigint;
|
|
798
|
+
gasPrice?: bigint;
|
|
799
|
+
maxFeePerGas?: bigint;
|
|
800
|
+
maxPriorityFeePerGas?: bigint;
|
|
801
|
+
nonce?: number;
|
|
802
|
+
value?: bigint;
|
|
803
|
+
}): Promise<`0x${string}`> {
|
|
804
|
+
if (!this.contract.write) {
|
|
805
|
+
throw new Error('Wallet client is required for write operations');
|
|
806
|
+
}
|
|
807
|
+
return this.contract.write.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* flushERC721ForwarderTokens
|
|
812
|
+
* nonpayable
|
|
813
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
814
|
+
*/
|
|
815
|
+
async flushERC721ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
816
|
+
accessList?: import('viem').AccessList;
|
|
817
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
818
|
+
chain?: import('viem').Chain | null;
|
|
819
|
+
dataSuffix?: `0x${string}`;
|
|
820
|
+
gas?: bigint;
|
|
821
|
+
gasPrice?: bigint;
|
|
822
|
+
maxFeePerGas?: bigint;
|
|
823
|
+
maxPriorityFeePerGas?: bigint;
|
|
824
|
+
nonce?: number;
|
|
825
|
+
value?: bigint;
|
|
826
|
+
}): Promise<`0x${string}`> {
|
|
827
|
+
if (!this.contract.write) {
|
|
828
|
+
throw new Error('Wallet client is required for write operations');
|
|
829
|
+
}
|
|
830
|
+
return this.contract.write.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<`0x${string}`>;
|
|
831
|
+
}
|
|
832
|
+
|
|
520
833
|
/**
|
|
521
834
|
* flushForwarderTokens
|
|
522
835
|
* nonpayable
|
|
@@ -563,6 +876,75 @@ export class WalletSimple_json {
|
|
|
563
876
|
return this.contract.write.init([allowedSigners] as const, options) as Promise<`0x${string}`>;
|
|
564
877
|
}
|
|
565
878
|
|
|
879
|
+
/**
|
|
880
|
+
* onERC1155BatchReceived
|
|
881
|
+
* nonpayable
|
|
882
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
883
|
+
*/
|
|
884
|
+
async onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
885
|
+
accessList?: import('viem').AccessList;
|
|
886
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
887
|
+
chain?: import('viem').Chain | null;
|
|
888
|
+
dataSuffix?: `0x${string}`;
|
|
889
|
+
gas?: bigint;
|
|
890
|
+
gasPrice?: bigint;
|
|
891
|
+
maxFeePerGas?: bigint;
|
|
892
|
+
maxPriorityFeePerGas?: bigint;
|
|
893
|
+
nonce?: number;
|
|
894
|
+
value?: bigint;
|
|
895
|
+
}): Promise<`0x${string}`> {
|
|
896
|
+
if (!this.contract.write) {
|
|
897
|
+
throw new Error('Wallet client is required for write operations');
|
|
898
|
+
}
|
|
899
|
+
return this.contract.write.onERC1155BatchReceived([_operator, _from, ids, values, data] as const, options) as Promise<`0x${string}`>;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* onERC1155Received
|
|
904
|
+
* nonpayable
|
|
905
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
906
|
+
*/
|
|
907
|
+
async onERC1155Received(_operator: `0x${string}`, _from: `0x${string}`, id: bigint, value: bigint, data: `0x${string}`, options?: {
|
|
908
|
+
accessList?: import('viem').AccessList;
|
|
909
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
910
|
+
chain?: import('viem').Chain | null;
|
|
911
|
+
dataSuffix?: `0x${string}`;
|
|
912
|
+
gas?: bigint;
|
|
913
|
+
gasPrice?: bigint;
|
|
914
|
+
maxFeePerGas?: bigint;
|
|
915
|
+
maxPriorityFeePerGas?: bigint;
|
|
916
|
+
nonce?: number;
|
|
917
|
+
value?: bigint;
|
|
918
|
+
}): Promise<`0x${string}`> {
|
|
919
|
+
if (!this.contract.write) {
|
|
920
|
+
throw new Error('Wallet client is required for write operations');
|
|
921
|
+
}
|
|
922
|
+
return this.contract.write.onERC1155Received([_operator, _from, id, value, data] as const, options) as Promise<`0x${string}`>;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* onERC721Received
|
|
927
|
+
* nonpayable
|
|
928
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
929
|
+
*/
|
|
930
|
+
async onERC721Received(_operator: `0x${string}`, _from: `0x${string}`, _tokenId: bigint, _data: `0x${string}`, options?: {
|
|
931
|
+
accessList?: import('viem').AccessList;
|
|
932
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
933
|
+
chain?: import('viem').Chain | null;
|
|
934
|
+
dataSuffix?: `0x${string}`;
|
|
935
|
+
gas?: bigint;
|
|
936
|
+
gasPrice?: bigint;
|
|
937
|
+
maxFeePerGas?: bigint;
|
|
938
|
+
maxPriorityFeePerGas?: bigint;
|
|
939
|
+
nonce?: number;
|
|
940
|
+
value?: bigint;
|
|
941
|
+
}): Promise<`0x${string}`> {
|
|
942
|
+
if (!this.contract.write) {
|
|
943
|
+
throw new Error('Wallet client is required for write operations');
|
|
944
|
+
}
|
|
945
|
+
return this.contract.write.onERC721Received([_operator, _from, _tokenId, _data] as const, options) as Promise<`0x${string}`>;
|
|
946
|
+
}
|
|
947
|
+
|
|
566
948
|
/**
|
|
567
949
|
* sendMultiSig
|
|
568
950
|
* nonpayable
|
|
@@ -632,6 +1014,52 @@ export class WalletSimple_json {
|
|
|
632
1014
|
return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
|
|
633
1015
|
}
|
|
634
1016
|
|
|
1017
|
+
/**
|
|
1018
|
+
* setAutoFlush1155
|
|
1019
|
+
* nonpayable
|
|
1020
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1021
|
+
*/
|
|
1022
|
+
async setAutoFlush1155(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1023
|
+
accessList?: import('viem').AccessList;
|
|
1024
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1025
|
+
chain?: import('viem').Chain | null;
|
|
1026
|
+
dataSuffix?: `0x${string}`;
|
|
1027
|
+
gas?: bigint;
|
|
1028
|
+
gasPrice?: bigint;
|
|
1029
|
+
maxFeePerGas?: bigint;
|
|
1030
|
+
maxPriorityFeePerGas?: bigint;
|
|
1031
|
+
nonce?: number;
|
|
1032
|
+
value?: bigint;
|
|
1033
|
+
}): Promise<`0x${string}`> {
|
|
1034
|
+
if (!this.contract.write) {
|
|
1035
|
+
throw new Error('Wallet client is required for write operations');
|
|
1036
|
+
}
|
|
1037
|
+
return this.contract.write.setAutoFlush1155([forwarderAddress, autoFlush] as const, options) as Promise<`0x${string}`>;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* setAutoFlush721
|
|
1042
|
+
* nonpayable
|
|
1043
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1044
|
+
*/
|
|
1045
|
+
async setAutoFlush721(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1046
|
+
accessList?: import('viem').AccessList;
|
|
1047
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1048
|
+
chain?: import('viem').Chain | null;
|
|
1049
|
+
dataSuffix?: `0x${string}`;
|
|
1050
|
+
gas?: bigint;
|
|
1051
|
+
gasPrice?: bigint;
|
|
1052
|
+
maxFeePerGas?: bigint;
|
|
1053
|
+
maxPriorityFeePerGas?: bigint;
|
|
1054
|
+
nonce?: number;
|
|
1055
|
+
value?: bigint;
|
|
1056
|
+
}): Promise<`0x${string}`> {
|
|
1057
|
+
if (!this.contract.write) {
|
|
1058
|
+
throw new Error('Wallet client is required for write operations');
|
|
1059
|
+
}
|
|
1060
|
+
return this.contract.write.setAutoFlush721([forwarderAddress, autoFlush] as const, options) as Promise<`0x${string}`>;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
635
1063
|
|
|
636
1064
|
|
|
637
1065
|
/**
|
|
@@ -667,6 +1095,63 @@ export class WalletSimple_json {
|
|
|
667
1095
|
}): Promise<void> {
|
|
668
1096
|
return contract.simulate.activateSafeMode(options) as Promise<void>;
|
|
669
1097
|
},
|
|
1098
|
+
/**
|
|
1099
|
+
* Simulate batchFlushERC1155ForwarderTokens
|
|
1100
|
+
* Returns gas estimate and result without sending transaction
|
|
1101
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1102
|
+
*/
|
|
1103
|
+
async batchFlushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenIds: bigint[], options?: {
|
|
1104
|
+
accessList?: import('viem').AccessList;
|
|
1105
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1106
|
+
chain?: import('viem').Chain | null;
|
|
1107
|
+
dataSuffix?: `0x${string}`;
|
|
1108
|
+
gas?: bigint;
|
|
1109
|
+
gasPrice?: bigint;
|
|
1110
|
+
maxFeePerGas?: bigint;
|
|
1111
|
+
maxPriorityFeePerGas?: bigint;
|
|
1112
|
+
nonce?: number;
|
|
1113
|
+
value?: bigint;
|
|
1114
|
+
}): Promise<void> {
|
|
1115
|
+
return contract.simulate.batchFlushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenIds] as const, options) as Promise<void>;
|
|
1116
|
+
},
|
|
1117
|
+
/**
|
|
1118
|
+
* Simulate flushERC1155ForwarderTokens
|
|
1119
|
+
* Returns gas estimate and result without sending transaction
|
|
1120
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1121
|
+
*/
|
|
1122
|
+
async flushERC1155ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
1123
|
+
accessList?: import('viem').AccessList;
|
|
1124
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1125
|
+
chain?: import('viem').Chain | null;
|
|
1126
|
+
dataSuffix?: `0x${string}`;
|
|
1127
|
+
gas?: bigint;
|
|
1128
|
+
gasPrice?: bigint;
|
|
1129
|
+
maxFeePerGas?: bigint;
|
|
1130
|
+
maxPriorityFeePerGas?: bigint;
|
|
1131
|
+
nonce?: number;
|
|
1132
|
+
value?: bigint;
|
|
1133
|
+
}): Promise<void> {
|
|
1134
|
+
return contract.simulate.flushERC1155ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<void>;
|
|
1135
|
+
},
|
|
1136
|
+
/**
|
|
1137
|
+
* Simulate flushERC721ForwarderTokens
|
|
1138
|
+
* Returns gas estimate and result without sending transaction
|
|
1139
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1140
|
+
*/
|
|
1141
|
+
async flushERC721ForwarderTokens(forwarderAddress: `0x${string}`, tokenContractAddress: `0x${string}`, tokenId: bigint, options?: {
|
|
1142
|
+
accessList?: import('viem').AccessList;
|
|
1143
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1144
|
+
chain?: import('viem').Chain | null;
|
|
1145
|
+
dataSuffix?: `0x${string}`;
|
|
1146
|
+
gas?: bigint;
|
|
1147
|
+
gasPrice?: bigint;
|
|
1148
|
+
maxFeePerGas?: bigint;
|
|
1149
|
+
maxPriorityFeePerGas?: bigint;
|
|
1150
|
+
nonce?: number;
|
|
1151
|
+
value?: bigint;
|
|
1152
|
+
}): Promise<void> {
|
|
1153
|
+
return contract.simulate.flushERC721ForwarderTokens([forwarderAddress, tokenContractAddress, tokenId] as const, options) as Promise<void>;
|
|
1154
|
+
},
|
|
670
1155
|
/**
|
|
671
1156
|
* Simulate flushForwarderTokens
|
|
672
1157
|
* Returns gas estimate and result without sending transaction
|
|
@@ -705,6 +1190,63 @@ export class WalletSimple_json {
|
|
|
705
1190
|
}): Promise<void> {
|
|
706
1191
|
return contract.simulate.init([allowedSigners] as const, options) as Promise<void>;
|
|
707
1192
|
},
|
|
1193
|
+
/**
|
|
1194
|
+
* Simulate onERC1155BatchReceived
|
|
1195
|
+
* Returns gas estimate and result without sending transaction
|
|
1196
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1197
|
+
*/
|
|
1198
|
+
async onERC1155BatchReceived(_operator: `0x${string}`, _from: `0x${string}`, ids: bigint[], values: bigint[], data: `0x${string}`, options?: {
|
|
1199
|
+
accessList?: import('viem').AccessList;
|
|
1200
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1201
|
+
chain?: import('viem').Chain | null;
|
|
1202
|
+
dataSuffix?: `0x${string}`;
|
|
1203
|
+
gas?: bigint;
|
|
1204
|
+
gasPrice?: bigint;
|
|
1205
|
+
maxFeePerGas?: bigint;
|
|
1206
|
+
maxPriorityFeePerGas?: bigint;
|
|
1207
|
+
nonce?: number;
|
|
1208
|
+
value?: bigint;
|
|
1209
|
+
}): Promise<`0x${string}`> {
|
|
1210
|
+
return contract.simulate.onERC1155BatchReceived([_operator, _from, ids, values, data] as const, options) as Promise<`0x${string}`>;
|
|
1211
|
+
},
|
|
1212
|
+
/**
|
|
1213
|
+
* Simulate onERC1155Received
|
|
1214
|
+
* Returns gas estimate and result without sending transaction
|
|
1215
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1216
|
+
*/
|
|
1217
|
+
async onERC1155Received(_operator: `0x${string}`, _from: `0x${string}`, id: bigint, value: bigint, data: `0x${string}`, options?: {
|
|
1218
|
+
accessList?: import('viem').AccessList;
|
|
1219
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1220
|
+
chain?: import('viem').Chain | null;
|
|
1221
|
+
dataSuffix?: `0x${string}`;
|
|
1222
|
+
gas?: bigint;
|
|
1223
|
+
gasPrice?: bigint;
|
|
1224
|
+
maxFeePerGas?: bigint;
|
|
1225
|
+
maxPriorityFeePerGas?: bigint;
|
|
1226
|
+
nonce?: number;
|
|
1227
|
+
value?: bigint;
|
|
1228
|
+
}): Promise<`0x${string}`> {
|
|
1229
|
+
return contract.simulate.onERC1155Received([_operator, _from, id, value, data] as const, options) as Promise<`0x${string}`>;
|
|
1230
|
+
},
|
|
1231
|
+
/**
|
|
1232
|
+
* Simulate onERC721Received
|
|
1233
|
+
* Returns gas estimate and result without sending transaction
|
|
1234
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1235
|
+
*/
|
|
1236
|
+
async onERC721Received(_operator: `0x${string}`, _from: `0x${string}`, _tokenId: bigint, _data: `0x${string}`, options?: {
|
|
1237
|
+
accessList?: import('viem').AccessList;
|
|
1238
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1239
|
+
chain?: import('viem').Chain | null;
|
|
1240
|
+
dataSuffix?: `0x${string}`;
|
|
1241
|
+
gas?: bigint;
|
|
1242
|
+
gasPrice?: bigint;
|
|
1243
|
+
maxFeePerGas?: bigint;
|
|
1244
|
+
maxPriorityFeePerGas?: bigint;
|
|
1245
|
+
nonce?: number;
|
|
1246
|
+
value?: bigint;
|
|
1247
|
+
}): Promise<`0x${string}`> {
|
|
1248
|
+
return contract.simulate.onERC721Received([_operator, _from, _tokenId, _data] as const, options) as Promise<`0x${string}`>;
|
|
1249
|
+
},
|
|
708
1250
|
/**
|
|
709
1251
|
* Simulate sendMultiSig
|
|
710
1252
|
* Returns gas estimate and result without sending transaction
|
|
@@ -761,6 +1303,44 @@ export class WalletSimple_json {
|
|
|
761
1303
|
value?: bigint;
|
|
762
1304
|
}): Promise<void> {
|
|
763
1305
|
return contract.simulate.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<void>;
|
|
1306
|
+
},
|
|
1307
|
+
/**
|
|
1308
|
+
* Simulate setAutoFlush1155
|
|
1309
|
+
* Returns gas estimate and result without sending transaction
|
|
1310
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1311
|
+
*/
|
|
1312
|
+
async setAutoFlush1155(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1313
|
+
accessList?: import('viem').AccessList;
|
|
1314
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1315
|
+
chain?: import('viem').Chain | null;
|
|
1316
|
+
dataSuffix?: `0x${string}`;
|
|
1317
|
+
gas?: bigint;
|
|
1318
|
+
gasPrice?: bigint;
|
|
1319
|
+
maxFeePerGas?: bigint;
|
|
1320
|
+
maxPriorityFeePerGas?: bigint;
|
|
1321
|
+
nonce?: number;
|
|
1322
|
+
value?: bigint;
|
|
1323
|
+
}): Promise<void> {
|
|
1324
|
+
return contract.simulate.setAutoFlush1155([forwarderAddress, autoFlush] as const, options) as Promise<void>;
|
|
1325
|
+
},
|
|
1326
|
+
/**
|
|
1327
|
+
* Simulate setAutoFlush721
|
|
1328
|
+
* Returns gas estimate and result without sending transaction
|
|
1329
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1330
|
+
*/
|
|
1331
|
+
async setAutoFlush721(forwarderAddress: `0x${string}`, autoFlush: boolean, options?: {
|
|
1332
|
+
accessList?: import('viem').AccessList;
|
|
1333
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1334
|
+
chain?: import('viem').Chain | null;
|
|
1335
|
+
dataSuffix?: `0x${string}`;
|
|
1336
|
+
gas?: bigint;
|
|
1337
|
+
gasPrice?: bigint;
|
|
1338
|
+
maxFeePerGas?: bigint;
|
|
1339
|
+
maxPriorityFeePerGas?: bigint;
|
|
1340
|
+
nonce?: number;
|
|
1341
|
+
value?: bigint;
|
|
1342
|
+
}): Promise<void> {
|
|
1343
|
+
return contract.simulate.setAutoFlush721([forwarderAddress, autoFlush] as const, options) as Promise<void>;
|
|
764
1344
|
}
|
|
765
1345
|
};
|
|
766
1346
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/walletsimple",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for WalletSimple (build etherscan-walletsimple-
|
|
3
|
+
"version": "1.0.29",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for WalletSimple (build etherscan-walletsimple-e5dcdc13-1789128813403, commit 775a563, branch etherscan)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"url": "https://github.com/etherscan/walletsimple"
|
|
40
40
|
},
|
|
41
41
|
"branch": "etherscan",
|
|
42
|
-
"shortHash": "
|
|
42
|
+
"shortHash": "775a563"
|
|
43
43
|
}
|