@towns-protocol/generated 0.0.245 → 0.0.247

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.
@@ -78,8 +78,8 @@
78
78
  },
79
79
  {
80
80
  "name": "accessDuration",
81
- "type": "uint64",
82
- "internalType": "uint64"
81
+ "type": "uint48",
82
+ "internalType": "uint48"
83
83
  }
84
84
  ]
85
85
  }
@@ -218,6 +218,11 @@
218
218
  "internalType": "bytes4[]"
219
219
  }
220
220
  ]
221
+ },
222
+ {
223
+ "name": "duration",
224
+ "type": "uint48",
225
+ "internalType": "uint48"
221
226
  }
222
227
  ]
223
228
  }
@@ -348,6 +353,29 @@
348
353
  "outputs": [],
349
354
  "stateMutability": "nonpayable"
350
355
  },
356
+ {
357
+ "type": "function",
358
+ "name": "renewApp",
359
+ "inputs": [
360
+ {
361
+ "name": "app",
362
+ "type": "address",
363
+ "internalType": "contract ITownsApp"
364
+ },
365
+ {
366
+ "name": "account",
367
+ "type": "address",
368
+ "internalType": "contract IAppAccount"
369
+ },
370
+ {
371
+ "name": "data",
372
+ "type": "bytes",
373
+ "internalType": "bytes"
374
+ }
375
+ ],
376
+ "outputs": [],
377
+ "stateMutability": "payable"
378
+ },
351
379
  {
352
380
  "type": "function",
353
381
  "name": "uninstallApp",
@@ -453,6 +481,31 @@
453
481
  ],
454
482
  "anonymous": false
455
483
  },
484
+ {
485
+ "type": "event",
486
+ "name": "AppRenewed",
487
+ "inputs": [
488
+ {
489
+ "name": "app",
490
+ "type": "address",
491
+ "indexed": true,
492
+ "internalType": "address"
493
+ },
494
+ {
495
+ "name": "account",
496
+ "type": "address",
497
+ "indexed": true,
498
+ "internalType": "address"
499
+ },
500
+ {
501
+ "name": "appId",
502
+ "type": "bytes32",
503
+ "indexed": true,
504
+ "internalType": "bytes32"
505
+ }
506
+ ],
507
+ "anonymous": false
508
+ },
456
509
  {
457
510
  "type": "event",
458
511
  "name": "AppSchemaSet",
@@ -78,8 +78,8 @@ export default [
78
78
  },
79
79
  {
80
80
  "name": "accessDuration",
81
- "type": "uint64",
82
- "internalType": "uint64"
81
+ "type": "uint48",
82
+ "internalType": "uint48"
83
83
  }
84
84
  ]
85
85
  }
@@ -218,6 +218,11 @@ export default [
218
218
  "internalType": "bytes4[]"
219
219
  }
220
220
  ]
221
+ },
222
+ {
223
+ "name": "duration",
224
+ "type": "uint48",
225
+ "internalType": "uint48"
221
226
  }
222
227
  ]
223
228
  }
@@ -348,6 +353,29 @@ export default [
348
353
  "outputs": [],
349
354
  "stateMutability": "nonpayable"
350
355
  },
356
+ {
357
+ "type": "function",
358
+ "name": "renewApp",
359
+ "inputs": [
360
+ {
361
+ "name": "app",
362
+ "type": "address",
363
+ "internalType": "contract ITownsApp"
364
+ },
365
+ {
366
+ "name": "account",
367
+ "type": "address",
368
+ "internalType": "contract IAppAccount"
369
+ },
370
+ {
371
+ "name": "data",
372
+ "type": "bytes",
373
+ "internalType": "bytes"
374
+ }
375
+ ],
376
+ "outputs": [],
377
+ "stateMutability": "payable"
378
+ },
351
379
  {
352
380
  "type": "function",
353
381
  "name": "uninstallApp",
@@ -453,6 +481,31 @@ export default [
453
481
  ],
454
482
  "anonymous": false
455
483
  },
484
+ {
485
+ "type": "event",
486
+ "name": "AppRenewed",
487
+ "inputs": [
488
+ {
489
+ "name": "app",
490
+ "type": "address",
491
+ "indexed": true,
492
+ "internalType": "address"
493
+ },
494
+ {
495
+ "name": "account",
496
+ "type": "address",
497
+ "indexed": true,
498
+ "internalType": "address"
499
+ },
500
+ {
501
+ "name": "appId",
502
+ "type": "bytes32",
503
+ "indexed": true,
504
+ "internalType": "bytes32"
505
+ }
506
+ ],
507
+ "anonymous": false
508
+ },
456
509
  {
457
510
  "type": "event",
458
511
  "name": "AppSchemaSet",
@@ -81,6 +81,31 @@
81
81
  ],
82
82
  "anonymous": false
83
83
  },
84
+ {
85
+ "type": "event",
86
+ "name": "AppRenewed",
87
+ "inputs": [
88
+ {
89
+ "name": "app",
90
+ "type": "address",
91
+ "indexed": true,
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "account",
96
+ "type": "address",
97
+ "indexed": true,
98
+ "internalType": "address"
99
+ },
100
+ {
101
+ "name": "appId",
102
+ "type": "bytes32",
103
+ "indexed": true,
104
+ "internalType": "bytes32"
105
+ }
106
+ ],
107
+ "anonymous": false
108
+ },
84
109
  {
85
110
  "type": "event",
86
111
  "name": "AppSchemaSet",
@@ -81,6 +81,31 @@ export default [
81
81
  ],
82
82
  "anonymous": false
83
83
  },
84
+ {
85
+ "type": "event",
86
+ "name": "AppRenewed",
87
+ "inputs": [
88
+ {
89
+ "name": "app",
90
+ "type": "address",
91
+ "indexed": true,
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "account",
96
+ "type": "address",
97
+ "indexed": true,
98
+ "internalType": "address"
99
+ },
100
+ {
101
+ "name": "appId",
102
+ "type": "bytes32",
103
+ "indexed": true,
104
+ "internalType": "bytes32"
105
+ }
106
+ ],
107
+ "anonymous": false
108
+ },
84
109
  {
85
110
  "type": "event",
86
111
  "name": "AppSchemaSet",
@@ -296,6 +296,11 @@
296
296
  "name": "EntitlementChecker_InvalidOperator",
297
297
  "inputs": []
298
298
  },
299
+ {
300
+ "type": "error",
301
+ "name": "EntitlementChecker_InvalidValue",
302
+ "inputs": []
303
+ },
299
304
  {
300
305
  "type": "error",
301
306
  "name": "EntitlementChecker_NoPendingRequests",
@@ -296,6 +296,11 @@ export default [
296
296
  "name": "EntitlementChecker_InvalidOperator",
297
297
  "inputs": []
298
298
  },
299
+ {
300
+ "type": "error",
301
+ "name": "EntitlementChecker_InvalidValue",
302
+ "inputs": []
303
+ },
299
304
  {
300
305
  "type": "error",
301
306
  "name": "EntitlementChecker_NoPendingRequests",
@@ -125,6 +125,11 @@
125
125
  "name": "EntitlementChecker_InvalidOperator",
126
126
  "inputs": []
127
127
  },
128
+ {
129
+ "type": "error",
130
+ "name": "EntitlementChecker_InvalidValue",
131
+ "inputs": []
132
+ },
128
133
  {
129
134
  "type": "error",
130
135
  "name": "EntitlementChecker_NoPendingRequests",
@@ -125,6 +125,11 @@ export default [
125
125
  "name": "EntitlementChecker_InvalidOperator",
126
126
  "inputs": []
127
127
  },
128
+ {
129
+ "type": "error",
130
+ "name": "EntitlementChecker_InvalidValue",
131
+ "inputs": []
132
+ },
128
133
  {
129
134
  "type": "error",
130
135
  "name": "EntitlementChecker_NoPendingRequests",
@@ -143,6 +143,11 @@
143
143
  "name": "EntitlementGated_InvalidEntitlement",
144
144
  "inputs": []
145
145
  },
146
+ {
147
+ "type": "error",
148
+ "name": "EntitlementGated_InvalidValue",
149
+ "inputs": []
150
+ },
146
151
  {
147
152
  "type": "error",
148
153
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -143,6 +143,11 @@ export default [
143
143
  "name": "EntitlementGated_InvalidEntitlement",
144
144
  "inputs": []
145
145
  },
146
+ {
147
+ "type": "error",
148
+ "name": "EntitlementGated_InvalidValue",
149
+ "inputs": []
150
+ },
146
151
  {
147
152
  "type": "error",
148
153
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -28,6 +28,11 @@
28
28
  "name": "EntitlementGated_InvalidEntitlement",
29
29
  "inputs": []
30
30
  },
31
+ {
32
+ "type": "error",
33
+ "name": "EntitlementGated_InvalidValue",
34
+ "inputs": []
35
+ },
31
36
  {
32
37
  "type": "error",
33
38
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -28,6 +28,11 @@ export default [
28
28
  "name": "EntitlementGated_InvalidEntitlement",
29
29
  "inputs": []
30
30
  },
31
+ {
32
+ "type": "error",
33
+ "name": "EntitlementGated_InvalidValue",
34
+ "inputs": []
35
+ },
31
36
  {
32
37
  "type": "error",
33
38
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -1092,6 +1092,11 @@
1092
1092
  "name": "EntitlementGated_InvalidEntitlement",
1093
1093
  "inputs": []
1094
1094
  },
1095
+ {
1096
+ "type": "error",
1097
+ "name": "EntitlementGated_InvalidValue",
1098
+ "inputs": []
1099
+ },
1095
1100
  {
1096
1101
  "type": "error",
1097
1102
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -1092,6 +1092,11 @@ export default [
1092
1092
  "name": "EntitlementGated_InvalidEntitlement",
1093
1093
  "inputs": []
1094
1094
  },
1095
+ {
1096
+ "type": "error",
1097
+ "name": "EntitlementGated_InvalidValue",
1098
+ "inputs": []
1099
+ },
1095
1100
  {
1096
1101
  "type": "error",
1097
1102
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -325,6 +325,103 @@
325
325
  ],
326
326
  "stateMutability": "view"
327
327
  },
328
+ {
329
+ "type": "function",
330
+ "name": "joinSpace",
331
+ "inputs": [
332
+ {
333
+ "name": "receiver",
334
+ "type": "address",
335
+ "internalType": "address"
336
+ },
337
+ {
338
+ "name": "roleIds",
339
+ "type": "uint256[]",
340
+ "internalType": "uint256[]"
341
+ },
342
+ {
343
+ "name": "ruleData",
344
+ "type": "tuple",
345
+ "internalType": "struct IRuleEntitlementBase.RuleDataV2",
346
+ "components": [
347
+ {
348
+ "name": "operations",
349
+ "type": "tuple[]",
350
+ "internalType": "struct IRuleEntitlementBase.Operation[]",
351
+ "components": [
352
+ {
353
+ "name": "opType",
354
+ "type": "uint8",
355
+ "internalType": "enum IRuleEntitlementBase.CombinedOperationType"
356
+ },
357
+ {
358
+ "name": "index",
359
+ "type": "uint8",
360
+ "internalType": "uint8"
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ "name": "checkOperations",
366
+ "type": "tuple[]",
367
+ "internalType": "struct IRuleEntitlementBase.CheckOperationV2[]",
368
+ "components": [
369
+ {
370
+ "name": "opType",
371
+ "type": "uint8",
372
+ "internalType": "enum IRuleEntitlementBase.CheckOperationType"
373
+ },
374
+ {
375
+ "name": "chainId",
376
+ "type": "uint256",
377
+ "internalType": "uint256"
378
+ },
379
+ {
380
+ "name": "contractAddress",
381
+ "type": "address",
382
+ "internalType": "address"
383
+ },
384
+ {
385
+ "name": "params",
386
+ "type": "bytes",
387
+ "internalType": "bytes"
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "name": "logicalOperations",
393
+ "type": "tuple[]",
394
+ "internalType": "struct IRuleEntitlementBase.LogicalOperation[]",
395
+ "components": [
396
+ {
397
+ "name": "logOpType",
398
+ "type": "uint8",
399
+ "internalType": "enum IRuleEntitlementBase.LogicalOperationType"
400
+ },
401
+ {
402
+ "name": "leftOperationIndex",
403
+ "type": "uint8",
404
+ "internalType": "uint8"
405
+ },
406
+ {
407
+ "name": "rightOperationIndex",
408
+ "type": "uint8",
409
+ "internalType": "uint8"
410
+ }
411
+ ]
412
+ }
413
+ ]
414
+ }
415
+ ],
416
+ "outputs": [
417
+ {
418
+ "name": "",
419
+ "type": "bytes32",
420
+ "internalType": "bytes32"
421
+ }
422
+ ],
423
+ "stateMutability": "payable"
424
+ },
328
425
  {
329
426
  "type": "function",
330
427
  "name": "postEntitlementCheckResult",
@@ -807,6 +904,11 @@
807
904
  "name": "EntitlementGated_InvalidEntitlement",
808
905
  "inputs": []
809
906
  },
907
+ {
908
+ "type": "error",
909
+ "name": "EntitlementGated_InvalidValue",
910
+ "inputs": []
911
+ },
810
912
  {
811
913
  "type": "error",
812
914
  "name": "EntitlementGated_NodeAlreadyVoted",
@@ -325,6 +325,103 @@ export default [
325
325
  ],
326
326
  "stateMutability": "view"
327
327
  },
328
+ {
329
+ "type": "function",
330
+ "name": "joinSpace",
331
+ "inputs": [
332
+ {
333
+ "name": "receiver",
334
+ "type": "address",
335
+ "internalType": "address"
336
+ },
337
+ {
338
+ "name": "roleIds",
339
+ "type": "uint256[]",
340
+ "internalType": "uint256[]"
341
+ },
342
+ {
343
+ "name": "ruleData",
344
+ "type": "tuple",
345
+ "internalType": "struct IRuleEntitlementBase.RuleDataV2",
346
+ "components": [
347
+ {
348
+ "name": "operations",
349
+ "type": "tuple[]",
350
+ "internalType": "struct IRuleEntitlementBase.Operation[]",
351
+ "components": [
352
+ {
353
+ "name": "opType",
354
+ "type": "uint8",
355
+ "internalType": "enum IRuleEntitlementBase.CombinedOperationType"
356
+ },
357
+ {
358
+ "name": "index",
359
+ "type": "uint8",
360
+ "internalType": "uint8"
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ "name": "checkOperations",
366
+ "type": "tuple[]",
367
+ "internalType": "struct IRuleEntitlementBase.CheckOperationV2[]",
368
+ "components": [
369
+ {
370
+ "name": "opType",
371
+ "type": "uint8",
372
+ "internalType": "enum IRuleEntitlementBase.CheckOperationType"
373
+ },
374
+ {
375
+ "name": "chainId",
376
+ "type": "uint256",
377
+ "internalType": "uint256"
378
+ },
379
+ {
380
+ "name": "contractAddress",
381
+ "type": "address",
382
+ "internalType": "address"
383
+ },
384
+ {
385
+ "name": "params",
386
+ "type": "bytes",
387
+ "internalType": "bytes"
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ "name": "logicalOperations",
393
+ "type": "tuple[]",
394
+ "internalType": "struct IRuleEntitlementBase.LogicalOperation[]",
395
+ "components": [
396
+ {
397
+ "name": "logOpType",
398
+ "type": "uint8",
399
+ "internalType": "enum IRuleEntitlementBase.LogicalOperationType"
400
+ },
401
+ {
402
+ "name": "leftOperationIndex",
403
+ "type": "uint8",
404
+ "internalType": "uint8"
405
+ },
406
+ {
407
+ "name": "rightOperationIndex",
408
+ "type": "uint8",
409
+ "internalType": "uint8"
410
+ }
411
+ ]
412
+ }
413
+ ]
414
+ }
415
+ ],
416
+ "outputs": [
417
+ {
418
+ "name": "",
419
+ "type": "bytes32",
420
+ "internalType": "bytes32"
421
+ }
422
+ ],
423
+ "stateMutability": "payable"
424
+ },
328
425
  {
329
426
  "type": "function",
330
427
  "name": "postEntitlementCheckResult",
@@ -807,6 +904,11 @@ export default [
807
904
  "name": "EntitlementGated_InvalidEntitlement",
808
905
  "inputs": []
809
906
  },
907
+ {
908
+ "type": "error",
909
+ "name": "EntitlementGated_InvalidValue",
910
+ "inputs": []
911
+ },
810
912
  {
811
913
  "type": "error",
812
914
  "name": "EntitlementGated_NodeAlreadyVoted",