@towns-protocol/generated 0.0.377 → 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.
- package/dev/.contracts-hash +1 -1
- package/dev/abis/Channels.abi.json +0 -19
- package/dev/abis/Channels.abi.ts +0 -19
- package/dev/abis/EntitlementsManager.abi.json +0 -19
- package/dev/abis/EntitlementsManager.abi.ts +0 -19
- package/dev/abis/IAppFactory.abi.json +87 -0
- package/dev/abis/IAppFactory.abi.ts +87 -0
- package/dev/abis/IAppFactoryBase.abi.json +36 -0
- package/dev/abis/IAppFactoryBase.abi.ts +36 -0
- package/dev/abis/IAppRegistry.abi.json +0 -70
- package/dev/abis/IAppRegistry.abi.ts +0 -70
- package/dev/abis/IAppRegistryBase.abi.json +0 -19
- package/dev/abis/IAppRegistryBase.abi.ts +0 -19
- package/dev/abis/MembershipFacet.abi.json +0 -19
- package/dev/abis/MembershipFacet.abi.ts +0 -19
- package/dev/abis/PrepayFacet.abi.json +0 -19
- package/dev/abis/PrepayFacet.abi.ts +0 -19
- package/dev/abis/Roles.abi.json +0 -19
- package/dev/abis/Roles.abi.ts +0 -19
- package/dev/typings/Channels.ts +0 -19
- package/dev/typings/EntitlementsManager.ts +0 -19
- package/dev/typings/IAppFactory.ts +154 -0
- package/dev/typings/IAppRegistry.ts +0 -73
- package/dev/typings/MembershipFacet.ts +0 -19
- package/dev/typings/PrepayFacet.ts +0 -19
- package/dev/typings/Roles.ts +0 -19
- package/dev/typings/factories/Channels__factory.ts +0 -19
- package/dev/typings/factories/EntitlementsManager__factory.ts +0 -19
- package/dev/typings/factories/IAppFactory__factory.ts +108 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +0 -70
- package/dev/typings/factories/MembershipFacet__factory.ts +0 -19
- package/dev/typings/factories/PrepayFacet__factory.ts +0 -19
- package/dev/typings/factories/Roles__factory.ts +0 -19
- package/dev/typings/factories/index.ts +1 -0
- package/dev/typings/index.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IAppFactory, IAppFactoryInterface } from "../IAppFactory";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "createApp",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "params",
|
|
16
|
+
type: "tuple",
|
|
17
|
+
internalType: "struct IAppFactoryBase.AppParams",
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
name: "name",
|
|
21
|
+
type: "string",
|
|
22
|
+
internalType: "string",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "permissions",
|
|
26
|
+
type: "bytes32[]",
|
|
27
|
+
internalType: "bytes32[]",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "client",
|
|
31
|
+
type: "address",
|
|
32
|
+
internalType: "address",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "installPrice",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
internalType: "uint256",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "accessDuration",
|
|
41
|
+
type: "uint48",
|
|
42
|
+
internalType: "uint48",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
outputs: [
|
|
48
|
+
{
|
|
49
|
+
name: "app",
|
|
50
|
+
type: "address",
|
|
51
|
+
internalType: "address",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "appId",
|
|
55
|
+
type: "bytes32",
|
|
56
|
+
internalType: "bytes32",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
stateMutability: "payable",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: "event",
|
|
63
|
+
name: "AppCreated",
|
|
64
|
+
inputs: [
|
|
65
|
+
{
|
|
66
|
+
name: "app",
|
|
67
|
+
type: "address",
|
|
68
|
+
indexed: true,
|
|
69
|
+
internalType: "address",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "uid",
|
|
73
|
+
type: "bytes32",
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "bytes32",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
anonymous: false,
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: "error",
|
|
82
|
+
name: "AppFactory__InvalidAddressInput",
|
|
83
|
+
inputs: [],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: "error",
|
|
87
|
+
name: "AppFactory__InvalidAppName",
|
|
88
|
+
inputs: [],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "error",
|
|
92
|
+
name: "AppFactory__InvalidArrayInput",
|
|
93
|
+
inputs: [],
|
|
94
|
+
},
|
|
95
|
+
] as const;
|
|
96
|
+
|
|
97
|
+
export class IAppFactory__factory {
|
|
98
|
+
static readonly abi = _abi;
|
|
99
|
+
static createInterface(): IAppFactoryInterface {
|
|
100
|
+
return new utils.Interface(_abi) as IAppFactoryInterface;
|
|
101
|
+
}
|
|
102
|
+
static connect(
|
|
103
|
+
address: string,
|
|
104
|
+
signerOrProvider: Signer | Provider
|
|
105
|
+
): IAppFactory {
|
|
106
|
+
return new Contract(address, _abi, signerOrProvider) as IAppFactory;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -55,57 +55,6 @@ const _abi = [
|
|
|
55
55
|
],
|
|
56
56
|
stateMutability: "nonpayable",
|
|
57
57
|
},
|
|
58
|
-
{
|
|
59
|
-
type: "function",
|
|
60
|
-
name: "createApp",
|
|
61
|
-
inputs: [
|
|
62
|
-
{
|
|
63
|
-
name: "params",
|
|
64
|
-
type: "tuple",
|
|
65
|
-
internalType: "struct IAppRegistryBase.AppParams",
|
|
66
|
-
components: [
|
|
67
|
-
{
|
|
68
|
-
name: "name",
|
|
69
|
-
type: "string",
|
|
70
|
-
internalType: "string",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "permissions",
|
|
74
|
-
type: "bytes32[]",
|
|
75
|
-
internalType: "bytes32[]",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "client",
|
|
79
|
-
type: "address",
|
|
80
|
-
internalType: "address",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: "installPrice",
|
|
84
|
-
type: "uint256",
|
|
85
|
-
internalType: "uint256",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "accessDuration",
|
|
89
|
-
type: "uint48",
|
|
90
|
-
internalType: "uint48",
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
outputs: [
|
|
96
|
-
{
|
|
97
|
-
name: "app",
|
|
98
|
-
type: "address",
|
|
99
|
-
internalType: "address",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: "appId",
|
|
103
|
-
type: "bytes32",
|
|
104
|
-
internalType: "bytes32",
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
stateMutability: "payable",
|
|
108
|
-
},
|
|
109
58
|
{
|
|
110
59
|
type: "function",
|
|
111
60
|
name: "getAppByClient",
|
|
@@ -424,25 +373,6 @@ const _abi = [
|
|
|
424
373
|
],
|
|
425
374
|
anonymous: false,
|
|
426
375
|
},
|
|
427
|
-
{
|
|
428
|
-
type: "event",
|
|
429
|
-
name: "AppCreated",
|
|
430
|
-
inputs: [
|
|
431
|
-
{
|
|
432
|
-
name: "app",
|
|
433
|
-
type: "address",
|
|
434
|
-
indexed: true,
|
|
435
|
-
internalType: "address",
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
name: "uid",
|
|
439
|
-
type: "bytes32",
|
|
440
|
-
indexed: false,
|
|
441
|
-
internalType: "bytes32",
|
|
442
|
-
},
|
|
443
|
-
],
|
|
444
|
-
anonymous: false,
|
|
445
|
-
},
|
|
446
376
|
{
|
|
447
377
|
type: "event",
|
|
448
378
|
name: "AppInstalled",
|
|
@@ -353,25 +353,6 @@ const _abi = [
|
|
|
353
353
|
],
|
|
354
354
|
anonymous: false,
|
|
355
355
|
},
|
|
356
|
-
{
|
|
357
|
-
type: "event",
|
|
358
|
-
name: "AppCreated",
|
|
359
|
-
inputs: [
|
|
360
|
-
{
|
|
361
|
-
name: "app",
|
|
362
|
-
type: "address",
|
|
363
|
-
indexed: true,
|
|
364
|
-
internalType: "address",
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
name: "uid",
|
|
368
|
-
type: "bytes32",
|
|
369
|
-
indexed: false,
|
|
370
|
-
internalType: "bytes32",
|
|
371
|
-
},
|
|
372
|
-
],
|
|
373
|
-
anonymous: false,
|
|
374
|
-
},
|
|
375
356
|
{
|
|
376
357
|
type: "event",
|
|
377
358
|
name: "AppInstalled",
|
|
@@ -77,25 +77,6 @@ const _abi = [
|
|
|
77
77
|
],
|
|
78
78
|
anonymous: false,
|
|
79
79
|
},
|
|
80
|
-
{
|
|
81
|
-
type: "event",
|
|
82
|
-
name: "AppCreated",
|
|
83
|
-
inputs: [
|
|
84
|
-
{
|
|
85
|
-
name: "app",
|
|
86
|
-
type: "address",
|
|
87
|
-
indexed: true,
|
|
88
|
-
internalType: "address",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: "uid",
|
|
92
|
-
type: "bytes32",
|
|
93
|
-
indexed: false,
|
|
94
|
-
internalType: "bytes32",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
anonymous: false,
|
|
98
|
-
},
|
|
99
80
|
{
|
|
100
81
|
type: "event",
|
|
101
82
|
name: "AppInstalled",
|
|
@@ -385,25 +385,6 @@ const _abi = [
|
|
|
385
385
|
],
|
|
386
386
|
anonymous: false,
|
|
387
387
|
},
|
|
388
|
-
{
|
|
389
|
-
type: "event",
|
|
390
|
-
name: "AppCreated",
|
|
391
|
-
inputs: [
|
|
392
|
-
{
|
|
393
|
-
name: "app",
|
|
394
|
-
type: "address",
|
|
395
|
-
indexed: true,
|
|
396
|
-
internalType: "address",
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
name: "uid",
|
|
400
|
-
type: "bytes32",
|
|
401
|
-
indexed: false,
|
|
402
|
-
internalType: "bytes32",
|
|
403
|
-
},
|
|
404
|
-
],
|
|
405
|
-
anonymous: false,
|
|
406
|
-
},
|
|
407
388
|
{
|
|
408
389
|
type: "event",
|
|
409
390
|
name: "AppInstalled",
|
|
@@ -11,6 +11,7 @@ export { DropFacet__factory } from "./DropFacet__factory";
|
|
|
11
11
|
export { EntitlementsManager__factory } from "./EntitlementsManager__factory";
|
|
12
12
|
export { GuardianFacet__factory } from "./GuardianFacet__factory";
|
|
13
13
|
export { IAppAccount__factory } from "./IAppAccount__factory";
|
|
14
|
+
export { IAppFactory__factory } from "./IAppFactory__factory";
|
|
14
15
|
export { IAppInstaller__factory } from "./IAppInstaller__factory";
|
|
15
16
|
export { IAppRegistry__factory } from "./IAppRegistry__factory";
|
|
16
17
|
export { IArchitect__factory } from "./IArchitect__factory";
|
package/dev/typings/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type { DropFacet } from "./DropFacet";
|
|
|
15
15
|
export type { EntitlementsManager } from "./EntitlementsManager";
|
|
16
16
|
export type { GuardianFacet } from "./GuardianFacet";
|
|
17
17
|
export type { IAppAccount } from "./IAppAccount";
|
|
18
|
+
export type { IAppFactory } from "./IAppFactory";
|
|
18
19
|
export type { IAppInstaller } from "./IAppInstaller";
|
|
19
20
|
export type { IAppRegistry } from "./IAppRegistry";
|
|
20
21
|
export type { IArchitect } from "./IArchitect";
|
|
@@ -77,6 +78,7 @@ export { DropFacet__factory } from "./factories/DropFacet__factory";
|
|
|
77
78
|
export { EntitlementsManager__factory } from "./factories/EntitlementsManager__factory";
|
|
78
79
|
export { GuardianFacet__factory } from "./factories/GuardianFacet__factory";
|
|
79
80
|
export { IAppAccount__factory } from "./factories/IAppAccount__factory";
|
|
81
|
+
export { IAppFactory__factory } from "./factories/IAppFactory__factory";
|
|
80
82
|
export { IAppInstaller__factory } from "./factories/IAppInstaller__factory";
|
|
81
83
|
export { IAppRegistry__factory } from "./factories/IAppRegistry__factory";
|
|
82
84
|
export { IArchitect__factory } from "./factories/IArchitect__factory";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.378",
|
|
4
4
|
"packageManager": "yarn@3.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"ethers": "^5.8.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@towns-protocol/contracts": "^0.0.
|
|
16
|
+
"@towns-protocol/contracts": "^0.0.378"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"config/**/*",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0b3314fe323abc06b7fea39333aad09e2a3e19c7"
|
|
36
36
|
}
|