@towns-protocol/generated 0.0.383 → 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
@@ -1 +1 @@
1
- 88d9b8e1320ffdd1d14818cb5ff81f10d83a41fb
1
+ 0d9de6103ee5af4a92a15177b478b7175f955b50:09e1d9a4fe7654535335bc08a7b697ba2698c528
@@ -1291,6 +1291,16 @@
1291
1291
  "name": "AppNotRegistered",
1292
1292
  "inputs": []
1293
1293
  },
1294
+ {
1295
+ "type": "error",
1296
+ "name": "AppRegistry__InvalidDuration",
1297
+ "inputs": []
1298
+ },
1299
+ {
1300
+ "type": "error",
1301
+ "name": "AppRegistry__InvalidPrice",
1302
+ "inputs": []
1303
+ },
1294
1304
  {
1295
1305
  "type": "error",
1296
1306
  "name": "AppRevoked",
@@ -1462,11 +1472,6 @@
1462
1472
  "name": "InvalidDataLength",
1463
1473
  "inputs": []
1464
1474
  },
1465
- {
1466
- "type": "error",
1467
- "name": "InvalidDuration",
1468
- "inputs": []
1469
- },
1470
1475
  {
1471
1476
  "type": "error",
1472
1477
  "name": "InvalidExpiration",
@@ -1477,11 +1482,6 @@
1477
1482
  "name": "InvalidManifest",
1478
1483
  "inputs": []
1479
1484
  },
1480
- {
1481
- "type": "error",
1482
- "name": "InvalidPrice",
1483
- "inputs": []
1484
- },
1485
1485
  {
1486
1486
  "type": "error",
1487
1487
  "name": "ModuleInstallCallbackFailed",
@@ -1291,6 +1291,16 @@ export default [
1291
1291
  "name": "AppNotRegistered",
1292
1292
  "inputs": []
1293
1293
  },
1294
+ {
1295
+ "type": "error",
1296
+ "name": "AppRegistry__InvalidDuration",
1297
+ "inputs": []
1298
+ },
1299
+ {
1300
+ "type": "error",
1301
+ "name": "AppRegistry__InvalidPrice",
1302
+ "inputs": []
1303
+ },
1294
1304
  {
1295
1305
  "type": "error",
1296
1306
  "name": "AppRevoked",
@@ -1462,11 +1472,6 @@ export default [
1462
1472
  "name": "InvalidDataLength",
1463
1473
  "inputs": []
1464
1474
  },
1465
- {
1466
- "type": "error",
1467
- "name": "InvalidDuration",
1468
- "inputs": []
1469
- },
1470
1475
  {
1471
1476
  "type": "error",
1472
1477
  "name": "InvalidExpiration",
@@ -1477,11 +1482,6 @@ export default [
1477
1482
  "name": "InvalidManifest",
1478
1483
  "inputs": []
1479
1484
  },
1480
- {
1481
- "type": "error",
1482
- "name": "InvalidPrice",
1483
- "inputs": []
1484
- },
1485
1485
  {
1486
1486
  "type": "error",
1487
1487
  "name": "ModuleInstallCallbackFailed",
@@ -994,6 +994,16 @@
994
994
  "name": "AppNotRegistered",
995
995
  "inputs": []
996
996
  },
997
+ {
998
+ "type": "error",
999
+ "name": "AppRegistry__InvalidDuration",
1000
+ "inputs": []
1001
+ },
1002
+ {
1003
+ "type": "error",
1004
+ "name": "AppRegistry__InvalidPrice",
1005
+ "inputs": []
1006
+ },
997
1007
  {
998
1008
  "type": "error",
999
1009
  "name": "AppRevoked",
@@ -1150,11 +1160,6 @@
1150
1160
  "name": "InvalidDataLength",
1151
1161
  "inputs": []
1152
1162
  },
1153
- {
1154
- "type": "error",
1155
- "name": "InvalidDuration",
1156
- "inputs": []
1157
- },
1158
1163
  {
1159
1164
  "type": "error",
1160
1165
  "name": "InvalidExpiration",
@@ -1165,11 +1170,6 @@
1165
1170
  "name": "InvalidManifest",
1166
1171
  "inputs": []
1167
1172
  },
1168
- {
1169
- "type": "error",
1170
- "name": "InvalidPrice",
1171
- "inputs": []
1172
- },
1173
1173
  {
1174
1174
  "type": "error",
1175
1175
  "name": "ModuleInstallCallbackFailed",
@@ -994,6 +994,16 @@ export default [
994
994
  "name": "AppNotRegistered",
995
995
  "inputs": []
996
996
  },
997
+ {
998
+ "type": "error",
999
+ "name": "AppRegistry__InvalidDuration",
1000
+ "inputs": []
1001
+ },
1002
+ {
1003
+ "type": "error",
1004
+ "name": "AppRegistry__InvalidPrice",
1005
+ "inputs": []
1006
+ },
997
1007
  {
998
1008
  "type": "error",
999
1009
  "name": "AppRevoked",
@@ -1150,11 +1160,6 @@ export default [
1150
1160
  "name": "InvalidDataLength",
1151
1161
  "inputs": []
1152
1162
  },
1153
- {
1154
- "type": "error",
1155
- "name": "InvalidDuration",
1156
- "inputs": []
1157
- },
1158
1163
  {
1159
1164
  "type": "error",
1160
1165
  "name": "InvalidExpiration",
@@ -1165,11 +1170,6 @@ export default [
1165
1170
  "name": "InvalidManifest",
1166
1171
  "inputs": []
1167
1172
  },
1168
- {
1169
- "type": "error",
1170
- "name": "InvalidPrice",
1171
- "inputs": []
1172
- },
1173
1173
  {
1174
1174
  "type": "error",
1175
1175
  "name": "ModuleInstallCallbackFailed",
@@ -1,4 +1,29 @@
1
1
  [
2
+ {
3
+ "type": "function",
4
+ "name": "addBeacons",
5
+ "inputs": [
6
+ {
7
+ "name": "beacons",
8
+ "type": "tuple[]",
9
+ "internalType": "struct IAppFactoryBase.Beacon[]",
10
+ "components": [
11
+ {
12
+ "name": "beaconId",
13
+ "type": "bytes32",
14
+ "internalType": "bytes32"
15
+ },
16
+ {
17
+ "name": "beacon",
18
+ "type": "address",
19
+ "internalType": "address"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "outputs": [],
25
+ "stateMutability": "nonpayable"
26
+ },
2
27
  {
3
28
  "type": "function",
4
29
  "name": "createApp",
@@ -50,6 +75,133 @@
50
75
  ],
51
76
  "stateMutability": "payable"
52
77
  },
78
+ {
79
+ "type": "function",
80
+ "name": "createAppByBeacon",
81
+ "inputs": [
82
+ {
83
+ "name": "beaconId",
84
+ "type": "bytes32",
85
+ "internalType": "bytes32"
86
+ },
87
+ {
88
+ "name": "params",
89
+ "type": "tuple",
90
+ "internalType": "struct IAppFactoryBase.AppParams",
91
+ "components": [
92
+ {
93
+ "name": "name",
94
+ "type": "string",
95
+ "internalType": "string"
96
+ },
97
+ {
98
+ "name": "permissions",
99
+ "type": "bytes32[]",
100
+ "internalType": "bytes32[]"
101
+ },
102
+ {
103
+ "name": "client",
104
+ "type": "address",
105
+ "internalType": "address"
106
+ },
107
+ {
108
+ "name": "installPrice",
109
+ "type": "uint256",
110
+ "internalType": "uint256"
111
+ },
112
+ {
113
+ "name": "accessDuration",
114
+ "type": "uint48",
115
+ "internalType": "uint48"
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "outputs": [
121
+ {
122
+ "name": "app",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "appId",
128
+ "type": "bytes32",
129
+ "internalType": "bytes32"
130
+ }
131
+ ],
132
+ "stateMutability": "payable"
133
+ },
134
+ {
135
+ "type": "function",
136
+ "name": "getBeacon",
137
+ "inputs": [
138
+ {
139
+ "name": "beaconId",
140
+ "type": "bytes32",
141
+ "internalType": "bytes32"
142
+ }
143
+ ],
144
+ "outputs": [
145
+ {
146
+ "name": "beacon",
147
+ "type": "address",
148
+ "internalType": "address"
149
+ }
150
+ ],
151
+ "stateMutability": "view"
152
+ },
153
+ {
154
+ "type": "function",
155
+ "name": "getBeacons",
156
+ "inputs": [],
157
+ "outputs": [
158
+ {
159
+ "name": "beaconIds",
160
+ "type": "bytes32[]",
161
+ "internalType": "bytes32[]"
162
+ }
163
+ ],
164
+ "stateMutability": "view"
165
+ },
166
+ {
167
+ "type": "function",
168
+ "name": "getEntryPoint",
169
+ "inputs": [],
170
+ "outputs": [
171
+ {
172
+ "name": "entryPoint",
173
+ "type": "address",
174
+ "internalType": "address"
175
+ }
176
+ ],
177
+ "stateMutability": "view"
178
+ },
179
+ {
180
+ "type": "function",
181
+ "name": "removeBeacons",
182
+ "inputs": [
183
+ {
184
+ "name": "beaconIds",
185
+ "type": "bytes32[]",
186
+ "internalType": "bytes32[]"
187
+ }
188
+ ],
189
+ "outputs": [],
190
+ "stateMutability": "nonpayable"
191
+ },
192
+ {
193
+ "type": "function",
194
+ "name": "setEntryPoint",
195
+ "inputs": [
196
+ {
197
+ "name": "entryPoint",
198
+ "type": "address",
199
+ "internalType": "address"
200
+ }
201
+ ],
202
+ "outputs": [],
203
+ "stateMutability": "nonpayable"
204
+ },
53
205
  {
54
206
  "type": "event",
55
207
  "name": "AppCreated",
@@ -69,6 +221,73 @@
69
221
  ],
70
222
  "anonymous": false
71
223
  },
224
+ {
225
+ "type": "event",
226
+ "name": "BeaconAdded",
227
+ "inputs": [
228
+ {
229
+ "name": "beaconId",
230
+ "type": "bytes32",
231
+ "indexed": true,
232
+ "internalType": "bytes32"
233
+ },
234
+ {
235
+ "name": "beacon",
236
+ "type": "address",
237
+ "indexed": true,
238
+ "internalType": "address"
239
+ }
240
+ ],
241
+ "anonymous": false
242
+ },
243
+ {
244
+ "type": "event",
245
+ "name": "BeaconRemoved",
246
+ "inputs": [
247
+ {
248
+ "name": "beaconId",
249
+ "type": "bytes32",
250
+ "indexed": true,
251
+ "internalType": "bytes32"
252
+ },
253
+ {
254
+ "name": "beacon",
255
+ "type": "address",
256
+ "indexed": true,
257
+ "internalType": "address"
258
+ }
259
+ ],
260
+ "anonymous": false
261
+ },
262
+ {
263
+ "type": "event",
264
+ "name": "EntryPointSet",
265
+ "inputs": [
266
+ {
267
+ "name": "oldEntryPoint",
268
+ "type": "address",
269
+ "indexed": true,
270
+ "internalType": "address"
271
+ },
272
+ {
273
+ "name": "newEntryPoint",
274
+ "type": "address",
275
+ "indexed": true,
276
+ "internalType": "address"
277
+ }
278
+ ],
279
+ "anonymous": false
280
+ },
281
+ {
282
+ "type": "error",
283
+ "name": "AppFactory__BeaconAlreadyExists",
284
+ "inputs": []
285
+ },
286
+ {
287
+ "type": "error",
288
+ "name": "AppFactory__BeaconNotFound",
289
+ "inputs": []
290
+ },
72
291
  {
73
292
  "type": "error",
74
293
  "name": "AppFactory__InvalidAddressInput",
@@ -83,5 +302,10 @@
83
302
  "type": "error",
84
303
  "name": "AppFactory__InvalidArrayInput",
85
304
  "inputs": []
305
+ },
306
+ {
307
+ "type": "error",
308
+ "name": "AppFactory__InvalidBeaconId",
309
+ "inputs": []
86
310
  }
87
311
  ]
@@ -1,4 +1,29 @@
1
1
  export default [
2
+ {
3
+ "type": "function",
4
+ "name": "addBeacons",
5
+ "inputs": [
6
+ {
7
+ "name": "beacons",
8
+ "type": "tuple[]",
9
+ "internalType": "struct IAppFactoryBase.Beacon[]",
10
+ "components": [
11
+ {
12
+ "name": "beaconId",
13
+ "type": "bytes32",
14
+ "internalType": "bytes32"
15
+ },
16
+ {
17
+ "name": "beacon",
18
+ "type": "address",
19
+ "internalType": "address"
20
+ }
21
+ ]
22
+ }
23
+ ],
24
+ "outputs": [],
25
+ "stateMutability": "nonpayable"
26
+ },
2
27
  {
3
28
  "type": "function",
4
29
  "name": "createApp",
@@ -50,6 +75,133 @@ export default [
50
75
  ],
51
76
  "stateMutability": "payable"
52
77
  },
78
+ {
79
+ "type": "function",
80
+ "name": "createAppByBeacon",
81
+ "inputs": [
82
+ {
83
+ "name": "beaconId",
84
+ "type": "bytes32",
85
+ "internalType": "bytes32"
86
+ },
87
+ {
88
+ "name": "params",
89
+ "type": "tuple",
90
+ "internalType": "struct IAppFactoryBase.AppParams",
91
+ "components": [
92
+ {
93
+ "name": "name",
94
+ "type": "string",
95
+ "internalType": "string"
96
+ },
97
+ {
98
+ "name": "permissions",
99
+ "type": "bytes32[]",
100
+ "internalType": "bytes32[]"
101
+ },
102
+ {
103
+ "name": "client",
104
+ "type": "address",
105
+ "internalType": "address"
106
+ },
107
+ {
108
+ "name": "installPrice",
109
+ "type": "uint256",
110
+ "internalType": "uint256"
111
+ },
112
+ {
113
+ "name": "accessDuration",
114
+ "type": "uint48",
115
+ "internalType": "uint48"
116
+ }
117
+ ]
118
+ }
119
+ ],
120
+ "outputs": [
121
+ {
122
+ "name": "app",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "appId",
128
+ "type": "bytes32",
129
+ "internalType": "bytes32"
130
+ }
131
+ ],
132
+ "stateMutability": "payable"
133
+ },
134
+ {
135
+ "type": "function",
136
+ "name": "getBeacon",
137
+ "inputs": [
138
+ {
139
+ "name": "beaconId",
140
+ "type": "bytes32",
141
+ "internalType": "bytes32"
142
+ }
143
+ ],
144
+ "outputs": [
145
+ {
146
+ "name": "beacon",
147
+ "type": "address",
148
+ "internalType": "address"
149
+ }
150
+ ],
151
+ "stateMutability": "view"
152
+ },
153
+ {
154
+ "type": "function",
155
+ "name": "getBeacons",
156
+ "inputs": [],
157
+ "outputs": [
158
+ {
159
+ "name": "beaconIds",
160
+ "type": "bytes32[]",
161
+ "internalType": "bytes32[]"
162
+ }
163
+ ],
164
+ "stateMutability": "view"
165
+ },
166
+ {
167
+ "type": "function",
168
+ "name": "getEntryPoint",
169
+ "inputs": [],
170
+ "outputs": [
171
+ {
172
+ "name": "entryPoint",
173
+ "type": "address",
174
+ "internalType": "address"
175
+ }
176
+ ],
177
+ "stateMutability": "view"
178
+ },
179
+ {
180
+ "type": "function",
181
+ "name": "removeBeacons",
182
+ "inputs": [
183
+ {
184
+ "name": "beaconIds",
185
+ "type": "bytes32[]",
186
+ "internalType": "bytes32[]"
187
+ }
188
+ ],
189
+ "outputs": [],
190
+ "stateMutability": "nonpayable"
191
+ },
192
+ {
193
+ "type": "function",
194
+ "name": "setEntryPoint",
195
+ "inputs": [
196
+ {
197
+ "name": "entryPoint",
198
+ "type": "address",
199
+ "internalType": "address"
200
+ }
201
+ ],
202
+ "outputs": [],
203
+ "stateMutability": "nonpayable"
204
+ },
53
205
  {
54
206
  "type": "event",
55
207
  "name": "AppCreated",
@@ -69,6 +221,73 @@ export default [
69
221
  ],
70
222
  "anonymous": false
71
223
  },
224
+ {
225
+ "type": "event",
226
+ "name": "BeaconAdded",
227
+ "inputs": [
228
+ {
229
+ "name": "beaconId",
230
+ "type": "bytes32",
231
+ "indexed": true,
232
+ "internalType": "bytes32"
233
+ },
234
+ {
235
+ "name": "beacon",
236
+ "type": "address",
237
+ "indexed": true,
238
+ "internalType": "address"
239
+ }
240
+ ],
241
+ "anonymous": false
242
+ },
243
+ {
244
+ "type": "event",
245
+ "name": "BeaconRemoved",
246
+ "inputs": [
247
+ {
248
+ "name": "beaconId",
249
+ "type": "bytes32",
250
+ "indexed": true,
251
+ "internalType": "bytes32"
252
+ },
253
+ {
254
+ "name": "beacon",
255
+ "type": "address",
256
+ "indexed": true,
257
+ "internalType": "address"
258
+ }
259
+ ],
260
+ "anonymous": false
261
+ },
262
+ {
263
+ "type": "event",
264
+ "name": "EntryPointSet",
265
+ "inputs": [
266
+ {
267
+ "name": "oldEntryPoint",
268
+ "type": "address",
269
+ "indexed": true,
270
+ "internalType": "address"
271
+ },
272
+ {
273
+ "name": "newEntryPoint",
274
+ "type": "address",
275
+ "indexed": true,
276
+ "internalType": "address"
277
+ }
278
+ ],
279
+ "anonymous": false
280
+ },
281
+ {
282
+ "type": "error",
283
+ "name": "AppFactory__BeaconAlreadyExists",
284
+ "inputs": []
285
+ },
286
+ {
287
+ "type": "error",
288
+ "name": "AppFactory__BeaconNotFound",
289
+ "inputs": []
290
+ },
72
291
  {
73
292
  "type": "error",
74
293
  "name": "AppFactory__InvalidAddressInput",
@@ -83,5 +302,10 @@ export default [
83
302
  "type": "error",
84
303
  "name": "AppFactory__InvalidArrayInput",
85
304
  "inputs": []
305
+ },
306
+ {
307
+ "type": "error",
308
+ "name": "AppFactory__InvalidBeaconId",
309
+ "inputs": []
86
310
  }
87
311
  ] as const