@towns-protocol/generated 0.0.244 → 0.0.246

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.
@@ -67,9 +67,19 @@ export default [
67
67
  "internalType": "bytes32[]"
68
68
  },
69
69
  {
70
- "name": "clients",
71
- "type": "address[]",
72
- "internalType": "address[]"
70
+ "name": "client",
71
+ "type": "address",
72
+ "internalType": "address"
73
+ },
74
+ {
75
+ "name": "installPrice",
76
+ "type": "uint256",
77
+ "internalType": "uint256"
78
+ },
79
+ {
80
+ "name": "accessDuration",
81
+ "type": "uint48",
82
+ "internalType": "uint48"
73
83
  }
74
84
  ]
75
85
  }
@@ -90,33 +100,26 @@ export default [
90
100
  },
91
101
  {
92
102
  "type": "function",
93
- "name": "getAppSchema",
94
- "inputs": [],
95
- "outputs": [
103
+ "name": "getAppByClient",
104
+ "inputs": [
96
105
  {
97
- "name": "",
98
- "type": "string",
99
- "internalType": "string"
106
+ "name": "client",
107
+ "type": "address",
108
+ "internalType": "address"
100
109
  }
101
110
  ],
102
- "stateMutability": "view"
103
- },
104
- {
105
- "type": "function",
106
- "name": "getAppSchemaId",
107
- "inputs": [],
108
111
  "outputs": [
109
112
  {
110
113
  "name": "",
111
- "type": "bytes32",
112
- "internalType": "bytes32"
114
+ "type": "address",
115
+ "internalType": "address"
113
116
  }
114
117
  ],
115
118
  "stateMutability": "view"
116
119
  },
117
120
  {
118
121
  "type": "function",
119
- "name": "getAttestation",
122
+ "name": "getAppById",
120
123
  "inputs": [
121
124
  {
122
125
  "name": "appId",
@@ -128,63 +131,130 @@ export default [
128
131
  {
129
132
  "name": "",
130
133
  "type": "tuple",
131
- "internalType": "struct Attestation",
134
+ "internalType": "struct IAppRegistryBase.App",
132
135
  "components": [
133
136
  {
134
- "name": "uid",
137
+ "name": "appId",
135
138
  "type": "bytes32",
136
139
  "internalType": "bytes32"
137
140
  },
138
141
  {
139
- "name": "schema",
140
- "type": "bytes32",
141
- "internalType": "bytes32"
142
- },
143
- {
144
- "name": "time",
145
- "type": "uint64",
146
- "internalType": "uint64"
147
- },
148
- {
149
- "name": "expirationTime",
150
- "type": "uint64",
151
- "internalType": "uint64"
152
- },
153
- {
154
- "name": "revocationTime",
155
- "type": "uint64",
156
- "internalType": "uint64"
157
- },
158
- {
159
- "name": "refUID",
160
- "type": "bytes32",
161
- "internalType": "bytes32"
142
+ "name": "module",
143
+ "type": "address",
144
+ "internalType": "address"
162
145
  },
163
146
  {
164
- "name": "recipient",
147
+ "name": "owner",
165
148
  "type": "address",
166
149
  "internalType": "address"
167
150
  },
168
151
  {
169
- "name": "attester",
152
+ "name": "client",
170
153
  "type": "address",
171
154
  "internalType": "address"
172
155
  },
173
156
  {
174
- "name": "revocable",
175
- "type": "bool",
176
- "internalType": "bool"
157
+ "name": "permissions",
158
+ "type": "bytes32[]",
159
+ "internalType": "bytes32[]"
160
+ },
161
+ {
162
+ "name": "manifest",
163
+ "type": "tuple",
164
+ "internalType": "struct ExecutionManifest",
165
+ "components": [
166
+ {
167
+ "name": "executionFunctions",
168
+ "type": "tuple[]",
169
+ "internalType": "struct ManifestExecutionFunction[]",
170
+ "components": [
171
+ {
172
+ "name": "executionSelector",
173
+ "type": "bytes4",
174
+ "internalType": "bytes4"
175
+ },
176
+ {
177
+ "name": "skipRuntimeValidation",
178
+ "type": "bool",
179
+ "internalType": "bool"
180
+ },
181
+ {
182
+ "name": "allowGlobalValidation",
183
+ "type": "bool",
184
+ "internalType": "bool"
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ "name": "executionHooks",
190
+ "type": "tuple[]",
191
+ "internalType": "struct ManifestExecutionHook[]",
192
+ "components": [
193
+ {
194
+ "name": "executionSelector",
195
+ "type": "bytes4",
196
+ "internalType": "bytes4"
197
+ },
198
+ {
199
+ "name": "entityId",
200
+ "type": "uint32",
201
+ "internalType": "uint32"
202
+ },
203
+ {
204
+ "name": "isPreHook",
205
+ "type": "bool",
206
+ "internalType": "bool"
207
+ },
208
+ {
209
+ "name": "isPostHook",
210
+ "type": "bool",
211
+ "internalType": "bool"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "name": "interfaceIds",
217
+ "type": "bytes4[]",
218
+ "internalType": "bytes4[]"
219
+ }
220
+ ]
177
221
  },
178
222
  {
179
- "name": "data",
180
- "type": "bytes",
181
- "internalType": "bytes"
223
+ "name": "duration",
224
+ "type": "uint48",
225
+ "internalType": "uint48"
182
226
  }
183
227
  ]
184
228
  }
185
229
  ],
186
230
  "stateMutability": "view"
187
231
  },
232
+ {
233
+ "type": "function",
234
+ "name": "getAppSchema",
235
+ "inputs": [],
236
+ "outputs": [
237
+ {
238
+ "name": "",
239
+ "type": "string",
240
+ "internalType": "string"
241
+ }
242
+ ],
243
+ "stateMutability": "view"
244
+ },
245
+ {
246
+ "type": "function",
247
+ "name": "getAppSchemaId",
248
+ "inputs": [],
249
+ "outputs": [
250
+ {
251
+ "name": "",
252
+ "type": "bytes32",
253
+ "internalType": "bytes32"
254
+ }
255
+ ],
256
+ "stateMutability": "view"
257
+ },
188
258
  {
189
259
  "type": "function",
190
260
  "name": "getLatestAppId",
@@ -204,6 +274,29 @@ export default [
204
274
  ],
205
275
  "stateMutability": "view"
206
276
  },
277
+ {
278
+ "type": "function",
279
+ "name": "installApp",
280
+ "inputs": [
281
+ {
282
+ "name": "app",
283
+ "type": "address",
284
+ "internalType": "contract ITownsApp"
285
+ },
286
+ {
287
+ "name": "account",
288
+ "type": "address",
289
+ "internalType": "contract IAppAccount"
290
+ },
291
+ {
292
+ "name": "data",
293
+ "type": "bytes",
294
+ "internalType": "bytes"
295
+ }
296
+ ],
297
+ "outputs": [],
298
+ "stateMutability": "payable"
299
+ },
207
300
  {
208
301
  "type": "function",
209
302
  "name": "isAppBanned",
@@ -230,12 +323,12 @@ export default [
230
323
  {
231
324
  "name": "app",
232
325
  "type": "address",
233
- "internalType": "address"
326
+ "internalType": "contract ITownsApp"
234
327
  },
235
328
  {
236
- "name": "clients",
237
- "type": "address[]",
238
- "internalType": "address[]"
329
+ "name": "client",
330
+ "type": "address",
331
+ "internalType": "address"
239
332
  }
240
333
  ],
241
334
  "outputs": [
@@ -257,13 +350,53 @@ export default [
257
350
  "internalType": "bytes32"
258
351
  }
259
352
  ],
260
- "outputs": [
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable"
355
+ },
356
+ {
357
+ "type": "function",
358
+ "name": "renewApp",
359
+ "inputs": [
261
360
  {
262
- "name": "",
263
- "type": "bytes32",
264
- "internalType": "bytes32"
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
+ },
379
+ {
380
+ "type": "function",
381
+ "name": "uninstallApp",
382
+ "inputs": [
383
+ {
384
+ "name": "app",
385
+ "type": "address",
386
+ "internalType": "contract ITownsApp"
387
+ },
388
+ {
389
+ "name": "account",
390
+ "type": "address",
391
+ "internalType": "contract IAppAccount"
392
+ },
393
+ {
394
+ "name": "data",
395
+ "type": "bytes",
396
+ "internalType": "bytes"
265
397
  }
266
398
  ],
399
+ "outputs": [],
267
400
  "stateMutability": "nonpayable"
268
401
  },
269
402
  {
@@ -304,6 +437,31 @@ export default [
304
437
  ],
305
438
  "anonymous": false
306
439
  },
440
+ {
441
+ "type": "event",
442
+ "name": "AppInstalled",
443
+ "inputs": [
444
+ {
445
+ "name": "app",
446
+ "type": "address",
447
+ "indexed": true,
448
+ "internalType": "address"
449
+ },
450
+ {
451
+ "name": "account",
452
+ "type": "address",
453
+ "indexed": true,
454
+ "internalType": "address"
455
+ },
456
+ {
457
+ "name": "appId",
458
+ "type": "bytes32",
459
+ "indexed": true,
460
+ "internalType": "bytes32"
461
+ }
462
+ ],
463
+ "anonymous": false
464
+ },
307
465
  {
308
466
  "type": "event",
309
467
  "name": "AppRegistered",
@@ -323,6 +481,31 @@ export default [
323
481
  ],
324
482
  "anonymous": false
325
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
+ },
326
509
  {
327
510
  "type": "event",
328
511
  "name": "AppSchemaSet",
@@ -336,6 +519,31 @@ export default [
336
519
  ],
337
520
  "anonymous": false
338
521
  },
522
+ {
523
+ "type": "event",
524
+ "name": "AppUninstalled",
525
+ "inputs": [
526
+ {
527
+ "name": "app",
528
+ "type": "address",
529
+ "indexed": true,
530
+ "internalType": "address"
531
+ },
532
+ {
533
+ "name": "account",
534
+ "type": "address",
535
+ "indexed": true,
536
+ "internalType": "address"
537
+ },
538
+ {
539
+ "name": "appId",
540
+ "type": "bytes32",
541
+ "indexed": true,
542
+ "internalType": "bytes32"
543
+ }
544
+ ],
545
+ "anonymous": false
546
+ },
339
547
  {
340
548
  "type": "event",
341
549
  "name": "AppUnregistered",
@@ -384,6 +592,11 @@ export default [
384
592
  "name": "AppDoesNotImplementInterface",
385
593
  "inputs": []
386
594
  },
595
+ {
596
+ "type": "error",
597
+ "name": "AppNotInstalled",
598
+ "inputs": []
599
+ },
387
600
  {
388
601
  "type": "error",
389
602
  "name": "AppNotRegistered",
@@ -399,6 +612,16 @@ export default [
399
612
  "name": "BannedApp",
400
613
  "inputs": []
401
614
  },
615
+ {
616
+ "type": "error",
617
+ "name": "ClientAlreadyRegistered",
618
+ "inputs": []
619
+ },
620
+ {
621
+ "type": "error",
622
+ "name": "InsufficientPayment",
623
+ "inputs": []
624
+ },
402
625
  {
403
626
  "type": "error",
404
627
  "name": "InvalidAddressInput",
@@ -419,6 +642,21 @@ export default [
419
642
  "name": "InvalidArrayInput",
420
643
  "inputs": []
421
644
  },
645
+ {
646
+ "type": "error",
647
+ "name": "InvalidDuration",
648
+ "inputs": []
649
+ },
650
+ {
651
+ "type": "error",
652
+ "name": "InvalidPrice",
653
+ "inputs": []
654
+ },
655
+ {
656
+ "type": "error",
657
+ "name": "NotAllowed",
658
+ "inputs": []
659
+ },
422
660
  {
423
661
  "type": "error",
424
662
  "name": "NotAppOwner",
@@ -37,6 +37,31 @@
37
37
  ],
38
38
  "anonymous": false
39
39
  },
40
+ {
41
+ "type": "event",
42
+ "name": "AppInstalled",
43
+ "inputs": [
44
+ {
45
+ "name": "app",
46
+ "type": "address",
47
+ "indexed": true,
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "account",
52
+ "type": "address",
53
+ "indexed": true,
54
+ "internalType": "address"
55
+ },
56
+ {
57
+ "name": "appId",
58
+ "type": "bytes32",
59
+ "indexed": true,
60
+ "internalType": "bytes32"
61
+ }
62
+ ],
63
+ "anonymous": false
64
+ },
40
65
  {
41
66
  "type": "event",
42
67
  "name": "AppRegistered",
@@ -56,6 +81,31 @@
56
81
  ],
57
82
  "anonymous": false
58
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
+ },
59
109
  {
60
110
  "type": "event",
61
111
  "name": "AppSchemaSet",
@@ -69,6 +119,31 @@
69
119
  ],
70
120
  "anonymous": false
71
121
  },
122
+ {
123
+ "type": "event",
124
+ "name": "AppUninstalled",
125
+ "inputs": [
126
+ {
127
+ "name": "app",
128
+ "type": "address",
129
+ "indexed": true,
130
+ "internalType": "address"
131
+ },
132
+ {
133
+ "name": "account",
134
+ "type": "address",
135
+ "indexed": true,
136
+ "internalType": "address"
137
+ },
138
+ {
139
+ "name": "appId",
140
+ "type": "bytes32",
141
+ "indexed": true,
142
+ "internalType": "bytes32"
143
+ }
144
+ ],
145
+ "anonymous": false
146
+ },
72
147
  {
73
148
  "type": "event",
74
149
  "name": "AppUnregistered",
@@ -117,6 +192,11 @@
117
192
  "name": "AppDoesNotImplementInterface",
118
193
  "inputs": []
119
194
  },
195
+ {
196
+ "type": "error",
197
+ "name": "AppNotInstalled",
198
+ "inputs": []
199
+ },
120
200
  {
121
201
  "type": "error",
122
202
  "name": "AppNotRegistered",
@@ -132,6 +212,16 @@
132
212
  "name": "BannedApp",
133
213
  "inputs": []
134
214
  },
215
+ {
216
+ "type": "error",
217
+ "name": "ClientAlreadyRegistered",
218
+ "inputs": []
219
+ },
220
+ {
221
+ "type": "error",
222
+ "name": "InsufficientPayment",
223
+ "inputs": []
224
+ },
135
225
  {
136
226
  "type": "error",
137
227
  "name": "InvalidAddressInput",
@@ -152,6 +242,21 @@
152
242
  "name": "InvalidArrayInput",
153
243
  "inputs": []
154
244
  },
245
+ {
246
+ "type": "error",
247
+ "name": "InvalidDuration",
248
+ "inputs": []
249
+ },
250
+ {
251
+ "type": "error",
252
+ "name": "InvalidPrice",
253
+ "inputs": []
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "NotAllowed",
258
+ "inputs": []
259
+ },
155
260
  {
156
261
  "type": "error",
157
262
  "name": "NotAppOwner",