@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.
- package/dev/abis/IAppRegistry.abi.json +297 -59
- package/dev/abis/IAppRegistry.abi.ts +297 -59
- package/dev/abis/IAppRegistryBase.abi.json +105 -0
- package/dev/abis/IAppRegistryBase.abi.ts +105 -0
- package/dev/abis/IEntitlementChecker.abi.json +5 -0
- package/dev/abis/IEntitlementChecker.abi.ts +5 -0
- package/dev/abis/IEntitlementCheckerBase.abi.json +5 -0
- package/dev/abis/IEntitlementCheckerBase.abi.ts +5 -0
- package/dev/abis/IEntitlementGated.abi.json +5 -0
- package/dev/abis/IEntitlementGated.abi.ts +5 -0
- package/dev/abis/IEntitlementGatedBase.abi.json +5 -0
- package/dev/abis/IEntitlementGatedBase.abi.ts +5 -0
- package/dev/abis/MembershipFacet.abi.json +5 -0
- package/dev/abis/MembershipFacet.abi.ts +5 -0
- package/dev/abis/MockEntitlementGated.abi.json +102 -0
- package/dev/abis/MockEntitlementGated.abi.ts +102 -0
- package/dev/typings/IAppRegistry.ts +373 -73
- package/dev/typings/MockEntitlementGated.ts +46 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +297 -59
- package/dev/typings/factories/IEntitlementChecker__factory.ts +5 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +6 -1
- package/dev/typings/factories/MockEntitlementGated__factory.ts +103 -1
- 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": "uint48",
|
|
82
|
+
"internalType": "uint48"
|
|
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,130 @@
|
|
|
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[]"
|
|
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": "
|
|
180
|
-
"type": "
|
|
181
|
-
"internalType": "
|
|
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 @@
|
|
|
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 @@
|
|
|
230
323
|
{
|
|
231
324
|
"name": "app",
|
|
232
325
|
"type": "address",
|
|
233
|
-
"internalType": "
|
|
326
|
+
"internalType": "contract ITownsApp"
|
|
234
327
|
},
|
|
235
328
|
{
|
|
236
|
-
"name": "
|
|
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 @@
|
|
|
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": "
|
|
264
|
-
"internalType": "
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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",
|