@cef-ebsi/cli 1.3.2 → 1.5.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 (202) 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/{test/TirV4.js → pilot/Ptr.js} +255 -299
  5. package/dist/abi/pilot/Ptr.js.map +1 -0
  6. package/dist/abi/pilot/SchemaSCRegistry.js +264 -0
  7. package/dist/abi/pilot/SchemaSCRegistry.js.map +1 -0
  8. package/dist/abi/{test/TprV3.js → pilot/Tcr.js} +269 -261
  9. package/dist/abi/pilot/Tcr.js.map +1 -0
  10. package/dist/abi/pilot/Timestamp.js +658 -0
  11. package/dist/abi/pilot/Timestamp.js.map +1 -0
  12. package/dist/abi/pilot/Tir.js +428 -0
  13. package/dist/abi/pilot/Tir.js.map +1 -0
  14. package/dist/abi/pilot/TnT.js +842 -0
  15. package/dist/abi/pilot/TnT.js.map +1 -0
  16. package/dist/abi/pilot/Tpr.js +492 -0
  17. package/dist/abi/pilot/Tpr.js.map +1 -0
  18. package/dist/abi/test/DidRegistry.js +144 -658
  19. package/dist/abi/test/DidRegistry.js.map +1 -1
  20. package/dist/abi/{pilot/TirV4.js → test/Ptr.js} +255 -299
  21. package/dist/abi/test/Ptr.js.map +1 -0
  22. package/dist/abi/test/SchemaSCRegistry.js +122 -795
  23. package/dist/abi/test/SchemaSCRegistry.js.map +1 -1
  24. package/dist/abi/{pilot/TprV3.js → test/Tcr.js} +269 -261
  25. package/dist/abi/test/Tcr.js.map +1 -0
  26. package/dist/abi/test/Timestamp.js +239 -673
  27. package/dist/abi/test/Timestamp.js.map +1 -1
  28. package/dist/abi/test/Tir.js +167 -636
  29. package/dist/abi/test/Tir.js.map +1 -1
  30. package/dist/abi/test/TnT.js +842 -0
  31. package/dist/abi/test/TnT.js.map +1 -0
  32. package/dist/abi/test/Tpr.js +166 -942
  33. package/dist/abi/test/Tpr.js.map +1 -1
  34. package/dist/app.js +447 -443
  35. package/dist/app.js.map +1 -1
  36. package/dist/buildParam/{didV3.js → didr.js} +210 -204
  37. package/dist/buildParam/didr.js.map +1 -0
  38. package/dist/buildParam/index.js +42 -48
  39. package/dist/buildParam/index.js.map +1 -1
  40. package/dist/buildParam/ptr.js +80 -0
  41. package/dist/buildParam/ptr.js.map +1 -0
  42. package/dist/buildParam/tcr.js +36 -0
  43. package/dist/buildParam/tcr.js.map +1 -0
  44. package/dist/buildParam/{timestampV3.js → timestamp.js} +179 -136
  45. package/dist/buildParam/timestamp.js.map +1 -0
  46. package/dist/buildParam/{tirV3.js → tir.js} +67 -59
  47. package/dist/buildParam/tir.js.map +1 -0
  48. package/dist/buildParam/{tntV1.js → tnt.js} +90 -61
  49. package/dist/buildParam/tnt.js.map +1 -0
  50. package/dist/buildParam/{tprV2.js → tpr.js} +44 -33
  51. package/dist/buildParam/tpr.js.map +1 -0
  52. package/dist/buildParam/{tsrV2.js → tsr.js} +45 -40
  53. package/dist/buildParam/tsr.js.map +1 -0
  54. package/dist/cli.js +1 -0
  55. package/dist/cli.js.map +1 -1
  56. package/dist/commands/{authorisation-v5.js → authorisation.js} +95 -72
  57. package/dist/commands/authorisation.js.map +1 -0
  58. package/dist/commands/compute.js +429 -389
  59. package/dist/commands/compute.js.map +1 -1
  60. package/dist/commands/{conformance-v3.js → conformance.js} +236 -248
  61. package/dist/commands/conformance.js.map +1 -0
  62. package/dist/commands/hardwarewallet.js +5 -5
  63. package/dist/commands/hardwarewallet.js.map +1 -1
  64. package/dist/commands/index.js +4 -4
  65. package/dist/commands/index.js.map +1 -1
  66. package/dist/commands/{ledger-v4.js → ledger.js} +203 -127
  67. package/dist/commands/ledger.js.map +1 -0
  68. package/dist/commands/ptr.js +56 -0
  69. package/dist/commands/ptr.js.map +1 -0
  70. package/dist/commands/tcr.js +51 -0
  71. package/dist/commands/tcr.js.map +1 -0
  72. package/dist/commands/tnl.js +10 -9
  73. package/dist/commands/tnl.js.map +1 -1
  74. package/dist/commands/tsr.js +46 -0
  75. package/dist/commands/tsr.js.map +1 -0
  76. package/dist/commands/view.js +8 -8
  77. package/dist/commands/view.js.map +1 -1
  78. package/dist/config.js +311 -279
  79. package/dist/config.js.map +1 -1
  80. package/dist/index.js +3 -3
  81. package/dist/index.js.map +1 -1
  82. package/dist/interfaces/index.js +1 -1
  83. package/dist/interfaces/index.js.map +1 -1
  84. package/dist/programs/migrateDid.js +33 -33
  85. package/dist/programs/migrateDid.js.map +1 -1
  86. package/dist/programs/migrateDids.js +39 -42
  87. package/dist/programs/migrateDids.js.map +1 -1
  88. package/dist/programs/migrateTsr.js +153 -113
  89. package/dist/programs/migrateTsr.js.map +1 -1
  90. package/dist/scripts/accreditAndAuthorize/conformance/step1 +1 -1
  91. package/dist/scripts/accreditAndAuthorize/test/step1 +1 -1
  92. package/dist/scripts/accreditTI +1 -1
  93. package/dist/scripts/assets/CTRevocableCredential.json +1 -1
  94. package/dist/scripts/assets/CredentialToAttestVerifiableAuthorisationForTrustChain.json +2 -2
  95. package/dist/scripts/assets/TrustedNodesList.json +1 -1
  96. package/dist/scripts/assets/VerifiableAccreditationToAccredit.json +2 -2
  97. package/dist/scripts/assets/VerifiableAccreditationToAttest.json +2 -2
  98. package/dist/scripts/assets/VerifiableAuthorisationForTrustChain.json +1 -1
  99. package/dist/scripts/assets/VerifiableAuthorisationToInvoke.json +24 -0
  100. package/dist/scripts/assets/VerifiableAuthorisationToOnboard.json +1 -1
  101. package/dist/scripts/bootstrap/1-populateTPR +18 -15
  102. package/dist/scripts/bootstrap/6-setupConformanceIssuer +1 -1
  103. package/dist/scripts/issueVcInvoke +10 -0
  104. package/dist/scripts/issueVcOnboard +1 -1
  105. package/dist/scripts/issueVcRootTAO +1 -1
  106. package/dist/scripts/issueVcTAO +2 -2
  107. package/dist/scripts/issueVcTI +2 -2
  108. package/dist/scripts/issueVcTnl +1 -1
  109. package/dist/scripts/issue_CTRevocableCredential +1 -1
  110. package/dist/scripts/issue_SelfAttestationSupportOffice +2 -2
  111. package/dist/scripts/issue_VerifiableAccreditationToAccredit +2 -2
  112. package/dist/scripts/issue_VerifiableAccreditationToAttest +2 -2
  113. package/dist/scripts/issue_VerifiableAuthorisationForTrustChain +1 -1
  114. package/dist/scripts/issue_VerifiableAuthorisationToOnboard +1 -1
  115. package/dist/scripts/updateVcRootTAO +1 -1
  116. package/dist/scripts/updateVcTAO +2 -2
  117. package/dist/scripts/updateVcTI +2 -2
  118. package/dist/scripts/{wctv3 → wct}/accreditAndAuthorize +1 -1
  119. package/dist/tsconfig.build.tsbuildinfo +1 -0
  120. package/dist/utils/Client.js +81 -68
  121. package/dist/utils/Client.js.map +1 -1
  122. package/dist/utils/HardwareWallet.js +169 -165
  123. package/dist/utils/HardwareWallet.js.map +1 -1
  124. package/dist/utils/http.js +24 -27
  125. package/dist/utils/http.js.map +1 -1
  126. package/dist/utils/index.js +3 -3
  127. package/dist/utils/index.js.map +1 -1
  128. package/dist/utils/jsonrpc.js +14 -14
  129. package/dist/utils/jsonrpc.js.map +1 -1
  130. package/dist/utils/print.js +19 -19
  131. package/dist/utils/print.js.map +1 -1
  132. package/dist/utils/utils.js +180 -173
  133. package/dist/utils/utils.js.map +1 -1
  134. package/package.json +70 -46
  135. package/dist/abi/pilot/DidRegistryV3.js +0 -1082
  136. package/dist/abi/pilot/DidRegistryV3.js.map +0 -1
  137. package/dist/abi/pilot/DidRegistryV4.js +0 -942
  138. package/dist/abi/pilot/DidRegistryV4.js.map +0 -1
  139. package/dist/abi/pilot/SchemaSCRegistryV2.js +0 -474
  140. package/dist/abi/pilot/SchemaSCRegistryV2.js.map +0 -1
  141. package/dist/abi/pilot/TimestampV2.js +0 -1128
  142. package/dist/abi/pilot/TimestampV2.js.map +0 -1
  143. package/dist/abi/pilot/TimestampV3.js +0 -995
  144. package/dist/abi/pilot/TimestampV3.js.map +0 -1
  145. package/dist/abi/pilot/TirV3.js +0 -496
  146. package/dist/abi/pilot/TirV3.js.map +0 -1
  147. package/dist/abi/pilot/TirV4.js.map +0 -1
  148. package/dist/abi/pilot/TnTV1.js +0 -1375
  149. package/dist/abi/pilot/TnTV1.js.map +0 -1
  150. package/dist/abi/pilot/TprV2.js +0 -889
  151. package/dist/abi/pilot/TprV2.js.map +0 -1
  152. package/dist/abi/pilot/TprV3.js.map +0 -1
  153. package/dist/abi/pilot/TsrV3.js +0 -571
  154. package/dist/abi/pilot/TsrV3.js.map +0 -1
  155. package/dist/abi/test/DidRegistryV3.js +0 -1089
  156. package/dist/abi/test/DidRegistryV3.js.map +0 -1
  157. package/dist/abi/test/DidRegistryV4.js +0 -960
  158. package/dist/abi/test/DidRegistryV4.js.map +0 -1
  159. package/dist/abi/test/SchemaSCRegistryV2.js +0 -474
  160. package/dist/abi/test/SchemaSCRegistryV2.js.map +0 -1
  161. package/dist/abi/test/TimestampV2.js +0 -1128
  162. package/dist/abi/test/TimestampV2.js.map +0 -1
  163. package/dist/abi/test/TimestampV3.js +0 -995
  164. package/dist/abi/test/TimestampV3.js.map +0 -1
  165. package/dist/abi/test/TirV3.js +0 -496
  166. package/dist/abi/test/TirV3.js.map +0 -1
  167. package/dist/abi/test/TirV4.js.map +0 -1
  168. package/dist/abi/test/TnTV1.js +0 -1375
  169. package/dist/abi/test/TnTV1.js.map +0 -1
  170. package/dist/abi/test/TprV2.js +0 -889
  171. package/dist/abi/test/TprV2.js.map +0 -1
  172. package/dist/abi/test/TprV3.js.map +0 -1
  173. package/dist/abi/test/TsrV3.js +0 -571
  174. package/dist/abi/test/TsrV3.js.map +0 -1
  175. package/dist/buildParam/didV3.js.map +0 -1
  176. package/dist/buildParam/didV4.js +0 -326
  177. package/dist/buildParam/didV4.js.map +0 -1
  178. package/dist/buildParam/timestampV2.js +0 -317
  179. package/dist/buildParam/timestampV2.js.map +0 -1
  180. package/dist/buildParam/timestampV3.js.map +0 -1
  181. package/dist/buildParam/tirV3.js.map +0 -1
  182. package/dist/buildParam/tirV4.js +0 -119
  183. package/dist/buildParam/tirV4.js.map +0 -1
  184. package/dist/buildParam/tntV1.js.map +0 -1
  185. package/dist/buildParam/tntV2.js +0 -185
  186. package/dist/buildParam/tntV2.js.map +0 -1
  187. package/dist/buildParam/tprV2.js.map +0 -1
  188. package/dist/buildParam/tprV3.js +0 -82
  189. package/dist/buildParam/tprV3.js.map +0 -1
  190. package/dist/buildParam/tsrV2.js.map +0 -1
  191. package/dist/buildParam/tsrV3.js +0 -110
  192. package/dist/buildParam/tsrV3.js.map +0 -1
  193. package/dist/commands/authorisation-v4.js +0 -119
  194. package/dist/commands/authorisation-v4.js.map +0 -1
  195. package/dist/commands/authorisation-v5.js.map +0 -1
  196. package/dist/commands/conformance-v3.js.map +0 -1
  197. package/dist/commands/ledger-v4.js.map +0 -1
  198. package/dist/tsconfig.tsbuildinfo +0 -1
  199. /package/dist/scripts/{wctv3 → wct}/holderWallet +0 -0
  200. /package/dist/scripts/{wctv3 → wct}/issueToHolder +0 -0
  201. /package/dist/scripts/{wctv3 → wct}/pda1 +0 -0
  202. /package/dist/scripts/{wctv3 → wct}/verifier +0 -0
@@ -1,39 +1,15 @@
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
  {
@@ -41,33 +17,20 @@ export default [
41
17
  inputs: [
42
18
  {
43
19
  indexed: true,
44
- internalType: "string",
45
- name: "policyId",
46
- type: "string",
47
- },
48
- {
49
- indexed: true,
50
- internalType: "bytes32",
51
- name: "policyHash",
52
- type: "bytes32",
20
+ internalType: "bytes",
21
+ name: "schemaIdHash",
22
+ type: "bytes",
53
23
  },
54
24
  {
55
25
  indexed: false,
56
26
  internalType: "bytes",
57
- name: "policy",
27
+ name: "schemaId",
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: "schemaRevisionId",
71
34
  type: "bytes32",
72
35
  },
73
36
  {
@@ -76,6 +39,12 @@ export default [
76
39
  name: "metadata",
77
40
  type: "bytes",
78
41
  },
42
+ {
43
+ indexed: false,
44
+ internalType: "bytes32",
45
+ name: "metadataId",
46
+ type: "bytes32",
47
+ },
79
48
  ],
80
49
  name: "MetadataUpdated",
81
50
  type: "event",
@@ -83,26 +52,9 @@ export default [
83
52
  {
84
53
  anonymous: false,
85
54
  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
- },
55
+ { indexed: false, internalType: "uint256", name: "", type: "uint256" },
104
56
  ],
105
- name: "SchemaInserted",
57
+ name: "NewVersion",
106
58
  type: "event",
107
59
  },
108
60
  {
@@ -111,72 +63,36 @@ export default [
111
63
  {
112
64
  indexed: true,
113
65
  internalType: "bytes",
114
- name: "schema",
66
+ name: "schemaIdHash",
115
67
  type: "bytes",
116
68
  },
117
69
  {
118
70
  indexed: false,
119
71
  internalType: "bytes",
120
- name: "revision",
72
+ name: "schemaId",
121
73
  type: "bytes",
122
74
  },
75
+ { indexed: false, internalType: "bytes", name: "schema", type: "bytes" },
123
76
  {
124
77
  indexed: false,
125
- internalType: "bytes",
126
- name: "metadata",
127
- type: "bytes",
128
- },
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
78
  internalType: "bytes32",
145
- name: "newAttrHash",
79
+ name: "schemaRevisionId",
146
80
  type: "bytes32",
147
81
  },
148
82
  {
149
- indexed: true,
150
- internalType: "bytes32",
151
- name: "previousAttrHash",
152
- type: "bytes32",
83
+ indexed: false,
84
+ internalType: "bytes",
85
+ name: "metadata",
86
+ type: "bytes",
153
87
  },
154
88
  {
155
89
  indexed: false,
156
90
  internalType: "bytes32",
157
- name: "firstAttrHash",
91
+ name: "metadataId",
158
92
  type: "bytes32",
159
93
  },
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
94
  ],
179
- name: "UpdateAdministratorAttribute",
95
+ name: "SchemaInserted",
180
96
  type: "event",
181
97
  },
182
98
  {
@@ -184,774 +100,191 @@ export default [
184
100
  inputs: [
185
101
  {
186
102
  indexed: true,
187
- internalType: "string",
188
- name: "policyId",
189
- type: "string",
103
+ internalType: "bytes",
104
+ name: "schemaIdHash",
105
+ type: "bytes",
190
106
  },
191
107
  {
192
- indexed: true,
108
+ indexed: false,
109
+ internalType: "bytes",
110
+ name: "schemaId",
111
+ type: "bytes",
112
+ },
113
+ { indexed: false, internalType: "bytes", name: "schema", type: "bytes" },
114
+ {
115
+ indexed: false,
193
116
  internalType: "bytes32",
194
- name: "policyHash",
117
+ name: "schemaRevisionId",
195
118
  type: "bytes32",
196
119
  },
197
120
  {
198
121
  indexed: false,
199
122
  internalType: "bytes",
200
- name: "policy",
123
+ name: "metadata",
201
124
  type: "bytes",
202
125
  },
126
+ {
127
+ indexed: false,
128
+ internalType: "bytes32",
129
+ name: "metadataId",
130
+ type: "bytes32",
131
+ },
203
132
  ],
204
- name: "UpdateExistingPolicy",
133
+ name: "SchemaUpdated",
205
134
  type: "event",
206
135
  },
207
136
  {
208
137
  inputs: [],
209
138
  name: "SCHEMA_DIAMOND_STORAGE_POSITION",
210
- outputs: [
211
- {
212
- internalType: "bytes32",
213
- name: "",
214
- type: "bytes32",
215
- },
216
- ],
139
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
217
140
  stateMutability: "view",
218
141
  type: "function",
219
142
  },
220
143
  {
221
144
  inputs: [],
222
145
  name: "TSC_DIAMOND_STORAGE_POSITION",
223
- outputs: [
224
- {
225
- internalType: "bytes32",
226
- name: "",
227
- type: "bytes32",
228
- },
229
- ],
146
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
230
147
  stateMutability: "view",
231
148
  type: "function",
232
149
  },
233
150
  {
234
- inputs: [],
235
- name: "TSR_ADMINISTRATOR_DIAMOND_STORAGE_POSITION",
236
- outputs: [
237
- {
238
- internalType: "bytes32",
239
- name: "",
240
- type: "bytes32",
241
- },
242
- ],
151
+ inputs: [{ internalType: "bytes", name: "schemaId", type: "bytes" }],
152
+ name: "getLatestSchemaRevision",
153
+ outputs: [{ internalType: "bytes", name: "schema", type: "bytes" }],
243
154
  stateMutability: "view",
244
155
  type: "function",
245
156
  },
246
157
  {
247
- inputs: [],
248
- name: "TSR_POLICY_DIAMOND_STORAGE_POSITION",
249
- outputs: [
250
- {
251
- internalType: "bytes32",
252
- name: "",
253
- type: "bytes32",
254
- },
158
+ inputs: [
159
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
160
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
255
161
  ],
162
+ name: "getLatestSchemaRevisionMetadataByRevisionId",
163
+ outputs: [{ internalType: "bytes", name: "metadata", type: "bytes" }],
256
164
  stateMutability: "view",
257
165
  type: "function",
258
166
  },
259
- {
260
- inputs: [],
261
- name: "setTrustedPoliciesRegistryAddress",
262
- outputs: [],
263
- stateMutability: "nonpayable",
264
- type: "function",
265
- },
266
167
  {
267
168
  inputs: [
268
- {
269
- internalType: "string",
270
- name: "did",
271
- type: "string",
272
- },
169
+ { internalType: "uint256", name: "page", type: "uint256" },
170
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
273
171
  ],
274
- name: "getAdministrator",
172
+ name: "getSchemaIds",
275
173
  outputs: [
276
- {
277
- internalType: "bytes32[]",
278
- name: "",
279
- type: "bytes32[]",
280
- },
174
+ { internalType: "bytes[]", name: "items", type: "bytes[]" },
175
+ { internalType: "uint256", name: "total", type: "uint256" },
176
+ { internalType: "uint256", name: "howMany", type: "uint256" },
177
+ { internalType: "uint256", name: "prev", type: "uint256" },
178
+ { internalType: "uint256", name: "next", type: "uint256" },
281
179
  ],
282
180
  stateMutability: "view",
283
181
  type: "function",
284
182
  },
285
183
  {
286
184
  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
- },
185
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
186
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
305
187
  ],
188
+ name: "getSchemaRevision",
189
+ outputs: [{ internalType: "bytes", name: "schema", type: "bytes" }],
306
190
  stateMutability: "view",
307
191
  type: "function",
308
192
  },
309
193
  {
310
194
  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
- },
195
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
196
+ { internalType: "uint256", name: "page", type: "uint256" },
197
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
326
198
  ],
327
- name: "getAdministratorAttributeRevisions",
199
+ name: "getSchemaRevisionIds",
328
200
  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
- },
201
+ { internalType: "bytes32[]", name: "items", type: "bytes32[]" },
202
+ { internalType: "uint256", name: "total", type: "uint256" },
203
+ { internalType: "uint256", name: "howMany", type: "uint256" },
204
+ { internalType: "uint256", name: "prev", type: "uint256" },
205
+ { internalType: "uint256", name: "next", type: "uint256" },
354
206
  ],
355
207
  stateMutability: "view",
356
208
  type: "function",
357
209
  },
358
210
  {
359
211
  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
- },
212
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
213
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
214
+ { internalType: "bytes32", name: "metadataId", type: "bytes32" },
398
215
  ],
216
+ name: "getSchemaRevisionMetadataByMetadataId",
217
+ outputs: [{ internalType: "bytes", name: "metadata", type: "bytes" }],
399
218
  stateMutability: "view",
400
219
  type: "function",
401
220
  },
402
221
  {
403
222
  inputs: [
404
- {
405
- internalType: "bytes",
406
- name: "schemaId",
407
- type: "bytes",
408
- },
223
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
224
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
225
+ { internalType: "uint256", name: "page", type: "uint256" },
226
+ { internalType: "uint256", name: "pageSize", type: "uint256" },
409
227
  ],
410
- name: "getLatestSchemaRevision",
228
+ name: "getSchemaRevisionMetadataIds",
411
229
  outputs: [
412
- {
413
- internalType: "bytes",
414
- name: "schema",
415
- type: "bytes",
416
- },
230
+ { internalType: "bytes32[]", name: "items", type: "bytes32[]" },
231
+ { internalType: "uint256", name: "total", type: "uint256" },
232
+ { internalType: "uint256", name: "howMany", type: "uint256" },
233
+ { internalType: "uint256", name: "prev", type: "uint256" },
234
+ { internalType: "uint256", name: "next", type: "uint256" },
417
235
  ],
418
236
  stateMutability: "view",
419
237
  type: "function",
420
238
  },
239
+ {
240
+ inputs: [{ internalType: "uint256", name: "_version", type: "uint256" }],
241
+ name: "initialize",
242
+ outputs: [],
243
+ stateMutability: "nonpayable",
244
+ type: "function",
245
+ },
421
246
  {
422
247
  inputs: [
423
- {
424
- internalType: "bytes32",
425
- name: "schemaRevisionId",
426
- type: "bytes32",
427
- },
248
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
249
+ { internalType: "bytes", name: "schema", type: "bytes" },
250
+ { internalType: "bytes", name: "metadata", type: "bytes" },
428
251
  ],
429
- name: "getLatestSchemaRevisionMetadataByRevisionId",
252
+ name: "insertSchema",
430
253
  outputs: [
431
- {
432
- internalType: "bytes",
433
- name: "metadata",
434
- type: "bytes",
435
- },
254
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
436
255
  ],
437
- stateMutability: "view",
256
+ stateMutability: "nonpayable",
438
257
  type: "function",
439
258
  },
440
259
  {
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",
260
+ inputs: [],
261
+ name: "policyRegistryContract",
454
262
  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
- },
263
+ { internalType: "contract IPolicyRegistry", name: "", type: "address" },
480
264
  ],
481
265
  stateMutability: "view",
482
266
  type: "function",
483
267
  },
484
268
  {
485
269
  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
- },
270
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
271
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
272
+ { internalType: "bytes", name: "metadata", type: "bytes" },
900
273
  ],
901
274
  name: "updateMetadata",
902
- outputs: [
903
- {
904
- internalType: "bytes32",
905
- name: "metadataId",
906
- type: "bytes32",
907
- },
908
- ],
275
+ outputs: [{ internalType: "bytes32", name: "metadataId", type: "bytes32" }],
909
276
  stateMutability: "nonpayable",
910
277
  type: "function",
911
278
  },
912
279
  {
913
280
  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: [],
927
- stateMutability: "nonpayable",
928
- type: "function",
929
- },
930
- {
931
- 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
- },
281
+ { internalType: "bytes", name: "schemaId", type: "bytes" },
282
+ { internalType: "bytes", name: "schema", type: "bytes" },
283
+ { internalType: "bytes", name: "metadata", type: "bytes" },
947
284
  ],
948
285
  name: "updateSchema",
949
286
  outputs: [
950
- {
951
- internalType: "bytes32",
952
- name: "schemaRevisionId",
953
- type: "bytes32",
954
- },
287
+ { internalType: "bytes32", name: "schemaRevisionId", type: "bytes32" },
955
288
  ],
956
289
  stateMutability: "nonpayable",
957
290
  type: "function",
@@ -959,13 +292,7 @@ export default [
959
292
  {
960
293
  inputs: [],
961
294
  name: "version",
962
- outputs: [
963
- {
964
- internalType: "uint256",
965
- name: "",
966
- type: "uint256",
967
- },
968
- ],
295
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
969
296
  stateMutability: "view",
970
297
  type: "function",
971
298
  },