@towns-protocol/generated 0.0.336 → 0.0.338

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