@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,86 +1,39 @@
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
7
  internalType: "bytes32",
24
- name: "appId",
8
+ name: "didHash",
25
9
  type: "bytes32",
26
10
  },
27
11
  {
28
12
  indexed: true,
29
- internalType: "string",
30
- name: "authorizedAppName",
31
- type: "string",
32
- },
33
- {
34
- indexed: false,
35
13
  internalType: "bytes32",
36
- name: "authorizedAppId",
14
+ name: "firstAttrHash",
37
15
  type: "bytes32",
38
16
  },
39
17
  {
40
18
  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",
63
- },
64
- {
65
- indexed: true,
66
19
  internalType: "string",
67
- name: "revokedByHash",
20
+ name: "did",
68
21
  type: "string",
69
22
  },
70
23
  {
71
24
  indexed: false,
72
- internalType: "string",
73
- name: "revokedBy",
74
- type: "string",
25
+ internalType: "uint256",
26
+ name: "attributeVersionCount",
27
+ type: "uint256",
75
28
  },
76
29
  {
77
30
  indexed: false,
78
31
  internalType: "uint256",
79
- name: "notBefore",
32
+ name: "attributesCount",
80
33
  type: "uint256",
81
34
  },
82
35
  ],
83
- name: "AddNewRevocation",
36
+ name: "AddAdministratorAttribute",
84
37
  type: "event",
85
38
  },
86
39
  {
@@ -88,24 +41,24 @@ export default [
88
41
  inputs: [
89
42
  {
90
43
  indexed: true,
91
- internalType: "bytes32",
92
- name: "appId",
93
- type: "bytes32",
44
+ internalType: "string",
45
+ name: "policyId",
46
+ type: "string",
94
47
  },
95
48
  {
96
49
  indexed: true,
97
- internalType: "string",
98
- name: "adminHash",
99
- type: "string",
50
+ internalType: "bytes32",
51
+ name: "policyHash",
52
+ type: "bytes32",
100
53
  },
101
54
  {
102
55
  indexed: false,
103
- internalType: "string",
104
- name: "administrator",
105
- type: "string",
56
+ internalType: "bytes",
57
+ name: "policy",
58
+ type: "bytes",
106
59
  },
107
60
  ],
108
- name: "ApplicationAdministratorAdded",
61
+ name: "AddNewPolicy",
109
62
  type: "event",
110
63
  },
111
64
  {
@@ -114,23 +67,17 @@ export default [
114
67
  {
115
68
  indexed: true,
116
69
  internalType: "bytes32",
117
- name: "appId",
70
+ name: "shemaRevisionId",
118
71
  type: "bytes32",
119
72
  },
120
- {
121
- indexed: true,
122
- internalType: "string",
123
- name: "adminHash",
124
- type: "string",
125
- },
126
73
  {
127
74
  indexed: false,
128
- internalType: "string",
129
- name: "administrator",
130
- type: "string",
75
+ internalType: "bytes",
76
+ name: "metadata",
77
+ type: "bytes",
131
78
  },
132
79
  ],
133
- name: "ApplicationAdministratorDeleted",
80
+ name: "MetadataUpdated",
134
81
  type: "event",
135
82
  },
136
83
  {
@@ -138,24 +85,24 @@ export default [
138
85
  inputs: [
139
86
  {
140
87
  indexed: true,
141
- internalType: "bytes32",
142
- name: "appId",
143
- type: "bytes32",
88
+ internalType: "bytes",
89
+ name: "schemaId",
90
+ type: "bytes",
144
91
  },
145
92
  {
146
- indexed: true,
147
- internalType: "bytes32",
148
- name: "infoId",
149
- type: "bytes32",
93
+ indexed: false,
94
+ internalType: "bytes",
95
+ name: "schema",
96
+ type: "bytes",
150
97
  },
151
98
  {
152
99
  indexed: false,
153
100
  internalType: "bytes",
154
- name: "info",
101
+ name: "metadata",
155
102
  type: "bytes",
156
103
  },
157
104
  ],
158
- name: "ApplicationInfoUpdated",
105
+ name: "SchemaInserted",
159
106
  type: "event",
160
107
  },
161
108
  {
@@ -163,30 +110,24 @@ export default [
163
110
  inputs: [
164
111
  {
165
112
  indexed: true,
166
- internalType: "string",
167
- name: "name",
168
- type: "string",
169
- },
170
- {
171
- indexed: true,
172
- internalType: "bytes32",
173
- name: "appId",
174
- type: "bytes32",
113
+ internalType: "bytes",
114
+ name: "schema",
115
+ type: "bytes",
175
116
  },
176
117
  {
177
118
  indexed: false,
178
- internalType: "enum AppStoreLib.Domains",
179
- name: "domain",
180
- type: "uint8",
119
+ internalType: "bytes",
120
+ name: "revision",
121
+ type: "bytes",
181
122
  },
182
123
  {
183
124
  indexed: false,
184
- internalType: "string",
185
- name: "appAdministrator",
186
- type: "string",
125
+ internalType: "bytes",
126
+ name: "metadata",
127
+ type: "bytes",
187
128
  },
188
129
  ],
189
- name: "ApplicationRegistered",
130
+ name: "SchemaUpdated",
190
131
  type: "event",
191
132
  },
192
133
  {
@@ -195,61 +136,47 @@ export default [
195
136
  {
196
137
  indexed: true,
197
138
  internalType: "bytes32",
198
- name: "appId",
139
+ name: "didHash",
199
140
  type: "bytes32",
200
141
  },
201
142
  {
202
143
  indexed: true,
203
- internalType: "string",
204
- name: "oldName",
205
- type: "string",
144
+ internalType: "bytes32",
145
+ name: "newAttrHash",
146
+ type: "bytes32",
206
147
  },
207
148
  {
208
149
  indexed: true,
209
- internalType: "string",
210
- name: "newName",
211
- type: "string",
150
+ internalType: "bytes32",
151
+ name: "previousAttrHash",
152
+ type: "bytes32",
212
153
  },
213
154
  {
214
155
  indexed: false,
215
- internalType: "enum AppStoreLib.Domains",
216
- name: "oldDomain",
217
- type: "uint8",
156
+ internalType: "bytes32",
157
+ name: "firstAttrHash",
158
+ type: "bytes32",
218
159
  },
219
160
  {
220
161
  indexed: false,
221
- internalType: "enum AppStoreLib.Domains",
222
- name: "newDomain",
223
- type: "uint8",
162
+ internalType: "string",
163
+ name: "did",
164
+ type: "string",
224
165
  },
225
- ],
226
- name: "ApplicationUpdated",
227
- type: "event",
228
- },
229
- {
230
- anonymous: false,
231
- inputs: [
232
166
  {
233
167
  indexed: false,
234
- internalType: "uint8",
235
- name: "version",
236
- type: "uint8",
168
+ internalType: "uint256",
169
+ name: "attributeVersionCount",
170
+ type: "uint256",
237
171
  },
238
- ],
239
- name: "Initialized",
240
- type: "event",
241
- },
242
- {
243
- anonymous: false,
244
- inputs: [
245
172
  {
246
173
  indexed: false,
247
174
  internalType: "uint256",
248
- name: "",
175
+ name: "attributesCount",
249
176
  type: "uint256",
250
177
  },
251
178
  ],
252
- name: "NewVersion",
179
+ name: "UpdateAdministratorAttribute",
253
180
  type: "event",
254
181
  },
255
182
  {
@@ -257,67 +184,55 @@ export default [
257
184
  inputs: [
258
185
  {
259
186
  indexed: true,
260
- internalType: "bytes32",
261
- name: "appId",
262
- type: "bytes32",
187
+ internalType: "string",
188
+ name: "policyId",
189
+ type: "string",
263
190
  },
264
191
  {
265
192
  indexed: true,
266
193
  internalType: "bytes32",
267
- name: "publicKeyId",
194
+ name: "policyHash",
268
195
  type: "bytes32",
269
196
  },
270
197
  {
271
198
  indexed: false,
272
- internalType: "enum AppStoreLib.Status",
273
- name: "status",
274
- type: "uint8",
199
+ internalType: "bytes",
200
+ name: "policy",
201
+ type: "bytes",
275
202
  },
276
203
  ],
277
- name: "PublicKeyAdded",
204
+ name: "UpdateExistingPolicy",
278
205
  type: "event",
279
206
  },
280
207
  {
281
- anonymous: false,
282
- inputs: [
208
+ inputs: [],
209
+ name: "SCHEMA_DIAMOND_STORAGE_POSITION",
210
+ outputs: [
283
211
  {
284
- indexed: true,
285
212
  internalType: "bytes32",
286
- name: "publicKeyId",
213
+ name: "",
287
214
  type: "bytes32",
288
215
  },
289
- {
290
- indexed: false,
291
- internalType: "enum AppStoreLib.Status",
292
- name: "status",
293
- type: "uint8",
294
- },
295
216
  ],
296
- name: "PublicKeyUpdated",
297
- type: "event",
217
+ stateMutability: "view",
218
+ type: "function",
298
219
  },
299
220
  {
300
- anonymous: false,
301
- inputs: [
221
+ inputs: [],
222
+ name: "TSC_DIAMOND_STORAGE_POSITION",
223
+ outputs: [
302
224
  {
303
- indexed: false,
304
225
  internalType: "bytes32",
305
- name: "authorizationId",
226
+ name: "",
306
227
  type: "bytes32",
307
228
  },
308
- {
309
- indexed: false,
310
- internalType: "enum AppStoreLib.Status",
311
- name: "status",
312
- type: "uint8",
313
- },
314
229
  ],
315
- name: "UpdateAuthorization",
316
- type: "event",
230
+ stateMutability: "view",
231
+ type: "function",
317
232
  },
318
233
  {
319
234
  inputs: [],
320
- name: "TAR_DIAMOND_STORAGE_POSITION",
235
+ name: "TSR_ADMINISTRATOR_DIAMOND_STORAGE_POSITION",
321
236
  outputs: [
322
237
  {
323
238
  internalType: "bytes32",
@@ -329,31 +244,63 @@ export default [
329
244
  type: "function",
330
245
  },
331
246
  {
332
- inputs: [
247
+ inputs: [],
248
+ name: "TSR_POLICY_DIAMOND_STORAGE_POSITION",
249
+ outputs: [
333
250
  {
334
251
  internalType: "bytes32",
335
- name: "applicationId",
252
+ name: "",
336
253
  type: "bytes32",
337
254
  },
255
+ ],
256
+ stateMutability: "view",
257
+ type: "function",
258
+ },
259
+ {
260
+ inputs: [],
261
+ name: "setTrustedPoliciesRegistryAddress",
262
+ outputs: [],
263
+ stateMutability: "nonpayable",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [
338
268
  {
339
269
  internalType: "string",
340
- name: "administratorId",
270
+ name: "did",
341
271
  type: "string",
342
272
  },
343
273
  ],
344
- name: "deleteAppAdministrator",
345
- outputs: [],
346
- stateMutability: "nonpayable",
274
+ name: "getAdministrator",
275
+ outputs: [
276
+ {
277
+ internalType: "bytes32[]",
278
+ name: "",
279
+ type: "bytes32[]",
280
+ },
281
+ ],
282
+ stateMutability: "view",
347
283
  type: "function",
348
284
  },
349
285
  {
350
- inputs: [],
351
- name: "didRegistryContract",
286
+ inputs: [
287
+ {
288
+ internalType: "bytes32",
289
+ name: "anyAttrVersHash",
290
+ type: "bytes32",
291
+ },
292
+ ],
293
+ name: "getAdministratorAttributeByHash",
352
294
  outputs: [
353
295
  {
354
- internalType: "contract IDidRegistry",
355
- name: "",
356
- type: "address",
296
+ internalType: "string",
297
+ name: "did",
298
+ type: "string",
299
+ },
300
+ {
301
+ internalType: "bytes",
302
+ name: "attribData",
303
+ type: "bytes",
357
304
  },
358
305
  ],
359
306
  stateMutability: "view",
@@ -363,7 +310,7 @@ export default [
363
310
  inputs: [
364
311
  {
365
312
  internalType: "bytes32",
366
- name: "applicationId",
313
+ name: "anyAttrVersHash",
367
314
  type: "bytes32",
368
315
  },
369
316
  {
@@ -377,12 +324,12 @@ export default [
377
324
  type: "uint256",
378
325
  },
379
326
  ],
380
- name: "getAppAdministratorIds",
327
+ name: "getAdministratorAttributeRevisions",
381
328
  outputs: [
382
329
  {
383
- internalType: "string[]",
330
+ internalType: "bytes32[]",
384
331
  name: "items",
385
- type: "string[]",
332
+ type: "bytes32[]",
386
333
  },
387
334
  {
388
335
  internalType: "uint256",
@@ -411,75 +358,42 @@ export default [
411
358
  {
412
359
  inputs: [
413
360
  {
414
- internalType: "bytes32",
415
- name: "applicationId",
416
- type: "bytes32",
417
- },
418
- ],
419
- name: "getAppById",
420
- outputs: [
421
- {
422
- internalType: "string",
423
- name: "name",
424
- type: "string",
425
- },
426
- {
427
- internalType: "enum AppStoreLib.Domains",
428
- name: "domain",
429
- type: "uint8",
361
+ internalType: "uint256",
362
+ name: "page",
363
+ type: "uint256",
430
364
  },
431
- ],
432
- stateMutability: "view",
433
- type: "function",
434
- },
435
- {
436
- inputs: [
437
365
  {
438
- internalType: "string",
439
- name: "name",
440
- type: "string",
366
+ internalType: "uint256",
367
+ name: "pageSize",
368
+ type: "uint256",
441
369
  },
442
370
  ],
443
- name: "getAppByName",
371
+ name: "getAdministrators",
444
372
  outputs: [
445
373
  {
446
- internalType: "bytes32",
447
- name: "applicationId",
448
- type: "bytes32",
449
- },
450
- {
451
- internalType: "enum AppStoreLib.Domains",
452
- name: "domain",
453
- type: "uint8",
374
+ internalType: "string[]",
375
+ name: "items",
376
+ type: "string[]",
454
377
  },
455
- ],
456
- stateMutability: "view",
457
- type: "function",
458
- },
459
- {
460
- inputs: [
461
378
  {
462
- internalType: "bytes32",
463
- name: "publicKeyId",
464
- type: "bytes32",
379
+ internalType: "uint256",
380
+ name: "total",
381
+ type: "uint256",
465
382
  },
466
- ],
467
- name: "getAppByPublicKeyId",
468
- outputs: [
469
383
  {
470
- internalType: "bytes32",
471
- name: "applicationId",
472
- type: "bytes32",
384
+ internalType: "uint256",
385
+ name: "howMany",
386
+ type: "uint256",
473
387
  },
474
388
  {
475
- internalType: "string",
476
- name: "name",
477
- type: "string",
389
+ internalType: "uint256",
390
+ name: "prev",
391
+ type: "uint256",
478
392
  },
479
393
  {
480
- internalType: "enum AppStoreLib.Domains",
481
- name: "domain",
482
- type: "uint8",
394
+ internalType: "uint256",
395
+ name: "next",
396
+ type: "uint256",
483
397
  },
484
398
  ],
485
399
  stateMutability: "view",
@@ -488,16 +402,16 @@ export default [
488
402
  {
489
403
  inputs: [
490
404
  {
491
- internalType: "bytes32",
492
- name: "applicationId",
493
- type: "bytes32",
405
+ internalType: "bytes",
406
+ name: "schemaId",
407
+ type: "bytes",
494
408
  },
495
409
  ],
496
- name: "getAppInfo",
410
+ name: "getLatestSchemaRevision",
497
411
  outputs: [
498
412
  {
499
413
  internalType: "bytes",
500
- name: "",
414
+ name: "schema",
501
415
  type: "bytes",
502
416
  },
503
417
  ],
@@ -508,15 +422,15 @@ export default [
508
422
  inputs: [
509
423
  {
510
424
  internalType: "bytes32",
511
- name: "infoId",
425
+ name: "schemaRevisionId",
512
426
  type: "bytes32",
513
427
  },
514
428
  ],
515
- name: "getAppInfoByInfoId",
429
+ name: "getLatestSchemaRevisionMetadataByRevisionId",
516
430
  outputs: [
517
431
  {
518
432
  internalType: "bytes",
519
- name: "info",
433
+ name: "metadata",
520
434
  type: "bytes",
521
435
  },
522
436
  ],
@@ -525,11 +439,6 @@ export default [
525
439
  },
526
440
  {
527
441
  inputs: [
528
- {
529
- internalType: "bytes32",
530
- name: "applicationId",
531
- type: "bytes32",
532
- },
533
442
  {
534
443
  internalType: "uint256",
535
444
  name: "page",
@@ -541,12 +450,12 @@ export default [
541
450
  type: "uint256",
542
451
  },
543
452
  ],
544
- name: "getAppInfoIds",
453
+ name: "getPolicies",
545
454
  outputs: [
546
455
  {
547
- internalType: "bytes32[]",
456
+ internalType: "string[]",
548
457
  name: "items",
549
- type: "bytes32[]",
458
+ type: "string[]",
550
459
  },
551
460
  {
552
461
  internalType: "uint256",
@@ -574,11 +483,54 @@ export default [
574
483
  },
575
484
  {
576
485
  inputs: [
486
+ {
487
+ internalType: "string",
488
+ name: "policyId",
489
+ type: "string",
490
+ },
491
+ ],
492
+ name: "getPolicy",
493
+ outputs: [
494
+ {
495
+ internalType: "bytes",
496
+ name: "",
497
+ type: "bytes",
498
+ },
577
499
  {
578
500
  internalType: "bytes32",
579
- name: "applicationId",
501
+ name: "",
580
502
  type: "bytes32",
581
503
  },
504
+ ],
505
+ stateMutability: "view",
506
+ type: "function",
507
+ },
508
+ {
509
+ inputs: [
510
+ {
511
+ internalType: "bytes32",
512
+ name: "revisionHash",
513
+ type: "bytes32",
514
+ },
515
+ ],
516
+ name: "getPolicyByHash",
517
+ outputs: [
518
+ {
519
+ internalType: "bytes",
520
+ name: "",
521
+ type: "bytes",
522
+ },
523
+ ],
524
+ stateMutability: "view",
525
+ type: "function",
526
+ },
527
+ {
528
+ inputs: [
529
+ {
530
+ internalType: "string",
531
+ name: "policyId",
532
+ type: "string",
533
+ },
582
534
  {
583
535
  internalType: "uint256",
584
536
  name: "page",
@@ -590,7 +542,7 @@ export default [
590
542
  type: "uint256",
591
543
  },
592
544
  ],
593
- name: "getAppPublicKeyIds",
545
+ name: "getPolicyRevisions",
594
546
  outputs: [
595
547
  {
596
548
  internalType: "bytes32[]",
@@ -634,12 +586,12 @@ export default [
634
586
  type: "uint256",
635
587
  },
636
588
  ],
637
- name: "getApps",
589
+ name: "getSchemaIds",
638
590
  outputs: [
639
591
  {
640
- internalType: "bytes32[]",
592
+ internalType: "bytes[]",
641
593
  name: "items",
642
- type: "bytes32[]",
594
+ type: "bytes[]",
643
595
  },
644
596
  {
645
597
  internalType: "uint256",
@@ -669,41 +621,16 @@ export default [
669
621
  inputs: [
670
622
  {
671
623
  internalType: "bytes32",
672
- name: "authorizationId",
624
+ name: "schemaRevisionId",
673
625
  type: "bytes32",
674
626
  },
675
627
  ],
676
- name: "getAuthorizationById",
628
+ name: "getSchemaRevision",
677
629
  outputs: [
678
630
  {
679
- internalType: "bytes32",
680
- name: "applicationId",
681
- type: "bytes32",
682
- },
683
- {
684
- internalType: "bytes32",
685
- name: "authorizedAppId",
686
- type: "bytes32",
687
- },
688
- {
689
- internalType: "string",
690
- name: "name",
691
- type: "string",
692
- },
693
- {
694
- internalType: "string",
695
- name: "authorizedAppName",
696
- type: "string",
697
- },
698
- {
699
- internalType: "string",
700
- name: "iss",
701
- type: "string",
702
- },
703
- {
704
- internalType: "enum AppStoreLib.Status",
705
- name: "status",
706
- type: "uint8",
631
+ internalType: "bytes",
632
+ name: "schema",
633
+ type: "bytes",
707
634
  },
708
635
  ],
709
636
  stateMutability: "view",
@@ -712,14 +639,9 @@ export default [
712
639
  {
713
640
  inputs: [
714
641
  {
715
- internalType: "bytes32",
716
- name: "applicationId",
717
- type: "bytes32",
718
- },
719
- {
720
- internalType: "bytes32",
721
- name: "authorizedAppId",
722
- type: "bytes32",
642
+ internalType: "bytes",
643
+ name: "schemaId",
644
+ type: "bytes",
723
645
  },
724
646
  {
725
647
  internalType: "uint256",
@@ -732,7 +654,7 @@ export default [
732
654
  type: "uint256",
733
655
  },
734
656
  ],
735
- name: "getAuthorizations",
657
+ name: "getSchemaRevisionIds",
736
658
  outputs: [
737
659
  {
738
660
  internalType: "bytes32[]",
@@ -767,7 +689,26 @@ export default [
767
689
  inputs: [
768
690
  {
769
691
  internalType: "bytes32",
770
- name: "applicationId",
692
+ name: "metadataId",
693
+ type: "bytes32",
694
+ },
695
+ ],
696
+ name: "getSchemaRevisionMetadataByMetadataId",
697
+ outputs: [
698
+ {
699
+ internalType: "bytes",
700
+ name: "metadata",
701
+ type: "bytes",
702
+ },
703
+ ],
704
+ stateMutability: "view",
705
+ type: "function",
706
+ },
707
+ {
708
+ inputs: [
709
+ {
710
+ internalType: "bytes32",
711
+ name: "schemaRevisionId",
771
712
  type: "bytes32",
772
713
  },
773
714
  {
@@ -781,7 +722,7 @@ export default [
781
722
  type: "uint256",
782
723
  },
783
724
  ],
784
- name: "getAuthorizedAppsIds",
725
+ name: "getSchemaRevisionMetadataIds",
785
726
  outputs: [
786
727
  {
787
728
  internalType: "bytes32[]",
@@ -815,65 +756,30 @@ export default [
815
756
  {
816
757
  inputs: [
817
758
  {
818
- internalType: "bytes32",
819
- name: "publicKeyId",
820
- type: "bytes32",
821
- },
822
- ],
823
- name: "getPublicKey",
824
- outputs: [
825
- {
826
- internalType: "bytes32",
827
- name: "appId",
828
- type: "bytes32",
829
- },
830
- {
831
- internalType: "bytes",
832
- name: "publicKey",
833
- type: "bytes",
834
- },
835
- {
836
- internalType: "enum AppStoreLib.Status",
837
- name: "status",
838
- type: "uint8",
759
+ internalType: "uint256",
760
+ name: "version",
761
+ type: "uint256",
839
762
  },
840
763
  ],
841
- stateMutability: "view",
764
+ name: "initialize",
765
+ outputs: [],
766
+ stateMutability: "nonpayable",
842
767
  type: "function",
843
768
  },
844
769
  {
845
770
  inputs: [
846
- {
847
- internalType: "bytes32",
848
- name: "applicationId",
849
- type: "bytes32",
850
- },
851
- ],
852
- name: "getRevocation",
853
- outputs: [
854
771
  {
855
772
  internalType: "string",
856
- name: "revokedBy",
773
+ name: "did",
857
774
  type: "string",
858
775
  },
859
776
  {
860
- internalType: "uint256",
861
- name: "notBefore",
862
- type: "uint256",
863
- },
864
- ],
865
- stateMutability: "view",
866
- type: "function",
867
- },
868
- {
869
- inputs: [
870
- {
871
- internalType: "uint256",
872
- name: "_version",
873
- type: "uint256",
777
+ internalType: "bytes",
778
+ name: "attributeData",
779
+ type: "bytes",
874
780
  },
875
781
  ],
876
- name: "init",
782
+ name: "insertAdministrator",
877
783
  outputs: [],
878
784
  stateMutability: "nonpayable",
879
785
  type: "function",
@@ -881,12 +787,17 @@ export default [
881
787
  {
882
788
  inputs: [
883
789
  {
884
- internalType: "uint256",
885
- name: "_version",
886
- type: "uint256",
790
+ internalType: "string",
791
+ name: "policyId",
792
+ type: "string",
793
+ },
794
+ {
795
+ internalType: "bytes",
796
+ name: "policyData",
797
+ type: "bytes",
887
798
  },
888
799
  ],
889
- name: "initialize",
800
+ name: "insertPolicy",
890
801
  outputs: [],
891
802
  stateMutability: "nonpayable",
892
803
  type: "function",
@@ -894,58 +805,41 @@ export default [
894
805
  {
895
806
  inputs: [
896
807
  {
897
- internalType: "string",
898
- name: "name",
899
- type: "string",
808
+ internalType: "bytes",
809
+ name: "schemaId",
810
+ type: "bytes",
900
811
  },
901
812
  {
902
- internalType: "enum AppStoreLib.Domains",
903
- name: "domain",
904
- type: "uint8",
813
+ internalType: "bytes",
814
+ name: "schema",
815
+ type: "bytes",
905
816
  },
906
817
  {
907
- internalType: "string",
908
- name: "appAdministrator",
909
- type: "string",
818
+ internalType: "bytes",
819
+ name: "metadata",
820
+ type: "bytes",
910
821
  },
911
822
  ],
912
- name: "insertApp",
913
- outputs: [],
914
- stateMutability: "nonpayable",
915
- type: "function",
916
- },
917
- {
918
- inputs: [
823
+ name: "insertSchema",
824
+ outputs: [
919
825
  {
920
826
  internalType: "bytes32",
921
- name: "applicationId",
827
+ name: "schemaRevisionId",
922
828
  type: "bytes32",
923
829
  },
924
- {
925
- internalType: "string",
926
- name: "administratorId",
927
- type: "string",
928
- },
929
830
  ],
930
- name: "insertAppAdministrator",
931
- outputs: [],
932
831
  stateMutability: "nonpayable",
933
832
  type: "function",
934
833
  },
935
834
  {
936
835
  inputs: [
937
836
  {
938
- internalType: "bytes32",
939
- name: "applicationId",
940
- type: "bytes32",
941
- },
942
- {
943
- internalType: "bytes",
944
- name: "info",
945
- type: "bytes",
837
+ internalType: "uint256",
838
+ name: "_version",
839
+ type: "uint256",
946
840
  },
947
841
  ],
948
- name: "insertAppInfo",
842
+ name: "setVersion",
949
843
  outputs: [],
950
844
  stateMutability: "nonpayable",
951
845
  type: "function",
@@ -953,22 +847,17 @@ export default [
953
847
  {
954
848
  inputs: [
955
849
  {
956
- internalType: "bytes32",
957
- name: "appId",
958
- type: "bytes32",
850
+ internalType: "string",
851
+ name: "did",
852
+ type: "string",
959
853
  },
960
854
  {
961
855
  internalType: "bytes",
962
- name: "publickey",
856
+ name: "attributeData",
963
857
  type: "bytes",
964
858
  },
965
- {
966
- internalType: "enum AppStoreLib.Status",
967
- name: "status",
968
- type: "uint8",
969
- },
970
859
  ],
971
- name: "insertAppPublicKey",
860
+ name: "updateAdministrator",
972
861
  outputs: [],
973
862
  stateMutability: "nonpayable",
974
863
  type: "function",
@@ -977,26 +866,21 @@ export default [
977
866
  inputs: [
978
867
  {
979
868
  internalType: "string",
980
- name: "name",
869
+ name: "did",
981
870
  type: "string",
982
871
  },
983
872
  {
984
- internalType: "string",
985
- name: "authorizedAppName",
986
- type: "string",
987
- },
988
- {
989
- internalType: "string",
990
- name: "iss",
991
- type: "string",
873
+ internalType: "bytes",
874
+ name: "attributeData",
875
+ type: "bytes",
992
876
  },
993
877
  {
994
- internalType: "enum AppStoreLib.Status",
995
- name: "status",
996
- type: "uint8",
878
+ internalType: "bytes32",
879
+ name: "lastVersHash",
880
+ type: "bytes32",
997
881
  },
998
882
  ],
999
- name: "insertAuthorization",
883
+ name: "updateAdministrator",
1000
884
  outputs: [],
1001
885
  stateMutability: "nonpayable",
1002
886
  type: "function",
@@ -1005,52 +889,40 @@ export default [
1005
889
  inputs: [
1006
890
  {
1007
891
  internalType: "bytes32",
1008
- name: "applicationId",
892
+ name: "schemaRevisionId",
1009
893
  type: "bytes32",
1010
894
  },
1011
895
  {
1012
- internalType: "string",
1013
- name: "revokedBy",
1014
- type: "string",
1015
- },
1016
- {
1017
- internalType: "uint256",
1018
- name: "notBefore",
1019
- type: "uint256",
896
+ internalType: "bytes",
897
+ name: "metadata",
898
+ type: "bytes",
1020
899
  },
1021
900
  ],
1022
- name: "insertRevocation",
1023
- outputs: [],
1024
- stateMutability: "nonpayable",
1025
- type: "function",
1026
- },
1027
- {
1028
- inputs: [],
1029
- name: "policyRegistryContract",
901
+ name: "updateMetadata",
1030
902
  outputs: [
1031
903
  {
1032
- internalType: "contract IPolicyRegistry",
1033
- name: "",
1034
- type: "address",
904
+ internalType: "bytes32",
905
+ name: "metadataId",
906
+ type: "bytes32",
1035
907
  },
1036
908
  ],
1037
- stateMutability: "view",
909
+ stateMutability: "nonpayable",
1038
910
  type: "function",
1039
911
  },
1040
912
  {
1041
913
  inputs: [
1042
914
  {
1043
- internalType: "bytes32",
1044
- name: "applicationId",
1045
- type: "bytes32",
915
+ internalType: "string",
916
+ name: "policyId",
917
+ type: "string",
1046
918
  },
1047
919
  {
1048
- internalType: "enum AppStoreLib.Domains",
1049
- name: "domain",
1050
- type: "uint8",
920
+ internalType: "bytes",
921
+ name: "policyData",
922
+ type: "bytes",
1051
923
  },
1052
924
  ],
1053
- name: "updateApp",
925
+ name: "updatePolicy",
1054
926
  outputs: [],
1055
927
  stateMutability: "nonpayable",
1056
928
  type: "function",
@@ -1058,36 +930,29 @@ export default [
1058
930
  {
1059
931
  inputs: [
1060
932
  {
1061
- internalType: "bytes32",
1062
- name: "publicKeyId",
1063
- type: "bytes32",
933
+ internalType: "bytes",
934
+ name: "schemaId",
935
+ type: "bytes",
936
+ },
937
+ {
938
+ internalType: "bytes",
939
+ name: "schema",
940
+ type: "bytes",
1064
941
  },
1065
942
  {
1066
- internalType: "enum AppStoreLib.Status",
1067
- name: "status",
1068
- type: "uint8",
943
+ internalType: "bytes",
944
+ name: "metadata",
945
+ type: "bytes",
1069
946
  },
1070
947
  ],
1071
- name: "updateAppPublicKey",
1072
- outputs: [],
1073
- stateMutability: "nonpayable",
1074
- type: "function",
1075
- },
1076
- {
1077
- inputs: [
948
+ name: "updateSchema",
949
+ outputs: [
1078
950
  {
1079
951
  internalType: "bytes32",
1080
- name: "authorizationId",
952
+ name: "schemaRevisionId",
1081
953
  type: "bytes32",
1082
954
  },
1083
- {
1084
- internalType: "enum AppStoreLib.Status",
1085
- name: "status",
1086
- type: "uint8",
1087
- },
1088
955
  ],
1089
- name: "updateAuthorization",
1090
- outputs: [],
1091
956
  stateMutability: "nonpayable",
1092
957
  type: "function",
1093
958
  },
@@ -1105,4 +970,4 @@ export default [
1105
970
  type: "function",
1106
971
  },
1107
972
  ];
1108
- //# sourceMappingURL=TarV3.js.map
973
+ //# sourceMappingURL=SchemaSCRegistry.js.map