@towns-protocol/generated 0.0.382 → 0.0.384

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 (45) hide show
  1. package/dev/.contracts-hash +1 -1
  2. package/dev/abis/Channels.abi.json +10 -10
  3. package/dev/abis/Channels.abi.ts +10 -10
  4. package/dev/abis/EntitlementsManager.abi.json +10 -10
  5. package/dev/abis/EntitlementsManager.abi.ts +10 -10
  6. package/dev/abis/IAppFactory.abi.json +224 -0
  7. package/dev/abis/IAppFactory.abi.ts +224 -0
  8. package/dev/abis/IAppFactoryBase.abi.json +72 -0
  9. package/dev/abis/IAppFactoryBase.abi.ts +72 -0
  10. package/dev/abis/IAppRegistry.abi.json +10 -10
  11. package/dev/abis/IAppRegistry.abi.ts +10 -10
  12. package/dev/abis/IAppRegistryBase.abi.json +10 -10
  13. package/dev/abis/IAppRegistryBase.abi.ts +10 -10
  14. package/dev/abis/ISimpleApp.abi.json +203 -0
  15. package/dev/abis/ISimpleApp.abi.ts +203 -0
  16. package/dev/abis/ISimpleAppBase.abi.json +146 -0
  17. package/dev/abis/ISimpleAppBase.abi.ts +146 -0
  18. package/dev/abis/ITownsApp.abi.json +194 -0
  19. package/dev/abis/ITownsApp.abi.ts +194 -0
  20. package/dev/abis/MembershipFacet.abi.json +10 -10
  21. package/dev/abis/MembershipFacet.abi.ts +10 -10
  22. package/dev/abis/PrepayFacet.abi.json +10 -10
  23. package/dev/abis/PrepayFacet.abi.ts +10 -10
  24. package/dev/abis/Roles.abi.json +10 -10
  25. package/dev/abis/Roles.abi.ts +10 -10
  26. package/dev/typings/IAppFactory.ts +284 -1
  27. package/dev/typings/ISimpleApp.ts +344 -0
  28. package/dev/typings/ITownsApp.ts +371 -0
  29. package/dev/typings/factories/Channels__factory.ts +10 -10
  30. package/dev/typings/factories/EntitlementsManager__factory.ts +10 -10
  31. package/dev/typings/factories/IAppFactory__factory.ts +224 -0
  32. package/dev/typings/factories/IAppRegistry__factory.ts +10 -10
  33. package/dev/typings/factories/ISimpleApp__factory.ts +224 -0
  34. package/dev/typings/factories/ITownsApp__factory.ts +215 -0
  35. package/dev/typings/factories/MembershipFacet__factory.ts +10 -10
  36. package/dev/typings/factories/PrepayFacet__factory.ts +10 -10
  37. package/dev/typings/factories/Roles__factory.ts +10 -10
  38. package/dev/typings/factories/index.ts +2 -1
  39. package/dev/typings/index.ts +4 -2
  40. package/package.json +3 -3
  41. package/scripts/prepare.js +10 -2
  42. package/dev/abis/SimpleApp.abi.json +0 -563
  43. package/dev/abis/SimpleApp.abi.ts +0 -563
  44. package/dev/typings/SimpleApp.ts +0 -923
  45. package/dev/typings/factories/SimpleApp__factory.ts +0 -620
@@ -0,0 +1,146 @@
1
+ [
2
+ {
3
+ "type": "event",
4
+ "name": "ClientUpdated",
5
+ "inputs": [
6
+ {
7
+ "name": "oldClient",
8
+ "type": "address",
9
+ "indexed": true,
10
+ "internalType": "address"
11
+ },
12
+ {
13
+ "name": "newClient",
14
+ "type": "address",
15
+ "indexed": true,
16
+ "internalType": "address"
17
+ }
18
+ ],
19
+ "anonymous": false
20
+ },
21
+ {
22
+ "type": "event",
23
+ "name": "PermissionsUpdated",
24
+ "inputs": [
25
+ {
26
+ "name": "permissions",
27
+ "type": "bytes32[]",
28
+ "indexed": false,
29
+ "internalType": "bytes32[]"
30
+ }
31
+ ],
32
+ "anonymous": false
33
+ },
34
+ {
35
+ "type": "event",
36
+ "name": "PricingUpdated",
37
+ "inputs": [
38
+ {
39
+ "name": "installPrice",
40
+ "type": "uint256",
41
+ "indexed": false,
42
+ "internalType": "uint256"
43
+ },
44
+ {
45
+ "name": "accessDuration",
46
+ "type": "uint48",
47
+ "indexed": false,
48
+ "internalType": "uint48"
49
+ }
50
+ ],
51
+ "anonymous": false
52
+ },
53
+ {
54
+ "type": "event",
55
+ "name": "SendCurrency",
56
+ "inputs": [
57
+ {
58
+ "name": "recipient",
59
+ "type": "address",
60
+ "indexed": true,
61
+ "internalType": "address"
62
+ },
63
+ {
64
+ "name": "currency",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "amount",
71
+ "type": "uint256",
72
+ "indexed": false,
73
+ "internalType": "uint256"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "event",
80
+ "name": "SimpleAppInitialized",
81
+ "inputs": [
82
+ {
83
+ "name": "owner",
84
+ "type": "address",
85
+ "indexed": true,
86
+ "internalType": "address"
87
+ },
88
+ {
89
+ "name": "client",
90
+ "type": "address",
91
+ "indexed": true,
92
+ "internalType": "address"
93
+ }
94
+ ],
95
+ "anonymous": false
96
+ },
97
+ {
98
+ "type": "event",
99
+ "name": "Withdrawal",
100
+ "inputs": [
101
+ {
102
+ "name": "recipient",
103
+ "type": "address",
104
+ "indexed": true,
105
+ "internalType": "address"
106
+ },
107
+ {
108
+ "name": "amount",
109
+ "type": "uint256",
110
+ "indexed": false,
111
+ "internalType": "uint256"
112
+ }
113
+ ],
114
+ "anonymous": false
115
+ },
116
+ {
117
+ "type": "error",
118
+ "name": "SimpleApp__InvalidAddressInput",
119
+ "inputs": []
120
+ },
121
+ {
122
+ "type": "error",
123
+ "name": "SimpleApp__InvalidAmount",
124
+ "inputs": []
125
+ },
126
+ {
127
+ "type": "error",
128
+ "name": "SimpleApp__InvalidCaller",
129
+ "inputs": []
130
+ },
131
+ {
132
+ "type": "error",
133
+ "name": "SimpleApp__InvalidCurrency",
134
+ "inputs": []
135
+ },
136
+ {
137
+ "type": "error",
138
+ "name": "SimpleApp__NoBalanceToWithdraw",
139
+ "inputs": []
140
+ },
141
+ {
142
+ "type": "error",
143
+ "name": "SimpleApp__ZeroAddress",
144
+ "inputs": []
145
+ }
146
+ ]
@@ -0,0 +1,146 @@
1
+ export default [
2
+ {
3
+ "type": "event",
4
+ "name": "ClientUpdated",
5
+ "inputs": [
6
+ {
7
+ "name": "oldClient",
8
+ "type": "address",
9
+ "indexed": true,
10
+ "internalType": "address"
11
+ },
12
+ {
13
+ "name": "newClient",
14
+ "type": "address",
15
+ "indexed": true,
16
+ "internalType": "address"
17
+ }
18
+ ],
19
+ "anonymous": false
20
+ },
21
+ {
22
+ "type": "event",
23
+ "name": "PermissionsUpdated",
24
+ "inputs": [
25
+ {
26
+ "name": "permissions",
27
+ "type": "bytes32[]",
28
+ "indexed": false,
29
+ "internalType": "bytes32[]"
30
+ }
31
+ ],
32
+ "anonymous": false
33
+ },
34
+ {
35
+ "type": "event",
36
+ "name": "PricingUpdated",
37
+ "inputs": [
38
+ {
39
+ "name": "installPrice",
40
+ "type": "uint256",
41
+ "indexed": false,
42
+ "internalType": "uint256"
43
+ },
44
+ {
45
+ "name": "accessDuration",
46
+ "type": "uint48",
47
+ "indexed": false,
48
+ "internalType": "uint48"
49
+ }
50
+ ],
51
+ "anonymous": false
52
+ },
53
+ {
54
+ "type": "event",
55
+ "name": "SendCurrency",
56
+ "inputs": [
57
+ {
58
+ "name": "recipient",
59
+ "type": "address",
60
+ "indexed": true,
61
+ "internalType": "address"
62
+ },
63
+ {
64
+ "name": "currency",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "amount",
71
+ "type": "uint256",
72
+ "indexed": false,
73
+ "internalType": "uint256"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "event",
80
+ "name": "SimpleAppInitialized",
81
+ "inputs": [
82
+ {
83
+ "name": "owner",
84
+ "type": "address",
85
+ "indexed": true,
86
+ "internalType": "address"
87
+ },
88
+ {
89
+ "name": "client",
90
+ "type": "address",
91
+ "indexed": true,
92
+ "internalType": "address"
93
+ }
94
+ ],
95
+ "anonymous": false
96
+ },
97
+ {
98
+ "type": "event",
99
+ "name": "Withdrawal",
100
+ "inputs": [
101
+ {
102
+ "name": "recipient",
103
+ "type": "address",
104
+ "indexed": true,
105
+ "internalType": "address"
106
+ },
107
+ {
108
+ "name": "amount",
109
+ "type": "uint256",
110
+ "indexed": false,
111
+ "internalType": "uint256"
112
+ }
113
+ ],
114
+ "anonymous": false
115
+ },
116
+ {
117
+ "type": "error",
118
+ "name": "SimpleApp__InvalidAddressInput",
119
+ "inputs": []
120
+ },
121
+ {
122
+ "type": "error",
123
+ "name": "SimpleApp__InvalidAmount",
124
+ "inputs": []
125
+ },
126
+ {
127
+ "type": "error",
128
+ "name": "SimpleApp__InvalidCaller",
129
+ "inputs": []
130
+ },
131
+ {
132
+ "type": "error",
133
+ "name": "SimpleApp__InvalidCurrency",
134
+ "inputs": []
135
+ },
136
+ {
137
+ "type": "error",
138
+ "name": "SimpleApp__NoBalanceToWithdraw",
139
+ "inputs": []
140
+ },
141
+ {
142
+ "type": "error",
143
+ "name": "SimpleApp__ZeroAddress",
144
+ "inputs": []
145
+ }
146
+ ] as const
@@ -0,0 +1,194 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "accessDuration",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "uint48",
10
+ "internalType": "uint48"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "executionManifest",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "tuple",
23
+ "internalType": "struct ExecutionManifest",
24
+ "components": [
25
+ {
26
+ "name": "executionFunctions",
27
+ "type": "tuple[]",
28
+ "internalType": "struct ManifestExecutionFunction[]",
29
+ "components": [
30
+ {
31
+ "name": "executionSelector",
32
+ "type": "bytes4",
33
+ "internalType": "bytes4"
34
+ },
35
+ {
36
+ "name": "skipRuntimeValidation",
37
+ "type": "bool",
38
+ "internalType": "bool"
39
+ },
40
+ {
41
+ "name": "allowGlobalValidation",
42
+ "type": "bool",
43
+ "internalType": "bool"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "executionHooks",
49
+ "type": "tuple[]",
50
+ "internalType": "struct ManifestExecutionHook[]",
51
+ "components": [
52
+ {
53
+ "name": "executionSelector",
54
+ "type": "bytes4",
55
+ "internalType": "bytes4"
56
+ },
57
+ {
58
+ "name": "entityId",
59
+ "type": "uint32",
60
+ "internalType": "uint32"
61
+ },
62
+ {
63
+ "name": "isPreHook",
64
+ "type": "bool",
65
+ "internalType": "bool"
66
+ },
67
+ {
68
+ "name": "isPostHook",
69
+ "type": "bool",
70
+ "internalType": "bool"
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "name": "interfaceIds",
76
+ "type": "bytes4[]",
77
+ "internalType": "bytes4[]"
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "stateMutability": "pure"
83
+ },
84
+ {
85
+ "type": "function",
86
+ "name": "initialize",
87
+ "inputs": [
88
+ {
89
+ "name": "data",
90
+ "type": "bytes",
91
+ "internalType": "bytes"
92
+ }
93
+ ],
94
+ "outputs": [],
95
+ "stateMutability": "nonpayable"
96
+ },
97
+ {
98
+ "type": "function",
99
+ "name": "installPrice",
100
+ "inputs": [],
101
+ "outputs": [
102
+ {
103
+ "name": "",
104
+ "type": "uint256",
105
+ "internalType": "uint256"
106
+ }
107
+ ],
108
+ "stateMutability": "view"
109
+ },
110
+ {
111
+ "type": "function",
112
+ "name": "moduleId",
113
+ "inputs": [],
114
+ "outputs": [
115
+ {
116
+ "name": "",
117
+ "type": "string",
118
+ "internalType": "string"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "moduleOwner",
126
+ "inputs": [],
127
+ "outputs": [
128
+ {
129
+ "name": "",
130
+ "type": "address",
131
+ "internalType": "address"
132
+ }
133
+ ],
134
+ "stateMutability": "view"
135
+ },
136
+ {
137
+ "type": "function",
138
+ "name": "onInstall",
139
+ "inputs": [
140
+ {
141
+ "name": "data",
142
+ "type": "bytes",
143
+ "internalType": "bytes"
144
+ }
145
+ ],
146
+ "outputs": [],
147
+ "stateMutability": "nonpayable"
148
+ },
149
+ {
150
+ "type": "function",
151
+ "name": "onUninstall",
152
+ "inputs": [
153
+ {
154
+ "name": "data",
155
+ "type": "bytes",
156
+ "internalType": "bytes"
157
+ }
158
+ ],
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable"
161
+ },
162
+ {
163
+ "type": "function",
164
+ "name": "requiredPermissions",
165
+ "inputs": [],
166
+ "outputs": [
167
+ {
168
+ "name": "",
169
+ "type": "bytes32[]",
170
+ "internalType": "bytes32[]"
171
+ }
172
+ ],
173
+ "stateMutability": "view"
174
+ },
175
+ {
176
+ "type": "function",
177
+ "name": "supportsInterface",
178
+ "inputs": [
179
+ {
180
+ "name": "interfaceId",
181
+ "type": "bytes4",
182
+ "internalType": "bytes4"
183
+ }
184
+ ],
185
+ "outputs": [
186
+ {
187
+ "name": "",
188
+ "type": "bool",
189
+ "internalType": "bool"
190
+ }
191
+ ],
192
+ "stateMutability": "view"
193
+ }
194
+ ]
@@ -0,0 +1,194 @@
1
+ export default [
2
+ {
3
+ "type": "function",
4
+ "name": "accessDuration",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "uint48",
10
+ "internalType": "uint48"
11
+ }
12
+ ],
13
+ "stateMutability": "view"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "executionManifest",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "tuple",
23
+ "internalType": "struct ExecutionManifest",
24
+ "components": [
25
+ {
26
+ "name": "executionFunctions",
27
+ "type": "tuple[]",
28
+ "internalType": "struct ManifestExecutionFunction[]",
29
+ "components": [
30
+ {
31
+ "name": "executionSelector",
32
+ "type": "bytes4",
33
+ "internalType": "bytes4"
34
+ },
35
+ {
36
+ "name": "skipRuntimeValidation",
37
+ "type": "bool",
38
+ "internalType": "bool"
39
+ },
40
+ {
41
+ "name": "allowGlobalValidation",
42
+ "type": "bool",
43
+ "internalType": "bool"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "executionHooks",
49
+ "type": "tuple[]",
50
+ "internalType": "struct ManifestExecutionHook[]",
51
+ "components": [
52
+ {
53
+ "name": "executionSelector",
54
+ "type": "bytes4",
55
+ "internalType": "bytes4"
56
+ },
57
+ {
58
+ "name": "entityId",
59
+ "type": "uint32",
60
+ "internalType": "uint32"
61
+ },
62
+ {
63
+ "name": "isPreHook",
64
+ "type": "bool",
65
+ "internalType": "bool"
66
+ },
67
+ {
68
+ "name": "isPostHook",
69
+ "type": "bool",
70
+ "internalType": "bool"
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ "name": "interfaceIds",
76
+ "type": "bytes4[]",
77
+ "internalType": "bytes4[]"
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "stateMutability": "pure"
83
+ },
84
+ {
85
+ "type": "function",
86
+ "name": "initialize",
87
+ "inputs": [
88
+ {
89
+ "name": "data",
90
+ "type": "bytes",
91
+ "internalType": "bytes"
92
+ }
93
+ ],
94
+ "outputs": [],
95
+ "stateMutability": "nonpayable"
96
+ },
97
+ {
98
+ "type": "function",
99
+ "name": "installPrice",
100
+ "inputs": [],
101
+ "outputs": [
102
+ {
103
+ "name": "",
104
+ "type": "uint256",
105
+ "internalType": "uint256"
106
+ }
107
+ ],
108
+ "stateMutability": "view"
109
+ },
110
+ {
111
+ "type": "function",
112
+ "name": "moduleId",
113
+ "inputs": [],
114
+ "outputs": [
115
+ {
116
+ "name": "",
117
+ "type": "string",
118
+ "internalType": "string"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "moduleOwner",
126
+ "inputs": [],
127
+ "outputs": [
128
+ {
129
+ "name": "",
130
+ "type": "address",
131
+ "internalType": "address"
132
+ }
133
+ ],
134
+ "stateMutability": "view"
135
+ },
136
+ {
137
+ "type": "function",
138
+ "name": "onInstall",
139
+ "inputs": [
140
+ {
141
+ "name": "data",
142
+ "type": "bytes",
143
+ "internalType": "bytes"
144
+ }
145
+ ],
146
+ "outputs": [],
147
+ "stateMutability": "nonpayable"
148
+ },
149
+ {
150
+ "type": "function",
151
+ "name": "onUninstall",
152
+ "inputs": [
153
+ {
154
+ "name": "data",
155
+ "type": "bytes",
156
+ "internalType": "bytes"
157
+ }
158
+ ],
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable"
161
+ },
162
+ {
163
+ "type": "function",
164
+ "name": "requiredPermissions",
165
+ "inputs": [],
166
+ "outputs": [
167
+ {
168
+ "name": "",
169
+ "type": "bytes32[]",
170
+ "internalType": "bytes32[]"
171
+ }
172
+ ],
173
+ "stateMutability": "view"
174
+ },
175
+ {
176
+ "type": "function",
177
+ "name": "supportsInterface",
178
+ "inputs": [
179
+ {
180
+ "name": "interfaceId",
181
+ "type": "bytes4",
182
+ "internalType": "bytes4"
183
+ }
184
+ ],
185
+ "outputs": [
186
+ {
187
+ "name": "",
188
+ "type": "bool",
189
+ "internalType": "bool"
190
+ }
191
+ ],
192
+ "stateMutability": "view"
193
+ }
194
+ ] as const