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