@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
@@ -18,6 +18,73 @@
18
18
  ],
19
19
  "anonymous": false
20
20
  },
21
+ {
22
+ "type": "event",
23
+ "name": "BeaconAdded",
24
+ "inputs": [
25
+ {
26
+ "name": "beaconId",
27
+ "type": "bytes32",
28
+ "indexed": true,
29
+ "internalType": "bytes32"
30
+ },
31
+ {
32
+ "name": "beacon",
33
+ "type": "address",
34
+ "indexed": true,
35
+ "internalType": "address"
36
+ }
37
+ ],
38
+ "anonymous": false
39
+ },
40
+ {
41
+ "type": "event",
42
+ "name": "BeaconRemoved",
43
+ "inputs": [
44
+ {
45
+ "name": "beaconId",
46
+ "type": "bytes32",
47
+ "indexed": true,
48
+ "internalType": "bytes32"
49
+ },
50
+ {
51
+ "name": "beacon",
52
+ "type": "address",
53
+ "indexed": true,
54
+ "internalType": "address"
55
+ }
56
+ ],
57
+ "anonymous": false
58
+ },
59
+ {
60
+ "type": "event",
61
+ "name": "EntryPointSet",
62
+ "inputs": [
63
+ {
64
+ "name": "oldEntryPoint",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "newEntryPoint",
71
+ "type": "address",
72
+ "indexed": true,
73
+ "internalType": "address"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "error",
80
+ "name": "AppFactory__BeaconAlreadyExists",
81
+ "inputs": []
82
+ },
83
+ {
84
+ "type": "error",
85
+ "name": "AppFactory__BeaconNotFound",
86
+ "inputs": []
87
+ },
21
88
  {
22
89
  "type": "error",
23
90
  "name": "AppFactory__InvalidAddressInput",
@@ -32,5 +99,10 @@
32
99
  "type": "error",
33
100
  "name": "AppFactory__InvalidArrayInput",
34
101
  "inputs": []
102
+ },
103
+ {
104
+ "type": "error",
105
+ "name": "AppFactory__InvalidBeaconId",
106
+ "inputs": []
35
107
  }
36
108
  ]
@@ -18,6 +18,73 @@ export default [
18
18
  ],
19
19
  "anonymous": false
20
20
  },
21
+ {
22
+ "type": "event",
23
+ "name": "BeaconAdded",
24
+ "inputs": [
25
+ {
26
+ "name": "beaconId",
27
+ "type": "bytes32",
28
+ "indexed": true,
29
+ "internalType": "bytes32"
30
+ },
31
+ {
32
+ "name": "beacon",
33
+ "type": "address",
34
+ "indexed": true,
35
+ "internalType": "address"
36
+ }
37
+ ],
38
+ "anonymous": false
39
+ },
40
+ {
41
+ "type": "event",
42
+ "name": "BeaconRemoved",
43
+ "inputs": [
44
+ {
45
+ "name": "beaconId",
46
+ "type": "bytes32",
47
+ "indexed": true,
48
+ "internalType": "bytes32"
49
+ },
50
+ {
51
+ "name": "beacon",
52
+ "type": "address",
53
+ "indexed": true,
54
+ "internalType": "address"
55
+ }
56
+ ],
57
+ "anonymous": false
58
+ },
59
+ {
60
+ "type": "event",
61
+ "name": "EntryPointSet",
62
+ "inputs": [
63
+ {
64
+ "name": "oldEntryPoint",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "newEntryPoint",
71
+ "type": "address",
72
+ "indexed": true,
73
+ "internalType": "address"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "error",
80
+ "name": "AppFactory__BeaconAlreadyExists",
81
+ "inputs": []
82
+ },
83
+ {
84
+ "type": "error",
85
+ "name": "AppFactory__BeaconNotFound",
86
+ "inputs": []
87
+ },
21
88
  {
22
89
  "type": "error",
23
90
  "name": "AppFactory__InvalidAddressInput",
@@ -32,5 +99,10 @@ export default [
32
99
  "type": "error",
33
100
  "name": "AppFactory__InvalidArrayInput",
34
101
  "inputs": []
102
+ },
103
+ {
104
+ "type": "error",
105
+ "name": "AppFactory__InvalidBeaconId",
106
+ "inputs": []
35
107
  }
36
108
  ] as const
@@ -580,6 +580,16 @@
580
580
  "name": "AppNotRegistered",
581
581
  "inputs": []
582
582
  },
583
+ {
584
+ "type": "error",
585
+ "name": "AppRegistry__InvalidDuration",
586
+ "inputs": []
587
+ },
588
+ {
589
+ "type": "error",
590
+ "name": "AppRegistry__InvalidPrice",
591
+ "inputs": []
592
+ },
583
593
  {
584
594
  "type": "error",
585
595
  "name": "AppRevoked",
@@ -625,16 +635,6 @@
625
635
  "name": "InvalidArrayInput",
626
636
  "inputs": []
627
637
  },
628
- {
629
- "type": "error",
630
- "name": "InvalidDuration",
631
- "inputs": []
632
- },
633
- {
634
- "type": "error",
635
- "name": "InvalidPrice",
636
- "inputs": []
637
- },
638
638
  {
639
639
  "type": "error",
640
640
  "name": "NotAllowed",
@@ -580,6 +580,16 @@ export default [
580
580
  "name": "AppNotRegistered",
581
581
  "inputs": []
582
582
  },
583
+ {
584
+ "type": "error",
585
+ "name": "AppRegistry__InvalidDuration",
586
+ "inputs": []
587
+ },
588
+ {
589
+ "type": "error",
590
+ "name": "AppRegistry__InvalidPrice",
591
+ "inputs": []
592
+ },
583
593
  {
584
594
  "type": "error",
585
595
  "name": "AppRevoked",
@@ -625,16 +635,6 @@ export default [
625
635
  "name": "InvalidArrayInput",
626
636
  "inputs": []
627
637
  },
628
- {
629
- "type": "error",
630
- "name": "InvalidDuration",
631
- "inputs": []
632
- },
633
- {
634
- "type": "error",
635
- "name": "InvalidPrice",
636
- "inputs": []
637
- },
638
638
  {
639
639
  "type": "error",
640
640
  "name": "NotAllowed",
@@ -233,6 +233,16 @@
233
233
  "name": "AppNotRegistered",
234
234
  "inputs": []
235
235
  },
236
+ {
237
+ "type": "error",
238
+ "name": "AppRegistry__InvalidDuration",
239
+ "inputs": []
240
+ },
241
+ {
242
+ "type": "error",
243
+ "name": "AppRegistry__InvalidPrice",
244
+ "inputs": []
245
+ },
236
246
  {
237
247
  "type": "error",
238
248
  "name": "AppRevoked",
@@ -278,16 +288,6 @@
278
288
  "name": "InvalidArrayInput",
279
289
  "inputs": []
280
290
  },
281
- {
282
- "type": "error",
283
- "name": "InvalidDuration",
284
- "inputs": []
285
- },
286
- {
287
- "type": "error",
288
- "name": "InvalidPrice",
289
- "inputs": []
290
- },
291
291
  {
292
292
  "type": "error",
293
293
  "name": "NotAllowed",
@@ -233,6 +233,16 @@ export default [
233
233
  "name": "AppNotRegistered",
234
234
  "inputs": []
235
235
  },
236
+ {
237
+ "type": "error",
238
+ "name": "AppRegistry__InvalidDuration",
239
+ "inputs": []
240
+ },
241
+ {
242
+ "type": "error",
243
+ "name": "AppRegistry__InvalidPrice",
244
+ "inputs": []
245
+ },
236
246
  {
237
247
  "type": "error",
238
248
  "name": "AppRevoked",
@@ -278,16 +288,6 @@ export default [
278
288
  "name": "InvalidArrayInput",
279
289
  "inputs": []
280
290
  },
281
- {
282
- "type": "error",
283
- "name": "InvalidDuration",
284
- "inputs": []
285
- },
286
- {
287
- "type": "error",
288
- "name": "InvalidPrice",
289
- "inputs": []
290
- },
291
291
  {
292
292
  "type": "error",
293
293
  "name": "NotAllowed",
@@ -0,0 +1,203 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "updateClient",
5
+ "inputs": [
6
+ {
7
+ "name": "newClient",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ],
12
+ "outputs": [],
13
+ "stateMutability": "nonpayable"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "updatePermissions",
18
+ "inputs": [
19
+ {
20
+ "name": "permissions",
21
+ "type": "bytes32[]",
22
+ "internalType": "bytes32[]"
23
+ }
24
+ ],
25
+ "outputs": [],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "updatePricing",
31
+ "inputs": [
32
+ {
33
+ "name": "installPrice",
34
+ "type": "uint256",
35
+ "internalType": "uint256"
36
+ },
37
+ {
38
+ "name": "accessDuration",
39
+ "type": "uint48",
40
+ "internalType": "uint48"
41
+ }
42
+ ],
43
+ "outputs": [],
44
+ "stateMutability": "nonpayable"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "withdrawETH",
49
+ "inputs": [
50
+ {
51
+ "name": "recipient",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ }
55
+ ],
56
+ "outputs": [],
57
+ "stateMutability": "nonpayable"
58
+ },
59
+ {
60
+ "type": "event",
61
+ "name": "ClientUpdated",
62
+ "inputs": [
63
+ {
64
+ "name": "oldClient",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "newClient",
71
+ "type": "address",
72
+ "indexed": true,
73
+ "internalType": "address"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "event",
80
+ "name": "PermissionsUpdated",
81
+ "inputs": [
82
+ {
83
+ "name": "permissions",
84
+ "type": "bytes32[]",
85
+ "indexed": false,
86
+ "internalType": "bytes32[]"
87
+ }
88
+ ],
89
+ "anonymous": false
90
+ },
91
+ {
92
+ "type": "event",
93
+ "name": "PricingUpdated",
94
+ "inputs": [
95
+ {
96
+ "name": "installPrice",
97
+ "type": "uint256",
98
+ "indexed": false,
99
+ "internalType": "uint256"
100
+ },
101
+ {
102
+ "name": "accessDuration",
103
+ "type": "uint48",
104
+ "indexed": false,
105
+ "internalType": "uint48"
106
+ }
107
+ ],
108
+ "anonymous": false
109
+ },
110
+ {
111
+ "type": "event",
112
+ "name": "SendCurrency",
113
+ "inputs": [
114
+ {
115
+ "name": "recipient",
116
+ "type": "address",
117
+ "indexed": true,
118
+ "internalType": "address"
119
+ },
120
+ {
121
+ "name": "currency",
122
+ "type": "address",
123
+ "indexed": true,
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "amount",
128
+ "type": "uint256",
129
+ "indexed": false,
130
+ "internalType": "uint256"
131
+ }
132
+ ],
133
+ "anonymous": false
134
+ },
135
+ {
136
+ "type": "event",
137
+ "name": "SimpleAppInitialized",
138
+ "inputs": [
139
+ {
140
+ "name": "owner",
141
+ "type": "address",
142
+ "indexed": true,
143
+ "internalType": "address"
144
+ },
145
+ {
146
+ "name": "client",
147
+ "type": "address",
148
+ "indexed": true,
149
+ "internalType": "address"
150
+ }
151
+ ],
152
+ "anonymous": false
153
+ },
154
+ {
155
+ "type": "event",
156
+ "name": "Withdrawal",
157
+ "inputs": [
158
+ {
159
+ "name": "recipient",
160
+ "type": "address",
161
+ "indexed": true,
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "amount",
166
+ "type": "uint256",
167
+ "indexed": false,
168
+ "internalType": "uint256"
169
+ }
170
+ ],
171
+ "anonymous": false
172
+ },
173
+ {
174
+ "type": "error",
175
+ "name": "SimpleApp__InvalidAddressInput",
176
+ "inputs": []
177
+ },
178
+ {
179
+ "type": "error",
180
+ "name": "SimpleApp__InvalidAmount",
181
+ "inputs": []
182
+ },
183
+ {
184
+ "type": "error",
185
+ "name": "SimpleApp__InvalidCaller",
186
+ "inputs": []
187
+ },
188
+ {
189
+ "type": "error",
190
+ "name": "SimpleApp__InvalidCurrency",
191
+ "inputs": []
192
+ },
193
+ {
194
+ "type": "error",
195
+ "name": "SimpleApp__NoBalanceToWithdraw",
196
+ "inputs": []
197
+ },
198
+ {
199
+ "type": "error",
200
+ "name": "SimpleApp__ZeroAddress",
201
+ "inputs": []
202
+ }
203
+ ]
@@ -0,0 +1,203 @@
1
+ export default [
2
+ {
3
+ "type": "function",
4
+ "name": "updateClient",
5
+ "inputs": [
6
+ {
7
+ "name": "newClient",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ],
12
+ "outputs": [],
13
+ "stateMutability": "nonpayable"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "updatePermissions",
18
+ "inputs": [
19
+ {
20
+ "name": "permissions",
21
+ "type": "bytes32[]",
22
+ "internalType": "bytes32[]"
23
+ }
24
+ ],
25
+ "outputs": [],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "updatePricing",
31
+ "inputs": [
32
+ {
33
+ "name": "installPrice",
34
+ "type": "uint256",
35
+ "internalType": "uint256"
36
+ },
37
+ {
38
+ "name": "accessDuration",
39
+ "type": "uint48",
40
+ "internalType": "uint48"
41
+ }
42
+ ],
43
+ "outputs": [],
44
+ "stateMutability": "nonpayable"
45
+ },
46
+ {
47
+ "type": "function",
48
+ "name": "withdrawETH",
49
+ "inputs": [
50
+ {
51
+ "name": "recipient",
52
+ "type": "address",
53
+ "internalType": "address"
54
+ }
55
+ ],
56
+ "outputs": [],
57
+ "stateMutability": "nonpayable"
58
+ },
59
+ {
60
+ "type": "event",
61
+ "name": "ClientUpdated",
62
+ "inputs": [
63
+ {
64
+ "name": "oldClient",
65
+ "type": "address",
66
+ "indexed": true,
67
+ "internalType": "address"
68
+ },
69
+ {
70
+ "name": "newClient",
71
+ "type": "address",
72
+ "indexed": true,
73
+ "internalType": "address"
74
+ }
75
+ ],
76
+ "anonymous": false
77
+ },
78
+ {
79
+ "type": "event",
80
+ "name": "PermissionsUpdated",
81
+ "inputs": [
82
+ {
83
+ "name": "permissions",
84
+ "type": "bytes32[]",
85
+ "indexed": false,
86
+ "internalType": "bytes32[]"
87
+ }
88
+ ],
89
+ "anonymous": false
90
+ },
91
+ {
92
+ "type": "event",
93
+ "name": "PricingUpdated",
94
+ "inputs": [
95
+ {
96
+ "name": "installPrice",
97
+ "type": "uint256",
98
+ "indexed": false,
99
+ "internalType": "uint256"
100
+ },
101
+ {
102
+ "name": "accessDuration",
103
+ "type": "uint48",
104
+ "indexed": false,
105
+ "internalType": "uint48"
106
+ }
107
+ ],
108
+ "anonymous": false
109
+ },
110
+ {
111
+ "type": "event",
112
+ "name": "SendCurrency",
113
+ "inputs": [
114
+ {
115
+ "name": "recipient",
116
+ "type": "address",
117
+ "indexed": true,
118
+ "internalType": "address"
119
+ },
120
+ {
121
+ "name": "currency",
122
+ "type": "address",
123
+ "indexed": true,
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "amount",
128
+ "type": "uint256",
129
+ "indexed": false,
130
+ "internalType": "uint256"
131
+ }
132
+ ],
133
+ "anonymous": false
134
+ },
135
+ {
136
+ "type": "event",
137
+ "name": "SimpleAppInitialized",
138
+ "inputs": [
139
+ {
140
+ "name": "owner",
141
+ "type": "address",
142
+ "indexed": true,
143
+ "internalType": "address"
144
+ },
145
+ {
146
+ "name": "client",
147
+ "type": "address",
148
+ "indexed": true,
149
+ "internalType": "address"
150
+ }
151
+ ],
152
+ "anonymous": false
153
+ },
154
+ {
155
+ "type": "event",
156
+ "name": "Withdrawal",
157
+ "inputs": [
158
+ {
159
+ "name": "recipient",
160
+ "type": "address",
161
+ "indexed": true,
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "amount",
166
+ "type": "uint256",
167
+ "indexed": false,
168
+ "internalType": "uint256"
169
+ }
170
+ ],
171
+ "anonymous": false
172
+ },
173
+ {
174
+ "type": "error",
175
+ "name": "SimpleApp__InvalidAddressInput",
176
+ "inputs": []
177
+ },
178
+ {
179
+ "type": "error",
180
+ "name": "SimpleApp__InvalidAmount",
181
+ "inputs": []
182
+ },
183
+ {
184
+ "type": "error",
185
+ "name": "SimpleApp__InvalidCaller",
186
+ "inputs": []
187
+ },
188
+ {
189
+ "type": "error",
190
+ "name": "SimpleApp__InvalidCurrency",
191
+ "inputs": []
192
+ },
193
+ {
194
+ "type": "error",
195
+ "name": "SimpleApp__NoBalanceToWithdraw",
196
+ "inputs": []
197
+ },
198
+ {
199
+ "type": "error",
200
+ "name": "SimpleApp__ZeroAddress",
201
+ "inputs": []
202
+ }
203
+ ] as const