@flarenetwork/flare-periphery-contract-artifacts 0.1.4 → 0.1.5

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 (72) hide show
  1. package/package.json +1 -1
  2. package/coston/StateConnector/configs/AddressValidity.json +0 -326
  3. package/coston/StateConnector/configs/BalanceDecreasingTransaction.json +0 -379
  4. package/coston/StateConnector/configs/ConfirmedBlockHeightExists.json +0 -363
  5. package/coston/StateConnector/configs/EVMTransaction.json +0 -600
  6. package/coston/StateConnector/configs/Payment.json +0 -512
  7. package/coston/StateConnector/configs/ReferencedPaymentNonexistence.json +0 -431
  8. package/coston/StateConnector/configs/TypeTemplate.json +0 -555
  9. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts +0 -68
  10. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts.map +0 -1
  11. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js +0 -164
  12. package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js.map +0 -1
  13. package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts +0 -33
  14. package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts.map +0 -1
  15. package/dist/coston/StateConnector/libs/ts/AttestationResponse.js +0 -30
  16. package/dist/coston/StateConnector/libs/ts/AttestationResponse.js.map +0 -1
  17. package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts +0 -103
  18. package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts.map +0 -1
  19. package/dist/coston/StateConnector/libs/ts/MerkleTree.js +0 -212
  20. package/dist/coston/StateConnector/libs/ts/MerkleTree.js.map +0 -1
  21. package/dist/coston/StateConnector/libs/ts/config-types.d.ts +0 -143
  22. package/dist/coston/StateConnector/libs/ts/config-types.d.ts.map +0 -1
  23. package/dist/coston/StateConnector/libs/ts/config-types.js +0 -3
  24. package/dist/coston/StateConnector/libs/ts/config-types.js.map +0 -1
  25. package/dist/coston/StateConnector/libs/ts/interfaces.d.ts +0 -32
  26. package/dist/coston/StateConnector/libs/ts/interfaces.d.ts.map +0 -1
  27. package/dist/coston/StateConnector/libs/ts/interfaces.js +0 -3
  28. package/dist/coston/StateConnector/libs/ts/interfaces.js.map +0 -1
  29. package/dist/coston/StateConnector/libs/ts/random.d.ts +0 -9
  30. package/dist/coston/StateConnector/libs/ts/random.d.ts.map +0 -1
  31. package/dist/coston/StateConnector/libs/ts/random.js +0 -70
  32. package/dist/coston/StateConnector/libs/ts/random.js.map +0 -1
  33. package/dist/coston/StateConnector/libs/ts/utils.d.ts +0 -73
  34. package/dist/coston/StateConnector/libs/ts/utils.d.ts.map +0 -1
  35. package/dist/coston/StateConnector/libs/ts/utils.js +0 -282
  36. package/dist/coston/StateConnector/libs/ts/utils.js.map +0 -1
  37. package/dist/coston/StateConnector/typescript/AddressValidity.d.ts +0 -95
  38. package/dist/coston/StateConnector/typescript/AddressValidity.d.ts.map +0 -1
  39. package/dist/coston/StateConnector/typescript/AddressValidity.js +0 -9
  40. package/dist/coston/StateConnector/typescript/AddressValidity.js.map +0 -1
  41. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts +0 -107
  42. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts.map +0 -1
  43. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js +0 -9
  44. package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js.map +0 -1
  45. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts +0 -103
  46. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts.map +0 -1
  47. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js +0 -9
  48. package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js.map +0 -1
  49. package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts +0 -160
  50. package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts.map +0 -1
  51. package/dist/coston/StateConnector/typescript/EVMTransaction.js +0 -9
  52. package/dist/coston/StateConnector/typescript/EVMTransaction.js.map +0 -1
  53. package/dist/coston/StateConnector/typescript/Payment.d.ts +0 -139
  54. package/dist/coston/StateConnector/typescript/Payment.d.ts.map +0 -1
  55. package/dist/coston/StateConnector/typescript/Payment.js +0 -9
  56. package/dist/coston/StateConnector/typescript/Payment.js.map +0 -1
  57. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts +0 -115
  58. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts.map +0 -1
  59. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js +0 -9
  60. package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js.map +0 -1
  61. package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts +0 -146
  62. package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts.map +0 -1
  63. package/dist/coston/StateConnector/typescript/TypeTemplate.js +0 -9
  64. package/dist/coston/StateConnector/typescript/TypeTemplate.js.map +0 -1
  65. package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts +0 -29
  66. package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts.map +0 -1
  67. package/dist/coston/StateConnector/typescript/data-sources/data-sources.js +0 -33
  68. package/dist/coston/StateConnector/typescript/data-sources/data-sources.js.map +0 -1
  69. package/dist/coston/StateConnector/typescript/index.d.ts +0 -9
  70. package/dist/coston/StateConnector/typescript/index.d.ts.map +0 -1
  71. package/dist/coston/StateConnector/typescript/index.js +0 -25
  72. package/dist/coston/StateConnector/typescript/index.js.map +0 -1
@@ -1,555 +0,0 @@
1
- {
2
- "name": "TypeTemplate",
3
- "fullComment": " @custom:name TypeTemplate\n @custom:id 0x00\n @custom:supported BTC\n @author <author of the type>\n @notice <description of the type>\n @custom:verification <general verification rules>\n @custom:lut <lowestUsedTimestamp>",
4
- "description": "<description of the type>",
5
- "supported": [
6
- "BTC"
7
- ],
8
- "verification": "<general verification rules>\n ",
9
- "lut": "<lowestUsedTimestamp>",
10
- "proof": {
11
- "name": "Proof",
12
- "description": "Toplevel proof",
13
- "above": "",
14
- "below": "",
15
- "fullComment": " @notice Toplevel proof\n @param merkleProof Merkle proof corresponding to the attestation response.\n @param data Attestation response.",
16
- "params": [
17
- {
18
- "name": "merkleProof",
19
- "type": "bytes32[]",
20
- "typeSimple": "bytes32[]",
21
- "comment": "Merkle proof corresponding to the attestation response."
22
- },
23
- {
24
- "name": "data",
25
- "type": "struct TypeTemplate.Response",
26
- "typeSimple": "Response",
27
- "comment": "Attestation response."
28
- }
29
- ]
30
- },
31
- "request": {
32
- "name": "Request",
33
- "description": "Toplevel request",
34
- "above": "",
35
- "below": "",
36
- "fullComment": " @notice Toplevel request\n @param attestationType ID of the attestation type.\n @param sourceId ID of the data source.\n @param messageIntegrityCode `MessageIntegrityCode` that is derived from the expected response.\n @param requestBody Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.",
37
- "params": [
38
- {
39
- "name": "attestationType",
40
- "type": "bytes32",
41
- "typeSimple": "bytes32",
42
- "comment": "ID of the attestation type."
43
- },
44
- {
45
- "name": "sourceId",
46
- "type": "bytes32",
47
- "typeSimple": "bytes32",
48
- "comment": "ID of the data source."
49
- },
50
- {
51
- "name": "messageIntegrityCode",
52
- "type": "bytes32",
53
- "typeSimple": "bytes32",
54
- "comment": "`MessageIntegrityCode` that is derived from the expected response."
55
- },
56
- {
57
- "name": "requestBody",
58
- "type": "struct TypeTemplate.RequestBody",
59
- "typeSimple": "RequestBody",
60
- "comment": "Data defining the request. Type (struct) and interpretation is determined by the `attestationType`."
61
- }
62
- ]
63
- },
64
- "response": {
65
- "name": "Response",
66
- "description": "Toplevel response",
67
- "above": "",
68
- "below": "",
69
- "fullComment": " @notice Toplevel response\n @param attestationType Extracted from the request.\n @param sourceId Extracted from the request.\n @param votingRound The ID of the State Connector round in which the request was considered.\n @param lowestUsedTimestamp The lowest timestamp used to generate the response.\n @param requestBody Extracted from the request.\n @param responseBody Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.",
70
- "params": [
71
- {
72
- "name": "attestationType",
73
- "type": "bytes32",
74
- "typeSimple": "bytes32",
75
- "comment": "Extracted from the request."
76
- },
77
- {
78
- "name": "sourceId",
79
- "type": "bytes32",
80
- "typeSimple": "bytes32",
81
- "comment": "Extracted from the request."
82
- },
83
- {
84
- "name": "votingRound",
85
- "type": "uint64",
86
- "typeSimple": "uint64",
87
- "comment": "The ID of the State Connector round in which the request was considered."
88
- },
89
- {
90
- "name": "lowestUsedTimestamp",
91
- "type": "uint64",
92
- "typeSimple": "uint64",
93
- "comment": "The lowest timestamp used to generate the response."
94
- },
95
- {
96
- "name": "requestBody",
97
- "type": "struct TypeTemplate.RequestBody",
98
- "typeSimple": "RequestBody",
99
- "comment": "Extracted from the request."
100
- },
101
- {
102
- "name": "responseBody",
103
- "type": "struct TypeTemplate.ResponseBody",
104
- "typeSimple": "ResponseBody",
105
- "comment": "Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`."
106
- }
107
- ]
108
- },
109
- "requestBody": {
110
- "name": "RequestBody",
111
- "description": "Request body for TypeTemplate attestation type",
112
- "above": "Additional explanation for 'above' slot in generated Markdown docs",
113
- "below": "Additional explanation for 'below' slot in generated Markdown docs",
114
- "fullComment": " @notice Request body for TypeTemplate attestation type\n @custom:above Additional explanation for 'above' slot in generated Markdown docs\n @custom:below Additional explanation for 'below' slot in generated Markdown docs\n @param bytes32Field example bytes32 field with explanation\n @param boolField example bool field field with explanation\n @param requestSubstruct1 example RequestSubstruct1 field with explanation\n @param requestSubstruct2Array example RequestSubstruct2 array field with explanation*",
115
- "params": [
116
- {
117
- "name": "bytes32Field",
118
- "type": "bytes32",
119
- "typeSimple": "bytes32",
120
- "comment": "example bytes32 field with explanation"
121
- },
122
- {
123
- "name": "boolField",
124
- "type": "bool",
125
- "typeSimple": "bool",
126
- "comment": "example bool field field with explanation"
127
- },
128
- {
129
- "name": "requestSubstruct1",
130
- "type": "struct TypeTemplate.RequestSubstruct1",
131
- "typeSimple": "RequestSubstruct1",
132
- "comment": "example RequestSubstruct1 field with explanation"
133
- },
134
- {
135
- "name": "requestSubstruct2Array",
136
- "type": "struct TypeTemplate.RequestSubstruct2[]",
137
- "typeSimple": "RequestSubstruct2[]",
138
- "comment": "example RequestSubstruct2 array field with explanation*"
139
- }
140
- ]
141
- },
142
- "responseBody": {
143
- "name": "ResponseBody",
144
- "description": "Response body for TypeTemplate attestation type.",
145
- "above": "Additional explanation for 'above' slot in generated Markdown docs",
146
- "below": "Additional explanation for 'below' slot in generated Markdown docs",
147
- "fullComment": " @notice Response body for TypeTemplate attestation type.\n @custom:above Additional explanation for 'above' slot in generated Markdown docs\n @custom:below Additional explanation for 'below' slot in generated Markdown docs\n @param templateResponseField example bytes32 field with explanation\n @param responseSubstruct1Array example ResponseSubstruct1 array field with explanation*",
148
- "params": [
149
- {
150
- "name": "templateResponseField",
151
- "type": "bytes32",
152
- "typeSimple": "bytes32",
153
- "comment": "example bytes32 field with explanation"
154
- },
155
- {
156
- "name": "responseSubstruct1Array",
157
- "type": "struct TypeTemplate.ResponseSubstruct1[]",
158
- "typeSimple": "ResponseSubstruct1[]",
159
- "comment": "example ResponseSubstruct1 array field with explanation*"
160
- }
161
- ]
162
- },
163
- "requestStructs": [
164
- {
165
- "name": "RequestSubstruct1",
166
- "description": "Additional struct first used in Request body fields",
167
- "above": "Additional explanation for 'above' slot in generated Markdown docs",
168
- "below": "Additional explanation for 'below' slot in generated Markdown docs",
169
- "fullComment": " @notice Additional struct first used in Request body fields\n @custom:above Additional explanation for 'above' slot in generated Markdown docs\n @custom:below Additional explanation for 'below' slot in generated Markdown docs\n @param templateStructField example bytes32 field with explanation\n @param uintArrayField example uint256 array field with explanation\n @param boolArrayField example bool array field with explanation*",
170
- "params": [
171
- {
172
- "name": "templateStructField",
173
- "type": "bytes32",
174
- "typeSimple": "bytes32",
175
- "comment": "example bytes32 field with explanation"
176
- },
177
- {
178
- "name": "uintArrayField",
179
- "type": "uint256[]",
180
- "typeSimple": "uint256[]",
181
- "comment": "example uint256 array field with explanation"
182
- },
183
- {
184
- "name": "boolArrayField",
185
- "type": "bool[]",
186
- "typeSimple": "bool[]",
187
- "comment": "example bool array field with explanation*"
188
- }
189
- ]
190
- },
191
- {
192
- "name": "RequestSubstruct2",
193
- "description": "Additional struct first used in Request body fields",
194
- "above": "Additional explanation for 'above' slot in generated Markdown docs",
195
- "below": "Additional explanation for 'below' slot in generated Markdown docs",
196
- "fullComment": " @notice Additional struct first used in Request body fields\n @custom:above Additional explanation for 'above' slot in generated Markdown docs\n @custom:below Additional explanation for 'below' slot in generated Markdown docs\n @param templateStructField example bytes32 field with explanation\n @param intArrayField example int256 array field with explanation\n @param boolArrayField example bool array field with explanation*",
197
- "params": [
198
- {
199
- "name": "templateStructField",
200
- "type": "bytes32",
201
- "typeSimple": "bytes32",
202
- "comment": "example bytes32 field with explanation"
203
- },
204
- {
205
- "name": "intArrayField",
206
- "type": "int256[]",
207
- "typeSimple": "int256[]",
208
- "comment": "example int256 array field with explanation"
209
- },
210
- {
211
- "name": "boolArrayField",
212
- "type": "bool[]",
213
- "typeSimple": "bool[]",
214
- "comment": "example bool array field with explanation*"
215
- }
216
- ]
217
- }
218
- ],
219
- "responseStructs": [
220
- {
221
- "name": "ResponseSubstruct1",
222
- "description": "Additional struct first used in Response body fields",
223
- "above": "Additional explanation for 'above' slot in generated Markdown docs",
224
- "below": "Additional explanation for 'below' slot in generated Markdown docs",
225
- "fullComment": " @notice Additional struct first used in Response body fields\n @custom:above Additional explanation for 'above' slot in generated Markdown docs\n @custom:below Additional explanation for 'below' slot in generated Markdown docs\n @param templateStructField description*",
226
- "params": [
227
- {
228
- "name": "templateStructField",
229
- "type": "bytes32",
230
- "typeSimple": "bytes32",
231
- "comment": "description*"
232
- }
233
- ]
234
- }
235
- ],
236
- "requestAbi": {
237
- "components": [
238
- {
239
- "internalType": "bytes32",
240
- "name": "attestationType",
241
- "type": "bytes32"
242
- },
243
- {
244
- "internalType": "bytes32",
245
- "name": "sourceId",
246
- "type": "bytes32"
247
- },
248
- {
249
- "internalType": "bytes32",
250
- "name": "messageIntegrityCode",
251
- "type": "bytes32"
252
- },
253
- {
254
- "components": [
255
- {
256
- "internalType": "bytes32",
257
- "name": "bytes32Field",
258
- "type": "bytes32"
259
- },
260
- {
261
- "internalType": "bool",
262
- "name": "boolField",
263
- "type": "bool"
264
- },
265
- {
266
- "components": [
267
- {
268
- "internalType": "bytes32",
269
- "name": "templateStructField",
270
- "type": "bytes32"
271
- },
272
- {
273
- "internalType": "uint256[]",
274
- "name": "uintArrayField",
275
- "type": "uint256[]"
276
- },
277
- {
278
- "internalType": "bool[]",
279
- "name": "boolArrayField",
280
- "type": "bool[]"
281
- }
282
- ],
283
- "internalType": "struct TypeTemplate.RequestSubstruct1",
284
- "name": "requestSubstruct1",
285
- "type": "tuple"
286
- },
287
- {
288
- "components": [
289
- {
290
- "internalType": "bytes32",
291
- "name": "templateStructField",
292
- "type": "bytes32"
293
- },
294
- {
295
- "internalType": "int256[]",
296
- "name": "intArrayField",
297
- "type": "int256[]"
298
- },
299
- {
300
- "internalType": "bool[]",
301
- "name": "boolArrayField",
302
- "type": "bool[]"
303
- }
304
- ],
305
- "internalType": "struct TypeTemplate.RequestSubstruct2[]",
306
- "name": "requestSubstruct2Array",
307
- "type": "tuple[]"
308
- }
309
- ],
310
- "internalType": "struct TypeTemplate.RequestBody",
311
- "name": "requestBody",
312
- "type": "tuple"
313
- }
314
- ],
315
- "internalType": "struct TypeTemplate.Request",
316
- "name": "_request",
317
- "type": "tuple"
318
- },
319
- "responseAbi": {
320
- "components": [
321
- {
322
- "internalType": "bytes32",
323
- "name": "attestationType",
324
- "type": "bytes32"
325
- },
326
- {
327
- "internalType": "bytes32",
328
- "name": "sourceId",
329
- "type": "bytes32"
330
- },
331
- {
332
- "internalType": "uint64",
333
- "name": "votingRound",
334
- "type": "uint64"
335
- },
336
- {
337
- "internalType": "uint64",
338
- "name": "lowestUsedTimestamp",
339
- "type": "uint64"
340
- },
341
- {
342
- "components": [
343
- {
344
- "internalType": "bytes32",
345
- "name": "bytes32Field",
346
- "type": "bytes32"
347
- },
348
- {
349
- "internalType": "bool",
350
- "name": "boolField",
351
- "type": "bool"
352
- },
353
- {
354
- "components": [
355
- {
356
- "internalType": "bytes32",
357
- "name": "templateStructField",
358
- "type": "bytes32"
359
- },
360
- {
361
- "internalType": "uint256[]",
362
- "name": "uintArrayField",
363
- "type": "uint256[]"
364
- },
365
- {
366
- "internalType": "bool[]",
367
- "name": "boolArrayField",
368
- "type": "bool[]"
369
- }
370
- ],
371
- "internalType": "struct TypeTemplate.RequestSubstruct1",
372
- "name": "requestSubstruct1",
373
- "type": "tuple"
374
- },
375
- {
376
- "components": [
377
- {
378
- "internalType": "bytes32",
379
- "name": "templateStructField",
380
- "type": "bytes32"
381
- },
382
- {
383
- "internalType": "int256[]",
384
- "name": "intArrayField",
385
- "type": "int256[]"
386
- },
387
- {
388
- "internalType": "bool[]",
389
- "name": "boolArrayField",
390
- "type": "bool[]"
391
- }
392
- ],
393
- "internalType": "struct TypeTemplate.RequestSubstruct2[]",
394
- "name": "requestSubstruct2Array",
395
- "type": "tuple[]"
396
- }
397
- ],
398
- "internalType": "struct TypeTemplate.RequestBody",
399
- "name": "requestBody",
400
- "type": "tuple"
401
- },
402
- {
403
- "components": [
404
- {
405
- "internalType": "bytes32",
406
- "name": "templateResponseField",
407
- "type": "bytes32"
408
- },
409
- {
410
- "components": [
411
- {
412
- "internalType": "bytes32",
413
- "name": "templateStructField",
414
- "type": "bytes32"
415
- }
416
- ],
417
- "internalType": "struct TypeTemplate.ResponseSubstruct1[]",
418
- "name": "responseSubstruct1Array",
419
- "type": "tuple[]"
420
- }
421
- ],
422
- "internalType": "struct TypeTemplate.ResponseBody",
423
- "name": "responseBody",
424
- "type": "tuple"
425
- }
426
- ],
427
- "internalType": "struct TypeTemplate.Response",
428
- "name": "_response",
429
- "type": "tuple"
430
- },
431
- "proofAbi": {
432
- "components": [
433
- {
434
- "internalType": "bytes32[]",
435
- "name": "merkleProof",
436
- "type": "bytes32[]"
437
- },
438
- {
439
- "components": [
440
- {
441
- "internalType": "bytes32",
442
- "name": "attestationType",
443
- "type": "bytes32"
444
- },
445
- {
446
- "internalType": "bytes32",
447
- "name": "sourceId",
448
- "type": "bytes32"
449
- },
450
- {
451
- "internalType": "uint64",
452
- "name": "votingRound",
453
- "type": "uint64"
454
- },
455
- {
456
- "internalType": "uint64",
457
- "name": "lowestUsedTimestamp",
458
- "type": "uint64"
459
- },
460
- {
461
- "components": [
462
- {
463
- "internalType": "bytes32",
464
- "name": "bytes32Field",
465
- "type": "bytes32"
466
- },
467
- {
468
- "internalType": "bool",
469
- "name": "boolField",
470
- "type": "bool"
471
- },
472
- {
473
- "components": [
474
- {
475
- "internalType": "bytes32",
476
- "name": "templateStructField",
477
- "type": "bytes32"
478
- },
479
- {
480
- "internalType": "uint256[]",
481
- "name": "uintArrayField",
482
- "type": "uint256[]"
483
- },
484
- {
485
- "internalType": "bool[]",
486
- "name": "boolArrayField",
487
- "type": "bool[]"
488
- }
489
- ],
490
- "internalType": "struct TypeTemplate.RequestSubstruct1",
491
- "name": "requestSubstruct1",
492
- "type": "tuple"
493
- },
494
- {
495
- "components": [
496
- {
497
- "internalType": "bytes32",
498
- "name": "templateStructField",
499
- "type": "bytes32"
500
- },
501
- {
502
- "internalType": "int256[]",
503
- "name": "intArrayField",
504
- "type": "int256[]"
505
- },
506
- {
507
- "internalType": "bool[]",
508
- "name": "boolArrayField",
509
- "type": "bool[]"
510
- }
511
- ],
512
- "internalType": "struct TypeTemplate.RequestSubstruct2[]",
513
- "name": "requestSubstruct2Array",
514
- "type": "tuple[]"
515
- }
516
- ],
517
- "internalType": "struct TypeTemplate.RequestBody",
518
- "name": "requestBody",
519
- "type": "tuple"
520
- },
521
- {
522
- "components": [
523
- {
524
- "internalType": "bytes32",
525
- "name": "templateResponseField",
526
- "type": "bytes32"
527
- },
528
- {
529
- "components": [
530
- {
531
- "internalType": "bytes32",
532
- "name": "templateStructField",
533
- "type": "bytes32"
534
- }
535
- ],
536
- "internalType": "struct TypeTemplate.ResponseSubstruct1[]",
537
- "name": "responseSubstruct1Array",
538
- "type": "tuple[]"
539
- }
540
- ],
541
- "internalType": "struct TypeTemplate.ResponseBody",
542
- "name": "responseBody",
543
- "type": "tuple"
544
- }
545
- ],
546
- "internalType": "struct TypeTemplate.Response",
547
- "name": "data",
548
- "type": "tuple"
549
- }
550
- ],
551
- "internalType": "struct TypeTemplate.Proof",
552
- "name": "_proof",
553
- "type": "tuple"
554
- }
555
- }
@@ -1,68 +0,0 @@
1
- import { TypeRecord } from "./config-types";
2
- import { ethers } from "ethers";
3
- import { ARBase, ARESBase } from "./interfaces";
4
- /**
5
- * Attestation definition store. Contains all the attestation type definitions
6
- * that are contained in the folder, from which the store was initialized.
7
- */
8
- export declare class AttestationDefinitionStore {
9
- definitions: Map<string, TypeRecord>;
10
- coder: ethers.AbiCoder;
11
- constructor(configsPath?: string);
12
- /**
13
- * Initializes the store by reading the attestation type definition configs from the
14
- * provided path.
15
- * @param configsPath
16
- */
17
- private initialize;
18
- /**
19
- * Returns the attestation type definition for the provided attestation type id.
20
- * @param attestationType
21
- * @returns
22
- */
23
- getDefinitionForDecodedAttestationType(attestationType: string): TypeRecord | undefined;
24
- getABIsForDecodedAttestationType(attestationTypeId: string): {
25
- requestAbi: any;
26
- responseAbi: any;
27
- proofAbi: any;
28
- };
29
- /**
30
- * Calculated usual or salted hash of the attestation response.
31
- * The function throws an error if an attestation type is not supported or
32
- * the response does not match the provided ABI definition.
33
- * @param response
34
- * @param salt
35
- * @returns
36
- */
37
- attestationResponseHash<T extends ARESBase>(response: T, salt?: string): string;
38
- /**
39
- * Extracts the attestation type prefix from the provided attestation request.
40
- * The prefix consists of 3 x 32 bytes: attestation type, source id and message integrity code.
41
- * The rest of the bytes define ABI encoded request body.
42
- * @param bytes
43
- * @param decodeAttestationTypeName
44
- * @returns
45
- */
46
- static extractPrefixFromRequest(bytes: string, decodeAttestationTypeName?: boolean): ARBase;
47
- /**
48
- * Encodes attestation request.
49
- * The request must have the attestation type encoded into 32-byte 0x-prefixed string.
50
- * @param request
51
- * @returns
52
- */
53
- encodeRequest(request: ARBase): string;
54
- /**
55
- * Parses attestation request.
56
- * @param bytes
57
- * @returns
58
- */
59
- parseRequest<AR extends ARBase>(bytes: string, decodeAttestationTypeName?: boolean): AR;
60
- /**
61
- * Compares two attestation requests.
62
- * @param request1
63
- * @param request2
64
- * @returns
65
- */
66
- equalsRequest(request1: ARBase, request2: ARBase): boolean;
67
- }
68
- //# sourceMappingURL=AttestationDefinitionStore.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttestationDefinitionStore.d.ts","sourceRoot":"","sources":["../../../../../coston/StateConnector/libs/ts/AttestationDefinitionStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAYhD;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,WAAW,EAAG,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACtC,KAAK,EAAG,MAAM,CAAC,QAAQ,CAAC;gBAEZ,WAAW,SAAwC;IAG/D;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;OAIG;IACH,sCAAsC,CAAC,eAAe,EAAE,MAAM;IAI9D,gCAAgC,CAAC,iBAAiB,EAAE,MAAM;;;;;IAY1D;;;;;;;OAOG;IACH,uBAAuB,CAAC,CAAC,SAAS,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM;IAe/E;;;;;;;OAOG;IACH,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,yBAAyB,UAAQ,GAAG,MAAM;IAsBzF;;;;;OAKG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAoBtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,yBAAyB,UAAQ,GAAG,EAAE;IAqBrF;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO;CAc7D"}