@gitmyabi/walletsimple 1.0.18 → 1.0.19
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 +0 -459
- package/contracts/WalletSimple_json.js +0 -395
- package/contracts/WalletSimple_json.ts +0 -580
- package/package.json +3 -3
|
@@ -149,75 +149,6 @@ 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
|
-
},
|
|
221
152
|
{
|
|
222
153
|
"inputs": [
|
|
223
154
|
{
|
|
@@ -294,118 +225,6 @@ export const WalletSimple_jsonAbi = [
|
|
|
294
225
|
"stateMutability": "view",
|
|
295
226
|
"type": "function"
|
|
296
227
|
},
|
|
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
|
-
},
|
|
409
228
|
{
|
|
410
229
|
"inputs": [],
|
|
411
230
|
"name": "safeMode",
|
|
@@ -528,42 +347,6 @@ export const WalletSimple_jsonAbi = [
|
|
|
528
347
|
"stateMutability": "nonpayable",
|
|
529
348
|
"type": "function"
|
|
530
349
|
},
|
|
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
|
-
},
|
|
567
350
|
{
|
|
568
351
|
"inputs": [
|
|
569
352
|
{
|
|
@@ -583,25 +366,6 @@ export const WalletSimple_jsonAbi = [
|
|
|
583
366
|
"stateMutability": "view",
|
|
584
367
|
"type": "function"
|
|
585
368
|
},
|
|
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
|
-
},
|
|
605
369
|
{
|
|
606
370
|
"stateMutability": "payable",
|
|
607
371
|
"type": "receive"
|
|
@@ -730,14 +494,6 @@ export class WalletSimple_json {
|
|
|
730
494
|
return this.contract.read.signers([arg0] as const) as Promise<boolean>;
|
|
731
495
|
}
|
|
732
496
|
|
|
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
|
-
|
|
741
497
|
/**
|
|
742
498
|
* activateSafeMode
|
|
743
499
|
* nonpayable
|
|
@@ -761,75 +517,6 @@ export class WalletSimple_json {
|
|
|
761
517
|
return this.contract.write.activateSafeMode(options) as Promise<`0x${string}`>;
|
|
762
518
|
}
|
|
763
519
|
|
|
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
|
-
|
|
833
520
|
/**
|
|
834
521
|
* flushForwarderTokens
|
|
835
522
|
* nonpayable
|
|
@@ -876,75 +563,6 @@ export class WalletSimple_json {
|
|
|
876
563
|
return this.contract.write.init([allowedSigners] as const, options) as Promise<`0x${string}`>;
|
|
877
564
|
}
|
|
878
565
|
|
|
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
|
-
|
|
948
566
|
/**
|
|
949
567
|
* sendMultiSig
|
|
950
568
|
* nonpayable
|
|
@@ -1014,52 +632,6 @@ export class WalletSimple_json {
|
|
|
1014
632
|
return this.contract.write.sendMultiSigToken([toAddress, value, tokenContractAddress, expireTime, sequenceId, signature] as const, options) as Promise<`0x${string}`>;
|
|
1015
633
|
}
|
|
1016
634
|
|
|
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
|
-
|
|
1063
635
|
|
|
1064
636
|
|
|
1065
637
|
/**
|
|
@@ -1095,63 +667,6 @@ export class WalletSimple_json {
|
|
|
1095
667
|
}): Promise<void> {
|
|
1096
668
|
return contract.simulate.activateSafeMode(options) as Promise<void>;
|
|
1097
669
|
},
|
|
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
|
-
},
|
|
1155
670
|
/**
|
|
1156
671
|
* Simulate flushForwarderTokens
|
|
1157
672
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1190,63 +705,6 @@ export class WalletSimple_json {
|
|
|
1190
705
|
}): Promise<void> {
|
|
1191
706
|
return contract.simulate.init([allowedSigners] as const, options) as Promise<void>;
|
|
1192
707
|
},
|
|
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
|
-
},
|
|
1250
708
|
/**
|
|
1251
709
|
* Simulate sendMultiSig
|
|
1252
710
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1303,44 +761,6 @@ export class WalletSimple_json {
|
|
|
1303
761
|
value?: bigint;
|
|
1304
762
|
}): Promise<void> {
|
|
1305
763
|
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>;
|
|
1344
764
|
}
|
|
1345
765
|
};
|
|
1346
766
|
}
|
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.19",
|
|
4
|
+
"description": "Auto-generated TypeScript type bindings for WalletSimple (build etherscan-walletsimple-c35b403d-1787777117323, commit f7f8f4a, 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": "f7f8f4a"
|
|
43
43
|
}
|