@towns-protocol/generated 0.0.352 → 0.0.354

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.
@@ -182,6 +182,56 @@ export default [
182
182
  ],
183
183
  "anonymous": false
184
184
  },
185
+ {
186
+ "type": "event",
187
+ "name": "AppUpdated",
188
+ "inputs": [
189
+ {
190
+ "name": "app",
191
+ "type": "address",
192
+ "indexed": true,
193
+ "internalType": "address"
194
+ },
195
+ {
196
+ "name": "account",
197
+ "type": "address",
198
+ "indexed": true,
199
+ "internalType": "address"
200
+ },
201
+ {
202
+ "name": "appId",
203
+ "type": "bytes32",
204
+ "indexed": true,
205
+ "internalType": "bytes32"
206
+ }
207
+ ],
208
+ "anonymous": false
209
+ },
210
+ {
211
+ "type": "event",
212
+ "name": "AppUpgraded",
213
+ "inputs": [
214
+ {
215
+ "name": "app",
216
+ "type": "address",
217
+ "indexed": true,
218
+ "internalType": "address"
219
+ },
220
+ {
221
+ "name": "oldVersionId",
222
+ "type": "bytes32",
223
+ "indexed": true,
224
+ "internalType": "bytes32"
225
+ },
226
+ {
227
+ "name": "newVersionId",
228
+ "type": "bytes32",
229
+ "indexed": true,
230
+ "internalType": "bytes32"
231
+ }
232
+ ],
233
+ "anonymous": false
234
+ },
185
235
  {
186
236
  "type": "error",
187
237
  "name": "AppAlreadyRegistered",
@@ -217,6 +267,11 @@ export default [
217
267
  "name": "ClientAlreadyRegistered",
218
268
  "inputs": []
219
269
  },
270
+ {
271
+ "type": "error",
272
+ "name": "ClientNotRegistered",
273
+ "inputs": []
274
+ },
220
275
  {
221
276
  "type": "error",
222
277
  "name": "InsufficientPayment",
@@ -294,6 +294,19 @@
294
294
  "outputs": [],
295
295
  "stateMutability": "payable"
296
296
  },
297
+ {
298
+ "type": "function",
299
+ "name": "updatePermissions",
300
+ "inputs": [
301
+ {
302
+ "name": "permissions",
303
+ "type": "bytes32[]",
304
+ "internalType": "bytes32[]"
305
+ }
306
+ ],
307
+ "outputs": [],
308
+ "stateMutability": "nonpayable"
309
+ },
297
310
  {
298
311
  "type": "function",
299
312
  "name": "updatePricing",
@@ -383,6 +396,19 @@
383
396
  ],
384
397
  "anonymous": false
385
398
  },
399
+ {
400
+ "type": "event",
401
+ "name": "PermissionsUpdated",
402
+ "inputs": [
403
+ {
404
+ "name": "permissions",
405
+ "type": "bytes32[]",
406
+ "indexed": false,
407
+ "internalType": "bytes32[]"
408
+ }
409
+ ],
410
+ "anonymous": false
411
+ },
386
412
  {
387
413
  "type": "event",
388
414
  "name": "PricingUpdated",
@@ -294,6 +294,19 @@ export default [
294
294
  "outputs": [],
295
295
  "stateMutability": "payable"
296
296
  },
297
+ {
298
+ "type": "function",
299
+ "name": "updatePermissions",
300
+ "inputs": [
301
+ {
302
+ "name": "permissions",
303
+ "type": "bytes32[]",
304
+ "internalType": "bytes32[]"
305
+ }
306
+ ],
307
+ "outputs": [],
308
+ "stateMutability": "nonpayable"
309
+ },
297
310
  {
298
311
  "type": "function",
299
312
  "name": "updatePricing",
@@ -383,6 +396,19 @@ export default [
383
396
  ],
384
397
  "anonymous": false
385
398
  },
399
+ {
400
+ "type": "event",
401
+ "name": "PermissionsUpdated",
402
+ "inputs": [
403
+ {
404
+ "name": "permissions",
405
+ "type": "bytes32[]",
406
+ "indexed": false,
407
+ "internalType": "bytes32[]"
408
+ }
409
+ ],
410
+ "anonymous": false
411
+ },
386
412
  {
387
413
  "type": "event",
388
414
  "name": "PricingUpdated",
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
3
  "type": "function",
4
- "name": "GRACE_PERIOD",
4
+ "name": "BUFFER_IMMEDIATE",
5
5
  "inputs": [],
6
6
  "outputs": [
7
7
  {
@@ -14,7 +14,46 @@
14
14
  },
15
15
  {
16
16
  "type": "function",
17
- "name": "MAX_BATCH_SIZE",
17
+ "name": "BUFFER_LONG",
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": "BUFFER_MEDIUM",
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": "BUFFER_SHORT",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "GRACE_PERIOD",
18
57
  "inputs": [],
19
58
  "outputs": [
20
59
  {
@@ -27,7 +66,7 @@
27
66
  },
28
67
  {
29
68
  "type": "function",
30
- "name": "RENEWAL_BUFFER",
69
+ "name": "MAX_BATCH_SIZE",
31
70
  "inputs": [],
32
71
  "outputs": [
33
72
  {
@@ -45,6 +84,19 @@
45
84
  "outputs": [],
46
85
  "stateMutability": "nonpayable"
47
86
  },
87
+ {
88
+ "type": "function",
89
+ "name": "activateSubscription",
90
+ "inputs": [
91
+ {
92
+ "name": "entityId",
93
+ "type": "uint32",
94
+ "internalType": "uint32"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
48
100
  {
49
101
  "type": "function",
50
102
  "name": "batchProcessRenewals",
@@ -89,6 +141,25 @@
89
141
  ],
90
142
  "stateMutability": "view"
91
143
  },
144
+ {
145
+ "type": "function",
146
+ "name": "getRenewalBuffer",
147
+ "inputs": [
148
+ {
149
+ "name": "expirationTime",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "uint256",
158
+ "internalType": "uint256"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
92
163
  {
93
164
  "type": "function",
94
165
  "name": "getSubscription",
@@ -125,6 +196,11 @@
125
196
  "type": "address",
126
197
  "internalType": "address"
127
198
  },
199
+ {
200
+ "name": "installTime",
201
+ "type": "uint40",
202
+ "internalType": "uint40"
203
+ },
128
204
  {
129
205
  "name": "lastRenewalTime",
130
206
  "type": "uint40",
@@ -366,31 +442,6 @@
366
442
  ],
367
443
  "stateMutability": "pure"
368
444
  },
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
445
  {
395
446
  "type": "function",
396
447
  "name": "revokeOperator",
@@ -685,6 +736,25 @@
685
736
  ],
686
737
  "anonymous": false
687
738
  },
739
+ {
740
+ "type": "event",
741
+ "name": "SubscriptionActivated",
742
+ "inputs": [
743
+ {
744
+ "name": "account",
745
+ "type": "address",
746
+ "indexed": true,
747
+ "internalType": "address"
748
+ },
749
+ {
750
+ "name": "entityId",
751
+ "type": "uint32",
752
+ "indexed": true,
753
+ "internalType": "uint32"
754
+ }
755
+ ],
756
+ "anonymous": false
757
+ },
688
758
  {
689
759
  "type": "event",
690
760
  "name": "SubscriptionConfigured",
@@ -741,6 +811,25 @@
741
811
  ],
742
812
  "anonymous": false
743
813
  },
814
+ {
815
+ "type": "event",
816
+ "name": "SubscriptionNotDue",
817
+ "inputs": [
818
+ {
819
+ "name": "account",
820
+ "type": "address",
821
+ "indexed": true,
822
+ "internalType": "address"
823
+ },
824
+ {
825
+ "name": "entityId",
826
+ "type": "uint32",
827
+ "indexed": true,
828
+ "internalType": "uint32"
829
+ }
830
+ ],
831
+ "anonymous": false
832
+ },
744
833
  {
745
834
  "type": "event",
746
835
  "name": "SubscriptionPaused",
@@ -816,6 +905,31 @@
816
905
  ],
817
906
  "anonymous": false
818
907
  },
908
+ {
909
+ "type": "event",
910
+ "name": "SubscriptionSynced",
911
+ "inputs": [
912
+ {
913
+ "name": "account",
914
+ "type": "address",
915
+ "indexed": true,
916
+ "internalType": "address"
917
+ },
918
+ {
919
+ "name": "entityId",
920
+ "type": "uint32",
921
+ "indexed": true,
922
+ "internalType": "uint32"
923
+ },
924
+ {
925
+ "name": "newNextRenewalTime",
926
+ "type": "uint256",
927
+ "indexed": false,
928
+ "internalType": "uint256"
929
+ }
930
+ ],
931
+ "anonymous": false
932
+ },
819
933
  {
820
934
  "type": "error",
821
935
  "name": "Initializable_InInitializingState",
@@ -862,6 +976,11 @@
862
976
  "name": "Reentrancy",
863
977
  "inputs": []
864
978
  },
979
+ {
980
+ "type": "error",
981
+ "name": "SubscriptionModule__ActiveSubscription",
982
+ "inputs": []
983
+ },
865
984
  {
866
985
  "type": "error",
867
986
  "name": "SubscriptionModule__EmptyBatch",
@@ -1,7 +1,7 @@
1
1
  export default [
2
2
  {
3
3
  "type": "function",
4
- "name": "GRACE_PERIOD",
4
+ "name": "BUFFER_IMMEDIATE",
5
5
  "inputs": [],
6
6
  "outputs": [
7
7
  {
@@ -14,7 +14,46 @@ export default [
14
14
  },
15
15
  {
16
16
  "type": "function",
17
- "name": "MAX_BATCH_SIZE",
17
+ "name": "BUFFER_LONG",
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": "BUFFER_MEDIUM",
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": "BUFFER_SHORT",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "GRACE_PERIOD",
18
57
  "inputs": [],
19
58
  "outputs": [
20
59
  {
@@ -27,7 +66,7 @@ export default [
27
66
  },
28
67
  {
29
68
  "type": "function",
30
- "name": "RENEWAL_BUFFER",
69
+ "name": "MAX_BATCH_SIZE",
31
70
  "inputs": [],
32
71
  "outputs": [
33
72
  {
@@ -45,6 +84,19 @@ export default [
45
84
  "outputs": [],
46
85
  "stateMutability": "nonpayable"
47
86
  },
87
+ {
88
+ "type": "function",
89
+ "name": "activateSubscription",
90
+ "inputs": [
91
+ {
92
+ "name": "entityId",
93
+ "type": "uint32",
94
+ "internalType": "uint32"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
48
100
  {
49
101
  "type": "function",
50
102
  "name": "batchProcessRenewals",
@@ -89,6 +141,25 @@ export default [
89
141
  ],
90
142
  "stateMutability": "view"
91
143
  },
144
+ {
145
+ "type": "function",
146
+ "name": "getRenewalBuffer",
147
+ "inputs": [
148
+ {
149
+ "name": "expirationTime",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "uint256",
158
+ "internalType": "uint256"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
92
163
  {
93
164
  "type": "function",
94
165
  "name": "getSubscription",
@@ -125,6 +196,11 @@ export default [
125
196
  "type": "address",
126
197
  "internalType": "address"
127
198
  },
199
+ {
200
+ "name": "installTime",
201
+ "type": "uint40",
202
+ "internalType": "uint40"
203
+ },
128
204
  {
129
205
  "name": "lastRenewalTime",
130
206
  "type": "uint40",
@@ -366,31 +442,6 @@ export default [
366
442
  ],
367
443
  "stateMutability": "pure"
368
444
  },
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
445
  {
395
446
  "type": "function",
396
447
  "name": "revokeOperator",
@@ -685,6 +736,25 @@ export default [
685
736
  ],
686
737
  "anonymous": false
687
738
  },
739
+ {
740
+ "type": "event",
741
+ "name": "SubscriptionActivated",
742
+ "inputs": [
743
+ {
744
+ "name": "account",
745
+ "type": "address",
746
+ "indexed": true,
747
+ "internalType": "address"
748
+ },
749
+ {
750
+ "name": "entityId",
751
+ "type": "uint32",
752
+ "indexed": true,
753
+ "internalType": "uint32"
754
+ }
755
+ ],
756
+ "anonymous": false
757
+ },
688
758
  {
689
759
  "type": "event",
690
760
  "name": "SubscriptionConfigured",
@@ -741,6 +811,25 @@ export default [
741
811
  ],
742
812
  "anonymous": false
743
813
  },
814
+ {
815
+ "type": "event",
816
+ "name": "SubscriptionNotDue",
817
+ "inputs": [
818
+ {
819
+ "name": "account",
820
+ "type": "address",
821
+ "indexed": true,
822
+ "internalType": "address"
823
+ },
824
+ {
825
+ "name": "entityId",
826
+ "type": "uint32",
827
+ "indexed": true,
828
+ "internalType": "uint32"
829
+ }
830
+ ],
831
+ "anonymous": false
832
+ },
744
833
  {
745
834
  "type": "event",
746
835
  "name": "SubscriptionPaused",
@@ -816,6 +905,31 @@ export default [
816
905
  ],
817
906
  "anonymous": false
818
907
  },
908
+ {
909
+ "type": "event",
910
+ "name": "SubscriptionSynced",
911
+ "inputs": [
912
+ {
913
+ "name": "account",
914
+ "type": "address",
915
+ "indexed": true,
916
+ "internalType": "address"
917
+ },
918
+ {
919
+ "name": "entityId",
920
+ "type": "uint32",
921
+ "indexed": true,
922
+ "internalType": "uint32"
923
+ },
924
+ {
925
+ "name": "newNextRenewalTime",
926
+ "type": "uint256",
927
+ "indexed": false,
928
+ "internalType": "uint256"
929
+ }
930
+ ],
931
+ "anonymous": false
932
+ },
819
933
  {
820
934
  "type": "error",
821
935
  "name": "Initializable_InInitializingState",
@@ -862,6 +976,11 @@ export default [
862
976
  "name": "Reentrancy",
863
977
  "inputs": []
864
978
  },
979
+ {
980
+ "type": "error",
981
+ "name": "SubscriptionModule__ActiveSubscription",
982
+ "inputs": []
983
+ },
865
984
  {
866
985
  "type": "error",
867
986
  "name": "SubscriptionModule__EmptyBatch",