@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.
- package/dev/.contracts-hash +1 -1
- package/dev/abis/Channels.abi.json +1035 -63
- package/dev/abis/Channels.abi.ts +1035 -63
- package/dev/abis/EntitlementsManager.abi.json +982 -10
- package/dev/abis/EntitlementsManager.abi.ts +982 -10
- 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/ITipping.abi.json +3 -3
- package/dev/abis/ITipping.abi.ts +3 -3
- package/dev/abis/ITippingBase.abi.json +3 -3
- package/dev/abis/ITippingBase.abi.ts +3 -3
- package/dev/abis/MembershipFacet.abi.json +1000 -28
- package/dev/abis/MembershipFacet.abi.ts +1000 -28
- package/dev/abis/PrepayFacet.abi.json +993 -21
- package/dev/abis/PrepayFacet.abi.ts +993 -21
- package/dev/abis/Roles.abi.json +972 -0
- package/dev/abis/Roles.abi.ts +972 -0
- package/dev/typings/Channels.ts +657 -0
- package/dev/typings/EntitlementsManager.ts +658 -0
- package/dev/typings/IAppFactory.ts +154 -0
- package/dev/typings/IAppRegistry.ts +0 -73
- package/dev/typings/ITipping.ts +6 -6
- package/dev/typings/MembershipFacet.ts +657 -0
- package/dev/typings/PrepayFacet.ts +657 -0
- package/dev/typings/Roles.ts +657 -0
- package/dev/typings/factories/Channels__factory.ts +1036 -64
- package/dev/typings/factories/EntitlementsManager__factory.ts +982 -10
- package/dev/typings/factories/IAppFactory__factory.ts +108 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +0 -70
- package/dev/typings/factories/ITipping__factory.ts +3 -3
- package/dev/typings/factories/MembershipFacet__factory.ts +1000 -28
- package/dev/typings/factories/PrepayFacet__factory.ts +993 -21
- package/dev/typings/factories/Roles__factory.ts +973 -1
- 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",
|
|
@@ -277,10 +277,10 @@ const _abi = [
|
|
|
277
277
|
internalType: "uint256",
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
name: "
|
|
281
|
-
type: "
|
|
280
|
+
name: "data",
|
|
281
|
+
type: "bytes",
|
|
282
282
|
indexed: false,
|
|
283
|
-
internalType: "
|
|
283
|
+
internalType: "bytes",
|
|
284
284
|
},
|
|
285
285
|
],
|
|
286
286
|
anonymous: false,
|