@towns-protocol/generated 0.0.376 → 0.0.378

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.
Files changed (42) hide show
  1. package/dev/.contracts-hash +1 -1
  2. package/dev/abis/Channels.abi.json +1035 -63
  3. package/dev/abis/Channels.abi.ts +1035 -63
  4. package/dev/abis/EntitlementsManager.abi.json +982 -10
  5. package/dev/abis/EntitlementsManager.abi.ts +982 -10
  6. package/dev/abis/IAppFactory.abi.json +87 -0
  7. package/dev/abis/IAppFactory.abi.ts +87 -0
  8. package/dev/abis/IAppFactoryBase.abi.json +36 -0
  9. package/dev/abis/IAppFactoryBase.abi.ts +36 -0
  10. package/dev/abis/IAppRegistry.abi.json +0 -70
  11. package/dev/abis/IAppRegistry.abi.ts +0 -70
  12. package/dev/abis/IAppRegistryBase.abi.json +0 -19
  13. package/dev/abis/IAppRegistryBase.abi.ts +0 -19
  14. package/dev/abis/ITipping.abi.json +3 -3
  15. package/dev/abis/ITipping.abi.ts +3 -3
  16. package/dev/abis/ITippingBase.abi.json +3 -3
  17. package/dev/abis/ITippingBase.abi.ts +3 -3
  18. package/dev/abis/MembershipFacet.abi.json +1000 -28
  19. package/dev/abis/MembershipFacet.abi.ts +1000 -28
  20. package/dev/abis/PrepayFacet.abi.json +993 -21
  21. package/dev/abis/PrepayFacet.abi.ts +993 -21
  22. package/dev/abis/Roles.abi.json +972 -0
  23. package/dev/abis/Roles.abi.ts +972 -0
  24. package/dev/typings/Channels.ts +657 -0
  25. package/dev/typings/EntitlementsManager.ts +658 -0
  26. package/dev/typings/IAppFactory.ts +154 -0
  27. package/dev/typings/IAppRegistry.ts +0 -73
  28. package/dev/typings/ITipping.ts +6 -6
  29. package/dev/typings/MembershipFacet.ts +657 -0
  30. package/dev/typings/PrepayFacet.ts +657 -0
  31. package/dev/typings/Roles.ts +657 -0
  32. package/dev/typings/factories/Channels__factory.ts +1036 -64
  33. package/dev/typings/factories/EntitlementsManager__factory.ts +982 -10
  34. package/dev/typings/factories/IAppFactory__factory.ts +108 -0
  35. package/dev/typings/factories/IAppRegistry__factory.ts +0 -70
  36. package/dev/typings/factories/ITipping__factory.ts +3 -3
  37. package/dev/typings/factories/MembershipFacet__factory.ts +1000 -28
  38. package/dev/typings/factories/PrepayFacet__factory.ts +993 -21
  39. package/dev/typings/factories/Roles__factory.ts +973 -1
  40. package/dev/typings/factories/index.ts +1 -0
  41. package/dev/typings/index.ts +2 -0
  42. package/package.json +3 -3
@@ -0,0 +1,154 @@
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
+ PayableOverrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ } from "./common";
28
+
29
+ export declare namespace IAppFactoryBase {
30
+ export type AppParamsStruct = {
31
+ name: string;
32
+ permissions: BytesLike[];
33
+ client: string;
34
+ installPrice: BigNumberish;
35
+ accessDuration: BigNumberish;
36
+ };
37
+
38
+ export type AppParamsStructOutput = [
39
+ string,
40
+ string[],
41
+ string,
42
+ BigNumber,
43
+ number
44
+ ] & {
45
+ name: string;
46
+ permissions: string[];
47
+ client: string;
48
+ installPrice: BigNumber;
49
+ accessDuration: number;
50
+ };
51
+ }
52
+
53
+ export interface IAppFactoryInterface extends utils.Interface {
54
+ functions: {
55
+ "createApp((string,bytes32[],address,uint256,uint48))": FunctionFragment;
56
+ };
57
+
58
+ getFunction(nameOrSignatureOrTopic: "createApp"): FunctionFragment;
59
+
60
+ encodeFunctionData(
61
+ functionFragment: "createApp",
62
+ values: [IAppFactoryBase.AppParamsStruct]
63
+ ): string;
64
+
65
+ decodeFunctionResult(functionFragment: "createApp", data: BytesLike): Result;
66
+
67
+ events: {
68
+ "AppCreated(address,bytes32)": EventFragment;
69
+ };
70
+
71
+ getEvent(nameOrSignatureOrTopic: "AppCreated"): EventFragment;
72
+ }
73
+
74
+ export interface AppCreatedEventObject {
75
+ app: string;
76
+ uid: string;
77
+ }
78
+ export type AppCreatedEvent = TypedEvent<
79
+ [string, string],
80
+ AppCreatedEventObject
81
+ >;
82
+
83
+ export type AppCreatedEventFilter = TypedEventFilter<AppCreatedEvent>;
84
+
85
+ export interface IAppFactory extends BaseContract {
86
+ connect(signerOrProvider: Signer | Provider | string): this;
87
+ attach(addressOrName: string): this;
88
+ deployed(): Promise<this>;
89
+
90
+ interface: IAppFactoryInterface;
91
+
92
+ queryFilter<TEvent extends TypedEvent>(
93
+ event: TypedEventFilter<TEvent>,
94
+ fromBlockOrBlockhash?: string | number | undefined,
95
+ toBlock?: string | number | undefined
96
+ ): Promise<Array<TEvent>>;
97
+
98
+ listeners<TEvent extends TypedEvent>(
99
+ eventFilter?: TypedEventFilter<TEvent>
100
+ ): Array<TypedListener<TEvent>>;
101
+ listeners(eventName?: string): Array<Listener>;
102
+ removeAllListeners<TEvent extends TypedEvent>(
103
+ eventFilter: TypedEventFilter<TEvent>
104
+ ): this;
105
+ removeAllListeners(eventName?: string): this;
106
+ off: OnEvent<this>;
107
+ on: OnEvent<this>;
108
+ once: OnEvent<this>;
109
+ removeListener: OnEvent<this>;
110
+
111
+ functions: {
112
+ createApp(
113
+ params: IAppFactoryBase.AppParamsStruct,
114
+ overrides?: PayableOverrides & { from?: string }
115
+ ): Promise<ContractTransaction>;
116
+ };
117
+
118
+ createApp(
119
+ params: IAppFactoryBase.AppParamsStruct,
120
+ overrides?: PayableOverrides & { from?: string }
121
+ ): Promise<ContractTransaction>;
122
+
123
+ callStatic: {
124
+ createApp(
125
+ params: IAppFactoryBase.AppParamsStruct,
126
+ overrides?: CallOverrides
127
+ ): Promise<[string, string] & { app: string; appId: string }>;
128
+ };
129
+
130
+ filters: {
131
+ "AppCreated(address,bytes32)"(
132
+ app?: string | null,
133
+ uid?: BytesLike | null
134
+ ): AppCreatedEventFilter;
135
+ AppCreated(
136
+ app?: string | null,
137
+ uid?: BytesLike | null
138
+ ): AppCreatedEventFilter;
139
+ };
140
+
141
+ estimateGas: {
142
+ createApp(
143
+ params: IAppFactoryBase.AppParamsStruct,
144
+ overrides?: PayableOverrides & { from?: string }
145
+ ): Promise<BigNumber>;
146
+ };
147
+
148
+ populateTransaction: {
149
+ createApp(
150
+ params: IAppFactoryBase.AppParamsStruct,
151
+ overrides?: PayableOverrides & { from?: string }
152
+ ): Promise<PopulatedTransaction>;
153
+ };
154
+ }
@@ -79,28 +79,6 @@ export type ExecutionManifestStructOutput = [
79
79
  };
80
80
 
81
81
  export declare namespace IAppRegistryBase {
82
- export type AppParamsStruct = {
83
- name: string;
84
- permissions: BytesLike[];
85
- client: string;
86
- installPrice: BigNumberish;
87
- accessDuration: BigNumberish;
88
- };
89
-
90
- export type AppParamsStructOutput = [
91
- string,
92
- string[],
93
- string,
94
- BigNumber,
95
- number
96
- ] & {
97
- name: string;
98
- permissions: string[];
99
- client: string;
100
- installPrice: BigNumber;
101
- accessDuration: number;
102
- };
103
-
104
82
  export type AppStruct = {
105
83
  appId: BytesLike;
106
84
  module: string;
@@ -134,7 +112,6 @@ export interface IAppRegistryInterface extends utils.Interface {
134
112
  functions: {
135
113
  "adminBanApp(address)": FunctionFragment;
136
114
  "adminRegisterAppSchema(string,address,bool)": FunctionFragment;
137
- "createApp((string,bytes32[],address,uint256,uint48))": FunctionFragment;
138
115
  "getAppByClient(address)": FunctionFragment;
139
116
  "getAppById(bytes32)": FunctionFragment;
140
117
  "getAppDuration(address)": FunctionFragment;
@@ -152,7 +129,6 @@ export interface IAppRegistryInterface extends utils.Interface {
152
129
  nameOrSignatureOrTopic:
153
130
  | "adminBanApp"
154
131
  | "adminRegisterAppSchema"
155
- | "createApp"
156
132
  | "getAppByClient"
157
133
  | "getAppById"
158
134
  | "getAppDuration"
@@ -171,10 +147,6 @@ export interface IAppRegistryInterface extends utils.Interface {
171
147
  functionFragment: "adminRegisterAppSchema",
172
148
  values: [string, string, boolean]
173
149
  ): string;
174
- encodeFunctionData(
175
- functionFragment: "createApp",
176
- values: [IAppRegistryBase.AppParamsStruct]
177
- ): string;
178
150
  encodeFunctionData(
179
151
  functionFragment: "getAppByClient",
180
152
  values: [string]
@@ -222,7 +194,6 @@ export interface IAppRegistryInterface extends utils.Interface {
222
194
  functionFragment: "adminRegisterAppSchema",
223
195
  data: BytesLike
224
196
  ): Result;
225
- decodeFunctionResult(functionFragment: "createApp", data: BytesLike): Result;
226
197
  decodeFunctionResult(
227
198
  functionFragment: "getAppByClient",
228
199
  data: BytesLike
@@ -261,7 +232,6 @@ export interface IAppRegistryInterface extends utils.Interface {
261
232
 
262
233
  events: {
263
234
  "AppBanned(address,bytes32)": EventFragment;
264
- "AppCreated(address,bytes32)": EventFragment;
265
235
  "AppInstalled(address,address,bytes32)": EventFragment;
266
236
  "AppRegistered(address,bytes32)": EventFragment;
267
237
  "AppRenewed(address,address,bytes32)": EventFragment;
@@ -274,7 +244,6 @@ export interface IAppRegistryInterface extends utils.Interface {
274
244
  };
275
245
 
276
246
  getEvent(nameOrSignatureOrTopic: "AppBanned"): EventFragment;
277
- getEvent(nameOrSignatureOrTopic: "AppCreated"): EventFragment;
278
247
  getEvent(nameOrSignatureOrTopic: "AppInstalled"): EventFragment;
279
248
  getEvent(nameOrSignatureOrTopic: "AppRegistered"): EventFragment;
280
249
  getEvent(nameOrSignatureOrTopic: "AppRenewed"): EventFragment;
@@ -298,17 +267,6 @@ export type AppBannedEvent = TypedEvent<[string, string], AppBannedEventObject>;
298
267
 
299
268
  export type AppBannedEventFilter = TypedEventFilter<AppBannedEvent>;
300
269
 
301
- export interface AppCreatedEventObject {
302
- app: string;
303
- uid: string;
304
- }
305
- export type AppCreatedEvent = TypedEvent<
306
- [string, string],
307
- AppCreatedEventObject
308
- >;
309
-
310
- export type AppCreatedEventFilter = TypedEventFilter<AppCreatedEvent>;
311
-
312
270
  export interface AppInstalledEventObject {
313
271
  app: string;
314
272
  account: string;
@@ -450,11 +408,6 @@ export interface IAppRegistry extends BaseContract {
450
408
  overrides?: Overrides & { from?: string }
451
409
  ): Promise<ContractTransaction>;
452
410
 
453
- createApp(
454
- params: IAppRegistryBase.AppParamsStruct,
455
- overrides?: PayableOverrides & { from?: string }
456
- ): Promise<ContractTransaction>;
457
-
458
411
  getAppByClient(
459
412
  client: string,
460
413
  overrides?: CallOverrides
@@ -508,11 +461,6 @@ export interface IAppRegistry extends BaseContract {
508
461
  overrides?: Overrides & { from?: string }
509
462
  ): Promise<ContractTransaction>;
510
463
 
511
- createApp(
512
- params: IAppRegistryBase.AppParamsStruct,
513
- overrides?: PayableOverrides & { from?: string }
514
- ): Promise<ContractTransaction>;
515
-
516
464
  getAppByClient(client: string, overrides?: CallOverrides): Promise<string>;
517
465
 
518
466
  getAppById(
@@ -560,11 +508,6 @@ export interface IAppRegistry extends BaseContract {
560
508
  overrides?: CallOverrides
561
509
  ): Promise<string>;
562
510
 
563
- createApp(
564
- params: IAppRegistryBase.AppParamsStruct,
565
- overrides?: CallOverrides
566
- ): Promise<[string, string] & { app: string; appId: string }>;
567
-
568
511
  getAppByClient(client: string, overrides?: CallOverrides): Promise<string>;
569
512
 
570
513
  getAppById(
@@ -607,12 +550,6 @@ export interface IAppRegistry extends BaseContract {
607
550
  ): AppBannedEventFilter;
608
551
  AppBanned(app?: string | null, uid?: null): AppBannedEventFilter;
609
552
 
610
- "AppCreated(address,bytes32)"(
611
- app?: string | null,
612
- uid?: null
613
- ): AppCreatedEventFilter;
614
- AppCreated(app?: string | null, uid?: null): AppCreatedEventFilter;
615
-
616
553
  "AppInstalled(address,address,bytes32)"(
617
554
  app?: string | null,
618
555
  account?: string | null,
@@ -699,11 +636,6 @@ export interface IAppRegistry extends BaseContract {
699
636
  overrides?: Overrides & { from?: string }
700
637
  ): Promise<BigNumber>;
701
638
 
702
- createApp(
703
- params: IAppRegistryBase.AppParamsStruct,
704
- overrides?: PayableOverrides & { from?: string }
705
- ): Promise<BigNumber>;
706
-
707
639
  getAppByClient(
708
640
  client: string,
709
641
  overrides?: CallOverrides
@@ -755,11 +687,6 @@ export interface IAppRegistry extends BaseContract {
755
687
  overrides?: Overrides & { from?: string }
756
688
  ): Promise<PopulatedTransaction>;
757
689
 
758
- createApp(
759
- params: IAppRegistryBase.AppParamsStruct,
760
- overrides?: PayableOverrides & { from?: string }
761
- ): Promise<PopulatedTransaction>;
762
-
763
690
  getAppByClient(
764
691
  client: string,
765
692
  overrides?: CallOverrides
@@ -139,7 +139,7 @@ export interface ITippingInterface extends utils.Interface {
139
139
 
140
140
  events: {
141
141
  "Tip(uint256,address,address,address,uint256,bytes32,bytes32)": EventFragment;
142
- "TipSent(address,address,uint8,address,uint256,uint256)": EventFragment;
142
+ "TipSent(address,address,uint8,address,uint256,bytes)": EventFragment;
143
143
  };
144
144
 
145
145
  getEvent(nameOrSignatureOrTopic: "Tip"): EventFragment;
@@ -168,10 +168,10 @@ export interface TipSentEventObject {
168
168
  recipientType: number;
169
169
  currency: string;
170
170
  amount: BigNumber;
171
- tokenId: BigNumber;
171
+ data: string;
172
172
  }
173
173
  export type TipSentEvent = TypedEvent<
174
- [string, string, number, string, BigNumber, BigNumber],
174
+ [string, string, number, string, BigNumber, string],
175
175
  TipSentEventObject
176
176
  >;
177
177
 
@@ -350,13 +350,13 @@ export interface ITipping extends BaseContract {
350
350
  channelId?: null
351
351
  ): TipEventFilter;
352
352
 
353
- "TipSent(address,address,uint8,address,uint256,uint256)"(
353
+ "TipSent(address,address,uint8,address,uint256,bytes)"(
354
354
  sender?: string | null,
355
355
  receiver?: string | null,
356
356
  recipientType?: BigNumberish | null,
357
357
  currency?: null,
358
358
  amount?: null,
359
- tokenId?: null
359
+ data?: null
360
360
  ): TipSentEventFilter;
361
361
  TipSent(
362
362
  sender?: string | null,
@@ -364,7 +364,7 @@ export interface ITipping extends BaseContract {
364
364
  recipientType?: BigNumberish | null,
365
365
  currency?: null,
366
366
  amount?: null,
367
- tokenId?: null
367
+ data?: null
368
368
  ): TipSentEventFilter;
369
369
  };
370
370