@mania-labs/mania-sdk 1.0.1 → 1.0.3

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