@towns-protocol/generated 0.0.228 → 0.0.229

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.
@@ -0,0 +1,513 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PayableOverrides,
13
+ PopulatedTransaction,
14
+ Signer,
15
+ utils,
16
+ } from "ethers";
17
+ import type {
18
+ FunctionFragment,
19
+ Result,
20
+ EventFragment,
21
+ } from "@ethersproject/abi";
22
+ import type { Listener, Provider } from "@ethersproject/providers";
23
+ import type {
24
+ TypedEventFilter,
25
+ TypedEvent,
26
+ TypedListener,
27
+ OnEvent,
28
+ PromiseOrValue,
29
+ } from "./common";
30
+
31
+ export type AttestationStruct = {
32
+ uid: PromiseOrValue<BytesLike>;
33
+ schema: PromiseOrValue<BytesLike>;
34
+ time: PromiseOrValue<BigNumberish>;
35
+ expirationTime: PromiseOrValue<BigNumberish>;
36
+ revocationTime: PromiseOrValue<BigNumberish>;
37
+ refUID: PromiseOrValue<BytesLike>;
38
+ recipient: PromiseOrValue<string>;
39
+ attester: PromiseOrValue<string>;
40
+ revocable: PromiseOrValue<boolean>;
41
+ data: PromiseOrValue<BytesLike>;
42
+ };
43
+
44
+ export type AttestationStructOutput = [
45
+ string,
46
+ string,
47
+ BigNumber,
48
+ BigNumber,
49
+ BigNumber,
50
+ string,
51
+ string,
52
+ string,
53
+ boolean,
54
+ string
55
+ ] & {
56
+ uid: string;
57
+ schema: string;
58
+ time: BigNumber;
59
+ expirationTime: BigNumber;
60
+ revocationTime: BigNumber;
61
+ refUID: string;
62
+ recipient: string;
63
+ attester: string;
64
+ revocable: boolean;
65
+ data: string;
66
+ };
67
+
68
+ export interface IAppRegistryInterface extends utils.Interface {
69
+ functions: {
70
+ "adminBanApp(address)": FunctionFragment;
71
+ "adminRegisterAppSchema(string,address,bool)": FunctionFragment;
72
+ "getAppById(bytes32)": FunctionFragment;
73
+ "getAppSchema()": FunctionFragment;
74
+ "getAppSchemaId()": FunctionFragment;
75
+ "getLatestAppId(address)": FunctionFragment;
76
+ "isAppBanned(address)": FunctionFragment;
77
+ "registerApp(address,address[])": FunctionFragment;
78
+ "removeApp(bytes32)": FunctionFragment;
79
+ };
80
+
81
+ getFunction(
82
+ nameOrSignatureOrTopic:
83
+ | "adminBanApp"
84
+ | "adminRegisterAppSchema"
85
+ | "getAppById"
86
+ | "getAppSchema"
87
+ | "getAppSchemaId"
88
+ | "getLatestAppId"
89
+ | "isAppBanned"
90
+ | "registerApp"
91
+ | "removeApp"
92
+ ): FunctionFragment;
93
+
94
+ encodeFunctionData(
95
+ functionFragment: "adminBanApp",
96
+ values: [PromiseOrValue<string>]
97
+ ): string;
98
+ encodeFunctionData(
99
+ functionFragment: "adminRegisterAppSchema",
100
+ values: [
101
+ PromiseOrValue<string>,
102
+ PromiseOrValue<string>,
103
+ PromiseOrValue<boolean>
104
+ ]
105
+ ): string;
106
+ encodeFunctionData(
107
+ functionFragment: "getAppById",
108
+ values: [PromiseOrValue<BytesLike>]
109
+ ): string;
110
+ encodeFunctionData(
111
+ functionFragment: "getAppSchema",
112
+ values?: undefined
113
+ ): string;
114
+ encodeFunctionData(
115
+ functionFragment: "getAppSchemaId",
116
+ values?: undefined
117
+ ): string;
118
+ encodeFunctionData(
119
+ functionFragment: "getLatestAppId",
120
+ values: [PromiseOrValue<string>]
121
+ ): string;
122
+ encodeFunctionData(
123
+ functionFragment: "isAppBanned",
124
+ values: [PromiseOrValue<string>]
125
+ ): string;
126
+ encodeFunctionData(
127
+ functionFragment: "registerApp",
128
+ values: [PromiseOrValue<string>, PromiseOrValue<string>[]]
129
+ ): string;
130
+ encodeFunctionData(
131
+ functionFragment: "removeApp",
132
+ values: [PromiseOrValue<BytesLike>]
133
+ ): string;
134
+
135
+ decodeFunctionResult(
136
+ functionFragment: "adminBanApp",
137
+ data: BytesLike
138
+ ): Result;
139
+ decodeFunctionResult(
140
+ functionFragment: "adminRegisterAppSchema",
141
+ data: BytesLike
142
+ ): Result;
143
+ decodeFunctionResult(functionFragment: "getAppById", data: BytesLike): Result;
144
+ decodeFunctionResult(
145
+ functionFragment: "getAppSchema",
146
+ data: BytesLike
147
+ ): Result;
148
+ decodeFunctionResult(
149
+ functionFragment: "getAppSchemaId",
150
+ data: BytesLike
151
+ ): Result;
152
+ decodeFunctionResult(
153
+ functionFragment: "getLatestAppId",
154
+ data: BytesLike
155
+ ): Result;
156
+ decodeFunctionResult(
157
+ functionFragment: "isAppBanned",
158
+ data: BytesLike
159
+ ): Result;
160
+ decodeFunctionResult(
161
+ functionFragment: "registerApp",
162
+ data: BytesLike
163
+ ): Result;
164
+ decodeFunctionResult(functionFragment: "removeApp", data: BytesLike): Result;
165
+
166
+ events: {
167
+ "AppBanned(address,bytes32)": EventFragment;
168
+ "AppRegistered(address,bytes32)": EventFragment;
169
+ "AppSchemaSet(bytes32)": EventFragment;
170
+ "AppUnregistered(address,bytes32)": EventFragment;
171
+ "AppUpdated(address,bytes32)": EventFragment;
172
+ };
173
+
174
+ getEvent(nameOrSignatureOrTopic: "AppBanned"): EventFragment;
175
+ getEvent(nameOrSignatureOrTopic: "AppRegistered"): EventFragment;
176
+ getEvent(nameOrSignatureOrTopic: "AppSchemaSet"): EventFragment;
177
+ getEvent(nameOrSignatureOrTopic: "AppUnregistered"): EventFragment;
178
+ getEvent(nameOrSignatureOrTopic: "AppUpdated"): EventFragment;
179
+ }
180
+
181
+ export interface AppBannedEventObject {
182
+ app: string;
183
+ uid: string;
184
+ }
185
+ export type AppBannedEvent = TypedEvent<[string, string], AppBannedEventObject>;
186
+
187
+ export type AppBannedEventFilter = TypedEventFilter<AppBannedEvent>;
188
+
189
+ export interface AppRegisteredEventObject {
190
+ app: string;
191
+ uid: string;
192
+ }
193
+ export type AppRegisteredEvent = TypedEvent<
194
+ [string, string],
195
+ AppRegisteredEventObject
196
+ >;
197
+
198
+ export type AppRegisteredEventFilter = TypedEventFilter<AppRegisteredEvent>;
199
+
200
+ export interface AppSchemaSetEventObject {
201
+ uid: string;
202
+ }
203
+ export type AppSchemaSetEvent = TypedEvent<[string], AppSchemaSetEventObject>;
204
+
205
+ export type AppSchemaSetEventFilter = TypedEventFilter<AppSchemaSetEvent>;
206
+
207
+ export interface AppUnregisteredEventObject {
208
+ app: string;
209
+ uid: string;
210
+ }
211
+ export type AppUnregisteredEvent = TypedEvent<
212
+ [string, string],
213
+ AppUnregisteredEventObject
214
+ >;
215
+
216
+ export type AppUnregisteredEventFilter = TypedEventFilter<AppUnregisteredEvent>;
217
+
218
+ export interface AppUpdatedEventObject {
219
+ app: string;
220
+ uid: string;
221
+ }
222
+ export type AppUpdatedEvent = TypedEvent<
223
+ [string, string],
224
+ AppUpdatedEventObject
225
+ >;
226
+
227
+ export type AppUpdatedEventFilter = TypedEventFilter<AppUpdatedEvent>;
228
+
229
+ export interface IAppRegistry extends BaseContract {
230
+ connect(signerOrProvider: Signer | Provider | string): this;
231
+ attach(addressOrName: string): this;
232
+ deployed(): Promise<this>;
233
+
234
+ interface: IAppRegistryInterface;
235
+
236
+ queryFilter<TEvent extends TypedEvent>(
237
+ event: TypedEventFilter<TEvent>,
238
+ fromBlockOrBlockhash?: string | number | undefined,
239
+ toBlock?: string | number | undefined
240
+ ): Promise<Array<TEvent>>;
241
+
242
+ listeners<TEvent extends TypedEvent>(
243
+ eventFilter?: TypedEventFilter<TEvent>
244
+ ): Array<TypedListener<TEvent>>;
245
+ listeners(eventName?: string): Array<Listener>;
246
+ removeAllListeners<TEvent extends TypedEvent>(
247
+ eventFilter: TypedEventFilter<TEvent>
248
+ ): this;
249
+ removeAllListeners(eventName?: string): this;
250
+ off: OnEvent<this>;
251
+ on: OnEvent<this>;
252
+ once: OnEvent<this>;
253
+ removeListener: OnEvent<this>;
254
+
255
+ functions: {
256
+ adminBanApp(
257
+ app: PromiseOrValue<string>,
258
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
259
+ ): Promise<ContractTransaction>;
260
+
261
+ adminRegisterAppSchema(
262
+ schema: PromiseOrValue<string>,
263
+ resolver: PromiseOrValue<string>,
264
+ revocable: PromiseOrValue<boolean>,
265
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
266
+ ): Promise<ContractTransaction>;
267
+
268
+ getAppById(
269
+ appId: PromiseOrValue<BytesLike>,
270
+ overrides?: CallOverrides
271
+ ): Promise<[AttestationStructOutput]>;
272
+
273
+ getAppSchema(overrides?: CallOverrides): Promise<[string]>;
274
+
275
+ getAppSchemaId(overrides?: CallOverrides): Promise<[string]>;
276
+
277
+ getLatestAppId(
278
+ app: PromiseOrValue<string>,
279
+ overrides?: CallOverrides
280
+ ): Promise<[string]>;
281
+
282
+ isAppBanned(
283
+ app: PromiseOrValue<string>,
284
+ overrides?: CallOverrides
285
+ ): Promise<[boolean]>;
286
+
287
+ registerApp(
288
+ app: PromiseOrValue<string>,
289
+ clients: PromiseOrValue<string>[],
290
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
291
+ ): Promise<ContractTransaction>;
292
+
293
+ removeApp(
294
+ appId: PromiseOrValue<BytesLike>,
295
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
296
+ ): Promise<ContractTransaction>;
297
+ };
298
+
299
+ adminBanApp(
300
+ app: PromiseOrValue<string>,
301
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
302
+ ): Promise<ContractTransaction>;
303
+
304
+ adminRegisterAppSchema(
305
+ schema: PromiseOrValue<string>,
306
+ resolver: PromiseOrValue<string>,
307
+ revocable: PromiseOrValue<boolean>,
308
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
309
+ ): Promise<ContractTransaction>;
310
+
311
+ getAppById(
312
+ appId: PromiseOrValue<BytesLike>,
313
+ overrides?: CallOverrides
314
+ ): Promise<AttestationStructOutput>;
315
+
316
+ getAppSchema(overrides?: CallOverrides): Promise<string>;
317
+
318
+ getAppSchemaId(overrides?: CallOverrides): Promise<string>;
319
+
320
+ getLatestAppId(
321
+ app: PromiseOrValue<string>,
322
+ overrides?: CallOverrides
323
+ ): Promise<string>;
324
+
325
+ isAppBanned(
326
+ app: PromiseOrValue<string>,
327
+ overrides?: CallOverrides
328
+ ): Promise<boolean>;
329
+
330
+ registerApp(
331
+ app: PromiseOrValue<string>,
332
+ clients: PromiseOrValue<string>[],
333
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
334
+ ): Promise<ContractTransaction>;
335
+
336
+ removeApp(
337
+ appId: PromiseOrValue<BytesLike>,
338
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
339
+ ): Promise<ContractTransaction>;
340
+
341
+ callStatic: {
342
+ adminBanApp(
343
+ app: PromiseOrValue<string>,
344
+ overrides?: CallOverrides
345
+ ): Promise<string>;
346
+
347
+ adminRegisterAppSchema(
348
+ schema: PromiseOrValue<string>,
349
+ resolver: PromiseOrValue<string>,
350
+ revocable: PromiseOrValue<boolean>,
351
+ overrides?: CallOverrides
352
+ ): Promise<string>;
353
+
354
+ getAppById(
355
+ appId: PromiseOrValue<BytesLike>,
356
+ overrides?: CallOverrides
357
+ ): Promise<AttestationStructOutput>;
358
+
359
+ getAppSchema(overrides?: CallOverrides): Promise<string>;
360
+
361
+ getAppSchemaId(overrides?: CallOverrides): Promise<string>;
362
+
363
+ getLatestAppId(
364
+ app: PromiseOrValue<string>,
365
+ overrides?: CallOverrides
366
+ ): Promise<string>;
367
+
368
+ isAppBanned(
369
+ app: PromiseOrValue<string>,
370
+ overrides?: CallOverrides
371
+ ): Promise<boolean>;
372
+
373
+ registerApp(
374
+ app: PromiseOrValue<string>,
375
+ clients: PromiseOrValue<string>[],
376
+ overrides?: CallOverrides
377
+ ): Promise<string>;
378
+
379
+ removeApp(
380
+ appId: PromiseOrValue<BytesLike>,
381
+ overrides?: CallOverrides
382
+ ): Promise<string>;
383
+ };
384
+
385
+ filters: {
386
+ "AppBanned(address,bytes32)"(
387
+ app?: PromiseOrValue<string> | null,
388
+ uid?: null
389
+ ): AppBannedEventFilter;
390
+ AppBanned(
391
+ app?: PromiseOrValue<string> | null,
392
+ uid?: null
393
+ ): AppBannedEventFilter;
394
+
395
+ "AppRegistered(address,bytes32)"(
396
+ app?: PromiseOrValue<string> | null,
397
+ uid?: null
398
+ ): AppRegisteredEventFilter;
399
+ AppRegistered(
400
+ app?: PromiseOrValue<string> | null,
401
+ uid?: null
402
+ ): AppRegisteredEventFilter;
403
+
404
+ "AppSchemaSet(bytes32)"(uid?: null): AppSchemaSetEventFilter;
405
+ AppSchemaSet(uid?: null): AppSchemaSetEventFilter;
406
+
407
+ "AppUnregistered(address,bytes32)"(
408
+ app?: PromiseOrValue<string> | null,
409
+ uid?: null
410
+ ): AppUnregisteredEventFilter;
411
+ AppUnregistered(
412
+ app?: PromiseOrValue<string> | null,
413
+ uid?: null
414
+ ): AppUnregisteredEventFilter;
415
+
416
+ "AppUpdated(address,bytes32)"(
417
+ app?: PromiseOrValue<string> | null,
418
+ uid?: null
419
+ ): AppUpdatedEventFilter;
420
+ AppUpdated(
421
+ app?: PromiseOrValue<string> | null,
422
+ uid?: null
423
+ ): AppUpdatedEventFilter;
424
+ };
425
+
426
+ estimateGas: {
427
+ adminBanApp(
428
+ app: PromiseOrValue<string>,
429
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
430
+ ): Promise<BigNumber>;
431
+
432
+ adminRegisterAppSchema(
433
+ schema: PromiseOrValue<string>,
434
+ resolver: PromiseOrValue<string>,
435
+ revocable: PromiseOrValue<boolean>,
436
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
437
+ ): Promise<BigNumber>;
438
+
439
+ getAppById(
440
+ appId: PromiseOrValue<BytesLike>,
441
+ overrides?: CallOverrides
442
+ ): Promise<BigNumber>;
443
+
444
+ getAppSchema(overrides?: CallOverrides): Promise<BigNumber>;
445
+
446
+ getAppSchemaId(overrides?: CallOverrides): Promise<BigNumber>;
447
+
448
+ getLatestAppId(
449
+ app: PromiseOrValue<string>,
450
+ overrides?: CallOverrides
451
+ ): Promise<BigNumber>;
452
+
453
+ isAppBanned(
454
+ app: PromiseOrValue<string>,
455
+ overrides?: CallOverrides
456
+ ): Promise<BigNumber>;
457
+
458
+ registerApp(
459
+ app: PromiseOrValue<string>,
460
+ clients: PromiseOrValue<string>[],
461
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
462
+ ): Promise<BigNumber>;
463
+
464
+ removeApp(
465
+ appId: PromiseOrValue<BytesLike>,
466
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
467
+ ): Promise<BigNumber>;
468
+ };
469
+
470
+ populateTransaction: {
471
+ adminBanApp(
472
+ app: PromiseOrValue<string>,
473
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
474
+ ): Promise<PopulatedTransaction>;
475
+
476
+ adminRegisterAppSchema(
477
+ schema: PromiseOrValue<string>,
478
+ resolver: PromiseOrValue<string>,
479
+ revocable: PromiseOrValue<boolean>,
480
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
481
+ ): Promise<PopulatedTransaction>;
482
+
483
+ getAppById(
484
+ appId: PromiseOrValue<BytesLike>,
485
+ overrides?: CallOverrides
486
+ ): Promise<PopulatedTransaction>;
487
+
488
+ getAppSchema(overrides?: CallOverrides): Promise<PopulatedTransaction>;
489
+
490
+ getAppSchemaId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
491
+
492
+ getLatestAppId(
493
+ app: PromiseOrValue<string>,
494
+ overrides?: CallOverrides
495
+ ): Promise<PopulatedTransaction>;
496
+
497
+ isAppBanned(
498
+ app: PromiseOrValue<string>,
499
+ overrides?: CallOverrides
500
+ ): Promise<PopulatedTransaction>;
501
+
502
+ registerApp(
503
+ app: PromiseOrValue<string>,
504
+ clients: PromiseOrValue<string>[],
505
+ overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
506
+ ): Promise<PopulatedTransaction>;
507
+
508
+ removeApp(
509
+ appId: PromiseOrValue<BytesLike>,
510
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
511
+ ): Promise<PopulatedTransaction>;
512
+ };
513
+ }