@towns-protocol/generated 0.0.335 → 0.0.337

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