@towns-protocol/generated 0.0.244 → 0.0.246
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/abis/IAppRegistry.abi.json +297 -59
- package/dev/abis/IAppRegistry.abi.ts +297 -59
- package/dev/abis/IAppRegistryBase.abi.json +105 -0
- package/dev/abis/IAppRegistryBase.abi.ts +105 -0
- package/dev/abis/IEntitlementChecker.abi.json +5 -0
- package/dev/abis/IEntitlementChecker.abi.ts +5 -0
- package/dev/abis/IEntitlementCheckerBase.abi.json +5 -0
- package/dev/abis/IEntitlementCheckerBase.abi.ts +5 -0
- package/dev/abis/IEntitlementGated.abi.json +5 -0
- package/dev/abis/IEntitlementGated.abi.ts +5 -0
- package/dev/abis/IEntitlementGatedBase.abi.json +5 -0
- package/dev/abis/IEntitlementGatedBase.abi.ts +5 -0
- package/dev/abis/MembershipFacet.abi.json +5 -0
- package/dev/abis/MembershipFacet.abi.ts +5 -0
- package/dev/abis/MockEntitlementGated.abi.json +102 -0
- package/dev/abis/MockEntitlementGated.abi.ts +102 -0
- package/dev/typings/IAppRegistry.ts +373 -73
- package/dev/typings/MockEntitlementGated.ts +46 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +297 -59
- package/dev/typings/factories/IEntitlementChecker__factory.ts +5 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +6 -1
- package/dev/typings/factories/MockEntitlementGated__factory.ts +103 -1
- package/package.json +2 -2
|
@@ -37,6 +37,31 @@ export default [
|
|
|
37
37
|
],
|
|
38
38
|
"anonymous": false
|
|
39
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"type": "event",
|
|
42
|
+
"name": "AppInstalled",
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"name": "app",
|
|
46
|
+
"type": "address",
|
|
47
|
+
"indexed": true,
|
|
48
|
+
"internalType": "address"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "account",
|
|
52
|
+
"type": "address",
|
|
53
|
+
"indexed": true,
|
|
54
|
+
"internalType": "address"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "appId",
|
|
58
|
+
"type": "bytes32",
|
|
59
|
+
"indexed": true,
|
|
60
|
+
"internalType": "bytes32"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"anonymous": false
|
|
64
|
+
},
|
|
40
65
|
{
|
|
41
66
|
"type": "event",
|
|
42
67
|
"name": "AppRegistered",
|
|
@@ -56,6 +81,31 @@ export default [
|
|
|
56
81
|
],
|
|
57
82
|
"anonymous": false
|
|
58
83
|
},
|
|
84
|
+
{
|
|
85
|
+
"type": "event",
|
|
86
|
+
"name": "AppRenewed",
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "app",
|
|
90
|
+
"type": "address",
|
|
91
|
+
"indexed": true,
|
|
92
|
+
"internalType": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "account",
|
|
96
|
+
"type": "address",
|
|
97
|
+
"indexed": true,
|
|
98
|
+
"internalType": "address"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "appId",
|
|
102
|
+
"type": "bytes32",
|
|
103
|
+
"indexed": true,
|
|
104
|
+
"internalType": "bytes32"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"anonymous": false
|
|
108
|
+
},
|
|
59
109
|
{
|
|
60
110
|
"type": "event",
|
|
61
111
|
"name": "AppSchemaSet",
|
|
@@ -69,6 +119,31 @@ export default [
|
|
|
69
119
|
],
|
|
70
120
|
"anonymous": false
|
|
71
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"type": "event",
|
|
124
|
+
"name": "AppUninstalled",
|
|
125
|
+
"inputs": [
|
|
126
|
+
{
|
|
127
|
+
"name": "app",
|
|
128
|
+
"type": "address",
|
|
129
|
+
"indexed": true,
|
|
130
|
+
"internalType": "address"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "account",
|
|
134
|
+
"type": "address",
|
|
135
|
+
"indexed": true,
|
|
136
|
+
"internalType": "address"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "appId",
|
|
140
|
+
"type": "bytes32",
|
|
141
|
+
"indexed": true,
|
|
142
|
+
"internalType": "bytes32"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"anonymous": false
|
|
146
|
+
},
|
|
72
147
|
{
|
|
73
148
|
"type": "event",
|
|
74
149
|
"name": "AppUnregistered",
|
|
@@ -117,6 +192,11 @@ export default [
|
|
|
117
192
|
"name": "AppDoesNotImplementInterface",
|
|
118
193
|
"inputs": []
|
|
119
194
|
},
|
|
195
|
+
{
|
|
196
|
+
"type": "error",
|
|
197
|
+
"name": "AppNotInstalled",
|
|
198
|
+
"inputs": []
|
|
199
|
+
},
|
|
120
200
|
{
|
|
121
201
|
"type": "error",
|
|
122
202
|
"name": "AppNotRegistered",
|
|
@@ -132,6 +212,16 @@ export default [
|
|
|
132
212
|
"name": "BannedApp",
|
|
133
213
|
"inputs": []
|
|
134
214
|
},
|
|
215
|
+
{
|
|
216
|
+
"type": "error",
|
|
217
|
+
"name": "ClientAlreadyRegistered",
|
|
218
|
+
"inputs": []
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "error",
|
|
222
|
+
"name": "InsufficientPayment",
|
|
223
|
+
"inputs": []
|
|
224
|
+
},
|
|
135
225
|
{
|
|
136
226
|
"type": "error",
|
|
137
227
|
"name": "InvalidAddressInput",
|
|
@@ -152,6 +242,21 @@ export default [
|
|
|
152
242
|
"name": "InvalidArrayInput",
|
|
153
243
|
"inputs": []
|
|
154
244
|
},
|
|
245
|
+
{
|
|
246
|
+
"type": "error",
|
|
247
|
+
"name": "InvalidDuration",
|
|
248
|
+
"inputs": []
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "error",
|
|
252
|
+
"name": "InvalidPrice",
|
|
253
|
+
"inputs": []
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"type": "error",
|
|
257
|
+
"name": "NotAllowed",
|
|
258
|
+
"inputs": []
|
|
259
|
+
},
|
|
155
260
|
{
|
|
156
261
|
"type": "error",
|
|
157
262
|
"name": "NotAppOwner",
|
|
@@ -296,6 +296,11 @@
|
|
|
296
296
|
"name": "EntitlementChecker_InvalidOperator",
|
|
297
297
|
"inputs": []
|
|
298
298
|
},
|
|
299
|
+
{
|
|
300
|
+
"type": "error",
|
|
301
|
+
"name": "EntitlementChecker_InvalidValue",
|
|
302
|
+
"inputs": []
|
|
303
|
+
},
|
|
299
304
|
{
|
|
300
305
|
"type": "error",
|
|
301
306
|
"name": "EntitlementChecker_NoPendingRequests",
|
|
@@ -296,6 +296,11 @@ export default [
|
|
|
296
296
|
"name": "EntitlementChecker_InvalidOperator",
|
|
297
297
|
"inputs": []
|
|
298
298
|
},
|
|
299
|
+
{
|
|
300
|
+
"type": "error",
|
|
301
|
+
"name": "EntitlementChecker_InvalidValue",
|
|
302
|
+
"inputs": []
|
|
303
|
+
},
|
|
299
304
|
{
|
|
300
305
|
"type": "error",
|
|
301
306
|
"name": "EntitlementChecker_NoPendingRequests",
|
|
@@ -125,6 +125,11 @@
|
|
|
125
125
|
"name": "EntitlementChecker_InvalidOperator",
|
|
126
126
|
"inputs": []
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
"type": "error",
|
|
130
|
+
"name": "EntitlementChecker_InvalidValue",
|
|
131
|
+
"inputs": []
|
|
132
|
+
},
|
|
128
133
|
{
|
|
129
134
|
"type": "error",
|
|
130
135
|
"name": "EntitlementChecker_NoPendingRequests",
|
|
@@ -125,6 +125,11 @@ export default [
|
|
|
125
125
|
"name": "EntitlementChecker_InvalidOperator",
|
|
126
126
|
"inputs": []
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
"type": "error",
|
|
130
|
+
"name": "EntitlementChecker_InvalidValue",
|
|
131
|
+
"inputs": []
|
|
132
|
+
},
|
|
128
133
|
{
|
|
129
134
|
"type": "error",
|
|
130
135
|
"name": "EntitlementChecker_NoPendingRequests",
|
|
@@ -143,6 +143,11 @@
|
|
|
143
143
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
144
144
|
"inputs": []
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"type": "error",
|
|
148
|
+
"name": "EntitlementGated_InvalidValue",
|
|
149
|
+
"inputs": []
|
|
150
|
+
},
|
|
146
151
|
{
|
|
147
152
|
"type": "error",
|
|
148
153
|
"name": "EntitlementGated_NodeAlreadyVoted",
|
|
@@ -143,6 +143,11 @@ export default [
|
|
|
143
143
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
144
144
|
"inputs": []
|
|
145
145
|
},
|
|
146
|
+
{
|
|
147
|
+
"type": "error",
|
|
148
|
+
"name": "EntitlementGated_InvalidValue",
|
|
149
|
+
"inputs": []
|
|
150
|
+
},
|
|
146
151
|
{
|
|
147
152
|
"type": "error",
|
|
148
153
|
"name": "EntitlementGated_NodeAlreadyVoted",
|
|
@@ -1092,6 +1092,11 @@
|
|
|
1092
1092
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
1093
1093
|
"inputs": []
|
|
1094
1094
|
},
|
|
1095
|
+
{
|
|
1096
|
+
"type": "error",
|
|
1097
|
+
"name": "EntitlementGated_InvalidValue",
|
|
1098
|
+
"inputs": []
|
|
1099
|
+
},
|
|
1095
1100
|
{
|
|
1096
1101
|
"type": "error",
|
|
1097
1102
|
"name": "EntitlementGated_NodeAlreadyVoted",
|
|
@@ -1092,6 +1092,11 @@ export default [
|
|
|
1092
1092
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
1093
1093
|
"inputs": []
|
|
1094
1094
|
},
|
|
1095
|
+
{
|
|
1096
|
+
"type": "error",
|
|
1097
|
+
"name": "EntitlementGated_InvalidValue",
|
|
1098
|
+
"inputs": []
|
|
1099
|
+
},
|
|
1095
1100
|
{
|
|
1096
1101
|
"type": "error",
|
|
1097
1102
|
"name": "EntitlementGated_NodeAlreadyVoted",
|
|
@@ -325,6 +325,103 @@
|
|
|
325
325
|
],
|
|
326
326
|
"stateMutability": "view"
|
|
327
327
|
},
|
|
328
|
+
{
|
|
329
|
+
"type": "function",
|
|
330
|
+
"name": "joinSpace",
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"name": "receiver",
|
|
334
|
+
"type": "address",
|
|
335
|
+
"internalType": "address"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "roleIds",
|
|
339
|
+
"type": "uint256[]",
|
|
340
|
+
"internalType": "uint256[]"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "ruleData",
|
|
344
|
+
"type": "tuple",
|
|
345
|
+
"internalType": "struct IRuleEntitlementBase.RuleDataV2",
|
|
346
|
+
"components": [
|
|
347
|
+
{
|
|
348
|
+
"name": "operations",
|
|
349
|
+
"type": "tuple[]",
|
|
350
|
+
"internalType": "struct IRuleEntitlementBase.Operation[]",
|
|
351
|
+
"components": [
|
|
352
|
+
{
|
|
353
|
+
"name": "opType",
|
|
354
|
+
"type": "uint8",
|
|
355
|
+
"internalType": "enum IRuleEntitlementBase.CombinedOperationType"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "index",
|
|
359
|
+
"type": "uint8",
|
|
360
|
+
"internalType": "uint8"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "checkOperations",
|
|
366
|
+
"type": "tuple[]",
|
|
367
|
+
"internalType": "struct IRuleEntitlementBase.CheckOperationV2[]",
|
|
368
|
+
"components": [
|
|
369
|
+
{
|
|
370
|
+
"name": "opType",
|
|
371
|
+
"type": "uint8",
|
|
372
|
+
"internalType": "enum IRuleEntitlementBase.CheckOperationType"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "chainId",
|
|
376
|
+
"type": "uint256",
|
|
377
|
+
"internalType": "uint256"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "contractAddress",
|
|
381
|
+
"type": "address",
|
|
382
|
+
"internalType": "address"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "params",
|
|
386
|
+
"type": "bytes",
|
|
387
|
+
"internalType": "bytes"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "logicalOperations",
|
|
393
|
+
"type": "tuple[]",
|
|
394
|
+
"internalType": "struct IRuleEntitlementBase.LogicalOperation[]",
|
|
395
|
+
"components": [
|
|
396
|
+
{
|
|
397
|
+
"name": "logOpType",
|
|
398
|
+
"type": "uint8",
|
|
399
|
+
"internalType": "enum IRuleEntitlementBase.LogicalOperationType"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "leftOperationIndex",
|
|
403
|
+
"type": "uint8",
|
|
404
|
+
"internalType": "uint8"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "rightOperationIndex",
|
|
408
|
+
"type": "uint8",
|
|
409
|
+
"internalType": "uint8"
|
|
410
|
+
}
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"outputs": [
|
|
417
|
+
{
|
|
418
|
+
"name": "",
|
|
419
|
+
"type": "bytes32",
|
|
420
|
+
"internalType": "bytes32"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"stateMutability": "payable"
|
|
424
|
+
},
|
|
328
425
|
{
|
|
329
426
|
"type": "function",
|
|
330
427
|
"name": "postEntitlementCheckResult",
|
|
@@ -807,6 +904,11 @@
|
|
|
807
904
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
808
905
|
"inputs": []
|
|
809
906
|
},
|
|
907
|
+
{
|
|
908
|
+
"type": "error",
|
|
909
|
+
"name": "EntitlementGated_InvalidValue",
|
|
910
|
+
"inputs": []
|
|
911
|
+
},
|
|
810
912
|
{
|
|
811
913
|
"type": "error",
|
|
812
914
|
"name": "EntitlementGated_NodeAlreadyVoted",
|
|
@@ -325,6 +325,103 @@ export default [
|
|
|
325
325
|
],
|
|
326
326
|
"stateMutability": "view"
|
|
327
327
|
},
|
|
328
|
+
{
|
|
329
|
+
"type": "function",
|
|
330
|
+
"name": "joinSpace",
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"name": "receiver",
|
|
334
|
+
"type": "address",
|
|
335
|
+
"internalType": "address"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "roleIds",
|
|
339
|
+
"type": "uint256[]",
|
|
340
|
+
"internalType": "uint256[]"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "ruleData",
|
|
344
|
+
"type": "tuple",
|
|
345
|
+
"internalType": "struct IRuleEntitlementBase.RuleDataV2",
|
|
346
|
+
"components": [
|
|
347
|
+
{
|
|
348
|
+
"name": "operations",
|
|
349
|
+
"type": "tuple[]",
|
|
350
|
+
"internalType": "struct IRuleEntitlementBase.Operation[]",
|
|
351
|
+
"components": [
|
|
352
|
+
{
|
|
353
|
+
"name": "opType",
|
|
354
|
+
"type": "uint8",
|
|
355
|
+
"internalType": "enum IRuleEntitlementBase.CombinedOperationType"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "index",
|
|
359
|
+
"type": "uint8",
|
|
360
|
+
"internalType": "uint8"
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "checkOperations",
|
|
366
|
+
"type": "tuple[]",
|
|
367
|
+
"internalType": "struct IRuleEntitlementBase.CheckOperationV2[]",
|
|
368
|
+
"components": [
|
|
369
|
+
{
|
|
370
|
+
"name": "opType",
|
|
371
|
+
"type": "uint8",
|
|
372
|
+
"internalType": "enum IRuleEntitlementBase.CheckOperationType"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "chainId",
|
|
376
|
+
"type": "uint256",
|
|
377
|
+
"internalType": "uint256"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "contractAddress",
|
|
381
|
+
"type": "address",
|
|
382
|
+
"internalType": "address"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"name": "params",
|
|
386
|
+
"type": "bytes",
|
|
387
|
+
"internalType": "bytes"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "logicalOperations",
|
|
393
|
+
"type": "tuple[]",
|
|
394
|
+
"internalType": "struct IRuleEntitlementBase.LogicalOperation[]",
|
|
395
|
+
"components": [
|
|
396
|
+
{
|
|
397
|
+
"name": "logOpType",
|
|
398
|
+
"type": "uint8",
|
|
399
|
+
"internalType": "enum IRuleEntitlementBase.LogicalOperationType"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "leftOperationIndex",
|
|
403
|
+
"type": "uint8",
|
|
404
|
+
"internalType": "uint8"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "rightOperationIndex",
|
|
408
|
+
"type": "uint8",
|
|
409
|
+
"internalType": "uint8"
|
|
410
|
+
}
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"outputs": [
|
|
417
|
+
{
|
|
418
|
+
"name": "",
|
|
419
|
+
"type": "bytes32",
|
|
420
|
+
"internalType": "bytes32"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"stateMutability": "payable"
|
|
424
|
+
},
|
|
328
425
|
{
|
|
329
426
|
"type": "function",
|
|
330
427
|
"name": "postEntitlementCheckResult",
|
|
@@ -807,6 +904,11 @@ export default [
|
|
|
807
904
|
"name": "EntitlementGated_InvalidEntitlement",
|
|
808
905
|
"inputs": []
|
|
809
906
|
},
|
|
907
|
+
{
|
|
908
|
+
"type": "error",
|
|
909
|
+
"name": "EntitlementGated_InvalidValue",
|
|
910
|
+
"inputs": []
|
|
911
|
+
},
|
|
810
912
|
{
|
|
811
913
|
"type": "error",
|
|
812
914
|
"name": "EntitlementGated_NodeAlreadyVoted",
|