@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.
@@ -141,6 +141,7 @@ export interface MockEntitlementGatedInterface extends utils.Interface {
141
141
  "getRuleData(uint256)": FunctionFragment;
142
142
  "getRuleData(bytes32,uint256)": FunctionFragment;
143
143
  "getRuleDataV2(uint256)": FunctionFragment;
144
+ "joinSpace(address,uint256[],((uint8,uint8)[],(uint8,uint256,address,bytes)[],(uint8,uint8,uint8)[]))": FunctionFragment;
144
145
  "postEntitlementCheckResult(bytes32,uint256,uint8)": FunctionFragment;
145
146
  "postEntitlementCheckResultV2(bytes32,uint256,uint8)": FunctionFragment;
146
147
  "requestEntitlementCheckV1RuleDataV1(uint256,((uint8,uint8)[],(uint8,uint256,address,uint256)[],(uint8,uint8,uint8)[]))": FunctionFragment;
@@ -156,6 +157,7 @@ export interface MockEntitlementGatedInterface extends utils.Interface {
156
157
  | "getRuleData(uint256)"
157
158
  | "getRuleData(bytes32,uint256)"
158
159
  | "getRuleDataV2"
160
+ | "joinSpace"
159
161
  | "postEntitlementCheckResult"
160
162
  | "postEntitlementCheckResultV2"
161
163
  | "requestEntitlementCheckV1RuleDataV1"
@@ -184,6 +186,14 @@ export interface MockEntitlementGatedInterface extends utils.Interface {
184
186
  functionFragment: "getRuleDataV2",
185
187
  values: [PromiseOrValue<BigNumberish>]
186
188
  ): string;
189
+ encodeFunctionData(
190
+ functionFragment: "joinSpace",
191
+ values: [
192
+ PromiseOrValue<string>,
193
+ PromiseOrValue<BigNumberish>[],
194
+ IRuleEntitlementBase.RuleDataV2Struct
195
+ ]
196
+ ): string;
187
197
  encodeFunctionData(
188
198
  functionFragment: "postEntitlementCheckResult",
189
199
  values: [
@@ -246,6 +256,7 @@ export interface MockEntitlementGatedInterface extends utils.Interface {
246
256
  functionFragment: "getRuleDataV2",
247
257
  data: BytesLike
248
258
  ): Result;
259
+ decodeFunctionResult(functionFragment: "joinSpace", data: BytesLike): Result;
249
260
  decodeFunctionResult(
250
261
  functionFragment: "postEntitlementCheckResult",
251
262
  data: BytesLike
@@ -380,6 +391,13 @@ export interface MockEntitlementGated extends BaseContract {
380
391
  overrides?: CallOverrides
381
392
  ): Promise<[IRuleEntitlementBase.RuleDataV2StructOutput]>;
382
393
 
394
+ joinSpace(
395
+ receiver: PromiseOrValue<string>,
396
+ roleIds: PromiseOrValue<BigNumberish>[],
397
+ ruleData: IRuleEntitlementBase.RuleDataV2Struct,
398
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
399
+ ): Promise<ContractTransaction>;
400
+
383
401
  postEntitlementCheckResult(
384
402
  transactionId: PromiseOrValue<BytesLike>,
385
403
  roleId: PromiseOrValue<BigNumberish>,
@@ -446,6 +464,13 @@ export interface MockEntitlementGated extends BaseContract {
446
464
  overrides?: CallOverrides
447
465
  ): Promise<IRuleEntitlementBase.RuleDataV2StructOutput>;
448
466
 
467
+ joinSpace(
468
+ receiver: PromiseOrValue<string>,
469
+ roleIds: PromiseOrValue<BigNumberish>[],
470
+ ruleData: IRuleEntitlementBase.RuleDataV2Struct,
471
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
472
+ ): Promise<ContractTransaction>;
473
+
449
474
  postEntitlementCheckResult(
450
475
  transactionId: PromiseOrValue<BytesLike>,
451
476
  roleId: PromiseOrValue<BigNumberish>,
@@ -512,6 +537,13 @@ export interface MockEntitlementGated extends BaseContract {
512
537
  overrides?: CallOverrides
513
538
  ): Promise<IRuleEntitlementBase.RuleDataV2StructOutput>;
514
539
 
540
+ joinSpace(
541
+ receiver: PromiseOrValue<string>,
542
+ roleIds: PromiseOrValue<BigNumberish>[],
543
+ ruleData: IRuleEntitlementBase.RuleDataV2Struct,
544
+ overrides?: CallOverrides
545
+ ): Promise<string>;
546
+
515
547
  postEntitlementCheckResult(
516
548
  transactionId: PromiseOrValue<BytesLike>,
517
549
  roleId: PromiseOrValue<BigNumberish>,
@@ -607,6 +639,13 @@ export interface MockEntitlementGated extends BaseContract {
607
639
  overrides?: CallOverrides
608
640
  ): Promise<BigNumber>;
609
641
 
642
+ joinSpace(
643
+ receiver: PromiseOrValue<string>,
644
+ roleIds: PromiseOrValue<BigNumberish>[],
645
+ ruleData: IRuleEntitlementBase.RuleDataV2Struct,
646
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
647
+ ): Promise<BigNumber>;
648
+
610
649
  postEntitlementCheckResult(
611
650
  transactionId: PromiseOrValue<BytesLike>,
612
651
  roleId: PromiseOrValue<BigNumberish>,
@@ -674,6 +713,13 @@ export interface MockEntitlementGated extends BaseContract {
674
713
  overrides?: CallOverrides
675
714
  ): Promise<PopulatedTransaction>;
676
715
 
716
+ joinSpace(
717
+ receiver: PromiseOrValue<string>,
718
+ roleIds: PromiseOrValue<BigNumberish>[],
719
+ ruleData: IRuleEntitlementBase.RuleDataV2Struct,
720
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
721
+ ): Promise<PopulatedTransaction>;
722
+
677
723
  postEntitlementCheckResult(
678
724
  transactionId: PromiseOrValue<BytesLike>,
679
725
  roleId: PromiseOrValue<BigNumberish>,
@@ -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: "uint48",
90
+ internalType: "uint48",
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,130 @@ 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[]",
168
+ },
169
+ {
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
+ ],
185
229
  },
186
230
  {
187
- name: "data",
188
- type: "bytes",
189
- internalType: "bytes",
231
+ name: "duration",
232
+ type: "uint48",
233
+ internalType: "uint48",
190
234
  },
191
235
  ],
192
236
  },
193
237
  ],
194
238
  stateMutability: "view",
195
239
  },
240
+ {
241
+ type: "function",
242
+ name: "getAppSchema",
243
+ inputs: [],
244
+ outputs: [
245
+ {
246
+ name: "",
247
+ type: "string",
248
+ internalType: "string",
249
+ },
250
+ ],
251
+ stateMutability: "view",
252
+ },
253
+ {
254
+ type: "function",
255
+ name: "getAppSchemaId",
256
+ inputs: [],
257
+ outputs: [
258
+ {
259
+ name: "",
260
+ type: "bytes32",
261
+ internalType: "bytes32",
262
+ },
263
+ ],
264
+ stateMutability: "view",
265
+ },
196
266
  {
197
267
  type: "function",
198
268
  name: "getLatestAppId",
@@ -212,6 +282,29 @@ const _abi = [
212
282
  ],
213
283
  stateMutability: "view",
214
284
  },
285
+ {
286
+ type: "function",
287
+ name: "installApp",
288
+ inputs: [
289
+ {
290
+ name: "app",
291
+ type: "address",
292
+ internalType: "contract ITownsApp",
293
+ },
294
+ {
295
+ name: "account",
296
+ type: "address",
297
+ internalType: "contract IAppAccount",
298
+ },
299
+ {
300
+ name: "data",
301
+ type: "bytes",
302
+ internalType: "bytes",
303
+ },
304
+ ],
305
+ outputs: [],
306
+ stateMutability: "payable",
307
+ },
215
308
  {
216
309
  type: "function",
217
310
  name: "isAppBanned",
@@ -238,12 +331,12 @@ const _abi = [
238
331
  {
239
332
  name: "app",
240
333
  type: "address",
241
- internalType: "address",
334
+ internalType: "contract ITownsApp",
242
335
  },
243
336
  {
244
- name: "clients",
245
- type: "address[]",
246
- internalType: "address[]",
337
+ name: "client",
338
+ type: "address",
339
+ internalType: "address",
247
340
  },
248
341
  ],
249
342
  outputs: [
@@ -265,13 +358,53 @@ const _abi = [
265
358
  internalType: "bytes32",
266
359
  },
267
360
  ],
268
- outputs: [
361
+ outputs: [],
362
+ stateMutability: "nonpayable",
363
+ },
364
+ {
365
+ type: "function",
366
+ name: "renewApp",
367
+ inputs: [
269
368
  {
270
- name: "",
271
- type: "bytes32",
272
- internalType: "bytes32",
369
+ name: "app",
370
+ type: "address",
371
+ internalType: "contract ITownsApp",
372
+ },
373
+ {
374
+ name: "account",
375
+ type: "address",
376
+ internalType: "contract IAppAccount",
377
+ },
378
+ {
379
+ name: "data",
380
+ type: "bytes",
381
+ internalType: "bytes",
382
+ },
383
+ ],
384
+ outputs: [],
385
+ stateMutability: "payable",
386
+ },
387
+ {
388
+ type: "function",
389
+ name: "uninstallApp",
390
+ inputs: [
391
+ {
392
+ name: "app",
393
+ type: "address",
394
+ internalType: "contract ITownsApp",
395
+ },
396
+ {
397
+ name: "account",
398
+ type: "address",
399
+ internalType: "contract IAppAccount",
400
+ },
401
+ {
402
+ name: "data",
403
+ type: "bytes",
404
+ internalType: "bytes",
273
405
  },
274
406
  ],
407
+ outputs: [],
275
408
  stateMutability: "nonpayable",
276
409
  },
277
410
  {
@@ -312,6 +445,31 @@ const _abi = [
312
445
  ],
313
446
  anonymous: false,
314
447
  },
448
+ {
449
+ type: "event",
450
+ name: "AppInstalled",
451
+ inputs: [
452
+ {
453
+ name: "app",
454
+ type: "address",
455
+ indexed: true,
456
+ internalType: "address",
457
+ },
458
+ {
459
+ name: "account",
460
+ type: "address",
461
+ indexed: true,
462
+ internalType: "address",
463
+ },
464
+ {
465
+ name: "appId",
466
+ type: "bytes32",
467
+ indexed: true,
468
+ internalType: "bytes32",
469
+ },
470
+ ],
471
+ anonymous: false,
472
+ },
315
473
  {
316
474
  type: "event",
317
475
  name: "AppRegistered",
@@ -331,6 +489,31 @@ const _abi = [
331
489
  ],
332
490
  anonymous: false,
333
491
  },
492
+ {
493
+ type: "event",
494
+ name: "AppRenewed",
495
+ inputs: [
496
+ {
497
+ name: "app",
498
+ type: "address",
499
+ indexed: true,
500
+ internalType: "address",
501
+ },
502
+ {
503
+ name: "account",
504
+ type: "address",
505
+ indexed: true,
506
+ internalType: "address",
507
+ },
508
+ {
509
+ name: "appId",
510
+ type: "bytes32",
511
+ indexed: true,
512
+ internalType: "bytes32",
513
+ },
514
+ ],
515
+ anonymous: false,
516
+ },
334
517
  {
335
518
  type: "event",
336
519
  name: "AppSchemaSet",
@@ -344,6 +527,31 @@ const _abi = [
344
527
  ],
345
528
  anonymous: false,
346
529
  },
530
+ {
531
+ type: "event",
532
+ name: "AppUninstalled",
533
+ inputs: [
534
+ {
535
+ name: "app",
536
+ type: "address",
537
+ indexed: true,
538
+ internalType: "address",
539
+ },
540
+ {
541
+ name: "account",
542
+ type: "address",
543
+ indexed: true,
544
+ internalType: "address",
545
+ },
546
+ {
547
+ name: "appId",
548
+ type: "bytes32",
549
+ indexed: true,
550
+ internalType: "bytes32",
551
+ },
552
+ ],
553
+ anonymous: false,
554
+ },
347
555
  {
348
556
  type: "event",
349
557
  name: "AppUnregistered",
@@ -392,6 +600,11 @@ const _abi = [
392
600
  name: "AppDoesNotImplementInterface",
393
601
  inputs: [],
394
602
  },
603
+ {
604
+ type: "error",
605
+ name: "AppNotInstalled",
606
+ inputs: [],
607
+ },
395
608
  {
396
609
  type: "error",
397
610
  name: "AppNotRegistered",
@@ -407,6 +620,16 @@ const _abi = [
407
620
  name: "BannedApp",
408
621
  inputs: [],
409
622
  },
623
+ {
624
+ type: "error",
625
+ name: "ClientAlreadyRegistered",
626
+ inputs: [],
627
+ },
628
+ {
629
+ type: "error",
630
+ name: "InsufficientPayment",
631
+ inputs: [],
632
+ },
410
633
  {
411
634
  type: "error",
412
635
  name: "InvalidAddressInput",
@@ -427,6 +650,21 @@ const _abi = [
427
650
  name: "InvalidArrayInput",
428
651
  inputs: [],
429
652
  },
653
+ {
654
+ type: "error",
655
+ name: "InvalidDuration",
656
+ inputs: [],
657
+ },
658
+ {
659
+ type: "error",
660
+ name: "InvalidPrice",
661
+ inputs: [],
662
+ },
663
+ {
664
+ type: "error",
665
+ name: "NotAllowed",
666
+ inputs: [],
667
+ },
430
668
  {
431
669
  type: "error",
432
670
  name: "NotAppOwner",
@@ -307,6 +307,11 @@ const _abi = [
307
307
  name: "EntitlementChecker_InvalidOperator",
308
308
  inputs: [],
309
309
  },
310
+ {
311
+ type: "error",
312
+ name: "EntitlementChecker_InvalidValue",
313
+ inputs: [],
314
+ },
310
315
  {
311
316
  type: "error",
312
317
  name: "EntitlementChecker_NoPendingRequests",