@towns-protocol/generated 0.0.244 → 0.0.245
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.
- package/dev/abis/IAppRegistry.abi.json +244 -59
- package/dev/abis/IAppRegistry.abi.ts +244 -59
- package/dev/abis/IAppRegistryBase.abi.json +80 -0
- package/dev/abis/IAppRegistryBase.abi.ts +80 -0
- package/dev/typings/IAppRegistry.ts +299 -73
- package/dev/typings/factories/IAppRegistry__factory.ts +244 -59
- package/package.json +2 -2
|
@@ -67,9 +67,19 @@
|
|
|
67
67
|
"internalType": "bytes32[]"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"name": "
|
|
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": "uint64",
|
|
82
|
+
"internalType": "uint64"
|
|
73
83
|
}
|
|
74
84
|
]
|
|
75
85
|
}
|
|
@@ -90,33 +100,26 @@
|
|
|
90
100
|
},
|
|
91
101
|
{
|
|
92
102
|
"type": "function",
|
|
93
|
-
"name": "
|
|
94
|
-
"inputs": [
|
|
95
|
-
"outputs": [
|
|
103
|
+
"name": "getAppByClient",
|
|
104
|
+
"inputs": [
|
|
96
105
|
{
|
|
97
|
-
"name": "",
|
|
98
|
-
"type": "
|
|
99
|
-
"internalType": "
|
|
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": "
|
|
112
|
-
"internalType": "
|
|
114
|
+
"type": "address",
|
|
115
|
+
"internalType": "address"
|
|
113
116
|
}
|
|
114
117
|
],
|
|
115
118
|
"stateMutability": "view"
|
|
116
119
|
},
|
|
117
120
|
{
|
|
118
121
|
"type": "function",
|
|
119
|
-
"name": "
|
|
122
|
+
"name": "getAppById",
|
|
120
123
|
"inputs": [
|
|
121
124
|
{
|
|
122
125
|
"name": "appId",
|
|
@@ -128,63 +131,125 @@
|
|
|
128
131
|
{
|
|
129
132
|
"name": "",
|
|
130
133
|
"type": "tuple",
|
|
131
|
-
"internalType": "struct
|
|
134
|
+
"internalType": "struct IAppRegistryBase.App",
|
|
132
135
|
"components": [
|
|
133
136
|
{
|
|
134
|
-
"name": "
|
|
137
|
+
"name": "appId",
|
|
135
138
|
"type": "bytes32",
|
|
136
139
|
"internalType": "bytes32"
|
|
137
140
|
},
|
|
138
141
|
{
|
|
139
|
-
"name": "
|
|
140
|
-
"type": "
|
|
141
|
-
"internalType": "
|
|
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": "
|
|
147
|
+
"name": "owner",
|
|
165
148
|
"type": "address",
|
|
166
149
|
"internalType": "address"
|
|
167
150
|
},
|
|
168
151
|
{
|
|
169
|
-
"name": "
|
|
152
|
+
"name": "client",
|
|
170
153
|
"type": "address",
|
|
171
154
|
"internalType": "address"
|
|
172
155
|
},
|
|
173
156
|
{
|
|
174
|
-
"name": "
|
|
175
|
-
"type": "
|
|
176
|
-
"internalType": "
|
|
157
|
+
"name": "permissions",
|
|
158
|
+
"type": "bytes32[]",
|
|
159
|
+
"internalType": "bytes32[]"
|
|
177
160
|
},
|
|
178
161
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"type": "
|
|
181
|
-
"internalType": "
|
|
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
|
+
]
|
|
182
221
|
}
|
|
183
222
|
]
|
|
184
223
|
}
|
|
185
224
|
],
|
|
186
225
|
"stateMutability": "view"
|
|
187
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"type": "function",
|
|
229
|
+
"name": "getAppSchema",
|
|
230
|
+
"inputs": [],
|
|
231
|
+
"outputs": [
|
|
232
|
+
{
|
|
233
|
+
"name": "",
|
|
234
|
+
"type": "string",
|
|
235
|
+
"internalType": "string"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"stateMutability": "view"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "function",
|
|
242
|
+
"name": "getAppSchemaId",
|
|
243
|
+
"inputs": [],
|
|
244
|
+
"outputs": [
|
|
245
|
+
{
|
|
246
|
+
"name": "",
|
|
247
|
+
"type": "bytes32",
|
|
248
|
+
"internalType": "bytes32"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"stateMutability": "view"
|
|
252
|
+
},
|
|
188
253
|
{
|
|
189
254
|
"type": "function",
|
|
190
255
|
"name": "getLatestAppId",
|
|
@@ -204,6 +269,29 @@
|
|
|
204
269
|
],
|
|
205
270
|
"stateMutability": "view"
|
|
206
271
|
},
|
|
272
|
+
{
|
|
273
|
+
"type": "function",
|
|
274
|
+
"name": "installApp",
|
|
275
|
+
"inputs": [
|
|
276
|
+
{
|
|
277
|
+
"name": "app",
|
|
278
|
+
"type": "address",
|
|
279
|
+
"internalType": "contract ITownsApp"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "account",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"internalType": "contract IAppAccount"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "data",
|
|
288
|
+
"type": "bytes",
|
|
289
|
+
"internalType": "bytes"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"outputs": [],
|
|
293
|
+
"stateMutability": "payable"
|
|
294
|
+
},
|
|
207
295
|
{
|
|
208
296
|
"type": "function",
|
|
209
297
|
"name": "isAppBanned",
|
|
@@ -230,12 +318,12 @@
|
|
|
230
318
|
{
|
|
231
319
|
"name": "app",
|
|
232
320
|
"type": "address",
|
|
233
|
-
"internalType": "
|
|
321
|
+
"internalType": "contract ITownsApp"
|
|
234
322
|
},
|
|
235
323
|
{
|
|
236
|
-
"name": "
|
|
237
|
-
"type": "address
|
|
238
|
-
"internalType": "address
|
|
324
|
+
"name": "client",
|
|
325
|
+
"type": "address",
|
|
326
|
+
"internalType": "address"
|
|
239
327
|
}
|
|
240
328
|
],
|
|
241
329
|
"outputs": [
|
|
@@ -257,13 +345,30 @@
|
|
|
257
345
|
"internalType": "bytes32"
|
|
258
346
|
}
|
|
259
347
|
],
|
|
260
|
-
"outputs": [
|
|
348
|
+
"outputs": [],
|
|
349
|
+
"stateMutability": "nonpayable"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"type": "function",
|
|
353
|
+
"name": "uninstallApp",
|
|
354
|
+
"inputs": [
|
|
261
355
|
{
|
|
262
|
-
"name": "",
|
|
263
|
-
"type": "
|
|
264
|
-
"internalType": "
|
|
356
|
+
"name": "app",
|
|
357
|
+
"type": "address",
|
|
358
|
+
"internalType": "contract ITownsApp"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "account",
|
|
362
|
+
"type": "address",
|
|
363
|
+
"internalType": "contract IAppAccount"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "data",
|
|
367
|
+
"type": "bytes",
|
|
368
|
+
"internalType": "bytes"
|
|
265
369
|
}
|
|
266
370
|
],
|
|
371
|
+
"outputs": [],
|
|
267
372
|
"stateMutability": "nonpayable"
|
|
268
373
|
},
|
|
269
374
|
{
|
|
@@ -304,6 +409,31 @@
|
|
|
304
409
|
],
|
|
305
410
|
"anonymous": false
|
|
306
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"type": "event",
|
|
414
|
+
"name": "AppInstalled",
|
|
415
|
+
"inputs": [
|
|
416
|
+
{
|
|
417
|
+
"name": "app",
|
|
418
|
+
"type": "address",
|
|
419
|
+
"indexed": true,
|
|
420
|
+
"internalType": "address"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "account",
|
|
424
|
+
"type": "address",
|
|
425
|
+
"indexed": true,
|
|
426
|
+
"internalType": "address"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "appId",
|
|
430
|
+
"type": "bytes32",
|
|
431
|
+
"indexed": true,
|
|
432
|
+
"internalType": "bytes32"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"anonymous": false
|
|
436
|
+
},
|
|
307
437
|
{
|
|
308
438
|
"type": "event",
|
|
309
439
|
"name": "AppRegistered",
|
|
@@ -336,6 +466,31 @@
|
|
|
336
466
|
],
|
|
337
467
|
"anonymous": false
|
|
338
468
|
},
|
|
469
|
+
{
|
|
470
|
+
"type": "event",
|
|
471
|
+
"name": "AppUninstalled",
|
|
472
|
+
"inputs": [
|
|
473
|
+
{
|
|
474
|
+
"name": "app",
|
|
475
|
+
"type": "address",
|
|
476
|
+
"indexed": true,
|
|
477
|
+
"internalType": "address"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "account",
|
|
481
|
+
"type": "address",
|
|
482
|
+
"indexed": true,
|
|
483
|
+
"internalType": "address"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "appId",
|
|
487
|
+
"type": "bytes32",
|
|
488
|
+
"indexed": true,
|
|
489
|
+
"internalType": "bytes32"
|
|
490
|
+
}
|
|
491
|
+
],
|
|
492
|
+
"anonymous": false
|
|
493
|
+
},
|
|
339
494
|
{
|
|
340
495
|
"type": "event",
|
|
341
496
|
"name": "AppUnregistered",
|
|
@@ -384,6 +539,11 @@
|
|
|
384
539
|
"name": "AppDoesNotImplementInterface",
|
|
385
540
|
"inputs": []
|
|
386
541
|
},
|
|
542
|
+
{
|
|
543
|
+
"type": "error",
|
|
544
|
+
"name": "AppNotInstalled",
|
|
545
|
+
"inputs": []
|
|
546
|
+
},
|
|
387
547
|
{
|
|
388
548
|
"type": "error",
|
|
389
549
|
"name": "AppNotRegistered",
|
|
@@ -399,6 +559,16 @@
|
|
|
399
559
|
"name": "BannedApp",
|
|
400
560
|
"inputs": []
|
|
401
561
|
},
|
|
562
|
+
{
|
|
563
|
+
"type": "error",
|
|
564
|
+
"name": "ClientAlreadyRegistered",
|
|
565
|
+
"inputs": []
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"type": "error",
|
|
569
|
+
"name": "InsufficientPayment",
|
|
570
|
+
"inputs": []
|
|
571
|
+
},
|
|
402
572
|
{
|
|
403
573
|
"type": "error",
|
|
404
574
|
"name": "InvalidAddressInput",
|
|
@@ -419,6 +589,21 @@
|
|
|
419
589
|
"name": "InvalidArrayInput",
|
|
420
590
|
"inputs": []
|
|
421
591
|
},
|
|
592
|
+
{
|
|
593
|
+
"type": "error",
|
|
594
|
+
"name": "InvalidDuration",
|
|
595
|
+
"inputs": []
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "error",
|
|
599
|
+
"name": "InvalidPrice",
|
|
600
|
+
"inputs": []
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"type": "error",
|
|
604
|
+
"name": "NotAllowed",
|
|
605
|
+
"inputs": []
|
|
606
|
+
},
|
|
422
607
|
{
|
|
423
608
|
"type": "error",
|
|
424
609
|
"name": "NotAppOwner",
|