@towns-protocol/generated 0.0.415 → 0.0.418
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/.contracts-hash +1 -1
- package/dev/abis/IIdentityRegistry.abi.json +265 -0
- package/dev/abis/IIdentityRegistry.abi.ts +265 -0
- package/dev/abis/IIdentityRegistryBase.abi.json +113 -0
- package/dev/abis/IIdentityRegistryBase.abi.ts +113 -0
- package/dev/abis/IReputationRegistry.abi.json +440 -0
- package/dev/abis/IReputationRegistry.abi.ts +440 -0
- package/dev/abis/IReputationRegistryBase.abi.json +119 -0
- package/dev/abis/IReputationRegistryBase.abi.ts +119 -0
- package/dev/typings/IIdentityRegistry.ts +418 -0
- package/dev/typings/IReputationRegistry.ts +678 -0
- package/dev/typings/factories/IIdentityRegistry__factory.ts +289 -0
- package/dev/typings/factories/IReputationRegistry__factory.ts +464 -0
- package/dev/typings/factories/index.ts +2 -0
- package/dev/typings/index.ts +4 -0
- package/package.json +3 -3
- package/scripts/build-contract-types.sh +2 -2
|
@@ -0,0 +1,464 @@
|
|
|
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 {
|
|
8
|
+
IReputationRegistry,
|
|
9
|
+
IReputationRegistryInterface,
|
|
10
|
+
} from "../IReputationRegistry";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
type: "function",
|
|
15
|
+
name: "appendResponse",
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
name: "agentId",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "reviewerAddress",
|
|
24
|
+
type: "address",
|
|
25
|
+
internalType: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "feedbackIndex",
|
|
29
|
+
type: "uint64",
|
|
30
|
+
internalType: "uint64",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "responseUri",
|
|
34
|
+
type: "string",
|
|
35
|
+
internalType: "string",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "responseHash",
|
|
39
|
+
type: "bytes32",
|
|
40
|
+
internalType: "bytes32",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
outputs: [],
|
|
44
|
+
stateMutability: "nonpayable",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "function",
|
|
48
|
+
name: "getClients",
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
name: "agentId",
|
|
52
|
+
type: "uint256",
|
|
53
|
+
internalType: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
name: "clients",
|
|
59
|
+
type: "address[]",
|
|
60
|
+
internalType: "address[]",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "function",
|
|
67
|
+
name: "getIdentityRegistry",
|
|
68
|
+
inputs: [],
|
|
69
|
+
outputs: [
|
|
70
|
+
{
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
internalType: "address",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: "function",
|
|
80
|
+
name: "getLastIndex",
|
|
81
|
+
inputs: [
|
|
82
|
+
{
|
|
83
|
+
name: "agentId",
|
|
84
|
+
type: "uint256",
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "reviewerAddress",
|
|
89
|
+
type: "address",
|
|
90
|
+
internalType: "address",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
outputs: [
|
|
94
|
+
{
|
|
95
|
+
name: "lastIndex",
|
|
96
|
+
type: "uint64",
|
|
97
|
+
internalType: "uint64",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
stateMutability: "view",
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: "function",
|
|
104
|
+
name: "getResponseCount",
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
name: "agentId",
|
|
108
|
+
type: "uint256",
|
|
109
|
+
internalType: "uint256",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "reviewerAddress",
|
|
113
|
+
type: "address",
|
|
114
|
+
internalType: "address",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "feedbackIndex",
|
|
118
|
+
type: "uint64",
|
|
119
|
+
internalType: "uint64",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "responders",
|
|
123
|
+
type: "address[]",
|
|
124
|
+
internalType: "address[]",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
outputs: [
|
|
128
|
+
{
|
|
129
|
+
name: "",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
stateMutability: "view",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: "function",
|
|
138
|
+
name: "getSummary",
|
|
139
|
+
inputs: [
|
|
140
|
+
{
|
|
141
|
+
name: "agentId",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
internalType: "uint256",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "clientAddresses",
|
|
147
|
+
type: "address[]",
|
|
148
|
+
internalType: "address[]",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "tag1",
|
|
152
|
+
type: "bytes32",
|
|
153
|
+
internalType: "bytes32",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "tag2",
|
|
157
|
+
type: "bytes32",
|
|
158
|
+
internalType: "bytes32",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
name: "count",
|
|
164
|
+
type: "uint64",
|
|
165
|
+
internalType: "uint64",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "averageScore",
|
|
169
|
+
type: "uint8",
|
|
170
|
+
internalType: "uint8",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
stateMutability: "view",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
type: "function",
|
|
177
|
+
name: "giveFeedback",
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
name: "agentId",
|
|
181
|
+
type: "uint256",
|
|
182
|
+
internalType: "uint256",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "score",
|
|
186
|
+
type: "uint8",
|
|
187
|
+
internalType: "uint8",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: "tag1",
|
|
191
|
+
type: "bytes32",
|
|
192
|
+
internalType: "bytes32",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "tag2",
|
|
196
|
+
type: "bytes32",
|
|
197
|
+
internalType: "bytes32",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: "feedbackUri",
|
|
201
|
+
type: "string",
|
|
202
|
+
internalType: "string",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "feedbackHash",
|
|
206
|
+
type: "bytes32",
|
|
207
|
+
internalType: "bytes32",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
outputs: [],
|
|
211
|
+
stateMutability: "nonpayable",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: "function",
|
|
215
|
+
name: "readAllFeedback",
|
|
216
|
+
inputs: [
|
|
217
|
+
{
|
|
218
|
+
name: "agentId",
|
|
219
|
+
type: "uint256",
|
|
220
|
+
internalType: "uint256",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "clientAddresses",
|
|
224
|
+
type: "address[]",
|
|
225
|
+
internalType: "address[]",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "tag1",
|
|
229
|
+
type: "bytes32",
|
|
230
|
+
internalType: "bytes32",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "tag2",
|
|
234
|
+
type: "bytes32",
|
|
235
|
+
internalType: "bytes32",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "includeRevoked",
|
|
239
|
+
type: "bool",
|
|
240
|
+
internalType: "bool",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
outputs: [
|
|
244
|
+
{
|
|
245
|
+
name: "clients",
|
|
246
|
+
type: "address[]",
|
|
247
|
+
internalType: "address[]",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "scores",
|
|
251
|
+
type: "uint8[]",
|
|
252
|
+
internalType: "uint8[]",
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: "tag1s",
|
|
256
|
+
type: "bytes32[]",
|
|
257
|
+
internalType: "bytes32[]",
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "tag2s",
|
|
261
|
+
type: "bytes32[]",
|
|
262
|
+
internalType: "bytes32[]",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "revokedStatuses",
|
|
266
|
+
type: "bool[]",
|
|
267
|
+
internalType: "bool[]",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
stateMutability: "view",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
type: "function",
|
|
274
|
+
name: "readFeedback",
|
|
275
|
+
inputs: [
|
|
276
|
+
{
|
|
277
|
+
name: "agentId",
|
|
278
|
+
type: "uint256",
|
|
279
|
+
internalType: "uint256",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "reviewerAddress",
|
|
283
|
+
type: "address",
|
|
284
|
+
internalType: "address",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "index",
|
|
288
|
+
type: "uint64",
|
|
289
|
+
internalType: "uint64",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
outputs: [
|
|
293
|
+
{
|
|
294
|
+
name: "score",
|
|
295
|
+
type: "uint8",
|
|
296
|
+
internalType: "uint8",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "tag1",
|
|
300
|
+
type: "bytes32",
|
|
301
|
+
internalType: "bytes32",
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: "tag2",
|
|
305
|
+
type: "bytes32",
|
|
306
|
+
internalType: "bytes32",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "isRevoked",
|
|
310
|
+
type: "bool",
|
|
311
|
+
internalType: "bool",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "view",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
type: "function",
|
|
318
|
+
name: "revokeFeedback",
|
|
319
|
+
inputs: [
|
|
320
|
+
{
|
|
321
|
+
name: "agentId",
|
|
322
|
+
type: "uint256",
|
|
323
|
+
internalType: "uint256",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: "feedbackIndex",
|
|
327
|
+
type: "uint64",
|
|
328
|
+
internalType: "uint64",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
outputs: [],
|
|
332
|
+
stateMutability: "nonpayable",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
type: "event",
|
|
336
|
+
name: "FeedbackRevoked",
|
|
337
|
+
inputs: [
|
|
338
|
+
{
|
|
339
|
+
name: "agentId",
|
|
340
|
+
type: "uint256",
|
|
341
|
+
indexed: true,
|
|
342
|
+
internalType: "uint256",
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "reviewerAddress",
|
|
346
|
+
type: "address",
|
|
347
|
+
indexed: true,
|
|
348
|
+
internalType: "address",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: "feedbackIndex",
|
|
352
|
+
type: "uint64",
|
|
353
|
+
indexed: true,
|
|
354
|
+
internalType: "uint64",
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
anonymous: false,
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
type: "event",
|
|
361
|
+
name: "NewFeedback",
|
|
362
|
+
inputs: [
|
|
363
|
+
{
|
|
364
|
+
name: "agentId",
|
|
365
|
+
type: "uint256",
|
|
366
|
+
indexed: true,
|
|
367
|
+
internalType: "uint256",
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: "reviewerAddress",
|
|
371
|
+
type: "address",
|
|
372
|
+
indexed: true,
|
|
373
|
+
internalType: "address",
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
name: "score",
|
|
377
|
+
type: "uint8",
|
|
378
|
+
indexed: false,
|
|
379
|
+
internalType: "uint8",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: "tag1",
|
|
383
|
+
type: "bytes32",
|
|
384
|
+
indexed: true,
|
|
385
|
+
internalType: "bytes32",
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "tag2",
|
|
389
|
+
type: "bytes32",
|
|
390
|
+
indexed: false,
|
|
391
|
+
internalType: "bytes32",
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
name: "feedbackUri",
|
|
395
|
+
type: "string",
|
|
396
|
+
indexed: false,
|
|
397
|
+
internalType: "string",
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: "feedbackHash",
|
|
401
|
+
type: "bytes32",
|
|
402
|
+
indexed: false,
|
|
403
|
+
internalType: "bytes32",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
anonymous: false,
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
type: "event",
|
|
410
|
+
name: "ResponseAppended",
|
|
411
|
+
inputs: [
|
|
412
|
+
{
|
|
413
|
+
name: "agentId",
|
|
414
|
+
type: "uint256",
|
|
415
|
+
indexed: true,
|
|
416
|
+
internalType: "uint256",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: "reviewerAddress",
|
|
420
|
+
type: "address",
|
|
421
|
+
indexed: true,
|
|
422
|
+
internalType: "address",
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: "feedbackIndex",
|
|
426
|
+
type: "uint64",
|
|
427
|
+
indexed: false,
|
|
428
|
+
internalType: "uint64",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
name: "responder",
|
|
432
|
+
type: "address",
|
|
433
|
+
indexed: true,
|
|
434
|
+
internalType: "address",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: "responseUri",
|
|
438
|
+
type: "string",
|
|
439
|
+
indexed: false,
|
|
440
|
+
internalType: "string",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "responseHash",
|
|
444
|
+
type: "bytes32",
|
|
445
|
+
indexed: false,
|
|
446
|
+
internalType: "bytes32",
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
anonymous: false,
|
|
450
|
+
},
|
|
451
|
+
] as const;
|
|
452
|
+
|
|
453
|
+
export class IReputationRegistry__factory {
|
|
454
|
+
static readonly abi = _abi;
|
|
455
|
+
static createInterface(): IReputationRegistryInterface {
|
|
456
|
+
return new utils.Interface(_abi) as IReputationRegistryInterface;
|
|
457
|
+
}
|
|
458
|
+
static connect(
|
|
459
|
+
address: string,
|
|
460
|
+
signerOrProvider: Signer | Provider
|
|
461
|
+
): IReputationRegistry {
|
|
462
|
+
return new Contract(address, _abi, signerOrProvider) as IReputationRegistry;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
@@ -28,6 +28,7 @@ export { IERC721AQueryable__factory } from "./IERC721AQueryable__factory";
|
|
|
28
28
|
export { IEntitlementChecker__factory } from "./IEntitlementChecker__factory";
|
|
29
29
|
export { IEntitlementDataQueryable__factory } from "./IEntitlementDataQueryable__factory";
|
|
30
30
|
export { IEntitlementsManager__factory } from "./IEntitlementsManager__factory";
|
|
31
|
+
export { IIdentityRegistry__factory } from "./IIdentityRegistry__factory";
|
|
31
32
|
export { IMembershipMetadata__factory } from "./IMembershipMetadata__factory";
|
|
32
33
|
export { IMulticall__factory } from "./IMulticall__factory";
|
|
33
34
|
export { INodeOperator__factory } from "./INodeOperator__factory";
|
|
@@ -36,6 +37,7 @@ export { IOperatorRegistry__factory } from "./IOperatorRegistry__factory";
|
|
|
36
37
|
export { IPausable__factory } from "./IPausable__factory";
|
|
37
38
|
export { IPricingModules__factory } from "./IPricingModules__factory";
|
|
38
39
|
export { IProxyManager__factory } from "./IProxyManager__factory";
|
|
40
|
+
export { IReputationRegistry__factory } from "./IReputationRegistry__factory";
|
|
39
41
|
export { IReview__factory } from "./IReview__factory";
|
|
40
42
|
export { IRoles__factory } from "./IRoles__factory";
|
|
41
43
|
export { ISimpleApp__factory } from "./ISimpleApp__factory";
|
package/dev/typings/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ export type { IERC721AQueryable } from "./IERC721AQueryable";
|
|
|
32
32
|
export type { IEntitlementChecker } from "./IEntitlementChecker";
|
|
33
33
|
export type { IEntitlementDataQueryable } from "./IEntitlementDataQueryable";
|
|
34
34
|
export type { IEntitlementsManager } from "./IEntitlementsManager";
|
|
35
|
+
export type { IIdentityRegistry } from "./IIdentityRegistry";
|
|
35
36
|
export type { IMembershipMetadata } from "./IMembershipMetadata";
|
|
36
37
|
export type { IMulticall } from "./IMulticall";
|
|
37
38
|
export type { INodeOperator } from "./INodeOperator";
|
|
@@ -40,6 +41,7 @@ export type { IOperatorRegistry } from "./IOperatorRegistry";
|
|
|
40
41
|
export type { IPausable } from "./IPausable";
|
|
41
42
|
export type { IPricingModules } from "./IPricingModules";
|
|
42
43
|
export type { IProxyManager } from "./IProxyManager";
|
|
44
|
+
export type { IReputationRegistry } from "./IReputationRegistry";
|
|
43
45
|
export type { IReview } from "./IReview";
|
|
44
46
|
export type { IRoles } from "./IRoles";
|
|
45
47
|
export type { ISimpleApp } from "./ISimpleApp";
|
|
@@ -96,6 +98,7 @@ export { IEntitlementsManager__factory } from "./factories/IEntitlementsManager_
|
|
|
96
98
|
export { IERC5267__factory } from "./factories/IERC5267__factory";
|
|
97
99
|
export { IERC721A__factory } from "./factories/IERC721A__factory";
|
|
98
100
|
export { IERC721AQueryable__factory } from "./factories/IERC721AQueryable__factory";
|
|
101
|
+
export { IIdentityRegistry__factory } from "./factories/IIdentityRegistry__factory";
|
|
99
102
|
export { IMembershipMetadata__factory } from "./factories/IMembershipMetadata__factory";
|
|
100
103
|
export type { ILegacyArchitect } from "./IMockLegacyArchitect.sol/ILegacyArchitect";
|
|
101
104
|
export { ILegacyArchitect__factory } from "./factories/IMockLegacyArchitect.sol/ILegacyArchitect__factory";
|
|
@@ -106,6 +109,7 @@ export { IOperatorRegistry__factory } from "./factories/IOperatorRegistry__facto
|
|
|
106
109
|
export { IPausable__factory } from "./factories/IPausable__factory";
|
|
107
110
|
export { IPricingModules__factory } from "./factories/IPricingModules__factory";
|
|
108
111
|
export { IProxyManager__factory } from "./factories/IProxyManager__factory";
|
|
112
|
+
export { IReputationRegistry__factory } from "./factories/IReputationRegistry__factory";
|
|
109
113
|
export { IReview__factory } from "./factories/IReview__factory";
|
|
110
114
|
export { IRoles__factory } from "./factories/IRoles__factory";
|
|
111
115
|
export type { IRuleEntitlement } from "./IRuleEntitlement.sol/IRuleEntitlement";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towns-protocol/generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.418",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node ./scripts/prepare.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"ethers": "^5.8.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@towns-protocol/contracts": "^0.0.
|
|
16
|
+
"@towns-protocol/contracts": "^0.0.418",
|
|
17
17
|
"@typechain/ethers-v5": "^11.1.2",
|
|
18
18
|
"typechain": "^8.3.2"
|
|
19
19
|
},
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "735b3a67557584795c76b4b1632da911fcfe3abc"
|
|
38
38
|
}
|
|
@@ -11,7 +11,7 @@ TYPINGS_DIR="./dev/typings"
|
|
|
11
11
|
# Run forge build in contracts directory (needs foundry.toml)
|
|
12
12
|
(cd "$CONTRACTS_DIR" && forge build)
|
|
13
13
|
|
|
14
|
-
CONTRACT_INTERFACES="(IDiamond|IDiamondCut|IArchitect|Architect|ILegacyArchitect|MockLegacyArchitect|IProxyManager|IPausable|IEntitlementsManager|EntitlementsManager|IChannel|Channels|IRoles|Roles|IMulticall|IRuleEntitlement|IRuleEntitlementV2|IWalletLink|WalletLink|INodeRegistry|NodeRegistry|IOperatorRegistry|OperatorRegistry|IStreamRegistry|StreamRegistry|OwnableFacet|TokenPausableFacet|UserEntitlement|SpaceOwner|MockERC721A|MembershipFacet|IMembershipMetadata|Member|IBanning|IPricingModules|ICrossChainEntitlement|MockEntitlementGated|PrepayFacet|IERC721AQueryable|IEntitlementDataQueryable|PlatformRequirementsFacet|IERC721A|INodeOperator|ISpaceDelegation|IEntitlementChecker|IERC5267|ICreateSpace|IDropFacet|DropFacet|ITownsPoints|ITipping|IReview|ITreasury|ISwapRouter|ISwapFacet|IAppRegistry|IAppAccount|ISimpleApp|ITownsApp|Towns|RewardsDistributionV2|MainnetDelegation|GuardianFacet|SubscriptionModuleFacet|IAppInstaller|IAppFactory)"
|
|
14
|
+
CONTRACT_INTERFACES="(IDiamond|IDiamondCut|IArchitect|Architect|ILegacyArchitect|MockLegacyArchitect|IProxyManager|IPausable|IEntitlementsManager|EntitlementsManager|IChannel|Channels|IRoles|Roles|IMulticall|IRuleEntitlement|IRuleEntitlementV2|IWalletLink|WalletLink|INodeRegistry|NodeRegistry|IOperatorRegistry|OperatorRegistry|IStreamRegistry|StreamRegistry|OwnableFacet|TokenPausableFacet|UserEntitlement|SpaceOwner|MockERC721A|MembershipFacet|IMembershipMetadata|Member|IBanning|IPricingModules|ICrossChainEntitlement|MockEntitlementGated|PrepayFacet|IERC721AQueryable|IEntitlementDataQueryable|PlatformRequirementsFacet|IERC721A|INodeOperator|ISpaceDelegation|IEntitlementChecker|IERC5267|ICreateSpace|IDropFacet|DropFacet|ITownsPoints|ITipping|IReview|ITreasury|ISwapRouter|ISwapFacet|IAppRegistry|IAppAccount|ISimpleApp|ITownsApp|Towns|RewardsDistributionV2|MainnetDelegation|GuardianFacet|SubscriptionModuleFacet|IAppInstaller|IAppFactory|IIdentityRegistry|IReputationRegistry)"
|
|
15
15
|
|
|
16
16
|
# Clean typings to avoid stale factories/interfaces lingering between runs
|
|
17
17
|
rm -rf "$TYPINGS_DIR"
|
|
@@ -20,7 +20,7 @@ yarn typechain --target=ethers-v5 "$CONTRACTS_DIR/out/**/?${CONTRACT_INTERFACES}
|
|
|
20
20
|
# Clean abis to avoid stale abi files lingering between runs
|
|
21
21
|
rm -rf "$ABI_DIR"
|
|
22
22
|
mkdir -p "$ABI_DIR"
|
|
23
|
-
cp -a $CONTRACTS_DIR/out/{Diamond,DiamondCutFacet,Architect,MockLegacyArchitect,ProxyManager,IPausable,EntitlementsManager,Channels,Roles,IMulticall,OwnableFacet,WalletLink,MockWalletLink,NodeRegistry,OperatorRegistry,StreamRegistry,TokenPausableFacet,IRuleEntitlement,UserEntitlement,SpaceOwner,MockERC721A,MembershipFacet,IMembershipMetadata,Member,MockRiverRegistry,IBanning,IPricingModules,ICrossChainEntitlement,MockCrossChainEntitlement,MockEntitlementGated,PrepayFacet,IERC721AQueryable,IEntitlementDataQueryable,PlatformRequirementsFacet,IERC721A,INodeOperator,ISpaceDelegation,IEntitlementChecker,IEntitlementGated,IERC5267,ICreateSpace,DropFacet,ITownsPoints,ITipping,IReview,ITreasury,ISwapRouter,ISwapFacet,IAppRegistry,IAppAccount,ISimpleApp,ITownsApp,Towns,RewardsDistributionV2,MainnetDelegation,GuardianFacet,SubscriptionModuleFacet,IAppInstaller,IAppFactory}.sol/*.abi.json "$ABI_DIR"
|
|
23
|
+
cp -a $CONTRACTS_DIR/out/{Diamond,DiamondCutFacet,Architect,MockLegacyArchitect,ProxyManager,IPausable,EntitlementsManager,Channels,Roles,IMulticall,OwnableFacet,WalletLink,MockWalletLink,NodeRegistry,OperatorRegistry,StreamRegistry,TokenPausableFacet,IRuleEntitlement,UserEntitlement,SpaceOwner,MockERC721A,MembershipFacet,IMembershipMetadata,Member,MockRiverRegistry,IBanning,IPricingModules,ICrossChainEntitlement,MockCrossChainEntitlement,MockEntitlementGated,PrepayFacet,IERC721AQueryable,IEntitlementDataQueryable,PlatformRequirementsFacet,IERC721A,INodeOperator,ISpaceDelegation,IEntitlementChecker,IEntitlementGated,IERC5267,ICreateSpace,DropFacet,ITownsPoints,ITipping,IReview,ITreasury,ISwapRouter,ISwapFacet,IAppRegistry,IAppAccount,ISimpleApp,ITownsApp,Towns,RewardsDistributionV2,MainnetDelegation,GuardianFacet,SubscriptionModuleFacet,IAppInstaller,IAppFactory,IIdentityRegistry,IReputationRegistry}.sol/*.abi.json "$ABI_DIR"
|
|
24
24
|
|
|
25
25
|
# Copy the json abis to TS files for type inference
|
|
26
26
|
for file in $ABI_DIR/*.abi.json; do
|