@cef-ebsi/cli 0.0.0-alpha.0

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 (159) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +32 -0
  3. package/bin/cli.js +13 -0
  4. package/dist/abi/pilot/DidRegistry-old.json +2192 -0
  5. package/dist/abi/pilot/DidRegistry.json +1081 -0
  6. package/dist/abi/pilot/DidRegistryV3.json +1081 -0
  7. package/dist/abi/pilot/SchemaSCRegistry.json +972 -0
  8. package/dist/abi/pilot/SchemaSCRegistryV2.json +473 -0
  9. package/dist/abi/pilot/Tar.json +1394 -0
  10. package/dist/abi/pilot/TarV3.json +1107 -0
  11. package/dist/abi/pilot/Timestamp.json +1091 -0
  12. package/dist/abi/pilot/TimestampV2.json +1127 -0
  13. package/dist/abi/pilot/Tir.json +896 -0
  14. package/dist/abi/pilot/TirV3.json +495 -0
  15. package/dist/abi/pilot/Tpr.json +1267 -0
  16. package/dist/abi/pilot/TprV2.json +888 -0
  17. package/dist/abi/test/DidRegistry-old.json +2192 -0
  18. package/dist/abi/test/DidRegistry.json +1081 -0
  19. package/dist/abi/test/DidRegistryV3.json +1088 -0
  20. package/dist/abi/test/SchemaSCRegistry.json +972 -0
  21. package/dist/abi/test/SchemaSCRegistryV2.json +473 -0
  22. package/dist/abi/test/Tar.json +1394 -0
  23. package/dist/abi/test/TarV3.json +1107 -0
  24. package/dist/abi/test/Timestamp.json +1091 -0
  25. package/dist/abi/test/TimestampV2.json +1127 -0
  26. package/dist/abi/test/Tir.json +896 -0
  27. package/dist/abi/test/TirV3.json +495 -0
  28. package/dist/abi/test/Tpr.json +1267 -0
  29. package/dist/abi/test/TprV2.json +888 -0
  30. package/dist/app.js +1205 -0
  31. package/dist/app.js.map +1 -0
  32. package/dist/buildParam/did.js +355 -0
  33. package/dist/buildParam/did.js.map +1 -0
  34. package/dist/buildParam/didOld.js +275 -0
  35. package/dist/buildParam/didOld.js.map +1 -0
  36. package/dist/buildParam/didV3.js +353 -0
  37. package/dist/buildParam/didV3.js.map +1 -0
  38. package/dist/buildParam/index.js +54 -0
  39. package/dist/buildParam/index.js.map +1 -0
  40. package/dist/buildParam/tar.js +240 -0
  41. package/dist/buildParam/tar.js.map +1 -0
  42. package/dist/buildParam/tarV3.js +193 -0
  43. package/dist/buildParam/tarV3.js.map +1 -0
  44. package/dist/buildParam/timestamp.js +323 -0
  45. package/dist/buildParam/timestamp.js.map +1 -0
  46. package/dist/buildParam/timestampV2.js +317 -0
  47. package/dist/buildParam/timestampV2.js.map +1 -0
  48. package/dist/buildParam/tir.js +200 -0
  49. package/dist/buildParam/tir.js.map +1 -0
  50. package/dist/buildParam/tirV3.js +104 -0
  51. package/dist/buildParam/tirV3.js.map +1 -0
  52. package/dist/buildParam/tpr.js +167 -0
  53. package/dist/buildParam/tpr.js.map +1 -0
  54. package/dist/buildParam/tprV2.js +82 -0
  55. package/dist/buildParam/tprV2.js.map +1 -0
  56. package/dist/buildParam/tsr.js +149 -0
  57. package/dist/buildParam/tsr.js.map +1 -0
  58. package/dist/buildParam/tsrV2.js +110 -0
  59. package/dist/buildParam/tsrV2.js.map +1 -0
  60. package/dist/cli.js +10 -0
  61. package/dist/cli.js.map +1 -0
  62. package/dist/commands/authorisation-v3.js +98 -0
  63. package/dist/commands/authorisation-v3.js.map +1 -0
  64. package/dist/commands/authorisation-v4.js +221 -0
  65. package/dist/commands/authorisation-v4.js.map +1 -0
  66. package/dist/commands/compute.js +374 -0
  67. package/dist/commands/compute.js.map +1 -0
  68. package/dist/commands/conformance-v3.js +745 -0
  69. package/dist/commands/conformance-v3.js.map +1 -0
  70. package/dist/commands/conformance-v4.js +767 -0
  71. package/dist/commands/conformance-v4.js.map +1 -0
  72. package/dist/commands/index.js +9 -0
  73. package/dist/commands/index.js.map +1 -0
  74. package/dist/commands/ledger-v3.js +189 -0
  75. package/dist/commands/ledger-v3.js.map +1 -0
  76. package/dist/commands/ledger-v4.js +188 -0
  77. package/dist/commands/ledger-v4.js.map +1 -0
  78. package/dist/commands/view.js +62 -0
  79. package/dist/commands/view.js.map +1 -0
  80. package/dist/config.js +910 -0
  81. package/dist/config.js.map +1 -0
  82. package/dist/index.js +7 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/interfaces/authorisation/authorisation.interface.js +2 -0
  85. package/dist/interfaces/authorisation/authorisation.interface.js.map +1 -0
  86. package/dist/interfaces/authorisation/index.js +2 -0
  87. package/dist/interfaces/authorisation/index.js.map +1 -0
  88. package/dist/interfaces/context.js +2 -0
  89. package/dist/interfaces/context.js.map +1 -0
  90. package/dist/interfaces/index.js +10 -0
  91. package/dist/interfaces/index.js.map +1 -0
  92. package/dist/interfaces/ledger/besu.interface.js +2 -0
  93. package/dist/interfaces/ledger/besu.interface.js.map +1 -0
  94. package/dist/interfaces/ledger/index.js +2 -0
  95. package/dist/interfaces/ledger/index.js.map +1 -0
  96. package/dist/interfaces/notifications/index.js +2 -0
  97. package/dist/interfaces/notifications/index.js.map +1 -0
  98. package/dist/interfaces/notifications/notifications.interface.js +2 -0
  99. package/dist/interfaces/notifications/notifications.interface.js.map +1 -0
  100. package/dist/interfaces/proxy-data-hub/attributes.interface.js +2 -0
  101. package/dist/interfaces/proxy-data-hub/attributes.interface.js.map +1 -0
  102. package/dist/interfaces/proxy-data-hub/index.js +2 -0
  103. package/dist/interfaces/proxy-data-hub/index.js.map +1 -0
  104. package/dist/interfaces/shared/index.js +5 -0
  105. package/dist/interfaces/shared/index.js.map +1 -0
  106. package/dist/interfaces/shared/jsonrpc.interface.js +2 -0
  107. package/dist/interfaces/shared/jsonrpc.interface.js.map +1 -0
  108. package/dist/interfaces/shared/paginated-list.interface.js +2 -0
  109. package/dist/interfaces/shared/paginated-list.interface.js.map +1 -0
  110. package/dist/interfaces/shared/unsigned-transaction.interface.js +2 -0
  111. package/dist/interfaces/shared/unsigned-transaction.interface.js.map +1 -0
  112. package/dist/interfaces/shared/utils.interface.js +2 -0
  113. package/dist/interfaces/shared/utils.interface.js.map +1 -0
  114. package/dist/interfaces/timestamp/hash-algorithms.interface.js +2 -0
  115. package/dist/interfaces/timestamp/hash-algorithms.interface.js.map +1 -0
  116. package/dist/interfaces/timestamp/index.js +4 -0
  117. package/dist/interfaces/timestamp/index.js.map +1 -0
  118. package/dist/interfaces/timestamp/records.interface.js +2 -0
  119. package/dist/interfaces/timestamp/records.interface.js.map +1 -0
  120. package/dist/interfaces/timestamp/timestamps.interface.js +2 -0
  121. package/dist/interfaces/timestamp/timestamps.interface.js.map +1 -0
  122. package/dist/interfaces/trusted-apps-registry/apps.interface.js +2 -0
  123. package/dist/interfaces/trusted-apps-registry/apps.interface.js.map +1 -0
  124. package/dist/interfaces/trusted-apps-registry/index.js +3 -0
  125. package/dist/interfaces/trusted-apps-registry/index.js.map +1 -0
  126. package/dist/interfaces/trusted-apps-registry/policies.interface.js +2 -0
  127. package/dist/interfaces/trusted-apps-registry/policies.interface.js.map +1 -0
  128. package/dist/interfaces/trusted-issuers-registry/index.js +2 -0
  129. package/dist/interfaces/trusted-issuers-registry/index.js.map +1 -0
  130. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js +2 -0
  131. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js.map +1 -0
  132. package/dist/interfaces/users-onboarding/authentication.js +2 -0
  133. package/dist/interfaces/users-onboarding/authentication.js.map +1 -0
  134. package/dist/interfaces/users-onboarding/index.js +2 -0
  135. package/dist/interfaces/users-onboarding/index.js.map +1 -0
  136. package/dist/programs/appRegistration.js +65 -0
  137. package/dist/programs/appRegistration.js.map +1 -0
  138. package/dist/tsconfig.tsbuildinfo +1 -0
  139. package/dist/utils/Client.js +176 -0
  140. package/dist/utils/Client.js.map +1 -0
  141. package/dist/utils/authorisation.js +118 -0
  142. package/dist/utils/authorisation.js.map +1 -0
  143. package/dist/utils/http.js +128 -0
  144. package/dist/utils/http.js.map +1 -0
  145. package/dist/utils/index.js +10 -0
  146. package/dist/utils/index.js.map +1 -0
  147. package/dist/utils/jsonrpc.js +33 -0
  148. package/dist/utils/jsonrpc.js.map +1 -0
  149. package/dist/utils/notification.js +51 -0
  150. package/dist/utils/notification.js.map +1 -0
  151. package/dist/utils/print.js +57 -0
  152. package/dist/utils/print.js.map +1 -0
  153. package/dist/utils/storage.js +97 -0
  154. package/dist/utils/storage.js.map +1 -0
  155. package/dist/utils/utils.js +161 -0
  156. package/dist/utils/utils.js.map +1 -0
  157. package/dist/utils/verifiablePresentation.js +43 -0
  158. package/dist/utils/verifiablePresentation.js.map +1 -0
  159. package/package.json +113 -0
@@ -0,0 +1,1127 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "_tprAddress",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "anonymous": false,
15
+ "inputs": [
16
+ {
17
+ "indexed": true,
18
+ "internalType": "uint256",
19
+ "name": "hashId",
20
+ "type": "uint256"
21
+ },
22
+ {
23
+ "indexed": true,
24
+ "internalType": "string",
25
+ "name": "ianaNameHash",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "indexed": false,
30
+ "internalType": "uint256",
31
+ "name": "outputLength",
32
+ "type": "uint256"
33
+ },
34
+ {
35
+ "indexed": false,
36
+ "internalType": "string",
37
+ "name": "oid",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "indexed": false,
42
+ "internalType": "enum HashAlgoStorage.Status",
43
+ "name": "status",
44
+ "type": "uint8"
45
+ },
46
+ {
47
+ "indexed": false,
48
+ "internalType": "string",
49
+ "name": "multiHash",
50
+ "type": "string"
51
+ }
52
+ ],
53
+ "name": "AddNewHashAlgo",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint8",
62
+ "name": "version",
63
+ "type": "uint8"
64
+ }
65
+ ],
66
+ "name": "Initialized",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": false,
74
+ "internalType": "uint256",
75
+ "name": "",
76
+ "type": "uint256"
77
+ }
78
+ ],
79
+ "name": "NewVersion",
80
+ "type": "event"
81
+ },
82
+ {
83
+ "anonymous": false,
84
+ "inputs": [
85
+ {
86
+ "indexed": true,
87
+ "internalType": "bytes32",
88
+ "name": "recordId",
89
+ "type": "bytes32"
90
+ },
91
+ {
92
+ "indexed": false,
93
+ "internalType": "bytes32[]",
94
+ "name": "timestampIds",
95
+ "type": "bytes32[]"
96
+ },
97
+ {
98
+ "indexed": false,
99
+ "internalType": "bytes32",
100
+ "name": "versionInfoHash",
101
+ "type": "bytes32"
102
+ }
103
+ ],
104
+ "name": "RecordedHashes",
105
+ "type": "event"
106
+ },
107
+ {
108
+ "anonymous": false,
109
+ "inputs": [
110
+ {
111
+ "indexed": false,
112
+ "internalType": "bytes",
113
+ "name": "versionHash",
114
+ "type": "bytes"
115
+ },
116
+ {
117
+ "indexed": false,
118
+ "internalType": "bytes32[]",
119
+ "name": "timestampIds",
120
+ "type": "bytes32[]"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "bytes",
125
+ "name": "versionInfo",
126
+ "type": "bytes"
127
+ }
128
+ ],
129
+ "name": "TimestampVersionHashes",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": false,
137
+ "internalType": "bytes32[]",
138
+ "name": "timestampIds",
139
+ "type": "bytes32[]"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "uint256[]",
144
+ "name": "hashAlgorithmIds",
145
+ "type": "uint256[]"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "bytes[]",
150
+ "name": "hashValues",
151
+ "type": "bytes[]"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "bytes[]",
156
+ "name": "timestampData",
157
+ "type": "bytes[]"
158
+ }
159
+ ],
160
+ "name": "TimestampedHashes",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": true,
168
+ "internalType": "uint256",
169
+ "name": "hashId",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "indexed": true,
174
+ "internalType": "string",
175
+ "name": "ianaNameHash",
176
+ "type": "string"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "string",
181
+ "name": "ianaName",
182
+ "type": "string"
183
+ },
184
+ {
185
+ "indexed": false,
186
+ "internalType": "uint256",
187
+ "name": "outputLength",
188
+ "type": "uint256"
189
+ },
190
+ {
191
+ "indexed": false,
192
+ "internalType": "string",
193
+ "name": "oid",
194
+ "type": "string"
195
+ },
196
+ {
197
+ "indexed": false,
198
+ "internalType": "enum HashAlgoStorage.Status",
199
+ "name": "status",
200
+ "type": "uint8"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "string",
205
+ "name": "multiHash",
206
+ "type": "string"
207
+ }
208
+ ],
209
+ "name": "UpdateHashAlgo",
210
+ "type": "event"
211
+ },
212
+ {
213
+ "inputs": [],
214
+ "name": "TS_DIAMOND_STORAGE_POSITION",
215
+ "outputs": [
216
+ {
217
+ "internalType": "bytes32",
218
+ "name": "",
219
+ "type": "bytes32"
220
+ }
221
+ ],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [],
227
+ "name": "TS_HASHALGO_DIAMOND_STORAGE_POSITION",
228
+ "outputs": [
229
+ {
230
+ "internalType": "bytes32",
231
+ "name": "",
232
+ "type": "bytes32"
233
+ }
234
+ ],
235
+ "stateMutability": "view",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "TS_RECORD_DIAMOND_STORAGE_POSITION",
241
+ "outputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "",
245
+ "type": "bytes32"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [
253
+ {
254
+ "internalType": "bytes32",
255
+ "name": "recordId",
256
+ "type": "bytes32"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "versionId",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "uint256[]",
265
+ "name": "hashAlgorithmIds",
266
+ "type": "uint256[]"
267
+ },
268
+ {
269
+ "internalType": "bytes[]",
270
+ "name": "hashValues",
271
+ "type": "bytes[]"
272
+ },
273
+ {
274
+ "internalType": "bytes[]",
275
+ "name": "timestampData",
276
+ "type": "bytes[]"
277
+ },
278
+ {
279
+ "internalType": "bytes",
280
+ "name": "versionInfo",
281
+ "type": "bytes"
282
+ }
283
+ ],
284
+ "name": "appendRecordVersionHashes",
285
+ "outputs": [],
286
+ "stateMutability": "nonpayable",
287
+ "type": "function"
288
+ },
289
+ {
290
+ "inputs": [
291
+ {
292
+ "internalType": "bytes32",
293
+ "name": "recordId",
294
+ "type": "bytes32"
295
+ },
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "versionId",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "internalType": "bytes",
303
+ "name": "hashValue",
304
+ "type": "bytes"
305
+ }
306
+ ],
307
+ "name": "detachRecordVersionHash",
308
+ "outputs": [],
309
+ "stateMutability": "nonpayable",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "internalType": "uint256",
316
+ "name": "hashAlgorithmId",
317
+ "type": "uint256"
318
+ }
319
+ ],
320
+ "name": "getHashAlgorithmById",
321
+ "outputs": [
322
+ {
323
+ "internalType": "uint256",
324
+ "name": "outputLength",
325
+ "type": "uint256"
326
+ },
327
+ {
328
+ "internalType": "string",
329
+ "name": "ianaName",
330
+ "type": "string"
331
+ },
332
+ {
333
+ "internalType": "string",
334
+ "name": "oid",
335
+ "type": "string"
336
+ },
337
+ {
338
+ "internalType": "enum HashAlgoStorage.Status",
339
+ "name": "status",
340
+ "type": "uint8"
341
+ },
342
+ {
343
+ "internalType": "string",
344
+ "name": "multiHash",
345
+ "type": "string"
346
+ }
347
+ ],
348
+ "stateMutability": "view",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [
353
+ {
354
+ "internalType": "uint256",
355
+ "name": "page",
356
+ "type": "uint256"
357
+ },
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "pageSize",
361
+ "type": "uint256"
362
+ }
363
+ ],
364
+ "name": "getHashAlgorithms",
365
+ "outputs": [
366
+ {
367
+ "internalType": "uint256[]",
368
+ "name": "items",
369
+ "type": "uint256[]"
370
+ },
371
+ {
372
+ "internalType": "uint256",
373
+ "name": "total",
374
+ "type": "uint256"
375
+ },
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "howMany",
379
+ "type": "uint256"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "prev",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "next",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "stateMutability": "view",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "bytes32",
399
+ "name": "recordId",
400
+ "type": "bytes32"
401
+ }
402
+ ],
403
+ "name": "getRecord",
404
+ "outputs": [
405
+ {
406
+ "internalType": "string[]",
407
+ "name": "ownerIds",
408
+ "type": "string[]"
409
+ },
410
+ {
411
+ "internalType": "string[]",
412
+ "name": "revokedOwnerIds",
413
+ "type": "string[]"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "totalVersions",
418
+ "type": "uint256"
419
+ }
420
+ ],
421
+ "stateMutability": "view",
422
+ "type": "function"
423
+ },
424
+ {
425
+ "inputs": [
426
+ {
427
+ "internalType": "uint256",
428
+ "name": "page",
429
+ "type": "uint256"
430
+ },
431
+ {
432
+ "internalType": "uint256",
433
+ "name": "pageSize",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "name": "getRecordIds",
438
+ "outputs": [
439
+ {
440
+ "internalType": "bytes32[]",
441
+ "name": "items",
442
+ "type": "bytes32[]"
443
+ },
444
+ {
445
+ "internalType": "uint256",
446
+ "name": "total",
447
+ "type": "uint256"
448
+ },
449
+ {
450
+ "internalType": "uint256",
451
+ "name": "howMany",
452
+ "type": "uint256"
453
+ },
454
+ {
455
+ "internalType": "uint256",
456
+ "name": "prev",
457
+ "type": "uint256"
458
+ },
459
+ {
460
+ "internalType": "uint256",
461
+ "name": "next",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "internalType": "bytes",
472
+ "name": "hashValue",
473
+ "type": "bytes"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "page",
478
+ "type": "uint256"
479
+ },
480
+ {
481
+ "internalType": "uint256",
482
+ "name": "pageSize",
483
+ "type": "uint256"
484
+ }
485
+ ],
486
+ "name": "getRecordIdsByFirstVersionHash",
487
+ "outputs": [
488
+ {
489
+ "internalType": "bytes32[]",
490
+ "name": "items",
491
+ "type": "bytes32[]"
492
+ },
493
+ {
494
+ "internalType": "uint256",
495
+ "name": "total",
496
+ "type": "uint256"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "howMany",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "prev",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "internalType": "uint256",
510
+ "name": "next",
511
+ "type": "uint256"
512
+ }
513
+ ],
514
+ "stateMutability": "view",
515
+ "type": "function"
516
+ },
517
+ {
518
+ "inputs": [
519
+ {
520
+ "internalType": "string",
521
+ "name": "ownerId",
522
+ "type": "string"
523
+ },
524
+ {
525
+ "internalType": "uint256",
526
+ "name": "page",
527
+ "type": "uint256"
528
+ },
529
+ {
530
+ "internalType": "uint256",
531
+ "name": "pageSize",
532
+ "type": "uint256"
533
+ }
534
+ ],
535
+ "name": "getRecordIdsByOwnerId",
536
+ "outputs": [
537
+ {
538
+ "internalType": "bytes32[]",
539
+ "name": "items",
540
+ "type": "bytes32[]"
541
+ },
542
+ {
543
+ "internalType": "uint256",
544
+ "name": "total",
545
+ "type": "uint256"
546
+ },
547
+ {
548
+ "internalType": "uint256",
549
+ "name": "howMany",
550
+ "type": "uint256"
551
+ },
552
+ {
553
+ "internalType": "uint256",
554
+ "name": "prev",
555
+ "type": "uint256"
556
+ },
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "next",
560
+ "type": "uint256"
561
+ }
562
+ ],
563
+ "stateMutability": "view",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [
568
+ {
569
+ "internalType": "bytes32",
570
+ "name": "recordId",
571
+ "type": "bytes32"
572
+ },
573
+ {
574
+ "internalType": "string",
575
+ "name": "ownerId",
576
+ "type": "string"
577
+ }
578
+ ],
579
+ "name": "getRecordOwnerInfo",
580
+ "outputs": [
581
+ {
582
+ "internalType": "bool",
583
+ "name": "revoked",
584
+ "type": "bool"
585
+ },
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "notBefore",
589
+ "type": "uint256"
590
+ },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "notAfter",
594
+ "type": "uint256"
595
+ }
596
+ ],
597
+ "stateMutability": "view",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [
602
+ {
603
+ "internalType": "bytes32",
604
+ "name": "recordId",
605
+ "type": "bytes32"
606
+ },
607
+ {
608
+ "internalType": "uint256",
609
+ "name": "versionId",
610
+ "type": "uint256"
611
+ },
612
+ {
613
+ "internalType": "uint256",
614
+ "name": "page",
615
+ "type": "uint256"
616
+ },
617
+ {
618
+ "internalType": "uint256",
619
+ "name": "pageSize",
620
+ "type": "uint256"
621
+ }
622
+ ],
623
+ "name": "getRecordVersion",
624
+ "outputs": [
625
+ {
626
+ "internalType": "uint256[]",
627
+ "name": "hashAlgorithmIds",
628
+ "type": "uint256[]"
629
+ },
630
+ {
631
+ "internalType": "bytes[]",
632
+ "name": "hashValues",
633
+ "type": "bytes[]"
634
+ },
635
+ {
636
+ "internalType": "bytes32[]",
637
+ "name": "infoIds",
638
+ "type": "bytes32[]"
639
+ },
640
+ {
641
+ "internalType": "uint256",
642
+ "name": "total",
643
+ "type": "uint256"
644
+ },
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "howMany",
648
+ "type": "uint256"
649
+ },
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "prev",
653
+ "type": "uint256"
654
+ },
655
+ {
656
+ "internalType": "uint256",
657
+ "name": "next",
658
+ "type": "uint256"
659
+ }
660
+ ],
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "inputs": [
666
+ {
667
+ "internalType": "bytes32",
668
+ "name": "versionInfoId",
669
+ "type": "bytes32"
670
+ }
671
+ ],
672
+ "name": "getRecordVersionInfo",
673
+ "outputs": [
674
+ {
675
+ "internalType": "bytes",
676
+ "name": "info",
677
+ "type": "bytes"
678
+ }
679
+ ],
680
+ "stateMutability": "view",
681
+ "type": "function"
682
+ },
683
+ {
684
+ "inputs": [
685
+ {
686
+ "internalType": "bytes",
687
+ "name": "hashValue",
688
+ "type": "bytes"
689
+ }
690
+ ],
691
+ "name": "getTimestamp",
692
+ "outputs": [
693
+ {
694
+ "components": [
695
+ {
696
+ "internalType": "uint256",
697
+ "name": "algorithm",
698
+ "type": "uint256"
699
+ },
700
+ {
701
+ "internalType": "bytes",
702
+ "name": "value",
703
+ "type": "bytes"
704
+ }
705
+ ],
706
+ "internalType": "struct TimestampStorage.Hash",
707
+ "name": "hash",
708
+ "type": "tuple"
709
+ },
710
+ {
711
+ "internalType": "address",
712
+ "name": "timestampedBy",
713
+ "type": "address"
714
+ },
715
+ {
716
+ "internalType": "uint256",
717
+ "name": "blockNumber",
718
+ "type": "uint256"
719
+ },
720
+ {
721
+ "internalType": "bytes",
722
+ "name": "data",
723
+ "type": "bytes"
724
+ }
725
+ ],
726
+ "stateMutability": "view",
727
+ "type": "function"
728
+ },
729
+ {
730
+ "inputs": [
731
+ {
732
+ "internalType": "bytes32",
733
+ "name": "timestampId",
734
+ "type": "bytes32"
735
+ }
736
+ ],
737
+ "name": "getTimestampById",
738
+ "outputs": [
739
+ {
740
+ "components": [
741
+ {
742
+ "internalType": "uint256",
743
+ "name": "algorithm",
744
+ "type": "uint256"
745
+ },
746
+ {
747
+ "internalType": "bytes",
748
+ "name": "value",
749
+ "type": "bytes"
750
+ }
751
+ ],
752
+ "internalType": "struct TimestampStorage.Hash",
753
+ "name": "hash",
754
+ "type": "tuple"
755
+ },
756
+ {
757
+ "internalType": "address",
758
+ "name": "timestampedBy",
759
+ "type": "address"
760
+ },
761
+ {
762
+ "internalType": "uint256",
763
+ "name": "blockNumber",
764
+ "type": "uint256"
765
+ },
766
+ {
767
+ "internalType": "bytes",
768
+ "name": "data",
769
+ "type": "bytes"
770
+ }
771
+ ],
772
+ "stateMutability": "view",
773
+ "type": "function"
774
+ },
775
+ {
776
+ "inputs": [
777
+ {
778
+ "internalType": "uint256",
779
+ "name": "page",
780
+ "type": "uint256"
781
+ },
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "pageSize",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "name": "getTimestamps",
789
+ "outputs": [
790
+ {
791
+ "internalType": "bytes32[]",
792
+ "name": "items",
793
+ "type": "bytes32[]"
794
+ },
795
+ {
796
+ "internalType": "uint256",
797
+ "name": "total",
798
+ "type": "uint256"
799
+ },
800
+ {
801
+ "internalType": "uint256",
802
+ "name": "howMany",
803
+ "type": "uint256"
804
+ },
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "prev",
808
+ "type": "uint256"
809
+ },
810
+ {
811
+ "internalType": "uint256",
812
+ "name": "next",
813
+ "type": "uint256"
814
+ }
815
+ ],
816
+ "stateMutability": "view",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "inputs": [
821
+ {
822
+ "internalType": "uint256",
823
+ "name": "v",
824
+ "type": "uint256"
825
+ }
826
+ ],
827
+ "name": "initialize",
828
+ "outputs": [],
829
+ "stateMutability": "nonpayable",
830
+ "type": "function"
831
+ },
832
+ {
833
+ "inputs": [
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "outputLength",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "string",
841
+ "name": "ianaName",
842
+ "type": "string"
843
+ },
844
+ {
845
+ "internalType": "string",
846
+ "name": "oid",
847
+ "type": "string"
848
+ },
849
+ {
850
+ "internalType": "enum HashAlgoStorage.Status",
851
+ "name": "status",
852
+ "type": "uint8"
853
+ },
854
+ {
855
+ "internalType": "string",
856
+ "name": "multiHash",
857
+ "type": "string"
858
+ }
859
+ ],
860
+ "name": "insertHashAlgorithm",
861
+ "outputs": [],
862
+ "stateMutability": "nonpayable",
863
+ "type": "function"
864
+ },
865
+ {
866
+ "inputs": [
867
+ {
868
+ "internalType": "bytes32",
869
+ "name": "recordId",
870
+ "type": "bytes32"
871
+ },
872
+ {
873
+ "internalType": "string",
874
+ "name": "ownerId",
875
+ "type": "string"
876
+ },
877
+ {
878
+ "internalType": "uint256",
879
+ "name": "notBefore",
880
+ "type": "uint256"
881
+ },
882
+ {
883
+ "internalType": "uint256",
884
+ "name": "notAfter",
885
+ "type": "uint256"
886
+ }
887
+ ],
888
+ "name": "insertRecordOwner",
889
+ "outputs": [],
890
+ "stateMutability": "nonpayable",
891
+ "type": "function"
892
+ },
893
+ {
894
+ "inputs": [
895
+ {
896
+ "internalType": "bytes32",
897
+ "name": "recordId",
898
+ "type": "bytes32"
899
+ },
900
+ {
901
+ "internalType": "uint256",
902
+ "name": "versionId",
903
+ "type": "uint256"
904
+ },
905
+ {
906
+ "internalType": "bytes",
907
+ "name": "versionInfo",
908
+ "type": "bytes"
909
+ }
910
+ ],
911
+ "name": "insertRecordVersionInfo",
912
+ "outputs": [],
913
+ "stateMutability": "nonpayable",
914
+ "type": "function"
915
+ },
916
+ {
917
+ "inputs": [],
918
+ "name": "policyRegistryContract",
919
+ "outputs": [
920
+ {
921
+ "internalType": "contract IPolicyRegistry",
922
+ "name": "",
923
+ "type": "address"
924
+ }
925
+ ],
926
+ "stateMutability": "view",
927
+ "type": "function"
928
+ },
929
+ {
930
+ "inputs": [
931
+ {
932
+ "internalType": "bytes32",
933
+ "name": "recordId",
934
+ "type": "bytes32"
935
+ },
936
+ {
937
+ "internalType": "string",
938
+ "name": "ownerId",
939
+ "type": "string"
940
+ }
941
+ ],
942
+ "name": "revokeRecordOwner",
943
+ "outputs": [],
944
+ "stateMutability": "nonpayable",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "inputs": [
949
+ {
950
+ "internalType": "uint256[]",
951
+ "name": "hashAlgorithmIds",
952
+ "type": "uint256[]"
953
+ },
954
+ {
955
+ "internalType": "bytes[]",
956
+ "name": "hashValues",
957
+ "type": "bytes[]"
958
+ },
959
+ {
960
+ "internalType": "bytes[]",
961
+ "name": "timestampData",
962
+ "type": "bytes[]"
963
+ }
964
+ ],
965
+ "name": "timestampHashes",
966
+ "outputs": [
967
+ {
968
+ "internalType": "bytes32[]",
969
+ "name": "timestampIds",
970
+ "type": "bytes32[]"
971
+ }
972
+ ],
973
+ "stateMutability": "nonpayable",
974
+ "type": "function"
975
+ },
976
+ {
977
+ "inputs": [
978
+ {
979
+ "internalType": "uint256[]",
980
+ "name": "hashAlgorithmIds",
981
+ "type": "uint256[]"
982
+ },
983
+ {
984
+ "internalType": "bytes[]",
985
+ "name": "hashValues",
986
+ "type": "bytes[]"
987
+ },
988
+ {
989
+ "internalType": "bytes[]",
990
+ "name": "timestampData",
991
+ "type": "bytes[]"
992
+ },
993
+ {
994
+ "internalType": "bytes",
995
+ "name": "versionInfo",
996
+ "type": "bytes"
997
+ }
998
+ ],
999
+ "name": "timestampRecordHashes",
1000
+ "outputs": [
1001
+ {
1002
+ "internalType": "bytes32",
1003
+ "name": "recordId",
1004
+ "type": "bytes32"
1005
+ }
1006
+ ],
1007
+ "stateMutability": "nonpayable",
1008
+ "type": "function"
1009
+ },
1010
+ {
1011
+ "inputs": [
1012
+ {
1013
+ "internalType": "bytes32",
1014
+ "name": "recordId",
1015
+ "type": "bytes32"
1016
+ },
1017
+ {
1018
+ "internalType": "uint256[]",
1019
+ "name": "hashAlgorithmIds",
1020
+ "type": "uint256[]"
1021
+ },
1022
+ {
1023
+ "internalType": "bytes[]",
1024
+ "name": "hashValues",
1025
+ "type": "bytes[]"
1026
+ },
1027
+ {
1028
+ "internalType": "bytes[]",
1029
+ "name": "timestampData",
1030
+ "type": "bytes[]"
1031
+ },
1032
+ {
1033
+ "internalType": "bytes",
1034
+ "name": "versionInfo",
1035
+ "type": "bytes"
1036
+ }
1037
+ ],
1038
+ "name": "timestampRecordVersionHashes",
1039
+ "outputs": [],
1040
+ "stateMutability": "nonpayable",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [
1045
+ {
1046
+ "internalType": "bytes",
1047
+ "name": "versionHash",
1048
+ "type": "bytes"
1049
+ },
1050
+ {
1051
+ "internalType": "uint256[]",
1052
+ "name": "hashAlgorithmIds",
1053
+ "type": "uint256[]"
1054
+ },
1055
+ {
1056
+ "internalType": "bytes[]",
1057
+ "name": "hashValues",
1058
+ "type": "bytes[]"
1059
+ },
1060
+ {
1061
+ "internalType": "bytes[]",
1062
+ "name": "timestampData",
1063
+ "type": "bytes[]"
1064
+ },
1065
+ {
1066
+ "internalType": "bytes",
1067
+ "name": "versionInfo",
1068
+ "type": "bytes"
1069
+ }
1070
+ ],
1071
+ "name": "timestampVersionHashes",
1072
+ "outputs": [],
1073
+ "stateMutability": "nonpayable",
1074
+ "type": "function"
1075
+ },
1076
+ {
1077
+ "inputs": [
1078
+ {
1079
+ "internalType": "uint256",
1080
+ "name": "hashAlgorithmId",
1081
+ "type": "uint256"
1082
+ },
1083
+ {
1084
+ "internalType": "uint256",
1085
+ "name": "outputLength",
1086
+ "type": "uint256"
1087
+ },
1088
+ {
1089
+ "internalType": "string",
1090
+ "name": "ianaName",
1091
+ "type": "string"
1092
+ },
1093
+ {
1094
+ "internalType": "string",
1095
+ "name": "oid",
1096
+ "type": "string"
1097
+ },
1098
+ {
1099
+ "internalType": "enum HashAlgoStorage.Status",
1100
+ "name": "status",
1101
+ "type": "uint8"
1102
+ },
1103
+ {
1104
+ "internalType": "string",
1105
+ "name": "multiHash",
1106
+ "type": "string"
1107
+ }
1108
+ ],
1109
+ "name": "updateHashAlgorithm",
1110
+ "outputs": [],
1111
+ "stateMutability": "nonpayable",
1112
+ "type": "function"
1113
+ },
1114
+ {
1115
+ "inputs": [],
1116
+ "name": "version",
1117
+ "outputs": [
1118
+ {
1119
+ "internalType": "uint256",
1120
+ "name": "",
1121
+ "type": "uint256"
1122
+ }
1123
+ ],
1124
+ "stateMutability": "view",
1125
+ "type": "function"
1126
+ }
1127
+ ]