@towns-protocol/generated 0.0.359 → 0.0.360
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/.contracts-hash +1 -1
- package/dev/abis/SubscriptionModuleFacet.abi.json +24 -0
- package/dev/abis/SubscriptionModuleFacet.abi.ts +24 -0
- package/dev/typings/Architect.ts +88 -101
- package/dev/typings/Channels.ts +161 -176
- package/dev/typings/DropFacet.ts +121 -129
- package/dev/typings/EntitlementsManager.ts +75 -80
- package/dev/typings/GuardianFacet.ts +54 -57
- package/dev/typings/IAppAccount.ts +160 -229
- package/dev/typings/IAppRegistry.ts +245 -347
- package/dev/typings/IArchitect.ts +55 -61
- package/dev/typings/IBanning.ts +34 -50
- package/dev/typings/IChannel.ts +123 -136
- package/dev/typings/ICreateSpace.ts +68 -69
- package/dev/typings/ICrossChainEntitlement.ts +14 -15
- package/dev/typings/IDiamond.ts +0 -1
- package/dev/typings/IDiamondCut.ts +20 -25
- package/dev/typings/IDropFacet.ts +99 -105
- package/dev/typings/IERC5267.ts +0 -1
- package/dev/typings/IERC721A.ts +152 -190
- package/dev/typings/IERC721AQueryable.ts +60 -71
- package/dev/typings/IEntitlementChecker.ts +98 -134
- package/dev/typings/IEntitlementDataQueryable.ts +30 -31
- package/dev/typings/IEntitlementsManager.ts +71 -76
- package/dev/typings/IMembershipMetadata.ts +10 -17
- package/dev/typings/IMockLegacyArchitect.sol/ILegacyArchitect.ts +36 -40
- package/dev/typings/IMulticall.ts +10 -14
- package/dev/typings/INodeOperator.ts +88 -109
- package/dev/typings/INodeRegistry.ts +86 -122
- package/dev/typings/IOperatorRegistry.ts +30 -54
- package/dev/typings/IPausable.ts +8 -13
- package/dev/typings/IPricingModules.ts +35 -44
- package/dev/typings/IProxyManager.ts +16 -17
- package/dev/typings/IReview.ts +31 -42
- package/dev/typings/IRoles.ts +191 -206
- package/dev/typings/IRuleEntitlement.sol/IRuleEntitlement.ts +71 -85
- package/dev/typings/IRuleEntitlement.sol/IRuleEntitlementV2.ts +71 -85
- package/dev/typings/ISpaceDelegation.ts +61 -67
- package/dev/typings/IStreamRegistry.ts +160 -182
- package/dev/typings/ISwapFacet.ts +58 -62
- package/dev/typings/ISwapRouter.ts +82 -90
- package/dev/typings/ITipping.ts +37 -38
- package/dev/typings/ITownsPoints.ts +54 -72
- package/dev/typings/ITreasury.ts +95 -119
- package/dev/typings/IWalletLink.ts +169 -186
- package/dev/typings/MainnetDelegation.ts +98 -103
- package/dev/typings/Member.ts +242 -314
- package/dev/typings/MembershipFacet.ts +208 -217
- package/dev/typings/MockERC721A.ts +206 -261
- package/dev/typings/MockEntitlementGated.ts +159 -186
- package/dev/typings/MockLegacyArchitect.ts +44 -50
- package/dev/typings/NodeRegistry.ts +86 -122
- package/dev/typings/OperatorRegistry.ts +48 -74
- package/dev/typings/OwnableFacet.ts +28 -34
- package/dev/typings/PlatformRequirementsFacet.ts +148 -151
- package/dev/typings/PrepayFacet.ts +28 -31
- package/dev/typings/RewardsDistributionV2.ts +393 -423
- package/dev/typings/Roles.ts +195 -210
- package/dev/typings/SimpleApp.ts +147 -163
- package/dev/typings/SpaceOwner.ts +383 -486
- package/dev/typings/StreamRegistry.ts +160 -182
- package/dev/typings/SubscriptionModuleFacet.ts +318 -375
- package/dev/typings/TokenPausableFacet.ts +20 -27
- package/dev/typings/Towns.ts +403 -477
- package/dev/typings/UserEntitlement.ts +80 -95
- package/dev/typings/WalletLink.ts +187 -203
- package/dev/typings/common.ts +0 -2
- package/dev/typings/factories/Architect__factory.ts +2 -3
- package/dev/typings/factories/Channels__factory.ts +2 -3
- package/dev/typings/factories/DropFacet__factory.ts +2 -3
- package/dev/typings/factories/EntitlementsManager__factory.ts +2 -3
- package/dev/typings/factories/GuardianFacet__factory.ts +2 -3
- package/dev/typings/factories/MainnetDelegation__factory.ts +2 -3
- package/dev/typings/factories/Member__factory.ts +10 -11
- package/dev/typings/factories/MembershipFacet__factory.ts +2 -3
- package/dev/typings/factories/MockERC721A__factory.ts +2 -3
- package/dev/typings/factories/MockEntitlementGated__factory.ts +4 -5
- package/dev/typings/factories/MockLegacyArchitect__factory.ts +2 -3
- package/dev/typings/factories/NodeRegistry__factory.ts +2 -3
- package/dev/typings/factories/OperatorRegistry__factory.ts +2 -3
- package/dev/typings/factories/OwnableFacet__factory.ts +2 -3
- package/dev/typings/factories/PlatformRequirementsFacet__factory.ts +2 -3
- package/dev/typings/factories/PrepayFacet__factory.ts +2 -3
- package/dev/typings/factories/RewardsDistributionV2__factory.ts +2 -3
- package/dev/typings/factories/Roles__factory.ts +2 -5
- package/dev/typings/factories/SimpleApp__factory.ts +2 -3
- package/dev/typings/factories/SpaceOwner__factory.ts +2 -3
- package/dev/typings/factories/StreamRegistry__factory.ts +2 -3
- package/dev/typings/factories/SubscriptionModuleFacet__factory.ts +27 -4
- package/dev/typings/factories/TokenPausableFacet__factory.ts +2 -3
- package/dev/typings/factories/Towns__factory.ts +2 -5
- package/dev/typings/factories/UserEntitlement__factory.ts +2 -3
- package/dev/typings/factories/WalletLink__factory.ts +2 -3
- package/dev/typings/factories/mainnet/Towns__factory.ts +6 -7
- package/dev/typings/factories/multichain/Towns__factory.ts +10 -11
- package/dev/typings/mainnet/Towns.ts +427 -506
- package/dev/typings/multichain/Towns.ts +318 -378
- package/package.json +9 -5
|
@@ -20,14 +20,10 @@ import type {
|
|
|
20
20
|
TypedEvent,
|
|
21
21
|
TypedListener,
|
|
22
22
|
OnEvent,
|
|
23
|
-
PromiseOrValue,
|
|
24
23
|
} from "../common";
|
|
25
24
|
|
|
26
25
|
export declare namespace IRuleEntitlementBase {
|
|
27
|
-
export type OperationStruct = {
|
|
28
|
-
opType: PromiseOrValue<BigNumberish>;
|
|
29
|
-
index: PromiseOrValue<BigNumberish>;
|
|
30
|
-
};
|
|
26
|
+
export type OperationStruct = { opType: BigNumberish; index: BigNumberish };
|
|
31
27
|
|
|
32
28
|
export type OperationStructOutput = [number, number] & {
|
|
33
29
|
opType: number;
|
|
@@ -35,10 +31,10 @@ export declare namespace IRuleEntitlementBase {
|
|
|
35
31
|
};
|
|
36
32
|
|
|
37
33
|
export type CheckOperationStruct = {
|
|
38
|
-
opType:
|
|
39
|
-
chainId:
|
|
40
|
-
contractAddress:
|
|
41
|
-
threshold:
|
|
34
|
+
opType: BigNumberish;
|
|
35
|
+
chainId: BigNumberish;
|
|
36
|
+
contractAddress: string;
|
|
37
|
+
threshold: BigNumberish;
|
|
42
38
|
};
|
|
43
39
|
|
|
44
40
|
export type CheckOperationStructOutput = [
|
|
@@ -54,9 +50,9 @@ export declare namespace IRuleEntitlementBase {
|
|
|
54
50
|
};
|
|
55
51
|
|
|
56
52
|
export type LogicalOperationStruct = {
|
|
57
|
-
logOpType:
|
|
58
|
-
leftOperationIndex:
|
|
59
|
-
rightOperationIndex:
|
|
53
|
+
logOpType: BigNumberish;
|
|
54
|
+
leftOperationIndex: BigNumberish;
|
|
55
|
+
rightOperationIndex: BigNumberish;
|
|
60
56
|
};
|
|
61
57
|
|
|
62
58
|
export type LogicalOperationStructOutput = [number, number, number] & {
|
|
@@ -122,27 +118,20 @@ export interface IRuleEntitlementInterface extends utils.Interface {
|
|
|
122
118
|
): string;
|
|
123
119
|
encodeFunctionData(
|
|
124
120
|
functionFragment: "getEntitlementDataByRoleId",
|
|
125
|
-
values: [
|
|
121
|
+
values: [BigNumberish]
|
|
126
122
|
): string;
|
|
127
123
|
encodeFunctionData(
|
|
128
124
|
functionFragment: "getRuleData",
|
|
129
|
-
values: [
|
|
130
|
-
): string;
|
|
131
|
-
encodeFunctionData(
|
|
132
|
-
functionFragment: "initialize",
|
|
133
|
-
values: [PromiseOrValue<string>]
|
|
125
|
+
values: [BigNumberish]
|
|
134
126
|
): string;
|
|
127
|
+
encodeFunctionData(functionFragment: "initialize", values: [string]): string;
|
|
135
128
|
encodeFunctionData(
|
|
136
129
|
functionFragment: "isCrosschain",
|
|
137
130
|
values?: undefined
|
|
138
131
|
): string;
|
|
139
132
|
encodeFunctionData(
|
|
140
133
|
functionFragment: "isEntitled",
|
|
141
|
-
values: [
|
|
142
|
-
PromiseOrValue<BytesLike>,
|
|
143
|
-
PromiseOrValue<string>[],
|
|
144
|
-
PromiseOrValue<BytesLike>
|
|
145
|
-
]
|
|
134
|
+
values: [BytesLike, string[], BytesLike]
|
|
146
135
|
): string;
|
|
147
136
|
encodeFunctionData(
|
|
148
137
|
functionFragment: "moduleType",
|
|
@@ -151,11 +140,11 @@ export interface IRuleEntitlementInterface extends utils.Interface {
|
|
|
151
140
|
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
152
141
|
encodeFunctionData(
|
|
153
142
|
functionFragment: "removeEntitlement",
|
|
154
|
-
values: [
|
|
143
|
+
values: [BigNumberish]
|
|
155
144
|
): string;
|
|
156
145
|
encodeFunctionData(
|
|
157
146
|
functionFragment: "setEntitlement",
|
|
158
|
-
values: [
|
|
147
|
+
values: [BigNumberish, BytesLike]
|
|
159
148
|
): string;
|
|
160
149
|
|
|
161
150
|
decodeFunctionResult(
|
|
@@ -229,12 +218,12 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
229
218
|
): Promise<[string]>;
|
|
230
219
|
|
|
231
220
|
getEntitlementDataByRoleId(
|
|
232
|
-
roleId:
|
|
221
|
+
roleId: BigNumberish,
|
|
233
222
|
overrides?: CallOverrides
|
|
234
223
|
): Promise<[string]>;
|
|
235
224
|
|
|
236
225
|
getRuleData(
|
|
237
|
-
roleId:
|
|
226
|
+
roleId: BigNumberish,
|
|
238
227
|
overrides?: CallOverrides
|
|
239
228
|
): Promise<
|
|
240
229
|
[IRuleEntitlementBase.RuleDataStructOutput] & {
|
|
@@ -243,16 +232,16 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
243
232
|
>;
|
|
244
233
|
|
|
245
234
|
initialize(
|
|
246
|
-
space:
|
|
247
|
-
overrides?: Overrides & { from?:
|
|
235
|
+
space: string,
|
|
236
|
+
overrides?: Overrides & { from?: string }
|
|
248
237
|
): Promise<ContractTransaction>;
|
|
249
238
|
|
|
250
239
|
isCrosschain(overrides?: CallOverrides): Promise<[boolean]>;
|
|
251
240
|
|
|
252
241
|
isEntitled(
|
|
253
|
-
channelId:
|
|
254
|
-
user:
|
|
255
|
-
permission:
|
|
242
|
+
channelId: BytesLike,
|
|
243
|
+
user: string[],
|
|
244
|
+
permission: BytesLike,
|
|
256
245
|
overrides?: CallOverrides
|
|
257
246
|
): Promise<[boolean]>;
|
|
258
247
|
|
|
@@ -261,14 +250,14 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
261
250
|
name(overrides?: CallOverrides): Promise<[string]>;
|
|
262
251
|
|
|
263
252
|
removeEntitlement(
|
|
264
|
-
roleId:
|
|
265
|
-
overrides?: Overrides & { from?:
|
|
253
|
+
roleId: BigNumberish,
|
|
254
|
+
overrides?: Overrides & { from?: string }
|
|
266
255
|
): Promise<ContractTransaction>;
|
|
267
256
|
|
|
268
257
|
setEntitlement(
|
|
269
|
-
roleId:
|
|
270
|
-
entitlementData:
|
|
271
|
-
overrides?: Overrides & { from?:
|
|
258
|
+
roleId: BigNumberish,
|
|
259
|
+
entitlementData: BytesLike,
|
|
260
|
+
overrides?: Overrides & { from?: string }
|
|
272
261
|
): Promise<ContractTransaction>;
|
|
273
262
|
};
|
|
274
263
|
|
|
@@ -280,26 +269,26 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
280
269
|
): Promise<string>;
|
|
281
270
|
|
|
282
271
|
getEntitlementDataByRoleId(
|
|
283
|
-
roleId:
|
|
272
|
+
roleId: BigNumberish,
|
|
284
273
|
overrides?: CallOverrides
|
|
285
274
|
): Promise<string>;
|
|
286
275
|
|
|
287
276
|
getRuleData(
|
|
288
|
-
roleId:
|
|
277
|
+
roleId: BigNumberish,
|
|
289
278
|
overrides?: CallOverrides
|
|
290
279
|
): Promise<IRuleEntitlementBase.RuleDataStructOutput>;
|
|
291
280
|
|
|
292
281
|
initialize(
|
|
293
|
-
space:
|
|
294
|
-
overrides?: Overrides & { from?:
|
|
282
|
+
space: string,
|
|
283
|
+
overrides?: Overrides & { from?: string }
|
|
295
284
|
): Promise<ContractTransaction>;
|
|
296
285
|
|
|
297
286
|
isCrosschain(overrides?: CallOverrides): Promise<boolean>;
|
|
298
287
|
|
|
299
288
|
isEntitled(
|
|
300
|
-
channelId:
|
|
301
|
-
user:
|
|
302
|
-
permission:
|
|
289
|
+
channelId: BytesLike,
|
|
290
|
+
user: string[],
|
|
291
|
+
permission: BytesLike,
|
|
303
292
|
overrides?: CallOverrides
|
|
304
293
|
): Promise<boolean>;
|
|
305
294
|
|
|
@@ -308,14 +297,14 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
308
297
|
name(overrides?: CallOverrides): Promise<string>;
|
|
309
298
|
|
|
310
299
|
removeEntitlement(
|
|
311
|
-
roleId:
|
|
312
|
-
overrides?: Overrides & { from?:
|
|
300
|
+
roleId: BigNumberish,
|
|
301
|
+
overrides?: Overrides & { from?: string }
|
|
313
302
|
): Promise<ContractTransaction>;
|
|
314
303
|
|
|
315
304
|
setEntitlement(
|
|
316
|
-
roleId:
|
|
317
|
-
entitlementData:
|
|
318
|
-
overrides?: Overrides & { from?:
|
|
305
|
+
roleId: BigNumberish,
|
|
306
|
+
entitlementData: BytesLike,
|
|
307
|
+
overrides?: Overrides & { from?: string }
|
|
319
308
|
): Promise<ContractTransaction>;
|
|
320
309
|
|
|
321
310
|
callStatic: {
|
|
@@ -327,26 +316,23 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
327
316
|
): Promise<string>;
|
|
328
317
|
|
|
329
318
|
getEntitlementDataByRoleId(
|
|
330
|
-
roleId:
|
|
319
|
+
roleId: BigNumberish,
|
|
331
320
|
overrides?: CallOverrides
|
|
332
321
|
): Promise<string>;
|
|
333
322
|
|
|
334
323
|
getRuleData(
|
|
335
|
-
roleId:
|
|
324
|
+
roleId: BigNumberish,
|
|
336
325
|
overrides?: CallOverrides
|
|
337
326
|
): Promise<IRuleEntitlementBase.RuleDataStructOutput>;
|
|
338
327
|
|
|
339
|
-
initialize(
|
|
340
|
-
space: PromiseOrValue<string>,
|
|
341
|
-
overrides?: CallOverrides
|
|
342
|
-
): Promise<void>;
|
|
328
|
+
initialize(space: string, overrides?: CallOverrides): Promise<void>;
|
|
343
329
|
|
|
344
330
|
isCrosschain(overrides?: CallOverrides): Promise<boolean>;
|
|
345
331
|
|
|
346
332
|
isEntitled(
|
|
347
|
-
channelId:
|
|
348
|
-
user:
|
|
349
|
-
permission:
|
|
333
|
+
channelId: BytesLike,
|
|
334
|
+
user: string[],
|
|
335
|
+
permission: BytesLike,
|
|
350
336
|
overrides?: CallOverrides
|
|
351
337
|
): Promise<boolean>;
|
|
352
338
|
|
|
@@ -355,13 +341,13 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
355
341
|
name(overrides?: CallOverrides): Promise<string>;
|
|
356
342
|
|
|
357
343
|
removeEntitlement(
|
|
358
|
-
roleId:
|
|
344
|
+
roleId: BigNumberish,
|
|
359
345
|
overrides?: CallOverrides
|
|
360
346
|
): Promise<void>;
|
|
361
347
|
|
|
362
348
|
setEntitlement(
|
|
363
|
-
roleId:
|
|
364
|
-
entitlementData:
|
|
349
|
+
roleId: BigNumberish,
|
|
350
|
+
entitlementData: BytesLike,
|
|
365
351
|
overrides?: CallOverrides
|
|
366
352
|
): Promise<void>;
|
|
367
353
|
};
|
|
@@ -377,26 +363,26 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
377
363
|
): Promise<BigNumber>;
|
|
378
364
|
|
|
379
365
|
getEntitlementDataByRoleId(
|
|
380
|
-
roleId:
|
|
366
|
+
roleId: BigNumberish,
|
|
381
367
|
overrides?: CallOverrides
|
|
382
368
|
): Promise<BigNumber>;
|
|
383
369
|
|
|
384
370
|
getRuleData(
|
|
385
|
-
roleId:
|
|
371
|
+
roleId: BigNumberish,
|
|
386
372
|
overrides?: CallOverrides
|
|
387
373
|
): Promise<BigNumber>;
|
|
388
374
|
|
|
389
375
|
initialize(
|
|
390
|
-
space:
|
|
391
|
-
overrides?: Overrides & { from?:
|
|
376
|
+
space: string,
|
|
377
|
+
overrides?: Overrides & { from?: string }
|
|
392
378
|
): Promise<BigNumber>;
|
|
393
379
|
|
|
394
380
|
isCrosschain(overrides?: CallOverrides): Promise<BigNumber>;
|
|
395
381
|
|
|
396
382
|
isEntitled(
|
|
397
|
-
channelId:
|
|
398
|
-
user:
|
|
399
|
-
permission:
|
|
383
|
+
channelId: BytesLike,
|
|
384
|
+
user: string[],
|
|
385
|
+
permission: BytesLike,
|
|
400
386
|
overrides?: CallOverrides
|
|
401
387
|
): Promise<BigNumber>;
|
|
402
388
|
|
|
@@ -405,14 +391,14 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
405
391
|
name(overrides?: CallOverrides): Promise<BigNumber>;
|
|
406
392
|
|
|
407
393
|
removeEntitlement(
|
|
408
|
-
roleId:
|
|
409
|
-
overrides?: Overrides & { from?:
|
|
394
|
+
roleId: BigNumberish,
|
|
395
|
+
overrides?: Overrides & { from?: string }
|
|
410
396
|
): Promise<BigNumber>;
|
|
411
397
|
|
|
412
398
|
setEntitlement(
|
|
413
|
-
roleId:
|
|
414
|
-
entitlementData:
|
|
415
|
-
overrides?: Overrides & { from?:
|
|
399
|
+
roleId: BigNumberish,
|
|
400
|
+
entitlementData: BytesLike,
|
|
401
|
+
overrides?: Overrides & { from?: string }
|
|
416
402
|
): Promise<BigNumber>;
|
|
417
403
|
};
|
|
418
404
|
|
|
@@ -425,26 +411,26 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
425
411
|
): Promise<PopulatedTransaction>;
|
|
426
412
|
|
|
427
413
|
getEntitlementDataByRoleId(
|
|
428
|
-
roleId:
|
|
414
|
+
roleId: BigNumberish,
|
|
429
415
|
overrides?: CallOverrides
|
|
430
416
|
): Promise<PopulatedTransaction>;
|
|
431
417
|
|
|
432
418
|
getRuleData(
|
|
433
|
-
roleId:
|
|
419
|
+
roleId: BigNumberish,
|
|
434
420
|
overrides?: CallOverrides
|
|
435
421
|
): Promise<PopulatedTransaction>;
|
|
436
422
|
|
|
437
423
|
initialize(
|
|
438
|
-
space:
|
|
439
|
-
overrides?: Overrides & { from?:
|
|
424
|
+
space: string,
|
|
425
|
+
overrides?: Overrides & { from?: string }
|
|
440
426
|
): Promise<PopulatedTransaction>;
|
|
441
427
|
|
|
442
428
|
isCrosschain(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
443
429
|
|
|
444
430
|
isEntitled(
|
|
445
|
-
channelId:
|
|
446
|
-
user:
|
|
447
|
-
permission:
|
|
431
|
+
channelId: BytesLike,
|
|
432
|
+
user: string[],
|
|
433
|
+
permission: BytesLike,
|
|
448
434
|
overrides?: CallOverrides
|
|
449
435
|
): Promise<PopulatedTransaction>;
|
|
450
436
|
|
|
@@ -453,14 +439,14 @@ export interface IRuleEntitlement extends BaseContract {
|
|
|
453
439
|
name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
454
440
|
|
|
455
441
|
removeEntitlement(
|
|
456
|
-
roleId:
|
|
457
|
-
overrides?: Overrides & { from?:
|
|
442
|
+
roleId: BigNumberish,
|
|
443
|
+
overrides?: Overrides & { from?: string }
|
|
458
444
|
): Promise<PopulatedTransaction>;
|
|
459
445
|
|
|
460
446
|
setEntitlement(
|
|
461
|
-
roleId:
|
|
462
|
-
entitlementData:
|
|
463
|
-
overrides?: Overrides & { from?:
|
|
447
|
+
roleId: BigNumberish,
|
|
448
|
+
entitlementData: BytesLike,
|
|
449
|
+
overrides?: Overrides & { from?: string }
|
|
464
450
|
): Promise<PopulatedTransaction>;
|
|
465
451
|
};
|
|
466
452
|
}
|