@cef-ebsi/cli 0.0.0-alpha.0 → 0.1.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 (201) hide show
  1. package/dist/abi/pilot/DidRegistry.js +1082 -0
  2. package/dist/abi/pilot/DidRegistry.js.map +1 -0
  3. package/dist/abi/pilot/SchemaSCRegistry.js +973 -0
  4. package/dist/abi/pilot/SchemaSCRegistry.js.map +1 -0
  5. package/dist/abi/pilot/Tar.js +1395 -0
  6. package/dist/abi/pilot/Tar.js.map +1 -0
  7. package/dist/abi/pilot/Timestamp.js +1092 -0
  8. package/dist/abi/pilot/Timestamp.js.map +1 -0
  9. package/dist/abi/pilot/Tir.js +897 -0
  10. package/dist/abi/pilot/Tir.js.map +1 -0
  11. package/dist/abi/pilot/Tpr.js +1268 -0
  12. package/dist/abi/pilot/Tpr.js.map +1 -0
  13. package/dist/abi/test/DidRegistry.js +1082 -0
  14. package/dist/abi/test/DidRegistry.js.map +1 -0
  15. package/dist/abi/test/SchemaSCRegistry.js +973 -0
  16. package/dist/abi/test/SchemaSCRegistry.js.map +1 -0
  17. package/dist/abi/test/Tar.js +1395 -0
  18. package/dist/abi/test/Tar.js.map +1 -0
  19. package/dist/abi/test/Timestamp.js +1092 -0
  20. package/dist/abi/test/Timestamp.js.map +1 -0
  21. package/dist/abi/test/Tir.js +897 -0
  22. package/dist/abi/test/Tir.js.map +1 -0
  23. package/dist/abi/test/Tpr.js +1268 -0
  24. package/dist/abi/test/Tpr.js.map +1 -0
  25. package/dist/app.js +34 -714
  26. package/dist/app.js.map +1 -1
  27. package/dist/buildParam/did.js.map +1 -1
  28. package/dist/buildParam/index.js +0 -23
  29. package/dist/buildParam/index.js.map +1 -1
  30. package/dist/buildParam/tar.js.map +1 -1
  31. package/dist/buildParam/timestamp.js.map +1 -1
  32. package/dist/buildParam/tir.js.map +1 -1
  33. package/dist/buildParam/tsr.js.map +1 -1
  34. package/dist/commands/{authorisation-v4.js → authorisation-v2.js} +11 -91
  35. package/dist/commands/authorisation-v2.js.map +1 -0
  36. package/dist/commands/compute.js +13 -49
  37. package/dist/commands/compute.js.map +1 -1
  38. package/dist/commands/index.js +1 -3
  39. package/dist/commands/index.js.map +1 -1
  40. package/dist/commands/ledger-v3.js +1 -16
  41. package/dist/commands/ledger-v3.js.map +1 -1
  42. package/dist/commands/view.js +1 -1
  43. package/dist/commands/view.js.map +1 -1
  44. package/dist/config.js +14 -422
  45. package/dist/config.js.map +1 -1
  46. package/dist/interfaces/index.js +4 -9
  47. package/dist/interfaces/index.js.map +1 -1
  48. package/dist/interfaces/jsonrpc.interface.js.map +1 -0
  49. package/dist/interfaces/paginated-list.interface.js.map +1 -0
  50. package/dist/interfaces/unsigned-transaction.interface.js.map +1 -0
  51. package/dist/interfaces/utils.interface.js.map +1 -0
  52. package/dist/programs/appRegistration.js +4 -4
  53. package/dist/programs/appRegistration.js.map +1 -1
  54. package/dist/scripts/accreditAndAuthorize/conformance/step1 +35 -0
  55. package/dist/scripts/accreditAndAuthorize/conformance/step2 +18 -0
  56. package/dist/scripts/accreditAndAuthorize/conformance/step3 +9 -0
  57. package/dist/scripts/accreditAndAuthorize/conformance/step4 +27 -0
  58. package/dist/scripts/accreditAndAuthorize/conformance/step5 +13 -0
  59. package/dist/scripts/accreditAndAuthorize/conformance/step6 +14 -0
  60. package/dist/scripts/accreditAndAuthorize/conformance/step7 +7 -0
  61. package/dist/scripts/accreditAndAuthorize/test/step1 +35 -0
  62. package/dist/scripts/accreditAndAuthorize/test/step2 +18 -0
  63. package/dist/scripts/accreditAndAuthorize/test/step3 +9 -0
  64. package/dist/scripts/accreditAndAuthorize/test/step4 +27 -0
  65. package/dist/scripts/accreditAndAuthorize/test/step5 +13 -0
  66. package/dist/scripts/accreditAndAuthorize/test/step6 +14 -0
  67. package/dist/scripts/accreditAndAuthorize/test/step7 +7 -0
  68. package/dist/scripts/accreditTI +21 -0
  69. package/dist/scripts/assets/CTRevocableCredential.json +30 -0
  70. package/dist/scripts/assets/CredentialToAttestVerifiableAuthorisationForTrustChain.json +29 -0
  71. package/dist/scripts/assets/VerifiableAccreditationToAccredit.json +35 -0
  72. package/dist/scripts/assets/VerifiableAccreditationToAttest.json +33 -0
  73. package/dist/scripts/assets/VerifiableAuthorisationForTrustChain.json +22 -0
  74. package/dist/scripts/assets/VerifiableAuthorisationToOnboard.json +24 -0
  75. package/dist/scripts/bootstrap/0a-loadTPROperator +5 -0
  76. package/dist/scripts/bootstrap/0b-loadAdmin +6 -0
  77. package/dist/scripts/bootstrap/1-populateTPR +115 -0
  78. package/dist/scripts/bootstrap/2-populateDID +21 -0
  79. package/dist/scripts/bootstrap/3-populateTAR +92 -0
  80. package/dist/scripts/bootstrap/4-populateTimestamp +10 -0
  81. package/dist/scripts/bootstrap/5-populateTIR +9 -0
  82. package/dist/scripts/bootstrap/6-populateTSR +22 -0
  83. package/dist/scripts/bootstrap/7-setupConformanceIssuer +35 -0
  84. package/dist/scripts/initializeContracts +5 -0
  85. package/dist/scripts/issue_CTRevocableCredential +13 -0
  86. package/dist/scripts/issue_SelfAttestationSupportOffice +11 -0
  87. package/dist/scripts/issue_VerifiableAccreditationToAccredit +12 -0
  88. package/dist/scripts/issue_VerifiableAccreditationToAttest +12 -0
  89. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +11 -0
  90. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +10 -0
  91. package/dist/scripts/registerDidDocument_ES256K_ES256 +13 -0
  92. package/dist/scripts/wctv3/accreditAndAuthorize +106 -0
  93. package/dist/scripts/wctv3/holderWallet +29 -0
  94. package/dist/scripts/wctv3/issueToHolder +27 -0
  95. package/dist/scripts/wctv3/pda1 +2 -0
  96. package/dist/scripts/wctv3/verifier +7 -0
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/utils/index.js +0 -3
  99. package/dist/utils/index.js.map +1 -1
  100. package/dist/utils/utils.js +3 -7
  101. package/dist/utils/utils.js.map +1 -1
  102. package/package.json +5 -23
  103. package/dist/abi/pilot/DidRegistry-old.json +0 -2192
  104. package/dist/abi/pilot/DidRegistry.json +0 -1081
  105. package/dist/abi/pilot/DidRegistryV3.json +0 -1081
  106. package/dist/abi/pilot/SchemaSCRegistry.json +0 -972
  107. package/dist/abi/pilot/SchemaSCRegistryV2.json +0 -473
  108. package/dist/abi/pilot/Tar.json +0 -1394
  109. package/dist/abi/pilot/TarV3.json +0 -1107
  110. package/dist/abi/pilot/Timestamp.json +0 -1091
  111. package/dist/abi/pilot/TimestampV2.json +0 -1127
  112. package/dist/abi/pilot/Tir.json +0 -896
  113. package/dist/abi/pilot/TirV3.json +0 -495
  114. package/dist/abi/pilot/Tpr.json +0 -1267
  115. package/dist/abi/pilot/TprV2.json +0 -888
  116. package/dist/abi/test/DidRegistry-old.json +0 -2192
  117. package/dist/abi/test/DidRegistry.json +0 -1081
  118. package/dist/abi/test/DidRegistryV3.json +0 -1088
  119. package/dist/abi/test/SchemaSCRegistry.json +0 -972
  120. package/dist/abi/test/SchemaSCRegistryV2.json +0 -473
  121. package/dist/abi/test/Tar.json +0 -1394
  122. package/dist/abi/test/TarV3.json +0 -1107
  123. package/dist/abi/test/Timestamp.json +0 -1091
  124. package/dist/abi/test/TimestampV2.json +0 -1127
  125. package/dist/abi/test/Tir.json +0 -896
  126. package/dist/abi/test/TirV3.json +0 -495
  127. package/dist/abi/test/Tpr.json +0 -1267
  128. package/dist/abi/test/TprV2.json +0 -888
  129. package/dist/buildParam/didOld.js +0 -275
  130. package/dist/buildParam/didOld.js.map +0 -1
  131. package/dist/buildParam/didV3.js +0 -353
  132. package/dist/buildParam/didV3.js.map +0 -1
  133. package/dist/buildParam/tarV3.js +0 -193
  134. package/dist/buildParam/tarV3.js.map +0 -1
  135. package/dist/buildParam/timestampV2.js +0 -317
  136. package/dist/buildParam/timestampV2.js.map +0 -1
  137. package/dist/buildParam/tirV3.js +0 -104
  138. package/dist/buildParam/tirV3.js.map +0 -1
  139. package/dist/buildParam/tprV2.js +0 -82
  140. package/dist/buildParam/tprV2.js.map +0 -1
  141. package/dist/buildParam/tsrV2.js +0 -110
  142. package/dist/buildParam/tsrV2.js.map +0 -1
  143. package/dist/commands/authorisation-v4.js.map +0 -1
  144. package/dist/commands/conformance-v4.js +0 -767
  145. package/dist/commands/conformance-v4.js.map +0 -1
  146. package/dist/commands/ledger-v4.js +0 -188
  147. package/dist/commands/ledger-v4.js.map +0 -1
  148. package/dist/interfaces/authorisation/authorisation.interface.js +0 -2
  149. package/dist/interfaces/authorisation/authorisation.interface.js.map +0 -1
  150. package/dist/interfaces/authorisation/index.js +0 -2
  151. package/dist/interfaces/authorisation/index.js.map +0 -1
  152. package/dist/interfaces/ledger/besu.interface.js +0 -2
  153. package/dist/interfaces/ledger/besu.interface.js.map +0 -1
  154. package/dist/interfaces/ledger/index.js +0 -2
  155. package/dist/interfaces/ledger/index.js.map +0 -1
  156. package/dist/interfaces/notifications/index.js +0 -2
  157. package/dist/interfaces/notifications/index.js.map +0 -1
  158. package/dist/interfaces/notifications/notifications.interface.js +0 -2
  159. package/dist/interfaces/notifications/notifications.interface.js.map +0 -1
  160. package/dist/interfaces/proxy-data-hub/attributes.interface.js +0 -2
  161. package/dist/interfaces/proxy-data-hub/attributes.interface.js.map +0 -1
  162. package/dist/interfaces/proxy-data-hub/index.js +0 -2
  163. package/dist/interfaces/proxy-data-hub/index.js.map +0 -1
  164. package/dist/interfaces/shared/index.js +0 -5
  165. package/dist/interfaces/shared/index.js.map +0 -1
  166. package/dist/interfaces/shared/jsonrpc.interface.js.map +0 -1
  167. package/dist/interfaces/shared/paginated-list.interface.js.map +0 -1
  168. package/dist/interfaces/shared/unsigned-transaction.interface.js.map +0 -1
  169. package/dist/interfaces/shared/utils.interface.js.map +0 -1
  170. package/dist/interfaces/timestamp/hash-algorithms.interface.js +0 -2
  171. package/dist/interfaces/timestamp/hash-algorithms.interface.js.map +0 -1
  172. package/dist/interfaces/timestamp/index.js +0 -4
  173. package/dist/interfaces/timestamp/index.js.map +0 -1
  174. package/dist/interfaces/timestamp/records.interface.js +0 -2
  175. package/dist/interfaces/timestamp/records.interface.js.map +0 -1
  176. package/dist/interfaces/timestamp/timestamps.interface.js +0 -2
  177. package/dist/interfaces/timestamp/timestamps.interface.js.map +0 -1
  178. package/dist/interfaces/trusted-apps-registry/apps.interface.js +0 -2
  179. package/dist/interfaces/trusted-apps-registry/apps.interface.js.map +0 -1
  180. package/dist/interfaces/trusted-apps-registry/index.js +0 -3
  181. package/dist/interfaces/trusted-apps-registry/index.js.map +0 -1
  182. package/dist/interfaces/trusted-apps-registry/policies.interface.js +0 -2
  183. package/dist/interfaces/trusted-apps-registry/policies.interface.js.map +0 -1
  184. package/dist/interfaces/trusted-issuers-registry/index.js +0 -2
  185. package/dist/interfaces/trusted-issuers-registry/index.js.map +0 -1
  186. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js +0 -2
  187. package/dist/interfaces/trusted-issuers-registry/issuers.interface.js.map +0 -1
  188. package/dist/interfaces/users-onboarding/authentication.js +0 -2
  189. package/dist/interfaces/users-onboarding/authentication.js.map +0 -1
  190. package/dist/interfaces/users-onboarding/index.js +0 -2
  191. package/dist/interfaces/users-onboarding/index.js.map +0 -1
  192. package/dist/utils/authorisation.js +0 -118
  193. package/dist/utils/authorisation.js.map +0 -1
  194. package/dist/utils/notification.js +0 -51
  195. package/dist/utils/notification.js.map +0 -1
  196. package/dist/utils/storage.js +0 -97
  197. package/dist/utils/storage.js.map +0 -1
  198. /package/dist/interfaces/{shared/jsonrpc.interface.js → jsonrpc.interface.js} +0 -0
  199. /package/dist/interfaces/{shared/paginated-list.interface.js → paginated-list.interface.js} +0 -0
  200. /package/dist/interfaces/{shared/unsigned-transaction.interface.js → unsigned-transaction.interface.js} +0 -0
  201. /package/dist/interfaces/{shared/utils.interface.js → utils.interface.js} +0 -0
@@ -1,1127 +0,0 @@
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
- ]