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