@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.
@@ -75,9 +75,19 @@ const _abi = [
75
75
  internalType: "bytes32[]",
76
76
  },
77
77
  {
78
- name: "clients",
79
- type: "address[]",
80
- internalType: "address[]",
78
+ name: "client",
79
+ type: "address",
80
+ internalType: "address",
81
+ },
82
+ {
83
+ name: "installPrice",
84
+ type: "uint256",
85
+ internalType: "uint256",
86
+ },
87
+ {
88
+ name: "accessDuration",
89
+ type: "uint64",
90
+ internalType: "uint64",
81
91
  },
82
92
  ],
83
93
  },
@@ -98,33 +108,26 @@ const _abi = [
98
108
  },
99
109
  {
100
110
  type: "function",
101
- name: "getAppSchema",
102
- inputs: [],
103
- outputs: [
111
+ name: "getAppByClient",
112
+ inputs: [
104
113
  {
105
- name: "",
106
- type: "string",
107
- internalType: "string",
114
+ name: "client",
115
+ type: "address",
116
+ internalType: "address",
108
117
  },
109
118
  ],
110
- stateMutability: "view",
111
- },
112
- {
113
- type: "function",
114
- name: "getAppSchemaId",
115
- inputs: [],
116
119
  outputs: [
117
120
  {
118
121
  name: "",
119
- type: "bytes32",
120
- internalType: "bytes32",
122
+ type: "address",
123
+ internalType: "address",
121
124
  },
122
125
  ],
123
126
  stateMutability: "view",
124
127
  },
125
128
  {
126
129
  type: "function",
127
- name: "getAttestation",
130
+ name: "getAppById",
128
131
  inputs: [
129
132
  {
130
133
  name: "appId",
@@ -136,63 +139,125 @@ const _abi = [
136
139
  {
137
140
  name: "",
138
141
  type: "tuple",
139
- internalType: "struct Attestation",
142
+ internalType: "struct IAppRegistryBase.App",
140
143
  components: [
141
144
  {
142
- name: "uid",
145
+ name: "appId",
143
146
  type: "bytes32",
144
147
  internalType: "bytes32",
145
148
  },
146
149
  {
147
- name: "schema",
148
- type: "bytes32",
149
- internalType: "bytes32",
150
- },
151
- {
152
- name: "time",
153
- type: "uint64",
154
- internalType: "uint64",
155
- },
156
- {
157
- name: "expirationTime",
158
- type: "uint64",
159
- internalType: "uint64",
160
- },
161
- {
162
- name: "revocationTime",
163
- type: "uint64",
164
- internalType: "uint64",
165
- },
166
- {
167
- name: "refUID",
168
- type: "bytes32",
169
- internalType: "bytes32",
150
+ name: "module",
151
+ type: "address",
152
+ internalType: "address",
170
153
  },
171
154
  {
172
- name: "recipient",
155
+ name: "owner",
173
156
  type: "address",
174
157
  internalType: "address",
175
158
  },
176
159
  {
177
- name: "attester",
160
+ name: "client",
178
161
  type: "address",
179
162
  internalType: "address",
180
163
  },
181
164
  {
182
- name: "revocable",
183
- type: "bool",
184
- internalType: "bool",
165
+ name: "permissions",
166
+ type: "bytes32[]",
167
+ internalType: "bytes32[]",
185
168
  },
186
169
  {
187
- name: "data",
188
- type: "bytes",
189
- internalType: "bytes",
170
+ name: "manifest",
171
+ type: "tuple",
172
+ internalType: "struct ExecutionManifest",
173
+ components: [
174
+ {
175
+ name: "executionFunctions",
176
+ type: "tuple[]",
177
+ internalType: "struct ManifestExecutionFunction[]",
178
+ components: [
179
+ {
180
+ name: "executionSelector",
181
+ type: "bytes4",
182
+ internalType: "bytes4",
183
+ },
184
+ {
185
+ name: "skipRuntimeValidation",
186
+ type: "bool",
187
+ internalType: "bool",
188
+ },
189
+ {
190
+ name: "allowGlobalValidation",
191
+ type: "bool",
192
+ internalType: "bool",
193
+ },
194
+ ],
195
+ },
196
+ {
197
+ name: "executionHooks",
198
+ type: "tuple[]",
199
+ internalType: "struct ManifestExecutionHook[]",
200
+ components: [
201
+ {
202
+ name: "executionSelector",
203
+ type: "bytes4",
204
+ internalType: "bytes4",
205
+ },
206
+ {
207
+ name: "entityId",
208
+ type: "uint32",
209
+ internalType: "uint32",
210
+ },
211
+ {
212
+ name: "isPreHook",
213
+ type: "bool",
214
+ internalType: "bool",
215
+ },
216
+ {
217
+ name: "isPostHook",
218
+ type: "bool",
219
+ internalType: "bool",
220
+ },
221
+ ],
222
+ },
223
+ {
224
+ name: "interfaceIds",
225
+ type: "bytes4[]",
226
+ internalType: "bytes4[]",
227
+ },
228
+ ],
190
229
  },
191
230
  ],
192
231
  },
193
232
  ],
194
233
  stateMutability: "view",
195
234
  },
235
+ {
236
+ type: "function",
237
+ name: "getAppSchema",
238
+ inputs: [],
239
+ outputs: [
240
+ {
241
+ name: "",
242
+ type: "string",
243
+ internalType: "string",
244
+ },
245
+ ],
246
+ stateMutability: "view",
247
+ },
248
+ {
249
+ type: "function",
250
+ name: "getAppSchemaId",
251
+ inputs: [],
252
+ outputs: [
253
+ {
254
+ name: "",
255
+ type: "bytes32",
256
+ internalType: "bytes32",
257
+ },
258
+ ],
259
+ stateMutability: "view",
260
+ },
196
261
  {
197
262
  type: "function",
198
263
  name: "getLatestAppId",
@@ -212,6 +277,29 @@ const _abi = [
212
277
  ],
213
278
  stateMutability: "view",
214
279
  },
280
+ {
281
+ type: "function",
282
+ name: "installApp",
283
+ inputs: [
284
+ {
285
+ name: "app",
286
+ type: "address",
287
+ internalType: "contract ITownsApp",
288
+ },
289
+ {
290
+ name: "account",
291
+ type: "address",
292
+ internalType: "contract IAppAccount",
293
+ },
294
+ {
295
+ name: "data",
296
+ type: "bytes",
297
+ internalType: "bytes",
298
+ },
299
+ ],
300
+ outputs: [],
301
+ stateMutability: "payable",
302
+ },
215
303
  {
216
304
  type: "function",
217
305
  name: "isAppBanned",
@@ -238,12 +326,12 @@ const _abi = [
238
326
  {
239
327
  name: "app",
240
328
  type: "address",
241
- internalType: "address",
329
+ internalType: "contract ITownsApp",
242
330
  },
243
331
  {
244
- name: "clients",
245
- type: "address[]",
246
- internalType: "address[]",
332
+ name: "client",
333
+ type: "address",
334
+ internalType: "address",
247
335
  },
248
336
  ],
249
337
  outputs: [
@@ -265,13 +353,30 @@ const _abi = [
265
353
  internalType: "bytes32",
266
354
  },
267
355
  ],
268
- outputs: [
356
+ outputs: [],
357
+ stateMutability: "nonpayable",
358
+ },
359
+ {
360
+ type: "function",
361
+ name: "uninstallApp",
362
+ inputs: [
269
363
  {
270
- name: "",
271
- type: "bytes32",
272
- internalType: "bytes32",
364
+ name: "app",
365
+ type: "address",
366
+ internalType: "contract ITownsApp",
367
+ },
368
+ {
369
+ name: "account",
370
+ type: "address",
371
+ internalType: "contract IAppAccount",
372
+ },
373
+ {
374
+ name: "data",
375
+ type: "bytes",
376
+ internalType: "bytes",
273
377
  },
274
378
  ],
379
+ outputs: [],
275
380
  stateMutability: "nonpayable",
276
381
  },
277
382
  {
@@ -312,6 +417,31 @@ const _abi = [
312
417
  ],
313
418
  anonymous: false,
314
419
  },
420
+ {
421
+ type: "event",
422
+ name: "AppInstalled",
423
+ inputs: [
424
+ {
425
+ name: "app",
426
+ type: "address",
427
+ indexed: true,
428
+ internalType: "address",
429
+ },
430
+ {
431
+ name: "account",
432
+ type: "address",
433
+ indexed: true,
434
+ internalType: "address",
435
+ },
436
+ {
437
+ name: "appId",
438
+ type: "bytes32",
439
+ indexed: true,
440
+ internalType: "bytes32",
441
+ },
442
+ ],
443
+ anonymous: false,
444
+ },
315
445
  {
316
446
  type: "event",
317
447
  name: "AppRegistered",
@@ -344,6 +474,31 @@ const _abi = [
344
474
  ],
345
475
  anonymous: false,
346
476
  },
477
+ {
478
+ type: "event",
479
+ name: "AppUninstalled",
480
+ inputs: [
481
+ {
482
+ name: "app",
483
+ type: "address",
484
+ indexed: true,
485
+ internalType: "address",
486
+ },
487
+ {
488
+ name: "account",
489
+ type: "address",
490
+ indexed: true,
491
+ internalType: "address",
492
+ },
493
+ {
494
+ name: "appId",
495
+ type: "bytes32",
496
+ indexed: true,
497
+ internalType: "bytes32",
498
+ },
499
+ ],
500
+ anonymous: false,
501
+ },
347
502
  {
348
503
  type: "event",
349
504
  name: "AppUnregistered",
@@ -392,6 +547,11 @@ const _abi = [
392
547
  name: "AppDoesNotImplementInterface",
393
548
  inputs: [],
394
549
  },
550
+ {
551
+ type: "error",
552
+ name: "AppNotInstalled",
553
+ inputs: [],
554
+ },
395
555
  {
396
556
  type: "error",
397
557
  name: "AppNotRegistered",
@@ -407,6 +567,16 @@ const _abi = [
407
567
  name: "BannedApp",
408
568
  inputs: [],
409
569
  },
570
+ {
571
+ type: "error",
572
+ name: "ClientAlreadyRegistered",
573
+ inputs: [],
574
+ },
575
+ {
576
+ type: "error",
577
+ name: "InsufficientPayment",
578
+ inputs: [],
579
+ },
410
580
  {
411
581
  type: "error",
412
582
  name: "InvalidAddressInput",
@@ -427,6 +597,21 @@ const _abi = [
427
597
  name: "InvalidArrayInput",
428
598
  inputs: [],
429
599
  },
600
+ {
601
+ type: "error",
602
+ name: "InvalidDuration",
603
+ inputs: [],
604
+ },
605
+ {
606
+ type: "error",
607
+ name: "InvalidPrice",
608
+ inputs: [],
609
+ },
610
+ {
611
+ type: "error",
612
+ name: "NotAllowed",
613
+ inputs: [],
614
+ },
430
615
  {
431
616
  type: "error",
432
617
  name: "NotAppOwner",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towns-protocol/generated",
3
- "version": "0.0.244",
3
+ "version": "0.0.245",
4
4
  "packageManager": "yarn@3.8.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,5 +10,5 @@
10
10
  "make-config": "node ./scripts/make-config.js",
11
11
  "preinstall": "node ./scripts/make-config.js"
12
12
  },
13
- "gitHead": "8f17f6f7a619532ed6e0e50687b9073d49cc8eb5"
13
+ "gitHead": "72b12b78630a122af504bbe8ad8d655820ae9d7b"
14
14
  }