@cef-ebsi/cli 0.1.0 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/README.md +60 -0
  2. package/dist/abi/pilot/{DidRegistry.js → DidRegistryV3.js} +1 -1
  3. package/dist/abi/pilot/DidRegistryV3.js.map +1 -0
  4. package/dist/abi/pilot/SchemaSCRegistryV2.js +474 -0
  5. package/dist/abi/pilot/SchemaSCRegistryV2.js.map +1 -0
  6. package/dist/abi/{test/Tar.js → pilot/TarV3.js} +64 -351
  7. package/dist/abi/pilot/TarV3.js.map +1 -0
  8. package/dist/abi/{test/Timestamp.js → pilot/TimestampV2.js} +77 -41
  9. package/dist/abi/pilot/TimestampV2.js.map +1 -0
  10. package/dist/abi/pilot/TirV3.js +496 -0
  11. package/dist/abi/pilot/TirV3.js.map +1 -0
  12. package/dist/abi/pilot/{Tir.js → TprV2.js} +345 -353
  13. package/dist/abi/pilot/TprV2.js.map +1 -0
  14. package/dist/abi/test/{DidRegistry.js → DidRegistryV3.js} +46 -39
  15. package/dist/abi/test/DidRegistryV3.js.map +1 -0
  16. package/dist/abi/test/SchemaSCRegistryV2.js +474 -0
  17. package/dist/abi/test/SchemaSCRegistryV2.js.map +1 -0
  18. package/dist/abi/{pilot/Tar.js → test/TarV3.js} +64 -351
  19. package/dist/abi/test/TarV3.js.map +1 -0
  20. package/dist/abi/{pilot/Timestamp.js → test/TimestampV2.js} +77 -41
  21. package/dist/abi/test/TimestampV2.js.map +1 -0
  22. package/dist/abi/test/TirV3.js +496 -0
  23. package/dist/abi/test/TirV3.js.map +1 -0
  24. package/dist/abi/test/{Tir.js → TprV2.js} +345 -353
  25. package/dist/abi/test/TprV2.js.map +1 -0
  26. package/dist/app.js +5 -11
  27. package/dist/app.js.map +1 -1
  28. package/dist/buildParam/{did.js → didV3.js} +17 -19
  29. package/dist/buildParam/didV3.js.map +1 -0
  30. package/dist/buildParam/index.js +18 -18
  31. package/dist/buildParam/index.js.map +1 -1
  32. package/dist/buildParam/{tar.js → tarV3.js} +29 -76
  33. package/dist/buildParam/tarV3.js.map +1 -0
  34. package/dist/buildParam/{timestamp.js → timestampV2.js} +8 -14
  35. package/dist/buildParam/timestampV2.js.map +1 -0
  36. package/dist/buildParam/tirV3.js +104 -0
  37. package/dist/buildParam/tirV3.js.map +1 -0
  38. package/dist/buildParam/tprV2.js +82 -0
  39. package/dist/buildParam/tprV2.js.map +1 -0
  40. package/dist/buildParam/{tsr.js → tsrV2.js} +6 -45
  41. package/dist/buildParam/tsrV2.js.map +1 -0
  42. package/dist/commands/{authorisation-v2.js → authorisation-v4.js} +88 -8
  43. package/dist/commands/authorisation-v4.js.map +1 -0
  44. package/dist/commands/compute.js +8 -8
  45. package/dist/commands/compute.js.map +1 -1
  46. package/dist/commands/conformance-v3.js +3 -1
  47. package/dist/commands/conformance-v3.js.map +1 -1
  48. package/dist/commands/index.js +2 -3
  49. package/dist/commands/index.js.map +1 -1
  50. package/dist/commands/{ledger-v3.js → ledger-v4.js} +18 -14
  51. package/dist/commands/ledger-v4.js.map +1 -0
  52. package/dist/commands/view.js.map +1 -1
  53. package/dist/config.js +50 -132
  54. package/dist/config.js.map +1 -1
  55. package/dist/programs/appRegistration.js.map +1 -1
  56. package/dist/scripts/bootstrap/1-populateTPR +51 -54
  57. package/dist/scripts/bootstrap/2-populateDID +1 -16
  58. package/dist/scripts/bootstrap/3-populateTAR +0 -66
  59. package/dist/scripts/bootstrap/4-populateTimestamp +0 -1
  60. package/dist/scripts/bootstrap/6-populateTSR +73 -14
  61. package/dist/scripts/issue_CTRevocableCredential +3 -3
  62. package/dist/scripts/issue_SelfAttestationSupportOffice +2 -2
  63. package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -2
  64. package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -2
  65. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +1 -1
  66. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +1 -1
  67. package/dist/scripts/wctv3/accreditAndAuthorize +3 -3
  68. package/dist/scripts/wctv3/holderWallet +22 -13
  69. package/dist/scripts/wctv3/issueToHolder +23 -13
  70. package/dist/scripts/wctv3/pda1 +1 -1
  71. package/dist/tsconfig.tsbuildinfo +1 -1
  72. package/dist/utils/Client.js.map +1 -1
  73. package/dist/utils/http.js.map +1 -1
  74. package/dist/utils/print.js.map +1 -1
  75. package/dist/utils/utils.js.map +1 -1
  76. package/dist/utils/verifiablePresentation.js.map +1 -1
  77. package/package.json +30 -28
  78. package/dist/abi/pilot/DidRegistry.js.map +0 -1
  79. package/dist/abi/pilot/SchemaSCRegistry.js +0 -973
  80. package/dist/abi/pilot/SchemaSCRegistry.js.map +0 -1
  81. package/dist/abi/pilot/Tar.js.map +0 -1
  82. package/dist/abi/pilot/Timestamp.js.map +0 -1
  83. package/dist/abi/pilot/Tir.js.map +0 -1
  84. package/dist/abi/pilot/Tpr.js +0 -1268
  85. package/dist/abi/pilot/Tpr.js.map +0 -1
  86. package/dist/abi/test/DidRegistry.js.map +0 -1
  87. package/dist/abi/test/SchemaSCRegistry.js +0 -973
  88. package/dist/abi/test/SchemaSCRegistry.js.map +0 -1
  89. package/dist/abi/test/Tar.js.map +0 -1
  90. package/dist/abi/test/Timestamp.js.map +0 -1
  91. package/dist/abi/test/Tir.js.map +0 -1
  92. package/dist/abi/test/Tpr.js +0 -1268
  93. package/dist/abi/test/Tpr.js.map +0 -1
  94. package/dist/buildParam/did.js.map +0 -1
  95. package/dist/buildParam/tar.js.map +0 -1
  96. package/dist/buildParam/timestamp.js.map +0 -1
  97. package/dist/buildParam/tir.js +0 -200
  98. package/dist/buildParam/tir.js.map +0 -1
  99. package/dist/buildParam/tpr.js +0 -167
  100. package/dist/buildParam/tpr.js.map +0 -1
  101. package/dist/buildParam/tsr.js.map +0 -1
  102. package/dist/commands/authorisation-v2.js.map +0 -1
  103. package/dist/commands/authorisation-v3.js +0 -98
  104. package/dist/commands/authorisation-v3.js.map +0 -1
  105. package/dist/commands/ledger-v3.js.map +0 -1
@@ -1,74 +1,66 @@
1
1
  export default [
2
2
  {
3
+ anonymous: false,
3
4
  inputs: [
4
5
  {
5
- internalType: "address",
6
- name: "_tprAddress",
7
- type: "address",
8
- },
9
- {
10
- internalType: "address",
11
- name: "_didRegistryAddress",
12
- type: "address",
6
+ indexed: false,
7
+ internalType: "uint8",
8
+ name: "version",
9
+ type: "uint8",
13
10
  },
14
11
  ],
15
- stateMutability: "nonpayable",
16
- type: "constructor",
12
+ name: "Initialized",
13
+ type: "event",
17
14
  },
18
15
  {
19
16
  anonymous: false,
20
17
  inputs: [
21
18
  {
22
19
  indexed: true,
23
- internalType: "bytes32",
24
- name: "didHash",
25
- type: "bytes32",
26
- },
27
- {
28
- indexed: true,
29
- internalType: "bytes32",
30
- name: "firstAttrHash",
31
- type: "bytes32",
32
- },
33
- {
34
- indexed: false,
35
- internalType: "string",
36
- name: "did",
37
- type: "string",
38
- },
39
- {
40
- indexed: false,
41
20
  internalType: "uint256",
42
- name: "attributeVersionCount",
21
+ name: "policyId",
43
22
  type: "uint256",
44
23
  },
24
+ ],
25
+ name: "PolicyActivated",
26
+ type: "event",
27
+ },
28
+ {
29
+ anonymous: false,
30
+ inputs: [
45
31
  {
46
- indexed: false,
32
+ indexed: true,
47
33
  internalType: "uint256",
48
- name: "attributesCount",
34
+ name: "policyId",
49
35
  type: "uint256",
50
36
  },
51
37
  ],
52
- name: "AddIssuerAttribute",
38
+ name: "PolicyDeactivated",
53
39
  type: "event",
54
40
  },
55
41
  {
56
42
  anonymous: false,
57
43
  inputs: [
44
+ {
45
+ indexed: true,
46
+ internalType: "uint256",
47
+ name: "policyId",
48
+ type: "uint256",
49
+ },
58
50
  {
59
51
  indexed: false,
60
52
  internalType: "string",
61
- name: "did",
53
+ name: "policyName",
62
54
  type: "string",
63
55
  },
64
56
  {
65
- indexed: true,
66
- internalType: "bytes32",
67
- name: "proxyId",
68
- type: "bytes32",
57
+ indexed: false,
58
+ internalType: "string",
59
+ name: "description",
60
+ type: "string",
69
61
  },
70
62
  ],
71
- name: "AddIssuerProxy",
63
+ name: "PolicyInserted",
72
64
  type: "event",
73
65
  },
74
66
  {
@@ -76,37 +68,49 @@ export default [
76
68
  inputs: [
77
69
  {
78
70
  indexed: true,
79
- internalType: "string",
71
+ internalType: "uint256",
80
72
  name: "policyId",
81
- type: "string",
73
+ type: "uint256",
82
74
  },
83
75
  {
84
- indexed: true,
85
- internalType: "bytes32",
86
- name: "policyHash",
87
- type: "bytes32",
76
+ indexed: false,
77
+ internalType: "string",
78
+ name: "oldDescription",
79
+ type: "string",
88
80
  },
89
81
  {
90
82
  indexed: false,
91
- internalType: "bytes",
92
- name: "policy",
93
- type: "bytes",
83
+ internalType: "string",
84
+ name: "newDescription",
85
+ type: "string",
94
86
  },
95
87
  ],
96
- name: "AddNewPolicy",
88
+ name: "PolicyUpdated",
97
89
  type: "event",
98
90
  },
99
91
  {
100
92
  anonymous: false,
101
93
  inputs: [
102
94
  {
103
- indexed: false,
104
- internalType: "uint8",
105
- name: "version",
106
- type: "uint8",
95
+ indexed: true,
96
+ internalType: "bytes32",
97
+ name: "role",
98
+ type: "bytes32",
99
+ },
100
+ {
101
+ indexed: true,
102
+ internalType: "bytes32",
103
+ name: "previousAdminRole",
104
+ type: "bytes32",
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: "bytes32",
109
+ name: "newAdminRole",
110
+ type: "bytes32",
107
111
  },
108
112
  ],
109
- name: "Initialized",
113
+ name: "RoleAdminChanged",
110
114
  type: "event",
111
115
  },
112
116
  {
@@ -114,24 +118,24 @@ export default [
114
118
  inputs: [
115
119
  {
116
120
  indexed: true,
117
- internalType: "string",
118
- name: "policyId",
119
- type: "string",
121
+ internalType: "bytes32",
122
+ name: "role",
123
+ type: "bytes32",
120
124
  },
121
125
  {
122
126
  indexed: true,
123
- internalType: "bytes32",
124
- name: "policyHash",
125
- type: "bytes32",
127
+ internalType: "address",
128
+ name: "account",
129
+ type: "address",
126
130
  },
127
131
  {
128
- indexed: false,
129
- internalType: "bytes",
130
- name: "policy",
131
- type: "bytes",
132
+ indexed: true,
133
+ internalType: "address",
134
+ name: "sender",
135
+ type: "address",
132
136
  },
133
137
  ],
134
- name: "UpdateExistingPolicy",
138
+ name: "RoleGranted",
135
139
  type: "event",
136
140
  },
137
141
  {
@@ -140,71 +144,104 @@ export default [
140
144
  {
141
145
  indexed: true,
142
146
  internalType: "bytes32",
143
- name: "didHash",
147
+ name: "role",
144
148
  type: "bytes32",
145
149
  },
146
150
  {
147
151
  indexed: true,
148
- internalType: "bytes32",
149
- name: "newAttrHash",
150
- type: "bytes32",
152
+ internalType: "address",
153
+ name: "account",
154
+ type: "address",
151
155
  },
152
156
  {
153
157
  indexed: true,
154
- internalType: "bytes32",
155
- name: "previousAttrHash",
156
- type: "bytes32",
158
+ internalType: "address",
159
+ name: "sender",
160
+ type: "address",
157
161
  },
162
+ ],
163
+ name: "RoleRevoked",
164
+ type: "event",
165
+ },
166
+ {
167
+ anonymous: false,
168
+ inputs: [
158
169
  {
159
170
  indexed: false,
160
- internalType: "bytes32",
161
- name: "firstAttrHash",
162
- type: "bytes32",
171
+ internalType: "address",
172
+ name: "user",
173
+ type: "address",
163
174
  },
164
175
  {
165
176
  indexed: false,
166
177
  internalType: "string",
167
- name: "did",
178
+ name: "attribute",
168
179
  type: "string",
169
180
  },
181
+ ],
182
+ name: "UserAttributeDeleted",
183
+ type: "event",
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
170
188
  {
171
189
  indexed: false,
172
- internalType: "uint256",
173
- name: "attributeVersionCount",
174
- type: "uint256",
190
+ internalType: "address",
191
+ name: "user",
192
+ type: "address",
175
193
  },
176
194
  {
177
195
  indexed: false,
178
- internalType: "uint256",
179
- name: "attributesCount",
180
- type: "uint256",
196
+ internalType: "string",
197
+ name: "attribute",
198
+ type: "string",
181
199
  },
182
200
  ],
183
- name: "UpdateIssuerAttribute",
201
+ name: "UserAttributeInserted",
184
202
  type: "event",
185
203
  },
186
204
  {
187
205
  anonymous: false,
188
206
  inputs: [
207
+ {
208
+ indexed: false,
209
+ internalType: "address",
210
+ name: "user",
211
+ type: "address",
212
+ },
189
213
  {
190
214
  indexed: false,
191
215
  internalType: "string",
192
- name: "did",
216
+ name: "attribute",
193
217
  type: "string",
194
218
  },
195
219
  {
196
- indexed: true,
220
+ indexed: false,
221
+ internalType: "bytes",
222
+ name: "value",
223
+ type: "bytes",
224
+ },
225
+ ],
226
+ name: "UserAttributeUpdated",
227
+ type: "event",
228
+ },
229
+ {
230
+ inputs: [],
231
+ name: "DEFAULT_ADMIN_ROLE",
232
+ outputs: [
233
+ {
197
234
  internalType: "bytes32",
198
- name: "proxyId",
235
+ name: "",
199
236
  type: "bytes32",
200
237
  },
201
238
  ],
202
- name: "UpdateIssuerProxy",
203
- type: "event",
239
+ stateMutability: "view",
240
+ type: "function",
204
241
  },
205
242
  {
206
243
  inputs: [],
207
- name: "ISSUER_DIAMOND_STORAGE_POSITION",
244
+ name: "DIAMOND_STORAGE_POSITION",
208
245
  outputs: [
209
246
  {
210
247
  internalType: "bytes32",
@@ -217,7 +254,7 @@ export default [
217
254
  },
218
255
  {
219
256
  inputs: [],
220
- name: "TIR_DIAMOND_STORAGE_POSITION",
257
+ name: "OPERATOR_ROLE",
221
258
  outputs: [
222
259
  {
223
260
  internalType: "bytes32",
@@ -230,7 +267,7 @@ export default [
230
267
  },
231
268
  {
232
269
  inputs: [],
233
- name: "TIR_POLICY_DIAMOND_STORAGE_POSITION",
270
+ name: "POLICY_DIAMOND_STORAGE_POSITION",
234
271
  outputs: [
235
272
  {
236
273
  internalType: "bytes32",
@@ -245,26 +282,34 @@ export default [
245
282
  inputs: [
246
283
  {
247
284
  internalType: "string",
248
- name: "did",
285
+ name: "policyName",
249
286
  type: "string",
250
287
  },
288
+ ],
289
+ name: "activatePolicy",
290
+ outputs: [],
291
+ stateMutability: "nonpayable",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
251
296
  {
252
- internalType: "string",
253
- name: "proxyData",
254
- type: "string",
297
+ internalType: "uint256",
298
+ name: "policyId",
299
+ type: "uint256",
255
300
  },
256
301
  ],
257
- name: "addIssuerProxy",
302
+ name: "activatePolicy",
258
303
  outputs: [],
259
304
  stateMutability: "nonpayable",
260
305
  type: "function",
261
306
  },
262
307
  {
263
308
  inputs: [],
264
- name: "didRegistryContract",
309
+ name: "admin",
265
310
  outputs: [
266
311
  {
267
- internalType: "contract IDidRegistry",
312
+ internalType: "address",
268
313
  name: "",
269
314
  type: "address",
270
315
  },
@@ -275,17 +320,22 @@ export default [
275
320
  {
276
321
  inputs: [
277
322
  {
278
- internalType: "string",
279
- name: "did",
280
- type: "string",
323
+ internalType: "uint256",
324
+ name: "policyId",
325
+ type: "uint256",
326
+ },
327
+ {
328
+ internalType: "address",
329
+ name: "user",
330
+ type: "address",
281
331
  },
282
332
  ],
283
- name: "getIssuer",
333
+ name: "checkPolicy",
284
334
  outputs: [
285
335
  {
286
- internalType: "bytes32[]",
336
+ internalType: "bool",
287
337
  name: "",
288
- type: "bytes32[]",
338
+ type: "bool",
289
339
  },
290
340
  ],
291
341
  stateMutability: "view",
@@ -293,50 +343,74 @@ export default [
293
343
  },
294
344
  {
295
345
  inputs: [
296
- {
297
- internalType: "bytes32",
298
- name: "anyAttrVersHash",
299
- type: "bytes32",
300
- },
301
- ],
302
- name: "getIssuerAttributeByHash",
303
- outputs: [
304
346
  {
305
347
  internalType: "string",
306
- name: "did",
348
+ name: "policyName",
307
349
  type: "string",
308
350
  },
309
351
  {
310
- internalType: "bytes",
311
- name: "attribData",
312
- type: "bytes",
352
+ internalType: "address",
353
+ name: "user",
354
+ type: "address",
313
355
  },
356
+ ],
357
+ name: "checkPolicy",
358
+ outputs: [
314
359
  {
315
- internalType: "string",
316
- name: "tao",
317
- type: "string",
360
+ internalType: "bool",
361
+ name: "",
362
+ type: "bool",
318
363
  },
364
+ ],
365
+ stateMutability: "view",
366
+ type: "function",
367
+ },
368
+ {
369
+ inputs: [
319
370
  {
320
371
  internalType: "string",
321
- name: "rootTao",
372
+ name: "policyName",
322
373
  type: "string",
323
374
  },
375
+ ],
376
+ name: "deactivatePolicy",
377
+ outputs: [],
378
+ stateMutability: "nonpayable",
379
+ type: "function",
380
+ },
381
+ {
382
+ inputs: [
324
383
  {
325
- internalType: "enum AttributeStorage.IssuerType",
326
- name: "issuerType",
327
- type: "uint8",
384
+ internalType: "uint256",
385
+ name: "policyId",
386
+ type: "uint256",
328
387
  },
329
388
  ],
330
- stateMutability: "view",
389
+ name: "deactivatePolicy",
390
+ outputs: [],
391
+ stateMutability: "nonpayable",
331
392
  type: "function",
332
393
  },
333
394
  {
334
395
  inputs: [
335
396
  {
336
- internalType: "bytes32",
337
- name: "anyAttrVersHash",
338
- type: "bytes32",
397
+ internalType: "address",
398
+ name: "user",
399
+ type: "address",
339
400
  },
401
+ {
402
+ internalType: "string",
403
+ name: "attribute",
404
+ type: "string",
405
+ },
406
+ ],
407
+ name: "deleteUserAttribute",
408
+ outputs: [],
409
+ stateMutability: "nonpayable",
410
+ type: "function",
411
+ },
412
+ {
413
+ inputs: [
340
414
  {
341
415
  internalType: "uint256",
342
416
  name: "page",
@@ -348,12 +422,12 @@ export default [
348
422
  type: "uint256",
349
423
  },
350
424
  ],
351
- name: "getIssuerAttributeRevisions",
425
+ name: "getPolicies",
352
426
  outputs: [
353
427
  {
354
- internalType: "bytes32[]",
428
+ internalType: "uint256[]",
355
429
  name: "items",
356
- type: "bytes32[]",
430
+ type: "uint256[]",
357
431
  },
358
432
  {
359
433
  internalType: "uint256",
@@ -382,17 +456,32 @@ export default [
382
456
  {
383
457
  inputs: [
384
458
  {
385
- internalType: "string",
386
- name: "did",
387
- type: "string",
459
+ internalType: "uint256",
460
+ name: "_policyId",
461
+ type: "uint256",
388
462
  },
389
463
  ],
390
- name: "getIssuerProxies",
464
+ name: "getPolicy",
391
465
  outputs: [
392
466
  {
393
- internalType: "bytes32[]",
394
- name: "",
395
- type: "bytes32[]",
467
+ internalType: "uint256",
468
+ name: "policyId",
469
+ type: "uint256",
470
+ },
471
+ {
472
+ internalType: "string",
473
+ name: "description",
474
+ type: "string",
475
+ },
476
+ {
477
+ internalType: "string",
478
+ name: "policyName",
479
+ type: "string",
480
+ },
481
+ {
482
+ internalType: "bool",
483
+ name: "status",
484
+ type: "bool",
396
485
  },
397
486
  ],
398
487
  stateMutability: "view",
@@ -402,22 +491,32 @@ export default [
402
491
  inputs: [
403
492
  {
404
493
  internalType: "string",
405
- name: "did",
494
+ name: "_policyName",
406
495
  type: "string",
407
496
  },
408
- {
409
- internalType: "bytes32",
410
- name: "proxyId",
411
- type: "bytes32",
412
- },
413
497
  ],
414
- name: "getIssuerProxyById",
498
+ name: "getPolicy",
415
499
  outputs: [
500
+ {
501
+ internalType: "uint256",
502
+ name: "policyId",
503
+ type: "uint256",
504
+ },
505
+ {
506
+ internalType: "string",
507
+ name: "description",
508
+ type: "string",
509
+ },
416
510
  {
417
511
  internalType: "string",
418
- name: "proxyData",
512
+ name: "policyName",
419
513
  type: "string",
420
514
  },
515
+ {
516
+ internalType: "bool",
517
+ name: "status",
518
+ type: "bool",
519
+ },
421
520
  ],
422
521
  stateMutability: "view",
423
522
  type: "function",
@@ -435,7 +534,7 @@ export default [
435
534
  type: "uint256",
436
535
  },
437
536
  ],
438
- name: "getIssuers",
537
+ name: "getPolicyNames",
439
538
  outputs: [
440
539
  {
441
540
  internalType: "string[]",
@@ -468,6 +567,30 @@ export default [
468
567
  },
469
568
  {
470
569
  inputs: [
570
+ {
571
+ internalType: "bytes32",
572
+ name: "role",
573
+ type: "bytes32",
574
+ },
575
+ ],
576
+ name: "getRoleAdmin",
577
+ outputs: [
578
+ {
579
+ internalType: "bytes32",
580
+ name: "",
581
+ type: "bytes32",
582
+ },
583
+ ],
584
+ stateMutability: "view",
585
+ type: "function",
586
+ },
587
+ {
588
+ inputs: [
589
+ {
590
+ internalType: "address",
591
+ name: "user",
592
+ type: "address",
593
+ },
471
594
  {
472
595
  internalType: "uint256",
473
596
  name: "page",
@@ -479,7 +602,7 @@ export default [
479
602
  type: "uint256",
480
603
  },
481
604
  ],
482
- name: "getPolicies",
605
+ name: "getUserAttributes",
483
606
  outputs: [
484
607
  {
485
608
  internalType: "string[]",
@@ -512,54 +635,6 @@ export default [
512
635
  },
513
636
  {
514
637
  inputs: [
515
- {
516
- internalType: "string",
517
- name: "policyId",
518
- type: "string",
519
- },
520
- ],
521
- name: "getPolicy",
522
- outputs: [
523
- {
524
- internalType: "bytes",
525
- name: "",
526
- type: "bytes",
527
- },
528
- {
529
- internalType: "bytes32",
530
- name: "",
531
- type: "bytes32",
532
- },
533
- ],
534
- stateMutability: "view",
535
- type: "function",
536
- },
537
- {
538
- inputs: [
539
- {
540
- internalType: "bytes32",
541
- name: "revisionHash",
542
- type: "bytes32",
543
- },
544
- ],
545
- name: "getPolicyByHash",
546
- outputs: [
547
- {
548
- internalType: "bytes",
549
- name: "",
550
- type: "bytes",
551
- },
552
- ],
553
- stateMutability: "view",
554
- type: "function",
555
- },
556
- {
557
- inputs: [
558
- {
559
- internalType: "string",
560
- name: "policyId",
561
- type: "string",
562
- },
563
638
  {
564
639
  internalType: "uint256",
565
640
  name: "page",
@@ -571,12 +646,12 @@ export default [
571
646
  type: "uint256",
572
647
  },
573
648
  ],
574
- name: "getPolicyRevisions",
649
+ name: "getUsers",
575
650
  outputs: [
576
651
  {
577
- internalType: "bytes32[]",
652
+ internalType: "address[]",
578
653
  name: "items",
579
- type: "bytes32[]",
654
+ type: "address[]",
580
655
  },
581
656
  {
582
657
  internalType: "uint256",
@@ -605,86 +680,51 @@ export default [
605
680
  {
606
681
  inputs: [
607
682
  {
608
- internalType: "uint256",
609
- name: "v",
610
- type: "uint256",
683
+ internalType: "bytes32",
684
+ name: "role",
685
+ type: "bytes32",
611
686
  },
612
- ],
613
- name: "init",
614
- outputs: [],
615
- stateMutability: "nonpayable",
616
- type: "function",
617
- },
618
- {
619
- inputs: [
620
687
  {
621
- internalType: "uint256",
622
- name: "_version",
623
- type: "uint256",
688
+ internalType: "address",
689
+ name: "account",
690
+ type: "address",
624
691
  },
625
692
  ],
626
- name: "initialize",
693
+ name: "grantRole",
627
694
  outputs: [],
628
695
  stateMutability: "nonpayable",
629
696
  type: "function",
630
697
  },
631
698
  {
632
699
  inputs: [
633
- {
634
- internalType: "string",
635
- name: "did",
636
- type: "string",
637
- },
638
- {
639
- internalType: "bytes",
640
- name: "attributeData",
641
- type: "bytes",
642
- },
643
- {
644
- internalType: "enum AttributeStorage.IssuerType",
645
- name: "issuerType",
646
- type: "uint8",
647
- },
648
- {
649
- internalType: "string",
650
- name: "taoDid",
651
- type: "string",
652
- },
653
700
  {
654
701
  internalType: "bytes32",
655
- name: "attributeIdTao",
702
+ name: "role",
656
703
  type: "bytes32",
657
704
  },
658
- ],
659
- name: "insertIssuer",
660
- outputs: [],
661
- stateMutability: "nonpayable",
662
- type: "function",
663
- },
664
- {
665
- inputs: [
666
705
  {
667
- internalType: "string",
668
- name: "policyId",
669
- type: "string",
706
+ internalType: "address",
707
+ name: "account",
708
+ type: "address",
670
709
  },
710
+ ],
711
+ name: "hasRole",
712
+ outputs: [
671
713
  {
672
- internalType: "bytes",
673
- name: "policyData",
674
- type: "bytes",
714
+ internalType: "bool",
715
+ name: "",
716
+ type: "bool",
675
717
  },
676
718
  ],
677
- name: "insertPolicy",
678
- outputs: [],
679
- stateMutability: "nonpayable",
719
+ stateMutability: "view",
680
720
  type: "function",
681
721
  },
682
722
  {
683
723
  inputs: [],
684
- name: "policyRegistryContract",
724
+ name: "implementation",
685
725
  outputs: [
686
726
  {
687
- internalType: "contract IPolicyRegistry",
727
+ internalType: "address",
688
728
  name: "",
689
729
  type: "address",
690
730
  },
@@ -695,22 +735,12 @@ export default [
695
735
  {
696
736
  inputs: [
697
737
  {
698
- internalType: "string",
699
- name: "did",
700
- type: "string",
701
- },
702
- {
703
- internalType: "bytes32",
704
- name: "attributeId",
705
- type: "bytes32",
706
- },
707
- {
708
- internalType: "bytes",
709
- name: "attributeData",
710
- type: "bytes",
738
+ internalType: "uint256",
739
+ name: "_version",
740
+ type: "uint256",
711
741
  },
712
742
  ],
713
- name: "setAttributeData",
743
+ name: "initialize",
714
744
  outputs: [],
715
745
  stateMutability: "nonpayable",
716
746
  type: "function",
@@ -719,38 +749,34 @@ export default [
719
749
  inputs: [
720
750
  {
721
751
  internalType: "string",
722
- name: "did",
752
+ name: "policyName",
723
753
  type: "string",
724
754
  },
725
- {
726
- internalType: "bytes32",
727
- name: "attributeId",
728
- type: "bytes32",
729
- },
730
- {
731
- internalType: "enum AttributeStorage.IssuerType",
732
- name: "issuerType",
733
- type: "uint8",
734
- },
735
755
  {
736
756
  internalType: "string",
737
- name: "taoDid",
757
+ name: "description",
738
758
  type: "string",
739
759
  },
740
- {
741
- internalType: "bytes32",
742
- name: "attributeIdTao",
743
- type: "bytes32",
744
- },
745
760
  ],
746
- name: "setAttributeMetadata",
761
+ name: "insertPolicy",
747
762
  outputs: [],
748
763
  stateMutability: "nonpayable",
749
764
  type: "function",
750
765
  },
751
766
  {
752
- inputs: [],
753
- name: "setRegistryAddresses",
767
+ inputs: [
768
+ {
769
+ internalType: "address",
770
+ name: "user",
771
+ type: "address",
772
+ },
773
+ {
774
+ internalType: "string[]",
775
+ name: "attributes",
776
+ type: "string[]",
777
+ },
778
+ ],
779
+ name: "insertUserAttributes",
754
780
  outputs: [],
755
781
  stateMutability: "nonpayable",
756
782
  type: "function",
@@ -758,50 +784,35 @@ export default [
758
784
  {
759
785
  inputs: [
760
786
  {
761
- internalType: "uint256",
762
- name: "_version",
763
- type: "uint256",
787
+ internalType: "bytes32",
788
+ name: "role",
789
+ type: "bytes32",
790
+ },
791
+ {
792
+ internalType: "address",
793
+ name: "account",
794
+ type: "address",
764
795
  },
765
796
  ],
766
- name: "setVersion",
797
+ name: "renounceRole",
767
798
  outputs: [],
768
799
  stateMutability: "nonpayable",
769
800
  type: "function",
770
801
  },
771
802
  {
772
803
  inputs: [
773
- {
774
- internalType: "string",
775
- name: "did",
776
- type: "string",
777
- },
778
- {
779
- internalType: "bytes",
780
- name: "attributeData",
781
- type: "bytes",
782
- },
783
804
  {
784
805
  internalType: "bytes32",
785
- name: "lastVersHash",
806
+ name: "role",
786
807
  type: "bytes32",
787
808
  },
788
809
  {
789
- internalType: "enum AttributeStorage.IssuerType",
790
- name: "issuerType",
791
- type: "uint8",
792
- },
793
- {
794
- internalType: "string",
795
- name: "taoDid",
796
- type: "string",
797
- },
798
- {
799
- internalType: "bytes32",
800
- name: "attributeIdTao",
801
- type: "bytes32",
810
+ internalType: "address",
811
+ name: "account",
812
+ type: "address",
802
813
  },
803
814
  ],
804
- name: "updateIssuer",
815
+ name: "revokeRole",
805
816
  outputs: [],
806
817
  stateMutability: "nonpayable",
807
818
  type: "function",
@@ -809,55 +820,36 @@ export default [
809
820
  {
810
821
  inputs: [
811
822
  {
812
- internalType: "string",
813
- name: "did",
814
- type: "string",
815
- },
816
- {
817
- internalType: "bytes",
818
- name: "attributeData",
819
- type: "bytes",
820
- },
821
- {
822
- internalType: "enum AttributeStorage.IssuerType",
823
- name: "issuerType",
824
- type: "uint8",
825
- },
826
- {
827
- internalType: "string",
828
- name: "taoDid",
829
- type: "string",
823
+ internalType: "bytes4",
824
+ name: "interfaceId",
825
+ type: "bytes4",
830
826
  },
827
+ ],
828
+ name: "supportsInterface",
829
+ outputs: [
831
830
  {
832
- internalType: "bytes32",
833
- name: "attributeIdTao",
834
- type: "bytes32",
831
+ internalType: "bool",
832
+ name: "",
833
+ type: "bool",
835
834
  },
836
835
  ],
837
- name: "updateIssuer",
838
- outputs: [],
839
- stateMutability: "nonpayable",
836
+ stateMutability: "view",
840
837
  type: "function",
841
838
  },
842
839
  {
843
840
  inputs: [
844
841
  {
845
842
  internalType: "string",
846
- name: "did",
843
+ name: "policyName",
847
844
  type: "string",
848
845
  },
849
- {
850
- internalType: "bytes32",
851
- name: "proxyId",
852
- type: "bytes32",
853
- },
854
846
  {
855
847
  internalType: "string",
856
- name: "proxyData",
848
+ name: "description",
857
849
  type: "string",
858
850
  },
859
851
  ],
860
- name: "updateIssuerProxy",
852
+ name: "updatePolicy",
861
853
  outputs: [],
862
854
  stateMutability: "nonpayable",
863
855
  type: "function",
@@ -865,14 +857,14 @@ export default [
865
857
  {
866
858
  inputs: [
867
859
  {
868
- internalType: "string",
860
+ internalType: "uint256",
869
861
  name: "policyId",
870
- type: "string",
862
+ type: "uint256",
871
863
  },
872
864
  {
873
- internalType: "bytes",
874
- name: "policyData",
875
- type: "bytes",
865
+ internalType: "string",
866
+ name: "description",
867
+ type: "string",
876
868
  },
877
869
  ],
878
870
  name: "updatePolicy",
@@ -894,4 +886,4 @@ export default [
894
886
  type: "function",
895
887
  },
896
888
  ];
897
- //# sourceMappingURL=Tir.js.map
889
+ //# sourceMappingURL=TprV2.js.map