@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.
- package/dev/abis/DropFacet.abi.json +11 -16
- package/dev/abis/DropFacet.abi.ts +11 -16
- package/dev/abis/IAppRegistry.abi.json +362 -0
- package/dev/abis/IAppRegistry.abi.ts +362 -0
- package/dev/abis/IAppRegistryBase.abi.json +136 -0
- package/dev/abis/IAppRegistryBase.abi.ts +136 -0
- package/dev/typings/DropFacet.ts +38 -36
- package/dev/typings/IAppRegistry.ts +513 -0
- package/dev/typings/IDropFacet.ts +37 -35
- package/dev/typings/factories/DropFacet__factory.ts +12 -17
- package/dev/typings/factories/IAppRegistry__factory.ts +383 -0
- package/dev/typings/factories/IDropFacet__factory.ts +10 -15
- package/dev/typings/factories/index.ts +1 -0
- package/dev/typings/index.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IAppRegistry, IAppRegistryInterface } from "../IAppRegistry";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "adminBanApp",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "app",
|
|
16
|
+
type: "address",
|
|
17
|
+
internalType: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
outputs: [
|
|
21
|
+
{
|
|
22
|
+
name: "",
|
|
23
|
+
type: "bytes32",
|
|
24
|
+
internalType: "bytes32",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "nonpayable",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "function",
|
|
31
|
+
name: "adminRegisterAppSchema",
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
name: "schema",
|
|
35
|
+
type: "string",
|
|
36
|
+
internalType: "string",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: "resolver",
|
|
40
|
+
type: "address",
|
|
41
|
+
internalType: "contract ISchemaResolver",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "revocable",
|
|
45
|
+
type: "bool",
|
|
46
|
+
internalType: "bool",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
name: "",
|
|
52
|
+
type: "bytes32",
|
|
53
|
+
internalType: "bytes32",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
stateMutability: "nonpayable",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
type: "function",
|
|
60
|
+
name: "getAppById",
|
|
61
|
+
inputs: [
|
|
62
|
+
{
|
|
63
|
+
name: "appId",
|
|
64
|
+
type: "bytes32",
|
|
65
|
+
internalType: "bytes32",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
name: "",
|
|
71
|
+
type: "tuple",
|
|
72
|
+
internalType: "struct Attestation",
|
|
73
|
+
components: [
|
|
74
|
+
{
|
|
75
|
+
name: "uid",
|
|
76
|
+
type: "bytes32",
|
|
77
|
+
internalType: "bytes32",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "schema",
|
|
81
|
+
type: "bytes32",
|
|
82
|
+
internalType: "bytes32",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "time",
|
|
86
|
+
type: "uint64",
|
|
87
|
+
internalType: "uint64",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "expirationTime",
|
|
91
|
+
type: "uint64",
|
|
92
|
+
internalType: "uint64",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: "revocationTime",
|
|
96
|
+
type: "uint64",
|
|
97
|
+
internalType: "uint64",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "refUID",
|
|
101
|
+
type: "bytes32",
|
|
102
|
+
internalType: "bytes32",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "recipient",
|
|
106
|
+
type: "address",
|
|
107
|
+
internalType: "address",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "attester",
|
|
111
|
+
type: "address",
|
|
112
|
+
internalType: "address",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "revocable",
|
|
116
|
+
type: "bool",
|
|
117
|
+
internalType: "bool",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "data",
|
|
121
|
+
type: "bytes",
|
|
122
|
+
internalType: "bytes",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
stateMutability: "view",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: "function",
|
|
131
|
+
name: "getAppSchema",
|
|
132
|
+
inputs: [],
|
|
133
|
+
outputs: [
|
|
134
|
+
{
|
|
135
|
+
name: "",
|
|
136
|
+
type: "string",
|
|
137
|
+
internalType: "string",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "view",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "function",
|
|
144
|
+
name: "getAppSchemaId",
|
|
145
|
+
inputs: [],
|
|
146
|
+
outputs: [
|
|
147
|
+
{
|
|
148
|
+
name: "",
|
|
149
|
+
type: "bytes32",
|
|
150
|
+
internalType: "bytes32",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
stateMutability: "view",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "function",
|
|
157
|
+
name: "getLatestAppId",
|
|
158
|
+
inputs: [
|
|
159
|
+
{
|
|
160
|
+
name: "app",
|
|
161
|
+
type: "address",
|
|
162
|
+
internalType: "address",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
name: "",
|
|
168
|
+
type: "bytes32",
|
|
169
|
+
internalType: "bytes32",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "function",
|
|
176
|
+
name: "isAppBanned",
|
|
177
|
+
inputs: [
|
|
178
|
+
{
|
|
179
|
+
name: "app",
|
|
180
|
+
type: "address",
|
|
181
|
+
internalType: "address",
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
outputs: [
|
|
185
|
+
{
|
|
186
|
+
name: "",
|
|
187
|
+
type: "bool",
|
|
188
|
+
internalType: "bool",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
stateMutability: "view",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
type: "function",
|
|
195
|
+
name: "registerApp",
|
|
196
|
+
inputs: [
|
|
197
|
+
{
|
|
198
|
+
name: "app",
|
|
199
|
+
type: "address",
|
|
200
|
+
internalType: "address",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "clients",
|
|
204
|
+
type: "address[]",
|
|
205
|
+
internalType: "address[]",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
outputs: [
|
|
209
|
+
{
|
|
210
|
+
name: "appId",
|
|
211
|
+
type: "bytes32",
|
|
212
|
+
internalType: "bytes32",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
stateMutability: "payable",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
type: "function",
|
|
219
|
+
name: "removeApp",
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
name: "appId",
|
|
223
|
+
type: "bytes32",
|
|
224
|
+
internalType: "bytes32",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
name: "",
|
|
230
|
+
type: "bytes32",
|
|
231
|
+
internalType: "bytes32",
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
stateMutability: "nonpayable",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
type: "event",
|
|
238
|
+
name: "AppBanned",
|
|
239
|
+
inputs: [
|
|
240
|
+
{
|
|
241
|
+
name: "app",
|
|
242
|
+
type: "address",
|
|
243
|
+
indexed: true,
|
|
244
|
+
internalType: "address",
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: "uid",
|
|
248
|
+
type: "bytes32",
|
|
249
|
+
indexed: false,
|
|
250
|
+
internalType: "bytes32",
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
anonymous: false,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
type: "event",
|
|
257
|
+
name: "AppRegistered",
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
name: "app",
|
|
261
|
+
type: "address",
|
|
262
|
+
indexed: true,
|
|
263
|
+
internalType: "address",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
name: "uid",
|
|
267
|
+
type: "bytes32",
|
|
268
|
+
indexed: false,
|
|
269
|
+
internalType: "bytes32",
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
anonymous: false,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: "event",
|
|
276
|
+
name: "AppSchemaSet",
|
|
277
|
+
inputs: [
|
|
278
|
+
{
|
|
279
|
+
name: "uid",
|
|
280
|
+
type: "bytes32",
|
|
281
|
+
indexed: false,
|
|
282
|
+
internalType: "bytes32",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
anonymous: false,
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: "event",
|
|
289
|
+
name: "AppUnregistered",
|
|
290
|
+
inputs: [
|
|
291
|
+
{
|
|
292
|
+
name: "app",
|
|
293
|
+
type: "address",
|
|
294
|
+
indexed: true,
|
|
295
|
+
internalType: "address",
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "uid",
|
|
299
|
+
type: "bytes32",
|
|
300
|
+
indexed: false,
|
|
301
|
+
internalType: "bytes32",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
anonymous: false,
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
type: "event",
|
|
308
|
+
name: "AppUpdated",
|
|
309
|
+
inputs: [
|
|
310
|
+
{
|
|
311
|
+
name: "app",
|
|
312
|
+
type: "address",
|
|
313
|
+
indexed: true,
|
|
314
|
+
internalType: "address",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
name: "uid",
|
|
318
|
+
type: "bytes32",
|
|
319
|
+
indexed: false,
|
|
320
|
+
internalType: "bytes32",
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
anonymous: false,
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
type: "error",
|
|
327
|
+
name: "AppAlreadyRegistered",
|
|
328
|
+
inputs: [],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
type: "error",
|
|
332
|
+
name: "AppDoesNotImplementInterface",
|
|
333
|
+
inputs: [],
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: "error",
|
|
337
|
+
name: "AppNotRegistered",
|
|
338
|
+
inputs: [],
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: "error",
|
|
342
|
+
name: "AppRevoked",
|
|
343
|
+
inputs: [],
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
type: "error",
|
|
347
|
+
name: "BannedApp",
|
|
348
|
+
inputs: [],
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
type: "error",
|
|
352
|
+
name: "InvalidAddressInput",
|
|
353
|
+
inputs: [],
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
type: "error",
|
|
357
|
+
name: "InvalidAppId",
|
|
358
|
+
inputs: [],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
type: "error",
|
|
362
|
+
name: "InvalidArrayInput",
|
|
363
|
+
inputs: [],
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
type: "error",
|
|
367
|
+
name: "NotAppOwner",
|
|
368
|
+
inputs: [],
|
|
369
|
+
},
|
|
370
|
+
] as const;
|
|
371
|
+
|
|
372
|
+
export class IAppRegistry__factory {
|
|
373
|
+
static readonly abi = _abi;
|
|
374
|
+
static createInterface(): IAppRegistryInterface {
|
|
375
|
+
return new utils.Interface(_abi) as IAppRegistryInterface;
|
|
376
|
+
}
|
|
377
|
+
static connect(
|
|
378
|
+
address: string,
|
|
379
|
+
signerOrProvider: Signer | Provider
|
|
380
|
+
): IAppRegistry {
|
|
381
|
+
return new Contract(address, _abi, signerOrProvider) as IAppRegistry;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
@@ -14,7 +14,7 @@ const _abi = [
|
|
|
14
14
|
{
|
|
15
15
|
name: "condition",
|
|
16
16
|
type: "tuple",
|
|
17
|
-
internalType: "struct
|
|
17
|
+
internalType: "struct DropGroup.ClaimCondition",
|
|
18
18
|
components: [
|
|
19
19
|
{
|
|
20
20
|
name: "currency",
|
|
@@ -62,9 +62,9 @@ const _abi = [
|
|
|
62
62
|
name: "claimAndStake",
|
|
63
63
|
inputs: [
|
|
64
64
|
{
|
|
65
|
-
name: "
|
|
65
|
+
name: "req",
|
|
66
66
|
type: "tuple",
|
|
67
|
-
internalType: "struct
|
|
67
|
+
internalType: "struct DropClaim.Claim",
|
|
68
68
|
components: [
|
|
69
69
|
{
|
|
70
70
|
name: "conditionId",
|
|
@@ -123,9 +123,9 @@ const _abi = [
|
|
|
123
123
|
name: "claimWithPenalty",
|
|
124
124
|
inputs: [
|
|
125
125
|
{
|
|
126
|
-
name: "
|
|
126
|
+
name: "req",
|
|
127
127
|
type: "tuple",
|
|
128
|
-
internalType: "struct
|
|
128
|
+
internalType: "struct DropClaim.Claim",
|
|
129
129
|
components: [
|
|
130
130
|
{
|
|
131
131
|
name: "conditionId",
|
|
@@ -196,7 +196,7 @@ const _abi = [
|
|
|
196
196
|
{
|
|
197
197
|
name: "",
|
|
198
198
|
type: "tuple",
|
|
199
|
-
internalType: "struct
|
|
199
|
+
internalType: "struct DropGroup.ClaimCondition",
|
|
200
200
|
components: [
|
|
201
201
|
{
|
|
202
202
|
name: "currency",
|
|
@@ -246,7 +246,7 @@ const _abi = [
|
|
|
246
246
|
{
|
|
247
247
|
name: "",
|
|
248
248
|
type: "tuple[]",
|
|
249
|
-
internalType: "struct
|
|
249
|
+
internalType: "struct DropGroup.ClaimCondition[]",
|
|
250
250
|
components: [
|
|
251
251
|
{
|
|
252
252
|
name: "currency",
|
|
@@ -343,7 +343,7 @@ const _abi = [
|
|
|
343
343
|
{
|
|
344
344
|
name: "conditions",
|
|
345
345
|
type: "tuple[]",
|
|
346
|
-
internalType: "struct
|
|
346
|
+
internalType: "struct DropGroup.ClaimCondition[]",
|
|
347
347
|
components: [
|
|
348
348
|
{
|
|
349
349
|
name: "currency",
|
|
@@ -400,7 +400,7 @@ const _abi = [
|
|
|
400
400
|
name: "condition",
|
|
401
401
|
type: "tuple",
|
|
402
402
|
indexed: false,
|
|
403
|
-
internalType: "struct
|
|
403
|
+
internalType: "struct DropGroup.ClaimCondition",
|
|
404
404
|
components: [
|
|
405
405
|
{
|
|
406
406
|
name: "currency",
|
|
@@ -456,7 +456,7 @@ const _abi = [
|
|
|
456
456
|
name: "conditions",
|
|
457
457
|
type: "tuple[]",
|
|
458
458
|
indexed: false,
|
|
459
|
-
internalType: "struct
|
|
459
|
+
internalType: "struct DropGroup.ClaimCondition[]",
|
|
460
460
|
components: [
|
|
461
461
|
{
|
|
462
462
|
name: "currency",
|
|
@@ -615,11 +615,6 @@ const _abi = [
|
|
|
615
615
|
name: "DropFacet__NoActiveClaimCondition",
|
|
616
616
|
inputs: [],
|
|
617
617
|
},
|
|
618
|
-
{
|
|
619
|
-
type: "error",
|
|
620
|
-
name: "DropFacet__PointsMustBeGreaterThanZero",
|
|
621
|
-
inputs: [],
|
|
622
|
-
},
|
|
623
618
|
{
|
|
624
619
|
type: "error",
|
|
625
620
|
name: "DropFacet__QuantityMustBeGreaterThanZero",
|
|
@@ -7,6 +7,7 @@ export { Architect__factory } from "./Architect__factory";
|
|
|
7
7
|
export { Channels__factory } from "./Channels__factory";
|
|
8
8
|
export { DropFacet__factory } from "./DropFacet__factory";
|
|
9
9
|
export { EntitlementsManager__factory } from "./EntitlementsManager__factory";
|
|
10
|
+
export { IAppRegistry__factory } from "./IAppRegistry__factory";
|
|
10
11
|
export { IArchitect__factory } from "./IArchitect__factory";
|
|
11
12
|
export { IBanning__factory } from "./IBanning__factory";
|
|
12
13
|
export { IChannel__factory } from "./IChannel__factory";
|
package/dev/typings/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type { Architect } from "./Architect";
|
|
|
9
9
|
export type { Channels } from "./Channels";
|
|
10
10
|
export type { DropFacet } from "./DropFacet";
|
|
11
11
|
export type { EntitlementsManager } from "./EntitlementsManager";
|
|
12
|
+
export type { IAppRegistry } from "./IAppRegistry";
|
|
12
13
|
export type { IArchitect } from "./IArchitect";
|
|
13
14
|
export type { IBanning } from "./IBanning";
|
|
14
15
|
export type { IChannel } from "./IChannel";
|
|
@@ -62,6 +63,7 @@ export { Architect__factory } from "./factories/Architect__factory";
|
|
|
62
63
|
export { Channels__factory } from "./factories/Channels__factory";
|
|
63
64
|
export { DropFacet__factory } from "./factories/DropFacet__factory";
|
|
64
65
|
export { EntitlementsManager__factory } from "./factories/EntitlementsManager__factory";
|
|
66
|
+
export { IAppRegistry__factory } from "./factories/IAppRegistry__factory";
|
|
65
67
|
export { IArchitect__factory } from "./factories/IArchitect__factory";
|
|
66
68
|
export { IBanning__factory } from "./factories/IBanning__factory";
|
|
67
69
|
export { IChannel__factory } from "./factories/IChannel__factory";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.229",
|
|
4
4
|
"packageManager": "yarn@3.8.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"make-config": "node ./scripts/make-config.js",
|
|
11
11
|
"preinstall": "node ./scripts/make-config.js"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "217c4dfaa9d4697dab77ca0f299ba661e7a29952"
|
|
14
14
|
}
|