@tomo-inc/transaction-builder-sdk 0.0.1-alpha.2 → 0.0.1

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.
@@ -1,901 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "uint256",
6
- "name": "deadline",
7
- "type": "uint256"
8
- }
9
- ],
10
- "name": "AllowanceExpired",
11
- "type": "error"
12
- },
13
- {
14
- "inputs": [],
15
- "name": "ExcessiveInvalidation",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "uint256",
22
- "name": "amount",
23
- "type": "uint256"
24
- }
25
- ],
26
- "name": "InsufficientAllowance",
27
- "type": "error"
28
- },
29
- {
30
- "inputs": [
31
- {
32
- "internalType": "uint256",
33
- "name": "maxAmount",
34
- "type": "uint256"
35
- }
36
- ],
37
- "name": "InvalidAmount",
38
- "type": "error"
39
- },
40
- {
41
- "inputs": [],
42
- "name": "InvalidContractSignature",
43
- "type": "error"
44
- },
45
- {
46
- "inputs": [],
47
- "name": "InvalidNonce",
48
- "type": "error"
49
- },
50
- {
51
- "inputs": [],
52
- "name": "InvalidSignature",
53
- "type": "error"
54
- },
55
- {
56
- "inputs": [],
57
- "name": "InvalidSignatureLength",
58
- "type": "error"
59
- },
60
- {
61
- "inputs": [],
62
- "name": "InvalidSigner",
63
- "type": "error"
64
- },
65
- {
66
- "inputs": [],
67
- "name": "LengthMismatch",
68
- "type": "error"
69
- },
70
- {
71
- "inputs": [
72
- {
73
- "internalType": "uint256",
74
- "name": "signatureDeadline",
75
- "type": "uint256"
76
- }
77
- ],
78
- "name": "SignatureExpired",
79
- "type": "error"
80
- },
81
- {
82
- "anonymous": false,
83
- "inputs": [
84
- {
85
- "indexed": true,
86
- "internalType": "address",
87
- "name": "owner",
88
- "type": "address"
89
- },
90
- {
91
- "indexed": true,
92
- "internalType": "address",
93
- "name": "token",
94
- "type": "address"
95
- },
96
- {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "spender",
100
- "type": "address"
101
- },
102
- {
103
- "indexed": false,
104
- "internalType": "uint160",
105
- "name": "amount",
106
- "type": "uint160"
107
- },
108
- {
109
- "indexed": false,
110
- "internalType": "uint48",
111
- "name": "expiration",
112
- "type": "uint48"
113
- }
114
- ],
115
- "name": "Approval",
116
- "type": "event"
117
- },
118
- {
119
- "anonymous": false,
120
- "inputs": [
121
- {
122
- "indexed": true,
123
- "internalType": "address",
124
- "name": "owner",
125
- "type": "address"
126
- },
127
- {
128
- "indexed": false,
129
- "internalType": "address",
130
- "name": "token",
131
- "type": "address"
132
- },
133
- {
134
- "indexed": false,
135
- "internalType": "address",
136
- "name": "spender",
137
- "type": "address"
138
- }
139
- ],
140
- "name": "Lockdown",
141
- "type": "event"
142
- },
143
- {
144
- "anonymous": false,
145
- "inputs": [
146
- {
147
- "indexed": true,
148
- "internalType": "address",
149
- "name": "owner",
150
- "type": "address"
151
- },
152
- {
153
- "indexed": true,
154
- "internalType": "address",
155
- "name": "token",
156
- "type": "address"
157
- },
158
- {
159
- "indexed": true,
160
- "internalType": "address",
161
- "name": "spender",
162
- "type": "address"
163
- },
164
- {
165
- "indexed": false,
166
- "internalType": "uint48",
167
- "name": "newNonce",
168
- "type": "uint48"
169
- },
170
- {
171
- "indexed": false,
172
- "internalType": "uint48",
173
- "name": "oldNonce",
174
- "type": "uint48"
175
- }
176
- ],
177
- "name": "NonceInvalidation",
178
- "type": "event"
179
- },
180
- {
181
- "anonymous": false,
182
- "inputs": [
183
- {
184
- "indexed": true,
185
- "internalType": "address",
186
- "name": "owner",
187
- "type": "address"
188
- },
189
- {
190
- "indexed": true,
191
- "internalType": "address",
192
- "name": "token",
193
- "type": "address"
194
- },
195
- {
196
- "indexed": true,
197
- "internalType": "address",
198
- "name": "spender",
199
- "type": "address"
200
- },
201
- {
202
- "indexed": false,
203
- "internalType": "uint160",
204
- "name": "amount",
205
- "type": "uint160"
206
- },
207
- {
208
- "indexed": false,
209
- "internalType": "uint48",
210
- "name": "expiration",
211
- "type": "uint48"
212
- },
213
- {
214
- "indexed": false,
215
- "internalType": "uint48",
216
- "name": "nonce",
217
- "type": "uint48"
218
- }
219
- ],
220
- "name": "Permit",
221
- "type": "event"
222
- },
223
- {
224
- "anonymous": false,
225
- "inputs": [
226
- {
227
- "indexed": true,
228
- "internalType": "address",
229
- "name": "owner",
230
- "type": "address"
231
- },
232
- {
233
- "indexed": false,
234
- "internalType": "uint256",
235
- "name": "word",
236
- "type": "uint256"
237
- },
238
- {
239
- "indexed": false,
240
- "internalType": "uint256",
241
- "name": "mask",
242
- "type": "uint256"
243
- }
244
- ],
245
- "name": "UnorderedNonceInvalidation",
246
- "type": "event"
247
- },
248
- {
249
- "inputs": [],
250
- "name": "DOMAIN_SEPARATOR",
251
- "outputs": [
252
- {
253
- "internalType": "bytes32",
254
- "name": "",
255
- "type": "bytes32"
256
- }
257
- ],
258
- "stateMutability": "view",
259
- "type": "function"
260
- },
261
- {
262
- "inputs": [
263
- {
264
- "internalType": "address",
265
- "name": "",
266
- "type": "address"
267
- },
268
- {
269
- "internalType": "address",
270
- "name": "",
271
- "type": "address"
272
- },
273
- {
274
- "internalType": "address",
275
- "name": "",
276
- "type": "address"
277
- }
278
- ],
279
- "name": "allowance",
280
- "outputs": [
281
- {
282
- "internalType": "uint160",
283
- "name": "amount",
284
- "type": "uint160"
285
- },
286
- {
287
- "internalType": "uint48",
288
- "name": "expiration",
289
- "type": "uint48"
290
- },
291
- {
292
- "internalType": "uint48",
293
- "name": "nonce",
294
- "type": "uint48"
295
- }
296
- ],
297
- "stateMutability": "view",
298
- "type": "function"
299
- },
300
- {
301
- "inputs": [
302
- {
303
- "internalType": "address",
304
- "name": "token",
305
- "type": "address"
306
- },
307
- {
308
- "internalType": "address",
309
- "name": "spender",
310
- "type": "address"
311
- },
312
- {
313
- "internalType": "uint160",
314
- "name": "amount",
315
- "type": "uint160"
316
- },
317
- {
318
- "internalType": "uint48",
319
- "name": "expiration",
320
- "type": "uint48"
321
- }
322
- ],
323
- "name": "approve",
324
- "outputs": [],
325
- "stateMutability": "nonpayable",
326
- "type": "function"
327
- },
328
- {
329
- "inputs": [
330
- {
331
- "internalType": "address",
332
- "name": "token",
333
- "type": "address"
334
- },
335
- {
336
- "internalType": "address",
337
- "name": "spender",
338
- "type": "address"
339
- },
340
- {
341
- "internalType": "uint48",
342
- "name": "newNonce",
343
- "type": "uint48"
344
- }
345
- ],
346
- "name": "invalidateNonces",
347
- "outputs": [],
348
- "stateMutability": "nonpayable",
349
- "type": "function"
350
- },
351
- {
352
- "inputs": [
353
- {
354
- "internalType": "uint256",
355
- "name": "wordPos",
356
- "type": "uint256"
357
- },
358
- {
359
- "internalType": "uint256",
360
- "name": "mask",
361
- "type": "uint256"
362
- }
363
- ],
364
- "name": "invalidateUnorderedNonces",
365
- "outputs": [],
366
- "stateMutability": "nonpayable",
367
- "type": "function"
368
- },
369
- {
370
- "inputs": [
371
- {
372
- "components": [
373
- {
374
- "internalType": "address",
375
- "name": "token",
376
- "type": "address"
377
- },
378
- {
379
- "internalType": "address",
380
- "name": "spender",
381
- "type": "address"
382
- }
383
- ],
384
- "internalType": "struct IAllowanceTransfer.TokenSpenderPair[]",
385
- "name": "approvals",
386
- "type": "tuple[]"
387
- }
388
- ],
389
- "name": "lockdown",
390
- "outputs": [],
391
- "stateMutability": "nonpayable",
392
- "type": "function"
393
- },
394
- {
395
- "inputs": [
396
- {
397
- "internalType": "address",
398
- "name": "",
399
- "type": "address"
400
- },
401
- {
402
- "internalType": "uint256",
403
- "name": "",
404
- "type": "uint256"
405
- }
406
- ],
407
- "name": "nonceBitmap",
408
- "outputs": [
409
- {
410
- "internalType": "uint256",
411
- "name": "",
412
- "type": "uint256"
413
- }
414
- ],
415
- "stateMutability": "view",
416
- "type": "function"
417
- },
418
- {
419
- "inputs": [
420
- {
421
- "internalType": "address",
422
- "name": "owner",
423
- "type": "address"
424
- },
425
- {
426
- "components": [
427
- {
428
- "components": [
429
- {
430
- "internalType": "address",
431
- "name": "token",
432
- "type": "address"
433
- },
434
- {
435
- "internalType": "uint160",
436
- "name": "amount",
437
- "type": "uint160"
438
- },
439
- {
440
- "internalType": "uint48",
441
- "name": "expiration",
442
- "type": "uint48"
443
- },
444
- {
445
- "internalType": "uint48",
446
- "name": "nonce",
447
- "type": "uint48"
448
- }
449
- ],
450
- "internalType": "struct IAllowanceTransfer.PermitDetails[]",
451
- "name": "details",
452
- "type": "tuple[]"
453
- },
454
- {
455
- "internalType": "address",
456
- "name": "spender",
457
- "type": "address"
458
- },
459
- {
460
- "internalType": "uint256",
461
- "name": "sigDeadline",
462
- "type": "uint256"
463
- }
464
- ],
465
- "internalType": "struct IAllowanceTransfer.PermitBatch",
466
- "name": "permitBatch",
467
- "type": "tuple"
468
- },
469
- {
470
- "internalType": "bytes",
471
- "name": "signature",
472
- "type": "bytes"
473
- }
474
- ],
475
- "name": "permit",
476
- "outputs": [],
477
- "stateMutability": "nonpayable",
478
- "type": "function"
479
- },
480
- {
481
- "inputs": [
482
- {
483
- "internalType": "address",
484
- "name": "owner",
485
- "type": "address"
486
- },
487
- {
488
- "components": [
489
- {
490
- "components": [
491
- {
492
- "internalType": "address",
493
- "name": "token",
494
- "type": "address"
495
- },
496
- {
497
- "internalType": "uint160",
498
- "name": "amount",
499
- "type": "uint160"
500
- },
501
- {
502
- "internalType": "uint48",
503
- "name": "expiration",
504
- "type": "uint48"
505
- },
506
- {
507
- "internalType": "uint48",
508
- "name": "nonce",
509
- "type": "uint48"
510
- }
511
- ],
512
- "internalType": "struct IAllowanceTransfer.PermitDetails",
513
- "name": "details",
514
- "type": "tuple"
515
- },
516
- {
517
- "internalType": "address",
518
- "name": "spender",
519
- "type": "address"
520
- },
521
- {
522
- "internalType": "uint256",
523
- "name": "sigDeadline",
524
- "type": "uint256"
525
- }
526
- ],
527
- "internalType": "struct IAllowanceTransfer.PermitSingle",
528
- "name": "permitSingle",
529
- "type": "tuple"
530
- },
531
- {
532
- "internalType": "bytes",
533
- "name": "signature",
534
- "type": "bytes"
535
- }
536
- ],
537
- "name": "permit",
538
- "outputs": [],
539
- "stateMutability": "nonpayable",
540
- "type": "function"
541
- },
542
- {
543
- "inputs": [
544
- {
545
- "components": [
546
- {
547
- "components": [
548
- {
549
- "internalType": "address",
550
- "name": "token",
551
- "type": "address"
552
- },
553
- {
554
- "internalType": "uint256",
555
- "name": "amount",
556
- "type": "uint256"
557
- }
558
- ],
559
- "internalType": "struct ISignatureTransfer.TokenPermissions",
560
- "name": "permitted",
561
- "type": "tuple"
562
- },
563
- {
564
- "internalType": "uint256",
565
- "name": "nonce",
566
- "type": "uint256"
567
- },
568
- {
569
- "internalType": "uint256",
570
- "name": "deadline",
571
- "type": "uint256"
572
- }
573
- ],
574
- "internalType": "struct ISignatureTransfer.PermitTransferFrom",
575
- "name": "permit",
576
- "type": "tuple"
577
- },
578
- {
579
- "components": [
580
- {
581
- "internalType": "address",
582
- "name": "to",
583
- "type": "address"
584
- },
585
- {
586
- "internalType": "uint256",
587
- "name": "requestedAmount",
588
- "type": "uint256"
589
- }
590
- ],
591
- "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
592
- "name": "transferDetails",
593
- "type": "tuple"
594
- },
595
- {
596
- "internalType": "address",
597
- "name": "owner",
598
- "type": "address"
599
- },
600
- {
601
- "internalType": "bytes",
602
- "name": "signature",
603
- "type": "bytes"
604
- }
605
- ],
606
- "name": "permitTransferFrom",
607
- "outputs": [],
608
- "stateMutability": "nonpayable",
609
- "type": "function"
610
- },
611
- {
612
- "inputs": [
613
- {
614
- "components": [
615
- {
616
- "components": [
617
- {
618
- "internalType": "address",
619
- "name": "token",
620
- "type": "address"
621
- },
622
- {
623
- "internalType": "uint256",
624
- "name": "amount",
625
- "type": "uint256"
626
- }
627
- ],
628
- "internalType": "struct ISignatureTransfer.TokenPermissions[]",
629
- "name": "permitted",
630
- "type": "tuple[]"
631
- },
632
- {
633
- "internalType": "uint256",
634
- "name": "nonce",
635
- "type": "uint256"
636
- },
637
- {
638
- "internalType": "uint256",
639
- "name": "deadline",
640
- "type": "uint256"
641
- }
642
- ],
643
- "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
644
- "name": "permit",
645
- "type": "tuple"
646
- },
647
- {
648
- "components": [
649
- {
650
- "internalType": "address",
651
- "name": "to",
652
- "type": "address"
653
- },
654
- {
655
- "internalType": "uint256",
656
- "name": "requestedAmount",
657
- "type": "uint256"
658
- }
659
- ],
660
- "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
661
- "name": "transferDetails",
662
- "type": "tuple[]"
663
- },
664
- {
665
- "internalType": "address",
666
- "name": "owner",
667
- "type": "address"
668
- },
669
- {
670
- "internalType": "bytes",
671
- "name": "signature",
672
- "type": "bytes"
673
- }
674
- ],
675
- "name": "permitTransferFrom",
676
- "outputs": [],
677
- "stateMutability": "nonpayable",
678
- "type": "function"
679
- },
680
- {
681
- "inputs": [
682
- {
683
- "components": [
684
- {
685
- "components": [
686
- {
687
- "internalType": "address",
688
- "name": "token",
689
- "type": "address"
690
- },
691
- {
692
- "internalType": "uint256",
693
- "name": "amount",
694
- "type": "uint256"
695
- }
696
- ],
697
- "internalType": "struct ISignatureTransfer.TokenPermissions",
698
- "name": "permitted",
699
- "type": "tuple"
700
- },
701
- {
702
- "internalType": "uint256",
703
- "name": "nonce",
704
- "type": "uint256"
705
- },
706
- {
707
- "internalType": "uint256",
708
- "name": "deadline",
709
- "type": "uint256"
710
- }
711
- ],
712
- "internalType": "struct ISignatureTransfer.PermitTransferFrom",
713
- "name": "permit",
714
- "type": "tuple"
715
- },
716
- {
717
- "components": [
718
- {
719
- "internalType": "address",
720
- "name": "to",
721
- "type": "address"
722
- },
723
- {
724
- "internalType": "uint256",
725
- "name": "requestedAmount",
726
- "type": "uint256"
727
- }
728
- ],
729
- "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
730
- "name": "transferDetails",
731
- "type": "tuple"
732
- },
733
- {
734
- "internalType": "address",
735
- "name": "owner",
736
- "type": "address"
737
- },
738
- {
739
- "internalType": "bytes32",
740
- "name": "witness",
741
- "type": "bytes32"
742
- },
743
- {
744
- "internalType": "string",
745
- "name": "witnessTypeString",
746
- "type": "string"
747
- },
748
- {
749
- "internalType": "bytes",
750
- "name": "signature",
751
- "type": "bytes"
752
- }
753
- ],
754
- "name": "permitWitnessTransferFrom",
755
- "outputs": [],
756
- "stateMutability": "nonpayable",
757
- "type": "function"
758
- },
759
- {
760
- "inputs": [
761
- {
762
- "components": [
763
- {
764
- "components": [
765
- {
766
- "internalType": "address",
767
- "name": "token",
768
- "type": "address"
769
- },
770
- {
771
- "internalType": "uint256",
772
- "name": "amount",
773
- "type": "uint256"
774
- }
775
- ],
776
- "internalType": "struct ISignatureTransfer.TokenPermissions[]",
777
- "name": "permitted",
778
- "type": "tuple[]"
779
- },
780
- {
781
- "internalType": "uint256",
782
- "name": "nonce",
783
- "type": "uint256"
784
- },
785
- {
786
- "internalType": "uint256",
787
- "name": "deadline",
788
- "type": "uint256"
789
- }
790
- ],
791
- "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
792
- "name": "permit",
793
- "type": "tuple"
794
- },
795
- {
796
- "components": [
797
- {
798
- "internalType": "address",
799
- "name": "to",
800
- "type": "address"
801
- },
802
- {
803
- "internalType": "uint256",
804
- "name": "requestedAmount",
805
- "type": "uint256"
806
- }
807
- ],
808
- "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
809
- "name": "transferDetails",
810
- "type": "tuple[]"
811
- },
812
- {
813
- "internalType": "address",
814
- "name": "owner",
815
- "type": "address"
816
- },
817
- {
818
- "internalType": "bytes32",
819
- "name": "witness",
820
- "type": "bytes32"
821
- },
822
- {
823
- "internalType": "string",
824
- "name": "witnessTypeString",
825
- "type": "string"
826
- },
827
- {
828
- "internalType": "bytes",
829
- "name": "signature",
830
- "type": "bytes"
831
- }
832
- ],
833
- "name": "permitWitnessTransferFrom",
834
- "outputs": [],
835
- "stateMutability": "nonpayable",
836
- "type": "function"
837
- },
838
- {
839
- "inputs": [
840
- {
841
- "components": [
842
- {
843
- "internalType": "address",
844
- "name": "from",
845
- "type": "address"
846
- },
847
- {
848
- "internalType": "address",
849
- "name": "to",
850
- "type": "address"
851
- },
852
- {
853
- "internalType": "uint160",
854
- "name": "amount",
855
- "type": "uint160"
856
- },
857
- {
858
- "internalType": "address",
859
- "name": "token",
860
- "type": "address"
861
- }
862
- ],
863
- "internalType": "struct IAllowanceTransfer.AllowanceTransferDetails[]",
864
- "name": "transferDetails",
865
- "type": "tuple[]"
866
- }
867
- ],
868
- "name": "transferFrom",
869
- "outputs": [],
870
- "stateMutability": "nonpayable",
871
- "type": "function"
872
- },
873
- {
874
- "inputs": [
875
- {
876
- "internalType": "address",
877
- "name": "from",
878
- "type": "address"
879
- },
880
- {
881
- "internalType": "address",
882
- "name": "to",
883
- "type": "address"
884
- },
885
- {
886
- "internalType": "uint160",
887
- "name": "amount",
888
- "type": "uint160"
889
- },
890
- {
891
- "internalType": "address",
892
- "name": "token",
893
- "type": "address"
894
- }
895
- ],
896
- "name": "transferFrom",
897
- "outputs": [],
898
- "stateMutability": "nonpayable",
899
- "type": "function"
900
- }
901
- ]