@towns-protocol/generated 0.0.230 → 0.0.232
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 +92 -27
- package/dev/abis/IAppRegistry.abi.ts +92 -27
- package/dev/abis/IAppRegistryBase.abi.json +24 -0
- package/dev/abis/IAppRegistryBase.abi.ts +24 -0
- package/dev/abis/RewardsDistributionV2.abi.json +1279 -0
- package/dev/abis/RewardsDistributionV2.abi.ts +1279 -0
- package/dev/abis/Towns.abi.json +1202 -0
- package/dev/abis/Towns.abi.ts +1202 -0
- package/dev/typings/IAppRegistry.ts +93 -22
- package/dev/typings/RewardsDistributionV2.ts +1727 -0
- package/dev/typings/Towns.ts +1783 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +92 -27
- package/dev/typings/factories/MembershipFacet__factory.ts +1 -1
- package/dev/typings/factories/RewardsDistributionV2__factory.ts +1344 -0
- package/dev/typings/factories/Towns__factory.ts +1257 -0
- package/dev/typings/factories/index.ts +3 -0
- package/dev/typings/factories/mainnet/Towns__factory.ts +1351 -0
- package/dev/typings/factories/mainnet/index.ts +4 -0
- package/dev/typings/index.ts +7 -0
- package/dev/typings/mainnet/Towns.ts +1997 -0
- package/dev/typings/mainnet/index.ts +4 -0
- package/package.json +2 -2
|
@@ -65,13 +65,28 @@ export type AttestationStructOutput = [
|
|
|
65
65
|
data: string;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
export declare namespace IAppRegistryBase {
|
|
69
|
+
export type AppParamsStruct = {
|
|
70
|
+
name: PromiseOrValue<string>;
|
|
71
|
+
permissions: PromiseOrValue<BytesLike>[];
|
|
72
|
+
clients: PromiseOrValue<string>[];
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type AppParamsStructOutput = [string, string[], string[]] & {
|
|
76
|
+
name: string;
|
|
77
|
+
permissions: string[];
|
|
78
|
+
clients: string[];
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
68
82
|
export interface IAppRegistryInterface extends utils.Interface {
|
|
69
83
|
functions: {
|
|
70
84
|
"adminBanApp(address)": FunctionFragment;
|
|
71
85
|
"adminRegisterAppSchema(string,address,bool)": FunctionFragment;
|
|
72
|
-
"
|
|
86
|
+
"createApp((string,bytes32[],address[]))": FunctionFragment;
|
|
73
87
|
"getAppSchema()": FunctionFragment;
|
|
74
88
|
"getAppSchemaId()": FunctionFragment;
|
|
89
|
+
"getAttestation(bytes32)": FunctionFragment;
|
|
75
90
|
"getLatestAppId(address)": FunctionFragment;
|
|
76
91
|
"isAppBanned(address)": FunctionFragment;
|
|
77
92
|
"registerApp(address,address[])": FunctionFragment;
|
|
@@ -82,9 +97,10 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
82
97
|
nameOrSignatureOrTopic:
|
|
83
98
|
| "adminBanApp"
|
|
84
99
|
| "adminRegisterAppSchema"
|
|
85
|
-
| "
|
|
100
|
+
| "createApp"
|
|
86
101
|
| "getAppSchema"
|
|
87
102
|
| "getAppSchemaId"
|
|
103
|
+
| "getAttestation"
|
|
88
104
|
| "getLatestAppId"
|
|
89
105
|
| "isAppBanned"
|
|
90
106
|
| "registerApp"
|
|
@@ -104,8 +120,8 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
104
120
|
]
|
|
105
121
|
): string;
|
|
106
122
|
encodeFunctionData(
|
|
107
|
-
functionFragment: "
|
|
108
|
-
values: [
|
|
123
|
+
functionFragment: "createApp",
|
|
124
|
+
values: [IAppRegistryBase.AppParamsStruct]
|
|
109
125
|
): string;
|
|
110
126
|
encodeFunctionData(
|
|
111
127
|
functionFragment: "getAppSchema",
|
|
@@ -115,6 +131,10 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
115
131
|
functionFragment: "getAppSchemaId",
|
|
116
132
|
values?: undefined
|
|
117
133
|
): string;
|
|
134
|
+
encodeFunctionData(
|
|
135
|
+
functionFragment: "getAttestation",
|
|
136
|
+
values: [PromiseOrValue<BytesLike>]
|
|
137
|
+
): string;
|
|
118
138
|
encodeFunctionData(
|
|
119
139
|
functionFragment: "getLatestAppId",
|
|
120
140
|
values: [PromiseOrValue<string>]
|
|
@@ -140,7 +160,7 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
140
160
|
functionFragment: "adminRegisterAppSchema",
|
|
141
161
|
data: BytesLike
|
|
142
162
|
): Result;
|
|
143
|
-
decodeFunctionResult(functionFragment: "
|
|
163
|
+
decodeFunctionResult(functionFragment: "createApp", data: BytesLike): Result;
|
|
144
164
|
decodeFunctionResult(
|
|
145
165
|
functionFragment: "getAppSchema",
|
|
146
166
|
data: BytesLike
|
|
@@ -149,6 +169,10 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
149
169
|
functionFragment: "getAppSchemaId",
|
|
150
170
|
data: BytesLike
|
|
151
171
|
): Result;
|
|
172
|
+
decodeFunctionResult(
|
|
173
|
+
functionFragment: "getAttestation",
|
|
174
|
+
data: BytesLike
|
|
175
|
+
): Result;
|
|
152
176
|
decodeFunctionResult(
|
|
153
177
|
functionFragment: "getLatestAppId",
|
|
154
178
|
data: BytesLike
|
|
@@ -165,6 +189,7 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
165
189
|
|
|
166
190
|
events: {
|
|
167
191
|
"AppBanned(address,bytes32)": EventFragment;
|
|
192
|
+
"AppCreated(address,bytes32)": EventFragment;
|
|
168
193
|
"AppRegistered(address,bytes32)": EventFragment;
|
|
169
194
|
"AppSchemaSet(bytes32)": EventFragment;
|
|
170
195
|
"AppUnregistered(address,bytes32)": EventFragment;
|
|
@@ -172,6 +197,7 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
172
197
|
};
|
|
173
198
|
|
|
174
199
|
getEvent(nameOrSignatureOrTopic: "AppBanned"): EventFragment;
|
|
200
|
+
getEvent(nameOrSignatureOrTopic: "AppCreated"): EventFragment;
|
|
175
201
|
getEvent(nameOrSignatureOrTopic: "AppRegistered"): EventFragment;
|
|
176
202
|
getEvent(nameOrSignatureOrTopic: "AppSchemaSet"): EventFragment;
|
|
177
203
|
getEvent(nameOrSignatureOrTopic: "AppUnregistered"): EventFragment;
|
|
@@ -186,6 +212,17 @@ export type AppBannedEvent = TypedEvent<[string, string], AppBannedEventObject>;
|
|
|
186
212
|
|
|
187
213
|
export type AppBannedEventFilter = TypedEventFilter<AppBannedEvent>;
|
|
188
214
|
|
|
215
|
+
export interface AppCreatedEventObject {
|
|
216
|
+
app: string;
|
|
217
|
+
uid: string;
|
|
218
|
+
}
|
|
219
|
+
export type AppCreatedEvent = TypedEvent<
|
|
220
|
+
[string, string],
|
|
221
|
+
AppCreatedEventObject
|
|
222
|
+
>;
|
|
223
|
+
|
|
224
|
+
export type AppCreatedEventFilter = TypedEventFilter<AppCreatedEvent>;
|
|
225
|
+
|
|
189
226
|
export interface AppRegisteredEventObject {
|
|
190
227
|
app: string;
|
|
191
228
|
uid: string;
|
|
@@ -265,15 +302,20 @@ export interface IAppRegistry extends BaseContract {
|
|
|
265
302
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
266
303
|
): Promise<ContractTransaction>;
|
|
267
304
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
overrides?:
|
|
271
|
-
): Promise<
|
|
305
|
+
createApp(
|
|
306
|
+
params: IAppRegistryBase.AppParamsStruct,
|
|
307
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
308
|
+
): Promise<ContractTransaction>;
|
|
272
309
|
|
|
273
310
|
getAppSchema(overrides?: CallOverrides): Promise<[string]>;
|
|
274
311
|
|
|
275
312
|
getAppSchemaId(overrides?: CallOverrides): Promise<[string]>;
|
|
276
313
|
|
|
314
|
+
getAttestation(
|
|
315
|
+
appId: PromiseOrValue<BytesLike>,
|
|
316
|
+
overrides?: CallOverrides
|
|
317
|
+
): Promise<[AttestationStructOutput]>;
|
|
318
|
+
|
|
277
319
|
getLatestAppId(
|
|
278
320
|
app: PromiseOrValue<string>,
|
|
279
321
|
overrides?: CallOverrides
|
|
@@ -308,15 +350,20 @@ export interface IAppRegistry extends BaseContract {
|
|
|
308
350
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
309
351
|
): Promise<ContractTransaction>;
|
|
310
352
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
overrides?:
|
|
314
|
-
): Promise<
|
|
353
|
+
createApp(
|
|
354
|
+
params: IAppRegistryBase.AppParamsStruct,
|
|
355
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
356
|
+
): Promise<ContractTransaction>;
|
|
315
357
|
|
|
316
358
|
getAppSchema(overrides?: CallOverrides): Promise<string>;
|
|
317
359
|
|
|
318
360
|
getAppSchemaId(overrides?: CallOverrides): Promise<string>;
|
|
319
361
|
|
|
362
|
+
getAttestation(
|
|
363
|
+
appId: PromiseOrValue<BytesLike>,
|
|
364
|
+
overrides?: CallOverrides
|
|
365
|
+
): Promise<AttestationStructOutput>;
|
|
366
|
+
|
|
320
367
|
getLatestAppId(
|
|
321
368
|
app: PromiseOrValue<string>,
|
|
322
369
|
overrides?: CallOverrides
|
|
@@ -351,15 +398,20 @@ export interface IAppRegistry extends BaseContract {
|
|
|
351
398
|
overrides?: CallOverrides
|
|
352
399
|
): Promise<string>;
|
|
353
400
|
|
|
354
|
-
|
|
355
|
-
|
|
401
|
+
createApp(
|
|
402
|
+
params: IAppRegistryBase.AppParamsStruct,
|
|
356
403
|
overrides?: CallOverrides
|
|
357
|
-
): Promise<
|
|
404
|
+
): Promise<[string, string] & { app: string; appId: string }>;
|
|
358
405
|
|
|
359
406
|
getAppSchema(overrides?: CallOverrides): Promise<string>;
|
|
360
407
|
|
|
361
408
|
getAppSchemaId(overrides?: CallOverrides): Promise<string>;
|
|
362
409
|
|
|
410
|
+
getAttestation(
|
|
411
|
+
appId: PromiseOrValue<BytesLike>,
|
|
412
|
+
overrides?: CallOverrides
|
|
413
|
+
): Promise<AttestationStructOutput>;
|
|
414
|
+
|
|
363
415
|
getLatestAppId(
|
|
364
416
|
app: PromiseOrValue<string>,
|
|
365
417
|
overrides?: CallOverrides
|
|
@@ -392,6 +444,15 @@ export interface IAppRegistry extends BaseContract {
|
|
|
392
444
|
uid?: null
|
|
393
445
|
): AppBannedEventFilter;
|
|
394
446
|
|
|
447
|
+
"AppCreated(address,bytes32)"(
|
|
448
|
+
app?: PromiseOrValue<string> | null,
|
|
449
|
+
uid?: null
|
|
450
|
+
): AppCreatedEventFilter;
|
|
451
|
+
AppCreated(
|
|
452
|
+
app?: PromiseOrValue<string> | null,
|
|
453
|
+
uid?: null
|
|
454
|
+
): AppCreatedEventFilter;
|
|
455
|
+
|
|
395
456
|
"AppRegistered(address,bytes32)"(
|
|
396
457
|
app?: PromiseOrValue<string> | null,
|
|
397
458
|
uid?: null
|
|
@@ -436,15 +497,20 @@ export interface IAppRegistry extends BaseContract {
|
|
|
436
497
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
437
498
|
): Promise<BigNumber>;
|
|
438
499
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
overrides?:
|
|
500
|
+
createApp(
|
|
501
|
+
params: IAppRegistryBase.AppParamsStruct,
|
|
502
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
442
503
|
): Promise<BigNumber>;
|
|
443
504
|
|
|
444
505
|
getAppSchema(overrides?: CallOverrides): Promise<BigNumber>;
|
|
445
506
|
|
|
446
507
|
getAppSchemaId(overrides?: CallOverrides): Promise<BigNumber>;
|
|
447
508
|
|
|
509
|
+
getAttestation(
|
|
510
|
+
appId: PromiseOrValue<BytesLike>,
|
|
511
|
+
overrides?: CallOverrides
|
|
512
|
+
): Promise<BigNumber>;
|
|
513
|
+
|
|
448
514
|
getLatestAppId(
|
|
449
515
|
app: PromiseOrValue<string>,
|
|
450
516
|
overrides?: CallOverrides
|
|
@@ -480,15 +546,20 @@ export interface IAppRegistry extends BaseContract {
|
|
|
480
546
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
481
547
|
): Promise<PopulatedTransaction>;
|
|
482
548
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
overrides?:
|
|
549
|
+
createApp(
|
|
550
|
+
params: IAppRegistryBase.AppParamsStruct,
|
|
551
|
+
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
486
552
|
): Promise<PopulatedTransaction>;
|
|
487
553
|
|
|
488
554
|
getAppSchema(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
489
555
|
|
|
490
556
|
getAppSchemaId(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
491
557
|
|
|
558
|
+
getAttestation(
|
|
559
|
+
appId: PromiseOrValue<BytesLike>,
|
|
560
|
+
overrides?: CallOverrides
|
|
561
|
+
): Promise<PopulatedTransaction>;
|
|
562
|
+
|
|
492
563
|
getLatestAppId(
|
|
493
564
|
app: PromiseOrValue<string>,
|
|
494
565
|
overrides?: CallOverrides
|