@towns-protocol/generated 0.0.353 → 0.0.355
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/IAppAccount.abi.json +93 -0
- package/dev/abis/IAppAccount.abi.ts +93 -0
- package/dev/abis/IAppAccountBase.abi.json +75 -0
- package/dev/abis/IAppAccountBase.abi.ts +75 -0
- package/dev/abis/IAppRegistry.abi.json +55 -0
- package/dev/abis/IAppRegistry.abi.ts +55 -0
- package/dev/abis/IAppRegistryBase.abi.json +55 -0
- package/dev/abis/IAppRegistryBase.abi.ts +55 -0
- package/dev/abis/SimpleApp.abi.json +26 -0
- package/dev/abis/SimpleApp.abi.ts +26 -0
- package/dev/typings/IAppAccount.ts +63 -0
- package/dev/typings/IAppRegistry.ts +55 -9
- package/dev/typings/SimpleApp.ts +53 -0
- package/dev/typings/factories/IAppAccount__factory.ts +93 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +55 -0
- package/dev/typings/factories/SimpleApp__factory.ts +27 -1
- package/dev/typings/factories/SubscriptionModuleFacet__factory.ts +1 -1
- package/package.json +3 -3
|
@@ -294,6 +294,19 @@ export default [
|
|
|
294
294
|
"outputs": [],
|
|
295
295
|
"stateMutability": "payable"
|
|
296
296
|
},
|
|
297
|
+
{
|
|
298
|
+
"type": "function",
|
|
299
|
+
"name": "updatePermissions",
|
|
300
|
+
"inputs": [
|
|
301
|
+
{
|
|
302
|
+
"name": "permissions",
|
|
303
|
+
"type": "bytes32[]",
|
|
304
|
+
"internalType": "bytes32[]"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"outputs": [],
|
|
308
|
+
"stateMutability": "nonpayable"
|
|
309
|
+
},
|
|
297
310
|
{
|
|
298
311
|
"type": "function",
|
|
299
312
|
"name": "updatePricing",
|
|
@@ -383,6 +396,19 @@ export default [
|
|
|
383
396
|
],
|
|
384
397
|
"anonymous": false
|
|
385
398
|
},
|
|
399
|
+
{
|
|
400
|
+
"type": "event",
|
|
401
|
+
"name": "PermissionsUpdated",
|
|
402
|
+
"inputs": [
|
|
403
|
+
{
|
|
404
|
+
"name": "permissions",
|
|
405
|
+
"type": "bytes32[]",
|
|
406
|
+
"indexed": false,
|
|
407
|
+
"internalType": "bytes32[]"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"anonymous": false
|
|
411
|
+
},
|
|
386
412
|
{
|
|
387
413
|
"type": "event",
|
|
388
414
|
"name": "PricingUpdated",
|
|
@@ -93,6 +93,7 @@ export interface IAppAccountInterface extends utils.Interface {
|
|
|
93
93
|
"onInstallApp(bytes32,bytes)": FunctionFragment;
|
|
94
94
|
"onRenewApp(bytes32,bytes)": FunctionFragment;
|
|
95
95
|
"onUninstallApp(bytes32,bytes)": FunctionFragment;
|
|
96
|
+
"onUpdateApp(bytes32,bytes)": FunctionFragment;
|
|
96
97
|
};
|
|
97
98
|
|
|
98
99
|
getFunction(
|
|
@@ -109,6 +110,7 @@ export interface IAppAccountInterface extends utils.Interface {
|
|
|
109
110
|
| "onInstallApp"
|
|
110
111
|
| "onRenewApp"
|
|
111
112
|
| "onUninstallApp"
|
|
113
|
+
| "onUpdateApp"
|
|
112
114
|
): FunctionFragment;
|
|
113
115
|
|
|
114
116
|
encodeFunctionData(
|
|
@@ -167,6 +169,10 @@ export interface IAppAccountInterface extends utils.Interface {
|
|
|
167
169
|
functionFragment: "onUninstallApp",
|
|
168
170
|
values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]
|
|
169
171
|
): string;
|
|
172
|
+
encodeFunctionData(
|
|
173
|
+
functionFragment: "onUpdateApp",
|
|
174
|
+
values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]
|
|
175
|
+
): string;
|
|
170
176
|
|
|
171
177
|
decodeFunctionResult(functionFragment: "disableApp", data: BytesLike): Result;
|
|
172
178
|
decodeFunctionResult(functionFragment: "enableApp", data: BytesLike): Result;
|
|
@@ -201,14 +207,20 @@ export interface IAppAccountInterface extends utils.Interface {
|
|
|
201
207
|
functionFragment: "onUninstallApp",
|
|
202
208
|
data: BytesLike
|
|
203
209
|
): Result;
|
|
210
|
+
decodeFunctionResult(
|
|
211
|
+
functionFragment: "onUpdateApp",
|
|
212
|
+
data: BytesLike
|
|
213
|
+
): Result;
|
|
204
214
|
|
|
205
215
|
events: {
|
|
206
216
|
"ExecutionInstalled(address,tuple)": EventFragment;
|
|
207
217
|
"ExecutionUninstalled(address,bool,tuple)": EventFragment;
|
|
218
|
+
"ExecutionUpdated(address,tuple)": EventFragment;
|
|
208
219
|
};
|
|
209
220
|
|
|
210
221
|
getEvent(nameOrSignatureOrTopic: "ExecutionInstalled"): EventFragment;
|
|
211
222
|
getEvent(nameOrSignatureOrTopic: "ExecutionUninstalled"): EventFragment;
|
|
223
|
+
getEvent(nameOrSignatureOrTopic: "ExecutionUpdated"): EventFragment;
|
|
212
224
|
}
|
|
213
225
|
|
|
214
226
|
export interface ExecutionInstalledEventObject {
|
|
@@ -236,6 +248,18 @@ export type ExecutionUninstalledEvent = TypedEvent<
|
|
|
236
248
|
export type ExecutionUninstalledEventFilter =
|
|
237
249
|
TypedEventFilter<ExecutionUninstalledEvent>;
|
|
238
250
|
|
|
251
|
+
export interface ExecutionUpdatedEventObject {
|
|
252
|
+
module: string;
|
|
253
|
+
manifest: ExecutionManifestStructOutput;
|
|
254
|
+
}
|
|
255
|
+
export type ExecutionUpdatedEvent = TypedEvent<
|
|
256
|
+
[string, ExecutionManifestStructOutput],
|
|
257
|
+
ExecutionUpdatedEventObject
|
|
258
|
+
>;
|
|
259
|
+
|
|
260
|
+
export type ExecutionUpdatedEventFilter =
|
|
261
|
+
TypedEventFilter<ExecutionUpdatedEvent>;
|
|
262
|
+
|
|
239
263
|
export interface IAppAccount extends BaseContract {
|
|
240
264
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
241
265
|
attach(addressOrName: string): this;
|
|
@@ -326,6 +350,12 @@ export interface IAppAccount extends BaseContract {
|
|
|
326
350
|
data: PromiseOrValue<BytesLike>,
|
|
327
351
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
328
352
|
): Promise<ContractTransaction>;
|
|
353
|
+
|
|
354
|
+
onUpdateApp(
|
|
355
|
+
appId: PromiseOrValue<BytesLike>,
|
|
356
|
+
data: PromiseOrValue<BytesLike>,
|
|
357
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
358
|
+
): Promise<ContractTransaction>;
|
|
329
359
|
};
|
|
330
360
|
|
|
331
361
|
disableApp(
|
|
@@ -392,6 +422,12 @@ export interface IAppAccount extends BaseContract {
|
|
|
392
422
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
393
423
|
): Promise<ContractTransaction>;
|
|
394
424
|
|
|
425
|
+
onUpdateApp(
|
|
426
|
+
appId: PromiseOrValue<BytesLike>,
|
|
427
|
+
data: PromiseOrValue<BytesLike>,
|
|
428
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
429
|
+
): Promise<ContractTransaction>;
|
|
430
|
+
|
|
395
431
|
callStatic: {
|
|
396
432
|
disableApp(
|
|
397
433
|
app: PromiseOrValue<string>,
|
|
@@ -456,6 +492,12 @@ export interface IAppAccount extends BaseContract {
|
|
|
456
492
|
data: PromiseOrValue<BytesLike>,
|
|
457
493
|
overrides?: CallOverrides
|
|
458
494
|
): Promise<void>;
|
|
495
|
+
|
|
496
|
+
onUpdateApp(
|
|
497
|
+
appId: PromiseOrValue<BytesLike>,
|
|
498
|
+
data: PromiseOrValue<BytesLike>,
|
|
499
|
+
overrides?: CallOverrides
|
|
500
|
+
): Promise<void>;
|
|
459
501
|
};
|
|
460
502
|
|
|
461
503
|
filters: {
|
|
@@ -478,6 +520,15 @@ export interface IAppAccount extends BaseContract {
|
|
|
478
520
|
success?: null,
|
|
479
521
|
manifest?: null
|
|
480
522
|
): ExecutionUninstalledEventFilter;
|
|
523
|
+
|
|
524
|
+
"ExecutionUpdated(address,tuple)"(
|
|
525
|
+
module?: PromiseOrValue<string> | null,
|
|
526
|
+
manifest?: null
|
|
527
|
+
): ExecutionUpdatedEventFilter;
|
|
528
|
+
ExecutionUpdated(
|
|
529
|
+
module?: PromiseOrValue<string> | null,
|
|
530
|
+
manifest?: null
|
|
531
|
+
): ExecutionUpdatedEventFilter;
|
|
481
532
|
};
|
|
482
533
|
|
|
483
534
|
estimateGas: {
|
|
@@ -544,6 +595,12 @@ export interface IAppAccount extends BaseContract {
|
|
|
544
595
|
data: PromiseOrValue<BytesLike>,
|
|
545
596
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
546
597
|
): Promise<BigNumber>;
|
|
598
|
+
|
|
599
|
+
onUpdateApp(
|
|
600
|
+
appId: PromiseOrValue<BytesLike>,
|
|
601
|
+
data: PromiseOrValue<BytesLike>,
|
|
602
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
603
|
+
): Promise<BigNumber>;
|
|
547
604
|
};
|
|
548
605
|
|
|
549
606
|
populateTransaction: {
|
|
@@ -610,5 +667,11 @@ export interface IAppAccount extends BaseContract {
|
|
|
610
667
|
data: PromiseOrValue<BytesLike>,
|
|
611
668
|
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
612
669
|
): Promise<PopulatedTransaction>;
|
|
670
|
+
|
|
671
|
+
onUpdateApp(
|
|
672
|
+
appId: PromiseOrValue<BytesLike>,
|
|
673
|
+
data: PromiseOrValue<BytesLike>,
|
|
674
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
675
|
+
): Promise<PopulatedTransaction>;
|
|
613
676
|
};
|
|
614
677
|
}
|
|
@@ -312,6 +312,8 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
312
312
|
"AppUninstalled(address,address,bytes32)": EventFragment;
|
|
313
313
|
"AppUnregistered(address,bytes32)": EventFragment;
|
|
314
314
|
"AppUpdated(address,bytes32)": EventFragment;
|
|
315
|
+
"AppUpdated(address,address,bytes32)": EventFragment;
|
|
316
|
+
"AppUpgraded(address,bytes32,bytes32)": EventFragment;
|
|
315
317
|
};
|
|
316
318
|
|
|
317
319
|
getEvent(nameOrSignatureOrTopic: "AppBanned"): EventFragment;
|
|
@@ -322,7 +324,13 @@ export interface IAppRegistryInterface extends utils.Interface {
|
|
|
322
324
|
getEvent(nameOrSignatureOrTopic: "AppSchemaSet"): EventFragment;
|
|
323
325
|
getEvent(nameOrSignatureOrTopic: "AppUninstalled"): EventFragment;
|
|
324
326
|
getEvent(nameOrSignatureOrTopic: "AppUnregistered"): EventFragment;
|
|
325
|
-
getEvent(
|
|
327
|
+
getEvent(
|
|
328
|
+
nameOrSignatureOrTopic: "AppUpdated(address,bytes32)"
|
|
329
|
+
): EventFragment;
|
|
330
|
+
getEvent(
|
|
331
|
+
nameOrSignatureOrTopic: "AppUpdated(address,address,bytes32)"
|
|
332
|
+
): EventFragment;
|
|
333
|
+
getEvent(nameOrSignatureOrTopic: "AppUpgraded"): EventFragment;
|
|
326
334
|
}
|
|
327
335
|
|
|
328
336
|
export interface AppBannedEventObject {
|
|
@@ -409,16 +417,42 @@ export type AppUnregisteredEvent = TypedEvent<
|
|
|
409
417
|
|
|
410
418
|
export type AppUnregisteredEventFilter = TypedEventFilter<AppUnregisteredEvent>;
|
|
411
419
|
|
|
412
|
-
export interface
|
|
420
|
+
export interface AppUpdated_address_bytes32_EventObject {
|
|
413
421
|
app: string;
|
|
414
422
|
uid: string;
|
|
415
423
|
}
|
|
416
|
-
export type
|
|
424
|
+
export type AppUpdated_address_bytes32_Event = TypedEvent<
|
|
417
425
|
[string, string],
|
|
418
|
-
|
|
426
|
+
AppUpdated_address_bytes32_EventObject
|
|
419
427
|
>;
|
|
420
428
|
|
|
421
|
-
export type
|
|
429
|
+
export type AppUpdated_address_bytes32_EventFilter =
|
|
430
|
+
TypedEventFilter<AppUpdated_address_bytes32_Event>;
|
|
431
|
+
|
|
432
|
+
export interface AppUpdated_address_address_bytes32_EventObject {
|
|
433
|
+
app: string;
|
|
434
|
+
account: string;
|
|
435
|
+
appId: string;
|
|
436
|
+
}
|
|
437
|
+
export type AppUpdated_address_address_bytes32_Event = TypedEvent<
|
|
438
|
+
[string, string, string],
|
|
439
|
+
AppUpdated_address_address_bytes32_EventObject
|
|
440
|
+
>;
|
|
441
|
+
|
|
442
|
+
export type AppUpdated_address_address_bytes32_EventFilter =
|
|
443
|
+
TypedEventFilter<AppUpdated_address_address_bytes32_Event>;
|
|
444
|
+
|
|
445
|
+
export interface AppUpgradedEventObject {
|
|
446
|
+
app: string;
|
|
447
|
+
oldVersionId: string;
|
|
448
|
+
newVersionId: string;
|
|
449
|
+
}
|
|
450
|
+
export type AppUpgradedEvent = TypedEvent<
|
|
451
|
+
[string, string, string],
|
|
452
|
+
AppUpgradedEventObject
|
|
453
|
+
>;
|
|
454
|
+
|
|
455
|
+
export type AppUpgradedEventFilter = TypedEventFilter<AppUpgradedEvent>;
|
|
422
456
|
|
|
423
457
|
export interface IAppRegistry extends BaseContract {
|
|
424
458
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -775,11 +809,23 @@ export interface IAppRegistry extends BaseContract {
|
|
|
775
809
|
"AppUpdated(address,bytes32)"(
|
|
776
810
|
app?: PromiseOrValue<string> | null,
|
|
777
811
|
uid?: null
|
|
778
|
-
):
|
|
779
|
-
AppUpdated(
|
|
812
|
+
): AppUpdated_address_bytes32_EventFilter;
|
|
813
|
+
"AppUpdated(address,address,bytes32)"(
|
|
780
814
|
app?: PromiseOrValue<string> | null,
|
|
781
|
-
|
|
782
|
-
|
|
815
|
+
account?: PromiseOrValue<string> | null,
|
|
816
|
+
appId?: PromiseOrValue<BytesLike> | null
|
|
817
|
+
): AppUpdated_address_address_bytes32_EventFilter;
|
|
818
|
+
|
|
819
|
+
"AppUpgraded(address,bytes32,bytes32)"(
|
|
820
|
+
app?: PromiseOrValue<string> | null,
|
|
821
|
+
oldVersionId?: PromiseOrValue<BytesLike> | null,
|
|
822
|
+
newVersionId?: PromiseOrValue<BytesLike> | null
|
|
823
|
+
): AppUpgradedEventFilter;
|
|
824
|
+
AppUpgraded(
|
|
825
|
+
app?: PromiseOrValue<string> | null,
|
|
826
|
+
oldVersionId?: PromiseOrValue<BytesLike> | null,
|
|
827
|
+
newVersionId?: PromiseOrValue<BytesLike> | null
|
|
828
|
+
): AppUpgradedEventFilter;
|
|
783
829
|
};
|
|
784
830
|
|
|
785
831
|
estimateGas: {
|
package/dev/typings/SimpleApp.ts
CHANGED
|
@@ -98,6 +98,7 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
98
98
|
"requiredPermissions()": FunctionFragment;
|
|
99
99
|
"supportsInterface(bytes4)": FunctionFragment;
|
|
100
100
|
"transferOwnership(address)": FunctionFragment;
|
|
101
|
+
"updatePermissions(bytes32[])": FunctionFragment;
|
|
101
102
|
"updatePricing(uint256,uint48)": FunctionFragment;
|
|
102
103
|
"withdrawETH(address)": FunctionFragment;
|
|
103
104
|
};
|
|
@@ -121,6 +122,7 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
121
122
|
| "requiredPermissions"
|
|
122
123
|
| "supportsInterface"
|
|
123
124
|
| "transferOwnership"
|
|
125
|
+
| "updatePermissions"
|
|
124
126
|
| "updatePricing"
|
|
125
127
|
| "withdrawETH"
|
|
126
128
|
): FunctionFragment;
|
|
@@ -193,6 +195,10 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
193
195
|
functionFragment: "transferOwnership",
|
|
194
196
|
values: [PromiseOrValue<string>]
|
|
195
197
|
): string;
|
|
198
|
+
encodeFunctionData(
|
|
199
|
+
functionFragment: "updatePermissions",
|
|
200
|
+
values: [PromiseOrValue<BytesLike>[]]
|
|
201
|
+
): string;
|
|
196
202
|
encodeFunctionData(
|
|
197
203
|
functionFragment: "updatePricing",
|
|
198
204
|
values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]
|
|
@@ -258,6 +264,10 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
258
264
|
functionFragment: "transferOwnership",
|
|
259
265
|
data: BytesLike
|
|
260
266
|
): Result;
|
|
267
|
+
decodeFunctionResult(
|
|
268
|
+
functionFragment: "updatePermissions",
|
|
269
|
+
data: BytesLike
|
|
270
|
+
): Result;
|
|
261
271
|
decodeFunctionResult(
|
|
262
272
|
functionFragment: "updatePricing",
|
|
263
273
|
data: BytesLike
|
|
@@ -272,6 +282,7 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
272
282
|
"OwnershipHandoverCanceled(address)": EventFragment;
|
|
273
283
|
"OwnershipHandoverRequested(address)": EventFragment;
|
|
274
284
|
"OwnershipTransferred(address,address)": EventFragment;
|
|
285
|
+
"PermissionsUpdated(bytes32[])": EventFragment;
|
|
275
286
|
"PricingUpdated(uint256,uint48)": EventFragment;
|
|
276
287
|
"Withdrawal(address,uint256)": EventFragment;
|
|
277
288
|
};
|
|
@@ -280,6 +291,7 @@ export interface SimpleAppInterface extends utils.Interface {
|
|
|
280
291
|
getEvent(nameOrSignatureOrTopic: "OwnershipHandoverCanceled"): EventFragment;
|
|
281
292
|
getEvent(nameOrSignatureOrTopic: "OwnershipHandoverRequested"): EventFragment;
|
|
282
293
|
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
294
|
+
getEvent(nameOrSignatureOrTopic: "PermissionsUpdated"): EventFragment;
|
|
283
295
|
getEvent(nameOrSignatureOrTopic: "PricingUpdated"): EventFragment;
|
|
284
296
|
getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment;
|
|
285
297
|
}
|
|
@@ -325,6 +337,17 @@ export type OwnershipTransferredEvent = TypedEvent<
|
|
|
325
337
|
export type OwnershipTransferredEventFilter =
|
|
326
338
|
TypedEventFilter<OwnershipTransferredEvent>;
|
|
327
339
|
|
|
340
|
+
export interface PermissionsUpdatedEventObject {
|
|
341
|
+
permissions: string[];
|
|
342
|
+
}
|
|
343
|
+
export type PermissionsUpdatedEvent = TypedEvent<
|
|
344
|
+
[string[]],
|
|
345
|
+
PermissionsUpdatedEventObject
|
|
346
|
+
>;
|
|
347
|
+
|
|
348
|
+
export type PermissionsUpdatedEventFilter =
|
|
349
|
+
TypedEventFilter<PermissionsUpdatedEvent>;
|
|
350
|
+
|
|
328
351
|
export interface PricingUpdatedEventObject {
|
|
329
352
|
installPrice: BigNumber;
|
|
330
353
|
accessDuration: number;
|
|
@@ -441,6 +464,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
441
464
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
442
465
|
): Promise<ContractTransaction>;
|
|
443
466
|
|
|
467
|
+
updatePermissions(
|
|
468
|
+
permissions: PromiseOrValue<BytesLike>[],
|
|
469
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
470
|
+
): Promise<ContractTransaction>;
|
|
471
|
+
|
|
444
472
|
updatePricing(
|
|
445
473
|
installPrice: PromiseOrValue<BigNumberish>,
|
|
446
474
|
accessDuration: PromiseOrValue<BigNumberish>,
|
|
@@ -520,6 +548,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
520
548
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
521
549
|
): Promise<ContractTransaction>;
|
|
522
550
|
|
|
551
|
+
updatePermissions(
|
|
552
|
+
permissions: PromiseOrValue<BytesLike>[],
|
|
553
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
554
|
+
): Promise<ContractTransaction>;
|
|
555
|
+
|
|
523
556
|
updatePricing(
|
|
524
557
|
installPrice: PromiseOrValue<BigNumberish>,
|
|
525
558
|
accessDuration: PromiseOrValue<BigNumberish>,
|
|
@@ -593,6 +626,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
593
626
|
overrides?: CallOverrides
|
|
594
627
|
): Promise<void>;
|
|
595
628
|
|
|
629
|
+
updatePermissions(
|
|
630
|
+
permissions: PromiseOrValue<BytesLike>[],
|
|
631
|
+
overrides?: CallOverrides
|
|
632
|
+
): Promise<void>;
|
|
633
|
+
|
|
596
634
|
updatePricing(
|
|
597
635
|
installPrice: PromiseOrValue<BigNumberish>,
|
|
598
636
|
accessDuration: PromiseOrValue<BigNumberish>,
|
|
@@ -632,6 +670,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
632
670
|
newOwner?: PromiseOrValue<string> | null
|
|
633
671
|
): OwnershipTransferredEventFilter;
|
|
634
672
|
|
|
673
|
+
"PermissionsUpdated(bytes32[])"(
|
|
674
|
+
permissions?: null
|
|
675
|
+
): PermissionsUpdatedEventFilter;
|
|
676
|
+
PermissionsUpdated(permissions?: null): PermissionsUpdatedEventFilter;
|
|
677
|
+
|
|
635
678
|
"PricingUpdated(uint256,uint48)"(
|
|
636
679
|
installPrice?: null,
|
|
637
680
|
accessDuration?: null
|
|
@@ -717,6 +760,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
717
760
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
718
761
|
): Promise<BigNumber>;
|
|
719
762
|
|
|
763
|
+
updatePermissions(
|
|
764
|
+
permissions: PromiseOrValue<BytesLike>[],
|
|
765
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
766
|
+
): Promise<BigNumber>;
|
|
767
|
+
|
|
720
768
|
updatePricing(
|
|
721
769
|
installPrice: PromiseOrValue<BigNumberish>,
|
|
722
770
|
accessDuration: PromiseOrValue<BigNumberish>,
|
|
@@ -797,6 +845,11 @@ export interface SimpleApp extends BaseContract {
|
|
|
797
845
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
798
846
|
): Promise<PopulatedTransaction>;
|
|
799
847
|
|
|
848
|
+
updatePermissions(
|
|
849
|
+
permissions: PromiseOrValue<BytesLike>[],
|
|
850
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
851
|
+
): Promise<PopulatedTransaction>;
|
|
852
|
+
|
|
800
853
|
updatePricing(
|
|
801
854
|
installPrice: PromiseOrValue<BigNumberish>,
|
|
802
855
|
accessDuration: PromiseOrValue<BigNumberish>,
|
|
@@ -234,6 +234,24 @@ const _abi = [
|
|
|
234
234
|
outputs: [],
|
|
235
235
|
stateMutability: "nonpayable",
|
|
236
236
|
},
|
|
237
|
+
{
|
|
238
|
+
type: "function",
|
|
239
|
+
name: "onUpdateApp",
|
|
240
|
+
inputs: [
|
|
241
|
+
{
|
|
242
|
+
name: "appId",
|
|
243
|
+
type: "bytes32",
|
|
244
|
+
internalType: "bytes32",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: "data",
|
|
248
|
+
type: "bytes",
|
|
249
|
+
internalType: "bytes",
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
outputs: [],
|
|
253
|
+
stateMutability: "nonpayable",
|
|
254
|
+
},
|
|
237
255
|
{
|
|
238
256
|
type: "event",
|
|
239
257
|
name: "ExecutionInstalled",
|
|
@@ -390,6 +408,81 @@ const _abi = [
|
|
|
390
408
|
],
|
|
391
409
|
anonymous: false,
|
|
392
410
|
},
|
|
411
|
+
{
|
|
412
|
+
type: "event",
|
|
413
|
+
name: "ExecutionUpdated",
|
|
414
|
+
inputs: [
|
|
415
|
+
{
|
|
416
|
+
name: "module",
|
|
417
|
+
type: "address",
|
|
418
|
+
indexed: true,
|
|
419
|
+
internalType: "address",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: "manifest",
|
|
423
|
+
type: "tuple",
|
|
424
|
+
indexed: false,
|
|
425
|
+
internalType: "struct ExecutionManifest",
|
|
426
|
+
components: [
|
|
427
|
+
{
|
|
428
|
+
name: "executionFunctions",
|
|
429
|
+
type: "tuple[]",
|
|
430
|
+
internalType: "struct ManifestExecutionFunction[]",
|
|
431
|
+
components: [
|
|
432
|
+
{
|
|
433
|
+
name: "executionSelector",
|
|
434
|
+
type: "bytes4",
|
|
435
|
+
internalType: "bytes4",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: "skipRuntimeValidation",
|
|
439
|
+
type: "bool",
|
|
440
|
+
internalType: "bool",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "allowGlobalValidation",
|
|
444
|
+
type: "bool",
|
|
445
|
+
internalType: "bool",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
name: "executionHooks",
|
|
451
|
+
type: "tuple[]",
|
|
452
|
+
internalType: "struct ManifestExecutionHook[]",
|
|
453
|
+
components: [
|
|
454
|
+
{
|
|
455
|
+
name: "executionSelector",
|
|
456
|
+
type: "bytes4",
|
|
457
|
+
internalType: "bytes4",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: "entityId",
|
|
461
|
+
type: "uint32",
|
|
462
|
+
internalType: "uint32",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
name: "isPreHook",
|
|
466
|
+
type: "bool",
|
|
467
|
+
internalType: "bool",
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
name: "isPostHook",
|
|
471
|
+
type: "bool",
|
|
472
|
+
internalType: "bool",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
name: "interfaceIds",
|
|
478
|
+
type: "bytes4[]",
|
|
479
|
+
internalType: "bytes4[]",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
anonymous: false,
|
|
485
|
+
},
|
|
393
486
|
{
|
|
394
487
|
type: "error",
|
|
395
488
|
name: "AppAlreadyInstalled",
|
|
@@ -628,6 +628,56 @@ const _abi = [
|
|
|
628
628
|
],
|
|
629
629
|
anonymous: false,
|
|
630
630
|
},
|
|
631
|
+
{
|
|
632
|
+
type: "event",
|
|
633
|
+
name: "AppUpdated",
|
|
634
|
+
inputs: [
|
|
635
|
+
{
|
|
636
|
+
name: "app",
|
|
637
|
+
type: "address",
|
|
638
|
+
indexed: true,
|
|
639
|
+
internalType: "address",
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
name: "account",
|
|
643
|
+
type: "address",
|
|
644
|
+
indexed: true,
|
|
645
|
+
internalType: "address",
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: "appId",
|
|
649
|
+
type: "bytes32",
|
|
650
|
+
indexed: true,
|
|
651
|
+
internalType: "bytes32",
|
|
652
|
+
},
|
|
653
|
+
],
|
|
654
|
+
anonymous: false,
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
type: "event",
|
|
658
|
+
name: "AppUpgraded",
|
|
659
|
+
inputs: [
|
|
660
|
+
{
|
|
661
|
+
name: "app",
|
|
662
|
+
type: "address",
|
|
663
|
+
indexed: true,
|
|
664
|
+
internalType: "address",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
name: "oldVersionId",
|
|
668
|
+
type: "bytes32",
|
|
669
|
+
indexed: true,
|
|
670
|
+
internalType: "bytes32",
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "newVersionId",
|
|
674
|
+
type: "bytes32",
|
|
675
|
+
indexed: true,
|
|
676
|
+
internalType: "bytes32",
|
|
677
|
+
},
|
|
678
|
+
],
|
|
679
|
+
anonymous: false,
|
|
680
|
+
},
|
|
631
681
|
{
|
|
632
682
|
type: "error",
|
|
633
683
|
name: "AppAlreadyRegistered",
|
|
@@ -663,6 +713,11 @@ const _abi = [
|
|
|
663
713
|
name: "ClientAlreadyRegistered",
|
|
664
714
|
inputs: [],
|
|
665
715
|
},
|
|
716
|
+
{
|
|
717
|
+
type: "error",
|
|
718
|
+
name: "ClientNotRegistered",
|
|
719
|
+
inputs: [],
|
|
720
|
+
},
|
|
666
721
|
{
|
|
667
722
|
type: "error",
|
|
668
723
|
name: "InsufficientPayment",
|
|
@@ -302,6 +302,19 @@ const _abi = [
|
|
|
302
302
|
outputs: [],
|
|
303
303
|
stateMutability: "payable",
|
|
304
304
|
},
|
|
305
|
+
{
|
|
306
|
+
type: "function",
|
|
307
|
+
name: "updatePermissions",
|
|
308
|
+
inputs: [
|
|
309
|
+
{
|
|
310
|
+
name: "permissions",
|
|
311
|
+
type: "bytes32[]",
|
|
312
|
+
internalType: "bytes32[]",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
outputs: [],
|
|
316
|
+
stateMutability: "nonpayable",
|
|
317
|
+
},
|
|
305
318
|
{
|
|
306
319
|
type: "function",
|
|
307
320
|
name: "updatePricing",
|
|
@@ -391,6 +404,19 @@ const _abi = [
|
|
|
391
404
|
],
|
|
392
405
|
anonymous: false,
|
|
393
406
|
},
|
|
407
|
+
{
|
|
408
|
+
type: "event",
|
|
409
|
+
name: "PermissionsUpdated",
|
|
410
|
+
inputs: [
|
|
411
|
+
{
|
|
412
|
+
name: "permissions",
|
|
413
|
+
type: "bytes32[]",
|
|
414
|
+
indexed: false,
|
|
415
|
+
internalType: "bytes32[]",
|
|
416
|
+
},
|
|
417
|
+
],
|
|
418
|
+
anonymous: false,
|
|
419
|
+
},
|
|
394
420
|
{
|
|
395
421
|
type: "event",
|
|
396
422
|
name: "PricingUpdated",
|
|
@@ -472,7 +498,7 @@ const _abi = [
|
|
|
472
498
|
] as const;
|
|
473
499
|
|
|
474
500
|
const _bytecode =
|
|
475
|
-
"
|
|
501
|
+
"0x6080604052348015600e575f5ffd5b506113028061001c5f395ff3fe60806040526004361061015a575f3560e01c8063715018a6116100bb578063ae5628c611610071578063f04e283e11610057578063f04e283e14610368578063f2fde38b1461037b578063fee81cf41461038e575f5ffd5b8063ae5628c614610328578063e6a3a3e014610349575f5ffd5b80638da5cb5b116100a15780638da5cb5b146102b2578063a1308f27146102e5578063a41c85be14610306575f5ffd5b8063715018a6146102aa5780638a91b0e31461028c575f5ffd5b806336edab1f1161011057806354d1f13d116100f657806354d1f13d14610265578063690d83201461026d5780636d61fe701461028c575f5ffd5b806336edab1f1461020d578063452c04b11461022c575f5ffd5b80632382f046116101405780632382f046146101c557806325692962146101e45780632e7ad41f146101ec575f5ffd5b806301ffc9a7146101665780630a88fcad1461019a575f5ffd5b36610162575b005b5f5ffd5b348015610171575f5ffd5b50610185610180366004610c02565b6103bf565b60405190151581526020015b60405180910390f35b3480156101a5575f5ffd5b506101ae6104a3565b60405165ffffffffffff9091168152602001610191565b3480156101d0575f5ffd5b506101606101df366004610c62565b6104d9565b6101606105bb565b3480156101f7575f5ffd5b50610200610608565b6040516101919190610c8c565b348015610218575f5ffd5b50610160610227366004610d77565b610680565b348015610237575f5ffd5b50610240610791565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610191565b61016061079a565b348015610278575f5ffd5b50610160610287366004610e0f565b6107d3565b348015610297575f5ffd5b506101606102a6366004610e28565b5050565b6101606108af565b3480156102bd575f5ffd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754610240565b3480156102f0575f5ffd5b506102f96108c2565b6040516101919190610e67565b348015610311575f5ffd5b5061031a61096d565b604051908152602001610191565b348015610333575f5ffd5b5061033c610996565b6040516101919190610f98565b348015610354575f5ffd5b5061016061036336600461109f565b6109bd565b610160610376366004610e0f565b610a43565b610160610389366004610e0f565b610a80565b348015610399575f5ffd5b5061031a6103a8366004610e0f565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fae5628c600000000000000000000000000000000000000000000000000000000148061045157507fffffffff0000000000000000000000000000000000000000000000000000000082167f46c0c1b400000000000000000000000000000000000000000000000000000000145b8061049d57507fffffffff0000000000000000000000000000000000000000000000000000000082167fc5c2a9bd00000000000000000000000000000000000000000000000000000000145b92915050565b5f6104d47f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be035465ffffffffffff1690565b905090565b6104e1610aa6565b7f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be028290557f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be0380547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff83169081179091556040805184815260208101929092527f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be00917f98dae91994793f47b29bee1a4ebfd76c60d7b1c071e23c6926cff278ebac379891015b60405180910390a1505050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f5fa250565b60605f7f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be006001810180546040805160208084028201810190925282815293945083018282801561067557602002820191905f5260205f20905b815481526020019060010190808311610661575b505050505091505090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156106d15760018160011c14303b106106c85763f92ee8a95f526004601cfd5b818160ff1b1b91505b506106db88610adb565b7f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be0080610708888a8361119c565b50610717600182018787610ba5565b506002810184905560030180547fffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000001665ffffffffffff84161790558015610787576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b5050505050505050565b5f6104d4610b40565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f5fa2565b6107db610aa6565b73ffffffffffffffffffffffffffffffffffffffff811661081f5761081f7fd92e233d00000000000000000000000000000000000000000000000000000000610b69565b475f819003610851576108517fbbd8170800000000000000000000000000000000000000000000000000000000610b69565b61085b8282610b71565b8173ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65826040516108a391815260200190565b60405180910390a25050565b6108b7610aa6565b6108c05f610adb565b565b7f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be0080546060919081906108f4906110ff565b80601f0160208091040260200160405190810160405280929190818152602001828054610920906110ff565b80156106755780601f1061094257610100808354040283529160200191610675565b820191905f5260205f20905b81548152906001019060200180831161094e5750939695505050505050565b5f6104d47f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be025490565b6109ba60405180606001604052806060815260200160608152602001606081525090565b90565b6109c5610aa6565b7f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be00610a117f83d7ef17df984d8e84ee79017942cb0329f48e2d537ef8c418bc299c6878be018484610ba5565b507f3afc3680664ba97756a728984fde0b6031be4a50f7b8b71587ba6533e853efe983836040516105ae9291906112b2565b610a4b610aa6565b63389a75e1600c52805f526020600c208054421115610a7157636f5e88185f526004601cfd5b5f9055610a7d81610adb565b50565b610a88610aa6565b8060601b610a9d57637448fbae5f526004601cfd5b610a7d81610adb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146108c0576382b429005f526004601cfd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f6104d47fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b805f5260045ffd5b6102a673ffffffffffffffffffffffffffffffffffffffff8316825f385f3884865af16102a65763b12d13eb5f526004601cfd5b828054828255905f5260205f20908101928215610bde579160200282015b82811115610bde578235825591602001919060010190610bc3565b50610bea929150610bee565b5090565b5b80821115610bea575f8155600101610bef565b5f60208284031215610c12575f5ffd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610c41575f5ffd5b9392505050565b803565ffffffffffff81168114610c5d575f5ffd5b919050565b5f5f60408385031215610c73575f5ffd5b82359150610c8360208401610c48565b90509250929050565b602080825282518282018190525f918401906040840190835b81811015610cc3578351835260209384019390920191600101610ca5565b509095945050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610c5d575f5ffd5b5f5f83601f840112610d01575f5ffd5b50813567ffffffffffffffff811115610d18575f5ffd5b602083019150836020828501011115610d2f575f5ffd5b9250929050565b5f5f83601f840112610d46575f5ffd5b50813567ffffffffffffffff811115610d5d575f5ffd5b6020830191508360208260051b8501011115610d2f575f5ffd5b5f5f5f5f5f5f5f60a0888a031215610d8d575f5ffd5b610d9688610cce565b9650602088013567ffffffffffffffff811115610db1575f5ffd5b610dbd8a828b01610cf1565b909750955050604088013567ffffffffffffffff811115610ddc575f5ffd5b610de88a828b01610d36565b90955093505060608801359150610e0160808901610c48565b905092959891949750929550565b5f60208284031215610e1f575f5ffd5b610c4182610cce565b5f5f60208385031215610e39575f5ffd5b823567ffffffffffffffff811115610e4f575f5ffd5b610e5b85828601610cf1565b90969095509350505050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b5f8151808452602084019350602083015f5b82811015610f3c5781517fffffffff00000000000000000000000000000000000000000000000000000000815116875263ffffffff602082015116602088015260408101511515604088015260608101511515606088015250608086019550602082019150600181019050610ecc565b5093949350505050565b5f8151808452602084019350602083015f5b82811015610f3c5781517fffffffff0000000000000000000000000000000000000000000000000000000016865260209586019590910190600101610f58565b602080825282516060838301528051608084018190525f929190910190829060a08501905b8083101561101d5783517fffffffff00000000000000000000000000000000000000000000000000000000815116835260208101511515602084015260408101511515604084015250606082019150602084019350600183019250610fbd565b50602086015192507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08582030160408601526110598184610eba565b9250505060408401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08483030160608501526110968282610f46565b95945050505050565b5f5f602083850312156110b0575f5ffd5b823567ffffffffffffffff8111156110c6575f5ffd5b610e5b85828601610d36565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b600181811c9082168061111357607f821691505b60208210810361114a577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b601f82111561119757805f5260205f20601f840160051c810160208510156111755750805b601f840160051c820191505b81811015611194575f8155600101611181565b50505b505050565b67ffffffffffffffff8311156111b4576111b46110d2565b6111c8836111c283546110ff565b83611150565b5f601f841160018114611218575f85156111e25750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355611194565b5f838152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08716915b828110156112655786850135825560209485019460019092019101611245565b50868210156112a0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555050505050565b602081528160208201525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156112e9575f5ffd5b8260051b8085604085013791909101604001939250505056";
|
|
476
502
|
|
|
477
503
|
type SimpleAppConstructorParams =
|
|
478
504
|
| [signer?: Signer]
|