@towns-protocol/generated 0.0.228 → 0.0.229

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.
@@ -19,7 +19,7 @@
19
19
  {
20
20
  "name": "condition",
21
21
  "type": "tuple",
22
- "internalType": "struct DropClaimLib.ClaimCondition",
22
+ "internalType": "struct DropGroup.ClaimCondition",
23
23
  "components": [
24
24
  {
25
25
  "name": "currency",
@@ -67,9 +67,9 @@
67
67
  "name": "claimAndStake",
68
68
  "inputs": [
69
69
  {
70
- "name": "claim",
70
+ "name": "req",
71
71
  "type": "tuple",
72
- "internalType": "struct DropClaimLib.Claim",
72
+ "internalType": "struct DropClaim.Claim",
73
73
  "components": [
74
74
  {
75
75
  "name": "conditionId",
@@ -116,7 +116,7 @@
116
116
  ],
117
117
  "outputs": [
118
118
  {
119
- "name": "",
119
+ "name": "amount",
120
120
  "type": "uint256",
121
121
  "internalType": "uint256"
122
122
  }
@@ -128,9 +128,9 @@
128
128
  "name": "claimWithPenalty",
129
129
  "inputs": [
130
130
  {
131
- "name": "claim",
131
+ "name": "req",
132
132
  "type": "tuple",
133
- "internalType": "struct DropClaimLib.Claim",
133
+ "internalType": "struct DropClaim.Claim",
134
134
  "components": [
135
135
  {
136
136
  "name": "conditionId",
@@ -201,7 +201,7 @@
201
201
  {
202
202
  "name": "condition",
203
203
  "type": "tuple",
204
- "internalType": "struct DropClaimLib.ClaimCondition",
204
+ "internalType": "struct DropGroup.ClaimCondition",
205
205
  "components": [
206
206
  {
207
207
  "name": "currency",
@@ -251,7 +251,7 @@
251
251
  {
252
252
  "name": "",
253
253
  "type": "tuple[]",
254
- "internalType": "struct DropClaimLib.ClaimCondition[]",
254
+ "internalType": "struct DropGroup.ClaimCondition[]",
255
255
  "components": [
256
256
  {
257
257
  "name": "currency",
@@ -348,7 +348,7 @@
348
348
  {
349
349
  "name": "conditions",
350
350
  "type": "tuple[]",
351
- "internalType": "struct DropClaimLib.ClaimCondition[]",
351
+ "internalType": "struct DropGroup.ClaimCondition[]",
352
352
  "components": [
353
353
  {
354
354
  "name": "currency",
@@ -405,7 +405,7 @@
405
405
  "name": "condition",
406
406
  "type": "tuple",
407
407
  "indexed": false,
408
- "internalType": "struct DropClaimLib.ClaimCondition",
408
+ "internalType": "struct DropGroup.ClaimCondition",
409
409
  "components": [
410
410
  {
411
411
  "name": "currency",
@@ -461,7 +461,7 @@
461
461
  "name": "conditions",
462
462
  "type": "tuple[]",
463
463
  "indexed": false,
464
- "internalType": "struct DropClaimLib.ClaimCondition[]",
464
+ "internalType": "struct DropGroup.ClaimCondition[]",
465
465
  "components": [
466
466
  {
467
467
  "name": "currency",
@@ -678,11 +678,6 @@
678
678
  "name": "DropFacet__NoActiveClaimCondition",
679
679
  "inputs": []
680
680
  },
681
- {
682
- "type": "error",
683
- "name": "DropFacet__PointsMustBeGreaterThanZero",
684
- "inputs": []
685
- },
686
681
  {
687
682
  "type": "error",
688
683
  "name": "DropFacet__QuantityMustBeGreaterThanZero",
@@ -19,7 +19,7 @@ export default [
19
19
  {
20
20
  "name": "condition",
21
21
  "type": "tuple",
22
- "internalType": "struct DropClaimLib.ClaimCondition",
22
+ "internalType": "struct DropGroup.ClaimCondition",
23
23
  "components": [
24
24
  {
25
25
  "name": "currency",
@@ -67,9 +67,9 @@ export default [
67
67
  "name": "claimAndStake",
68
68
  "inputs": [
69
69
  {
70
- "name": "claim",
70
+ "name": "req",
71
71
  "type": "tuple",
72
- "internalType": "struct DropClaimLib.Claim",
72
+ "internalType": "struct DropClaim.Claim",
73
73
  "components": [
74
74
  {
75
75
  "name": "conditionId",
@@ -116,7 +116,7 @@ export default [
116
116
  ],
117
117
  "outputs": [
118
118
  {
119
- "name": "",
119
+ "name": "amount",
120
120
  "type": "uint256",
121
121
  "internalType": "uint256"
122
122
  }
@@ -128,9 +128,9 @@ export default [
128
128
  "name": "claimWithPenalty",
129
129
  "inputs": [
130
130
  {
131
- "name": "claim",
131
+ "name": "req",
132
132
  "type": "tuple",
133
- "internalType": "struct DropClaimLib.Claim",
133
+ "internalType": "struct DropClaim.Claim",
134
134
  "components": [
135
135
  {
136
136
  "name": "conditionId",
@@ -201,7 +201,7 @@ export default [
201
201
  {
202
202
  "name": "condition",
203
203
  "type": "tuple",
204
- "internalType": "struct DropClaimLib.ClaimCondition",
204
+ "internalType": "struct DropGroup.ClaimCondition",
205
205
  "components": [
206
206
  {
207
207
  "name": "currency",
@@ -251,7 +251,7 @@ export default [
251
251
  {
252
252
  "name": "",
253
253
  "type": "tuple[]",
254
- "internalType": "struct DropClaimLib.ClaimCondition[]",
254
+ "internalType": "struct DropGroup.ClaimCondition[]",
255
255
  "components": [
256
256
  {
257
257
  "name": "currency",
@@ -348,7 +348,7 @@ export default [
348
348
  {
349
349
  "name": "conditions",
350
350
  "type": "tuple[]",
351
- "internalType": "struct DropClaimLib.ClaimCondition[]",
351
+ "internalType": "struct DropGroup.ClaimCondition[]",
352
352
  "components": [
353
353
  {
354
354
  "name": "currency",
@@ -405,7 +405,7 @@ export default [
405
405
  "name": "condition",
406
406
  "type": "tuple",
407
407
  "indexed": false,
408
- "internalType": "struct DropClaimLib.ClaimCondition",
408
+ "internalType": "struct DropGroup.ClaimCondition",
409
409
  "components": [
410
410
  {
411
411
  "name": "currency",
@@ -461,7 +461,7 @@ export default [
461
461
  "name": "conditions",
462
462
  "type": "tuple[]",
463
463
  "indexed": false,
464
- "internalType": "struct DropClaimLib.ClaimCondition[]",
464
+ "internalType": "struct DropGroup.ClaimCondition[]",
465
465
  "components": [
466
466
  {
467
467
  "name": "currency",
@@ -678,11 +678,6 @@ export default [
678
678
  "name": "DropFacet__NoActiveClaimCondition",
679
679
  "inputs": []
680
680
  },
681
- {
682
- "type": "error",
683
- "name": "DropFacet__PointsMustBeGreaterThanZero",
684
- "inputs": []
685
- },
686
681
  {
687
682
  "type": "error",
688
683
  "name": "DropFacet__QuantityMustBeGreaterThanZero",
@@ -0,0 +1,362 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "adminBanApp",
5
+ "inputs": [
6
+ {
7
+ "name": "app",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ],
12
+ "outputs": [
13
+ {
14
+ "name": "",
15
+ "type": "bytes32",
16
+ "internalType": "bytes32"
17
+ }
18
+ ],
19
+ "stateMutability": "nonpayable"
20
+ },
21
+ {
22
+ "type": "function",
23
+ "name": "adminRegisterAppSchema",
24
+ "inputs": [
25
+ {
26
+ "name": "schema",
27
+ "type": "string",
28
+ "internalType": "string"
29
+ },
30
+ {
31
+ "name": "resolver",
32
+ "type": "address",
33
+ "internalType": "contract ISchemaResolver"
34
+ },
35
+ {
36
+ "name": "revocable",
37
+ "type": "bool",
38
+ "internalType": "bool"
39
+ }
40
+ ],
41
+ "outputs": [
42
+ {
43
+ "name": "",
44
+ "type": "bytes32",
45
+ "internalType": "bytes32"
46
+ }
47
+ ],
48
+ "stateMutability": "nonpayable"
49
+ },
50
+ {
51
+ "type": "function",
52
+ "name": "getAppById",
53
+ "inputs": [
54
+ {
55
+ "name": "appId",
56
+ "type": "bytes32",
57
+ "internalType": "bytes32"
58
+ }
59
+ ],
60
+ "outputs": [
61
+ {
62
+ "name": "",
63
+ "type": "tuple",
64
+ "internalType": "struct Attestation",
65
+ "components": [
66
+ {
67
+ "name": "uid",
68
+ "type": "bytes32",
69
+ "internalType": "bytes32"
70
+ },
71
+ {
72
+ "name": "schema",
73
+ "type": "bytes32",
74
+ "internalType": "bytes32"
75
+ },
76
+ {
77
+ "name": "time",
78
+ "type": "uint64",
79
+ "internalType": "uint64"
80
+ },
81
+ {
82
+ "name": "expirationTime",
83
+ "type": "uint64",
84
+ "internalType": "uint64"
85
+ },
86
+ {
87
+ "name": "revocationTime",
88
+ "type": "uint64",
89
+ "internalType": "uint64"
90
+ },
91
+ {
92
+ "name": "refUID",
93
+ "type": "bytes32",
94
+ "internalType": "bytes32"
95
+ },
96
+ {
97
+ "name": "recipient",
98
+ "type": "address",
99
+ "internalType": "address"
100
+ },
101
+ {
102
+ "name": "attester",
103
+ "type": "address",
104
+ "internalType": "address"
105
+ },
106
+ {
107
+ "name": "revocable",
108
+ "type": "bool",
109
+ "internalType": "bool"
110
+ },
111
+ {
112
+ "name": "data",
113
+ "type": "bytes",
114
+ "internalType": "bytes"
115
+ }
116
+ ]
117
+ }
118
+ ],
119
+ "stateMutability": "view"
120
+ },
121
+ {
122
+ "type": "function",
123
+ "name": "getAppSchema",
124
+ "inputs": [],
125
+ "outputs": [
126
+ {
127
+ "name": "",
128
+ "type": "string",
129
+ "internalType": "string"
130
+ }
131
+ ],
132
+ "stateMutability": "view"
133
+ },
134
+ {
135
+ "type": "function",
136
+ "name": "getAppSchemaId",
137
+ "inputs": [],
138
+ "outputs": [
139
+ {
140
+ "name": "",
141
+ "type": "bytes32",
142
+ "internalType": "bytes32"
143
+ }
144
+ ],
145
+ "stateMutability": "view"
146
+ },
147
+ {
148
+ "type": "function",
149
+ "name": "getLatestAppId",
150
+ "inputs": [
151
+ {
152
+ "name": "app",
153
+ "type": "address",
154
+ "internalType": "address"
155
+ }
156
+ ],
157
+ "outputs": [
158
+ {
159
+ "name": "",
160
+ "type": "bytes32",
161
+ "internalType": "bytes32"
162
+ }
163
+ ],
164
+ "stateMutability": "view"
165
+ },
166
+ {
167
+ "type": "function",
168
+ "name": "isAppBanned",
169
+ "inputs": [
170
+ {
171
+ "name": "app",
172
+ "type": "address",
173
+ "internalType": "address"
174
+ }
175
+ ],
176
+ "outputs": [
177
+ {
178
+ "name": "",
179
+ "type": "bool",
180
+ "internalType": "bool"
181
+ }
182
+ ],
183
+ "stateMutability": "view"
184
+ },
185
+ {
186
+ "type": "function",
187
+ "name": "registerApp",
188
+ "inputs": [
189
+ {
190
+ "name": "app",
191
+ "type": "address",
192
+ "internalType": "address"
193
+ },
194
+ {
195
+ "name": "clients",
196
+ "type": "address[]",
197
+ "internalType": "address[]"
198
+ }
199
+ ],
200
+ "outputs": [
201
+ {
202
+ "name": "appId",
203
+ "type": "bytes32",
204
+ "internalType": "bytes32"
205
+ }
206
+ ],
207
+ "stateMutability": "payable"
208
+ },
209
+ {
210
+ "type": "function",
211
+ "name": "removeApp",
212
+ "inputs": [
213
+ {
214
+ "name": "appId",
215
+ "type": "bytes32",
216
+ "internalType": "bytes32"
217
+ }
218
+ ],
219
+ "outputs": [
220
+ {
221
+ "name": "",
222
+ "type": "bytes32",
223
+ "internalType": "bytes32"
224
+ }
225
+ ],
226
+ "stateMutability": "nonpayable"
227
+ },
228
+ {
229
+ "type": "event",
230
+ "name": "AppBanned",
231
+ "inputs": [
232
+ {
233
+ "name": "app",
234
+ "type": "address",
235
+ "indexed": true,
236
+ "internalType": "address"
237
+ },
238
+ {
239
+ "name": "uid",
240
+ "type": "bytes32",
241
+ "indexed": false,
242
+ "internalType": "bytes32"
243
+ }
244
+ ],
245
+ "anonymous": false
246
+ },
247
+ {
248
+ "type": "event",
249
+ "name": "AppRegistered",
250
+ "inputs": [
251
+ {
252
+ "name": "app",
253
+ "type": "address",
254
+ "indexed": true,
255
+ "internalType": "address"
256
+ },
257
+ {
258
+ "name": "uid",
259
+ "type": "bytes32",
260
+ "indexed": false,
261
+ "internalType": "bytes32"
262
+ }
263
+ ],
264
+ "anonymous": false
265
+ },
266
+ {
267
+ "type": "event",
268
+ "name": "AppSchemaSet",
269
+ "inputs": [
270
+ {
271
+ "name": "uid",
272
+ "type": "bytes32",
273
+ "indexed": false,
274
+ "internalType": "bytes32"
275
+ }
276
+ ],
277
+ "anonymous": false
278
+ },
279
+ {
280
+ "type": "event",
281
+ "name": "AppUnregistered",
282
+ "inputs": [
283
+ {
284
+ "name": "app",
285
+ "type": "address",
286
+ "indexed": true,
287
+ "internalType": "address"
288
+ },
289
+ {
290
+ "name": "uid",
291
+ "type": "bytes32",
292
+ "indexed": false,
293
+ "internalType": "bytes32"
294
+ }
295
+ ],
296
+ "anonymous": false
297
+ },
298
+ {
299
+ "type": "event",
300
+ "name": "AppUpdated",
301
+ "inputs": [
302
+ {
303
+ "name": "app",
304
+ "type": "address",
305
+ "indexed": true,
306
+ "internalType": "address"
307
+ },
308
+ {
309
+ "name": "uid",
310
+ "type": "bytes32",
311
+ "indexed": false,
312
+ "internalType": "bytes32"
313
+ }
314
+ ],
315
+ "anonymous": false
316
+ },
317
+ {
318
+ "type": "error",
319
+ "name": "AppAlreadyRegistered",
320
+ "inputs": []
321
+ },
322
+ {
323
+ "type": "error",
324
+ "name": "AppDoesNotImplementInterface",
325
+ "inputs": []
326
+ },
327
+ {
328
+ "type": "error",
329
+ "name": "AppNotRegistered",
330
+ "inputs": []
331
+ },
332
+ {
333
+ "type": "error",
334
+ "name": "AppRevoked",
335
+ "inputs": []
336
+ },
337
+ {
338
+ "type": "error",
339
+ "name": "BannedApp",
340
+ "inputs": []
341
+ },
342
+ {
343
+ "type": "error",
344
+ "name": "InvalidAddressInput",
345
+ "inputs": []
346
+ },
347
+ {
348
+ "type": "error",
349
+ "name": "InvalidAppId",
350
+ "inputs": []
351
+ },
352
+ {
353
+ "type": "error",
354
+ "name": "InvalidArrayInput",
355
+ "inputs": []
356
+ },
357
+ {
358
+ "type": "error",
359
+ "name": "NotAppOwner",
360
+ "inputs": []
361
+ }
362
+ ]