@cef-ebsi/cli 1.3.1 → 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,81 +1,38 @@
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: [
5
- {
6
- indexed: true,
7
- internalType: "bytes32",
8
- name: "didHash",
9
- type: "bytes32",
10
- },
11
- {
12
- indexed: true,
13
- internalType: "bytes32",
14
- name: "firstAttrHash",
15
- type: "bytes32",
16
- },
17
- {
18
- indexed: false,
19
- internalType: "string",
20
- name: "did",
21
- type: "string",
22
- },
23
- {
24
- indexed: false,
25
- internalType: "uint256",
26
- name: "attributeVersionCount",
27
- type: "uint256",
28
- },
29
- {
30
- indexed: false,
31
- internalType: "uint256",
32
- name: "attributesCount",
33
- type: "uint256",
34
- },
10
+ { indexed: false, internalType: "uint8", name: "version", type: "uint8" },
35
11
  ],
36
- name: "AddAdministratorAttribute",
12
+ name: "Initialized",
37
13
  type: "event",
38
14
  },
39
15
  {
40
16
  anonymous: false,
41
17
  inputs: [
42
- {
43
- indexed: true,
44
- internalType: "string",
45
- name: "policyId",
46
- type: "string",
47
- },
48
18
  {
49
19
  indexed: true,
50
20
  internalType: "bytes32",
51
- name: "policyHash",
21
+ name: "schemaRevisionId",
52
22
  type: "bytes32",
53
23
  },
54
24
  {
55
25
  indexed: false,
56
26
  internalType: "bytes",
57
- name: "policy",
27
+ name: "metadata",
58
28
  type: "bytes",
59
29
  },
60
- ],
61
- name: "AddNewPolicy",
62
- type: "event",
63
- },
64
- {
65
- anonymous: false,
66
- inputs: [
67
30
  {
68
- indexed: true,
31
+ indexed: false,
69
32
  internalType: "bytes32",
70
- name: "shemaRevisionId",
33
+ name: "metadataId",
71
34
  type: "bytes32",
72
35
  },
73
- {
74
- indexed: false,
75
- internalType: "bytes",
76
- name: "metadata",
77
- type: "bytes",
78
- },
79
36
  ],
80
37
  name: "MetadataUpdated",
81
38
  type: "event",
@@ -83,42 +40,21 @@ export default [
83
40
  {
84
41
  anonymous: false,
85
42
  inputs: [
86
- {
87
- indexed: true,
88
- internalType: "bytes",
89
- name: "schemaId",
90
- type: "bytes",
91
- },
92
- {
93
- indexed: false,
94
- internalType: "bytes",
95
- name: "schema",
96
- type: "bytes",
97
- },
98
- {
99
- indexed: false,
100
- internalType: "bytes",
101
- name: "metadata",
102
- type: "bytes",
103
- },
43
+ { indexed: false, internalType: "uint256", name: "", type: "uint256" },
104
44
  ],
105
- name: "SchemaInserted",
45
+ name: "NewVersion",
106
46
  type: "event",
107
47
  },
108
48
  {
109
49
  anonymous: false,
110
50
  inputs: [
111
- {
112
- indexed: true,
113
- internalType: "bytes",
114
- name: "schema",
115
- type: "bytes",
116
- },
51
+ { indexed: true, internalType: "bytes", name: "schemaId", type: "bytes" },
52
+ { indexed: false, internalType: "bytes", name: "schema", type: "bytes" },
117
53
  {
118
54
  indexed: false,
119
- internalType: "bytes",
120
- name: "revision",
121
- type: "bytes",
55
+ internalType: "bytes32",
56
+ name: "schemaRevisionId",
57
+ type: "bytes32",
122
58
  },
123
59
  {
124
60
  indexed: false,
@@ -126,832 +62,193 @@ export default [
126
62
  name: "metadata",
127
63
  type: "bytes",
128
64
  },
129
- ],
130
- name: "SchemaUpdated",
131
- type: "event",
132
- },
133
- {
134
- anonymous: false,
135
- inputs: [
136
- {
137
- indexed: true,
138
- internalType: "bytes32",
139
- name: "didHash",
140
- type: "bytes32",
141
- },
142
- {
143
- indexed: true,
144
- internalType: "bytes32",
145
- name: "newAttrHash",
146
- type: "bytes32",
147
- },
148
- {
149
- indexed: true,
150
- internalType: "bytes32",
151
- name: "previousAttrHash",
152
- type: "bytes32",
153
- },
154
65
  {
155
66
  indexed: false,
156
67
  internalType: "bytes32",
157
- name: "firstAttrHash",
68
+ name: "metadataId",
158
69
  type: "bytes32",
159
70
  },
160
- {
161
- indexed: false,
162
- internalType: "string",
163
- name: "did",
164
- type: "string",
165
- },
166
- {
167
- indexed: false,
168
- internalType: "uint256",
169
- name: "attributeVersionCount",
170
- type: "uint256",
171
- },
172
- {
173
- indexed: false,
174
- internalType: "uint256",
175
- name: "attributesCount",
176
- type: "uint256",
177
- },
178
71
  ],
179
- name: "UpdateAdministratorAttribute",
72
+ name: "SchemaInserted",
180
73
  type: "event",
181
74
  },
182
75
  {
183
76
  anonymous: false,
184
77
  inputs: [
78
+ { indexed: true, internalType: "bytes", name: "schemaId", type: "bytes" },
79
+ { indexed: false, internalType: "bytes", name: "schema", type: "bytes" },
185
80
  {
186
- indexed: true,
187
- internalType: "string",
188
- name: "policyId",
189
- type: "string",
190
- },
191
- {
192
- indexed: true,
81
+ indexed: false,
193
82
  internalType: "bytes32",
194
- name: "policyHash",
83
+ name: "schemaRevisionId",
195
84
  type: "bytes32",
196
85
  },
197
86
  {
198
87
  indexed: false,
199
88
  internalType: "bytes",
200
- name: "policy",
89
+ name: "metadata",
201
90
  type: "bytes",
202
91
  },
92
+ {
93
+ indexed: false,
94
+ internalType: "bytes32",
95
+ name: "metadataId",
96
+ type: "bytes32",
97
+ },
203
98
  ],
204
- name: "UpdateExistingPolicy",
99
+ name: "SchemaUpdated",
205
100
  type: "event",
206
101
  },
207
102
  {
208
103
  inputs: [],
209
104
  name: "SCHEMA_DIAMOND_STORAGE_POSITION",
210
- outputs: [
211
- {
212
- internalType: "bytes32",
213
- name: "",
214
- type: "bytes32",
215
- },
216
- ],
105
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
217
106
  stateMutability: "view",
218
107
  type: "function",
219
108
  },
220
109
  {
221
110
  inputs: [],
222
111
  name: "TSC_DIAMOND_STORAGE_POSITION",
223
- outputs: [
224
- {
225
- internalType: "bytes32",
226
- name: "",
227
- type: "bytes32",
228
- },
229
- ],
112
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
230
113
  stateMutability: "view",
231
114
  type: "function",
232
115
  },
233
116
  {
234
- inputs: [],
235
- name: "TSR_ADMINISTRATOR_DIAMOND_STORAGE_POSITION",
236
- outputs: [
237
- {
238
- internalType: "bytes32",
239
- name: "",
240
- type: "bytes32",
241
- },
242
- ],
117
+ inputs: [{ internalType: "bytes", name: "schemaId", type: "bytes" }],
118
+ name: "getLatestSchemaRevision",
119
+ outputs: [{ internalType: "bytes", name: "schema", type: "bytes" }],
243
120
  stateMutability: "view",
244
121
  type: "function",
245
122
  },
246
123
  {
247
- inputs: [],
248
- name: "TSR_POLICY_DIAMOND_STORAGE_POSITION",
249
- outputs: [
250
- {
251
- internalType: "bytes32",
252
- name: "",
253
- type: "bytes32",
254
- },
124
+ inputs: [
125
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
255
126
  ],
127
+ name: "getLatestSchemaRevisionMetadataByRevisionId",
128
+ outputs: [{ internalType: "bytes", name: "metadata", type: "bytes" }],
256
129
  stateMutability: "view",
257
130
  type: "function",
258
131
  },
259
- {
260
- inputs: [],
261
- name: "setTrustedPoliciesRegistryAddress",
262
- outputs: [],
263
- stateMutability: "nonpayable",
264
- type: "function",
265
- },
266
132
  {
267
133
  inputs: [
268
- {
269
- internalType: "string",
270
- name: "did",
271
- type: "string",
272
- },
134
+ { internalType: "uint256", name: "page", type: "uint256" },
135
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
273
136
  ],
274
- name: "getAdministrator",
137
+ name: "getSchemaIds",
275
138
  outputs: [
276
- {
277
- internalType: "bytes32[]",
278
- name: "",
279
- type: "bytes32[]",
280
- },
139
+ { internalType: "bytes[]", name: "items", type: "bytes[]" },
140
+ { internalType: "uint256", name: "total", type: "uint256" },
141
+ { internalType: "uint256", name: "howMany", type: "uint256" },
142
+ { internalType: "uint256", name: "prev", type: "uint256" },
143
+ { internalType: "uint256", name: "next", type: "uint256" },
281
144
  ],
282
145
  stateMutability: "view",
283
146
  type: "function",
284
147
  },
285
148
  {
286
149
  inputs: [
287
- {
288
- internalType: "bytes32",
289
- name: "anyAttrVersHash",
290
- type: "bytes32",
291
- },
292
- ],
293
- name: "getAdministratorAttributeByHash",
294
- outputs: [
295
- {
296
- internalType: "string",
297
- name: "did",
298
- type: "string",
299
- },
300
- {
301
- internalType: "bytes",
302
- name: "attribData",
303
- type: "bytes",
304
- },
150
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
151
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
305
152
  ],
153
+ name: "getSchemaRevision",
154
+ outputs: [{ internalType: "bytes", name: "schema", type: "bytes" }],
306
155
  stateMutability: "view",
307
156
  type: "function",
308
157
  },
309
158
  {
310
159
  inputs: [
311
- {
312
- internalType: "bytes32",
313
- name: "anyAttrVersHash",
314
- type: "bytes32",
315
- },
316
- {
317
- internalType: "uint256",
318
- name: "page",
319
- type: "uint256",
320
- },
321
- {
322
- internalType: "uint256",
323
- name: "pageSize",
324
- type: "uint256",
325
- },
160
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
161
+ { internalType: "uint256", name: "page", type: "uint256" },
162
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
326
163
  ],
327
- name: "getAdministratorAttributeRevisions",
164
+ name: "getSchemaRevisionIds",
328
165
  outputs: [
329
- {
330
- internalType: "bytes32[]",
331
- name: "items",
332
- type: "bytes32[]",
333
- },
334
- {
335
- internalType: "uint256",
336
- name: "total",
337
- type: "uint256",
338
- },
339
- {
340
- internalType: "uint256",
341
- name: "howMany",
342
- type: "uint256",
343
- },
344
- {
345
- internalType: "uint256",
346
- name: "prev",
347
- type: "uint256",
348
- },
349
- {
350
- internalType: "uint256",
351
- name: "next",
352
- type: "uint256",
353
- },
166
+ { internalType: "bytes32[]", name: "items", type: "bytes32[]" },
167
+ { internalType: "uint256", name: "total", type: "uint256" },
168
+ { internalType: "uint256", name: "howMany", type: "uint256" },
169
+ { internalType: "uint256", name: "prev", type: "uint256" },
170
+ { internalType: "uint256", name: "next", type: "uint256" },
354
171
  ],
355
172
  stateMutability: "view",
356
173
  type: "function",
357
174
  },
358
175
  {
359
176
  inputs: [
360
- {
361
- internalType: "uint256",
362
- name: "page",
363
- type: "uint256",
364
- },
365
- {
366
- internalType: "uint256",
367
- name: "pageSize",
368
- type: "uint256",
369
- },
370
- ],
371
- name: "getAdministrators",
372
- outputs: [
373
- {
374
- internalType: "string[]",
375
- name: "items",
376
- type: "string[]",
377
- },
378
- {
379
- internalType: "uint256",
380
- name: "total",
381
- type: "uint256",
382
- },
383
- {
384
- internalType: "uint256",
385
- name: "howMany",
386
- type: "uint256",
387
- },
388
- {
389
- internalType: "uint256",
390
- name: "prev",
391
- type: "uint256",
392
- },
393
- {
394
- internalType: "uint256",
395
- name: "next",
396
- type: "uint256",
397
- },
177
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
178
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
179
+ { internalType: "bytes32", name: "metadataId", type: "bytes32" },
398
180
  ],
181
+ name: "getSchemaRevisionMetadataByMetadataId",
182
+ outputs: [{ internalType: "bytes", name: "metadata", type: "bytes" }],
399
183
  stateMutability: "view",
400
184
  type: "function",
401
185
  },
402
186
  {
403
187
  inputs: [
404
- {
405
- internalType: "bytes",
406
- name: "schemaId",
407
- type: "bytes",
408
- },
188
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
189
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
190
+ { internalType: "uint256", name: "page", type: "uint256" },
191
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
409
192
  ],
410
- name: "getLatestSchemaRevision",
193
+ name: "getSchemaRevisionMetadataIds",
411
194
  outputs: [
412
- {
413
- internalType: "bytes",
414
- name: "schema",
415
- type: "bytes",
416
- },
195
+ { internalType: "bytes32[]", name: "items", type: "bytes32[]" },
196
+ { internalType: "uint256", name: "total", type: "uint256" },
197
+ { internalType: "uint256", name: "howMany", type: "uint256" },
198
+ { internalType: "uint256", name: "prev", type: "uint256" },
199
+ { internalType: "uint256", name: "next", type: "uint256" },
417
200
  ],
418
201
  stateMutability: "view",
419
202
  type: "function",
420
203
  },
204
+ {
205
+ inputs: [{ internalType: "uint256", name: "_version", type: "uint256" }],
206
+ name: "initialize",
207
+ outputs: [],
208
+ stateMutability: "nonpayable",
209
+ type: "function",
210
+ },
421
211
  {
422
212
  inputs: [
423
- {
424
- internalType: "bytes32",
425
- name: "schemaRevisionId",
426
- type: "bytes32",
427
- },
213
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
214
+ { internalType: "bytes", name: "schema", type: "bytes" },
215
+ { internalType: "bytes", name: "metadata", type: "bytes" },
428
216
  ],
429
- name: "getLatestSchemaRevisionMetadataByRevisionId",
217
+ name: "insertSchema",
430
218
  outputs: [
431
- {
432
- internalType: "bytes",
433
- name: "metadata",
434
- type: "bytes",
435
- },
219
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
436
220
  ],
437
- stateMutability: "view",
221
+ stateMutability: "nonpayable",
438
222
  type: "function",
439
223
  },
440
224
  {
441
- inputs: [
442
- {
443
- internalType: "uint256",
444
- name: "page",
445
- type: "uint256",
446
- },
447
- {
448
- internalType: "uint256",
449
- name: "pageSize",
450
- type: "uint256",
451
- },
452
- ],
453
- name: "getPolicies",
225
+ inputs: [],
226
+ name: "policyRegistryContract",
454
227
  outputs: [
455
- {
456
- internalType: "string[]",
457
- name: "items",
458
- type: "string[]",
459
- },
460
- {
461
- internalType: "uint256",
462
- name: "total",
463
- type: "uint256",
464
- },
465
- {
466
- internalType: "uint256",
467
- name: "howMany",
468
- type: "uint256",
469
- },
470
- {
471
- internalType: "uint256",
472
- name: "prev",
473
- type: "uint256",
474
- },
475
- {
476
- internalType: "uint256",
477
- name: "next",
478
- type: "uint256",
479
- },
228
+ { internalType: "contract IPolicyRegistry", name: "", type: "address" },
480
229
  ],
481
230
  stateMutability: "view",
482
231
  type: "function",
483
232
  },
484
233
  {
485
234
  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
- },
499
- {
500
- internalType: "bytes32",
501
- name: "",
502
- type: "bytes32",
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
- },
534
- {
535
- internalType: "uint256",
536
- name: "page",
537
- type: "uint256",
538
- },
539
- {
540
- internalType: "uint256",
541
- name: "pageSize",
542
- type: "uint256",
543
- },
544
- ],
545
- name: "getPolicyRevisions",
546
- outputs: [
547
- {
548
- internalType: "bytes32[]",
549
- name: "items",
550
- type: "bytes32[]",
551
- },
552
- {
553
- internalType: "uint256",
554
- name: "total",
555
- type: "uint256",
556
- },
557
- {
558
- internalType: "uint256",
559
- name: "howMany",
560
- type: "uint256",
561
- },
562
- {
563
- internalType: "uint256",
564
- name: "prev",
565
- type: "uint256",
566
- },
567
- {
568
- internalType: "uint256",
569
- name: "next",
570
- type: "uint256",
571
- },
572
- ],
573
- stateMutability: "view",
574
- type: "function",
575
- },
576
- {
577
- inputs: [
578
- {
579
- internalType: "uint256",
580
- name: "page",
581
- type: "uint256",
582
- },
583
- {
584
- internalType: "uint256",
585
- name: "pageSize",
586
- type: "uint256",
587
- },
588
- ],
589
- name: "getSchemaIds",
590
- outputs: [
591
- {
592
- internalType: "bytes[]",
593
- name: "items",
594
- type: "bytes[]",
595
- },
596
- {
597
- internalType: "uint256",
598
- name: "total",
599
- type: "uint256",
600
- },
601
- {
602
- internalType: "uint256",
603
- name: "howMany",
604
- type: "uint256",
605
- },
606
- {
607
- internalType: "uint256",
608
- name: "prev",
609
- type: "uint256",
610
- },
611
- {
612
- internalType: "uint256",
613
- name: "next",
614
- type: "uint256",
615
- },
616
- ],
617
- stateMutability: "view",
618
- type: "function",
619
- },
620
- {
621
- inputs: [
622
- {
623
- internalType: "bytes32",
624
- name: "schemaRevisionId",
625
- type: "bytes32",
626
- },
627
- ],
628
- name: "getSchemaRevision",
629
- outputs: [
630
- {
631
- internalType: "bytes",
632
- name: "schema",
633
- type: "bytes",
634
- },
635
- ],
636
- stateMutability: "view",
637
- type: "function",
638
- },
639
- {
640
- inputs: [
641
- {
642
- internalType: "bytes",
643
- name: "schemaId",
644
- type: "bytes",
645
- },
646
- {
647
- internalType: "uint256",
648
- name: "page",
649
- type: "uint256",
650
- },
651
- {
652
- internalType: "uint256",
653
- name: "pageSize",
654
- type: "uint256",
655
- },
656
- ],
657
- name: "getSchemaRevisionIds",
658
- outputs: [
659
- {
660
- internalType: "bytes32[]",
661
- name: "items",
662
- type: "bytes32[]",
663
- },
664
- {
665
- internalType: "uint256",
666
- name: "total",
667
- type: "uint256",
668
- },
669
- {
670
- internalType: "uint256",
671
- name: "howMany",
672
- type: "uint256",
673
- },
674
- {
675
- internalType: "uint256",
676
- name: "prev",
677
- type: "uint256",
678
- },
679
- {
680
- internalType: "uint256",
681
- name: "next",
682
- type: "uint256",
683
- },
684
- ],
685
- stateMutability: "view",
686
- type: "function",
687
- },
688
- {
689
- inputs: [
690
- {
691
- internalType: "bytes32",
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",
712
- type: "bytes32",
713
- },
714
- {
715
- internalType: "uint256",
716
- name: "page",
717
- type: "uint256",
718
- },
719
- {
720
- internalType: "uint256",
721
- name: "pageSize",
722
- type: "uint256",
723
- },
724
- ],
725
- name: "getSchemaRevisionMetadataIds",
726
- outputs: [
727
- {
728
- internalType: "bytes32[]",
729
- name: "items",
730
- type: "bytes32[]",
731
- },
732
- {
733
- internalType: "uint256",
734
- name: "total",
735
- type: "uint256",
736
- },
737
- {
738
- internalType: "uint256",
739
- name: "howMany",
740
- type: "uint256",
741
- },
742
- {
743
- internalType: "uint256",
744
- name: "prev",
745
- type: "uint256",
746
- },
747
- {
748
- internalType: "uint256",
749
- name: "next",
750
- type: "uint256",
751
- },
752
- ],
753
- stateMutability: "view",
754
- type: "function",
755
- },
756
- {
757
- inputs: [
758
- {
759
- internalType: "uint256",
760
- name: "version",
761
- type: "uint256",
762
- },
763
- ],
764
- name: "initialize",
765
- outputs: [],
766
- stateMutability: "nonpayable",
767
- type: "function",
768
- },
769
- {
770
- inputs: [
771
- {
772
- internalType: "string",
773
- name: "did",
774
- type: "string",
775
- },
776
- {
777
- internalType: "bytes",
778
- name: "attributeData",
779
- type: "bytes",
780
- },
781
- ],
782
- name: "insertAdministrator",
783
- outputs: [],
784
- stateMutability: "nonpayable",
785
- type: "function",
786
- },
787
- {
788
- inputs: [
789
- {
790
- internalType: "string",
791
- name: "policyId",
792
- type: "string",
793
- },
794
- {
795
- internalType: "bytes",
796
- name: "policyData",
797
- type: "bytes",
798
- },
799
- ],
800
- name: "insertPolicy",
801
- outputs: [],
802
- stateMutability: "nonpayable",
803
- type: "function",
804
- },
805
- {
806
- inputs: [
807
- {
808
- internalType: "bytes",
809
- name: "schemaId",
810
- type: "bytes",
811
- },
812
- {
813
- internalType: "bytes",
814
- name: "schema",
815
- type: "bytes",
816
- },
817
- {
818
- internalType: "bytes",
819
- name: "metadata",
820
- type: "bytes",
821
- },
822
- ],
823
- name: "insertSchema",
824
- outputs: [
825
- {
826
- internalType: "bytes32",
827
- name: "schemaRevisionId",
828
- type: "bytes32",
829
- },
830
- ],
831
- stateMutability: "nonpayable",
832
- type: "function",
833
- },
834
- {
835
- inputs: [
836
- {
837
- internalType: "uint256",
838
- name: "_version",
839
- type: "uint256",
840
- },
841
- ],
842
- name: "setVersion",
843
- outputs: [],
844
- stateMutability: "nonpayable",
845
- type: "function",
846
- },
847
- {
848
- inputs: [
849
- {
850
- internalType: "string",
851
- name: "did",
852
- type: "string",
853
- },
854
- {
855
- internalType: "bytes",
856
- name: "attributeData",
857
- type: "bytes",
858
- },
859
- ],
860
- name: "updateAdministrator",
861
- outputs: [],
862
- stateMutability: "nonpayable",
863
- type: "function",
864
- },
865
- {
866
- inputs: [
867
- {
868
- internalType: "string",
869
- name: "did",
870
- type: "string",
871
- },
872
- {
873
- internalType: "bytes",
874
- name: "attributeData",
875
- type: "bytes",
876
- },
877
- {
878
- internalType: "bytes32",
879
- name: "lastVersHash",
880
- type: "bytes32",
881
- },
882
- ],
883
- name: "updateAdministrator",
884
- outputs: [],
885
- stateMutability: "nonpayable",
886
- type: "function",
887
- },
888
- {
889
- inputs: [
890
- {
891
- internalType: "bytes32",
892
- name: "schemaRevisionId",
893
- type: "bytes32",
894
- },
895
- {
896
- internalType: "bytes",
897
- name: "metadata",
898
- type: "bytes",
899
- },
235
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
236
+ { internalType: "bytes", name: "metadata", type: "bytes" },
900
237
  ],
901
238
  name: "updateMetadata",
902
- outputs: [
903
- {
904
- internalType: "bytes32",
905
- name: "metadataId",
906
- type: "bytes32",
907
- },
908
- ],
909
- stateMutability: "nonpayable",
910
- type: "function",
911
- },
912
- {
913
- inputs: [
914
- {
915
- internalType: "string",
916
- name: "policyId",
917
- type: "string",
918
- },
919
- {
920
- internalType: "bytes",
921
- name: "policyData",
922
- type: "bytes",
923
- },
924
- ],
925
- name: "updatePolicy",
926
- outputs: [],
239
+ outputs: [{ internalType: "bytes32", name: "metadataId", type: "bytes32" }],
927
240
  stateMutability: "nonpayable",
928
241
  type: "function",
929
242
  },
930
243
  {
931
244
  inputs: [
932
- {
933
- internalType: "bytes",
934
- name: "schemaId",
935
- type: "bytes",
936
- },
937
- {
938
- internalType: "bytes",
939
- name: "schema",
940
- type: "bytes",
941
- },
942
- {
943
- internalType: "bytes",
944
- name: "metadata",
945
- type: "bytes",
946
- },
245
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
246
+ { internalType: "bytes", name: "schema", type: "bytes" },
247
+ { internalType: "bytes", name: "metadata", type: "bytes" },
947
248
  ],
948
249
  name: "updateSchema",
949
250
  outputs: [
950
- {
951
- internalType: "bytes32",
952
- name: "schemaRevisionId",
953
- type: "bytes32",
954
- },
251
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
955
252
  ],
956
253
  stateMutability: "nonpayable",
957
254
  type: "function",
@@ -959,13 +256,7 @@ export default [
959
256
  {
960
257
  inputs: [],
961
258
  name: "version",
962
- outputs: [
963
- {
964
- internalType: "uint256",
965
- name: "",
966
- type: "uint256",
967
- },
968
- ],
259
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
969
260
  stateMutability: "view",
970
261
  type: "function",
971
262
  },