@red-isbe/isbe-service-did-registry 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +129 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/src/ServiceDidRegistryContext.d.ts +40 -0
- package/dist/src/ServiceDidRegistryContext.d.ts.map +1 -0
- package/dist/src/ServiceDidRegistryContext.js +42 -0
- package/dist/src/ServiceDidRegistryContext.js.map +1 -0
- package/dist/src/ServiceDidRegistryQueries.d.ts +127 -0
- package/dist/src/ServiceDidRegistryQueries.d.ts.map +1 -0
- package/dist/src/ServiceDidRegistryQueries.js +226 -0
- package/dist/src/ServiceDidRegistryQueries.js.map +1 -0
- package/dist/src/ServiceDidRegistryTransactions.d.ts +90 -0
- package/dist/src/ServiceDidRegistryTransactions.d.ts.map +1 -0
- package/dist/src/ServiceDidRegistryTransactions.js +134 -0
- package/dist/src/ServiceDidRegistryTransactions.js.map +1 -0
- package/dist/src/ServiceDidTransactionExecutor.d.ts +31 -0
- package/dist/src/ServiceDidTransactionExecutor.d.ts.map +1 -0
- package/dist/src/ServiceDidTransactionExecutor.js +37 -0
- package/dist/src/ServiceDidTransactionExecutor.js.map +1 -0
- package/dist/src/abi/IServiceDidRegistry.abi.d.ts +578 -0
- package/dist/src/abi/IServiceDidRegistry.abi.d.ts.map +1 -0
- package/dist/src/abi/IServiceDidRegistry.abi.js +741 -0
- package/dist/src/abi/IServiceDidRegistry.abi.js.map +1 -0
- package/dist/src/serviceDid.types.d.ts +78 -0
- package/dist/src/serviceDid.types.d.ts.map +1 -0
- package/dist/src/serviceDid.types.js +16 -0
- package/dist/src/serviceDid.types.js.map +1 -0
- package/dist/src/types.d.ts +35 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +16 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/blockchain.utils.d.ts +49 -0
- package/dist/src/utils/blockchain.utils.d.ts.map +1 -0
- package/dist/src/utils/blockchain.utils.js +102 -0
- package/dist/src/utils/blockchain.utils.js.map +1 -0
- package/dist/src/utils/did.utils.d.ts +20 -0
- package/dist/src/utils/did.utils.d.ts.map +1 -0
- package/dist/src/utils/did.utils.js +57 -0
- package/dist/src/utils/did.utils.js.map +1 -0
- package/dist/src/utils/serviceDid.utils.d.ts +71 -0
- package/dist/src/utils/serviceDid.utils.d.ts.map +1 -0
- package/dist/src/utils/serviceDid.utils.js +142 -0
- package/dist/src/utils/serviceDid.utils.js.map +1 -0
- package/dist/src/utils/serviceDocument.utils.d.ts +61 -0
- package/dist/src/utils/serviceDocument.utils.d.ts.map +1 -0
- package/dist/src/utils/serviceDocument.utils.js +101 -0
- package/dist/src/utils/serviceDocument.utils.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Comunidad de Madrid & Alastria
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
*
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* ABI of IServiceDidRegistry, generated from the isbe-contracts artifact.
|
|
18
|
+
*
|
|
19
|
+
* Embedded as a module rather than read from disk at runtime: the package ships
|
|
20
|
+
* only `dist`, and a JSON read would tie the library to a build step that copies
|
|
21
|
+
* it there and to a filesystem that bundlers do not always provide.
|
|
22
|
+
*
|
|
23
|
+
* Regenerate with:
|
|
24
|
+
* node -e "..." (see CHANGELOG) after compiling isbe-contracts.
|
|
25
|
+
*/
|
|
26
|
+
export declare const IServiceDidRegistryAbi: readonly [{
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly name: "expiresAt";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "InvalidExpiry";
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly internalType: "bytes32";
|
|
37
|
+
readonly name: "serviceDid";
|
|
38
|
+
readonly type: "bytes32";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "ServiceDidAlreadyExists";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "bytes32";
|
|
45
|
+
readonly name: "serviceDid";
|
|
46
|
+
readonly type: "bytes32";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "ServiceDidIsDeactivated";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly internalType: "bytes32";
|
|
53
|
+
readonly name: "serviceDid";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
}];
|
|
56
|
+
readonly name: "ServiceDidNotFound";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
readonly name: "length";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}, {
|
|
64
|
+
readonly internalType: "uint256";
|
|
65
|
+
readonly name: "maxLength";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "ServiceDocumentTooLarge";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly internalType: "bytes32";
|
|
73
|
+
readonly name: "pubKeyX";
|
|
74
|
+
readonly type: "bytes32";
|
|
75
|
+
}, {
|
|
76
|
+
readonly internalType: "bytes32";
|
|
77
|
+
readonly name: "pubKeyY";
|
|
78
|
+
readonly type: "bytes32";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "SigningKeyAlreadyInUse";
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly internalType: "bytes32";
|
|
85
|
+
readonly name: "pubKeyX";
|
|
86
|
+
readonly type: "bytes32";
|
|
87
|
+
}, {
|
|
88
|
+
readonly internalType: "bytes32";
|
|
89
|
+
readonly name: "pubKeyY";
|
|
90
|
+
readonly type: "bytes32";
|
|
91
|
+
}, {
|
|
92
|
+
readonly internalType: "bytes32";
|
|
93
|
+
readonly name: "did";
|
|
94
|
+
readonly type: "bytes32";
|
|
95
|
+
}];
|
|
96
|
+
readonly name: "SigningKeyBoundToDid";
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
}, {
|
|
99
|
+
readonly anonymous: false;
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly indexed: true;
|
|
102
|
+
readonly internalType: "bytes32";
|
|
103
|
+
readonly name: "serviceDid";
|
|
104
|
+
readonly type: "bytes32";
|
|
105
|
+
}, {
|
|
106
|
+
readonly indexed: true;
|
|
107
|
+
readonly internalType: "bytes32";
|
|
108
|
+
readonly name: "controllerDid";
|
|
109
|
+
readonly type: "bytes32";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "ServiceDidDeactivated";
|
|
112
|
+
readonly type: "event";
|
|
113
|
+
}, {
|
|
114
|
+
readonly anonymous: false;
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly indexed: true;
|
|
117
|
+
readonly internalType: "bytes32";
|
|
118
|
+
readonly name: "serviceDid";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
}, {
|
|
121
|
+
readonly indexed: false;
|
|
122
|
+
readonly internalType: "bytes32";
|
|
123
|
+
readonly name: "documentHash";
|
|
124
|
+
readonly type: "bytes32";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "ServiceDidDocumentUpdated";
|
|
127
|
+
readonly type: "event";
|
|
128
|
+
}, {
|
|
129
|
+
readonly anonymous: false;
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly indexed: true;
|
|
132
|
+
readonly internalType: "bytes32";
|
|
133
|
+
readonly name: "serviceDid";
|
|
134
|
+
readonly type: "bytes32";
|
|
135
|
+
}, {
|
|
136
|
+
readonly indexed: false;
|
|
137
|
+
readonly internalType: "uint256";
|
|
138
|
+
readonly name: "oldExpiresAt";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}, {
|
|
141
|
+
readonly indexed: false;
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
readonly name: "newExpiresAt";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "ServiceDidExpiryUpdated";
|
|
147
|
+
readonly type: "event";
|
|
148
|
+
}, {
|
|
149
|
+
readonly anonymous: false;
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly indexed: true;
|
|
152
|
+
readonly internalType: "bytes32";
|
|
153
|
+
readonly name: "serviceDid";
|
|
154
|
+
readonly type: "bytes32";
|
|
155
|
+
}, {
|
|
156
|
+
readonly indexed: false;
|
|
157
|
+
readonly internalType: "bytes32";
|
|
158
|
+
readonly name: "oldPubKeyX";
|
|
159
|
+
readonly type: "bytes32";
|
|
160
|
+
}, {
|
|
161
|
+
readonly indexed: false;
|
|
162
|
+
readonly internalType: "bytes32";
|
|
163
|
+
readonly name: "oldPubKeyY";
|
|
164
|
+
readonly type: "bytes32";
|
|
165
|
+
}, {
|
|
166
|
+
readonly indexed: false;
|
|
167
|
+
readonly internalType: "bytes32";
|
|
168
|
+
readonly name: "newPubKeyX";
|
|
169
|
+
readonly type: "bytes32";
|
|
170
|
+
}, {
|
|
171
|
+
readonly indexed: false;
|
|
172
|
+
readonly internalType: "bytes32";
|
|
173
|
+
readonly name: "newPubKeyY";
|
|
174
|
+
readonly type: "bytes32";
|
|
175
|
+
}, {
|
|
176
|
+
readonly indexed: false;
|
|
177
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
178
|
+
readonly name: "ellipticType";
|
|
179
|
+
readonly type: "uint8";
|
|
180
|
+
}];
|
|
181
|
+
readonly name: "ServiceDidKeyRotated";
|
|
182
|
+
readonly type: "event";
|
|
183
|
+
}, {
|
|
184
|
+
readonly anonymous: false;
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly indexed: true;
|
|
187
|
+
readonly internalType: "bytes32";
|
|
188
|
+
readonly name: "serviceDid";
|
|
189
|
+
readonly type: "bytes32";
|
|
190
|
+
}, {
|
|
191
|
+
readonly indexed: true;
|
|
192
|
+
readonly internalType: "bytes32";
|
|
193
|
+
readonly name: "controllerDid";
|
|
194
|
+
readonly type: "bytes32";
|
|
195
|
+
}, {
|
|
196
|
+
readonly indexed: false;
|
|
197
|
+
readonly internalType: "bytes32";
|
|
198
|
+
readonly name: "pubKeyX";
|
|
199
|
+
readonly type: "bytes32";
|
|
200
|
+
}, {
|
|
201
|
+
readonly indexed: false;
|
|
202
|
+
readonly internalType: "bytes32";
|
|
203
|
+
readonly name: "pubKeyY";
|
|
204
|
+
readonly type: "bytes32";
|
|
205
|
+
}, {
|
|
206
|
+
readonly indexed: false;
|
|
207
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
208
|
+
readonly name: "ellipticType";
|
|
209
|
+
readonly type: "uint8";
|
|
210
|
+
}, {
|
|
211
|
+
readonly indexed: false;
|
|
212
|
+
readonly internalType: "bytes32";
|
|
213
|
+
readonly name: "labelHash";
|
|
214
|
+
readonly type: "bytes32";
|
|
215
|
+
}, {
|
|
216
|
+
readonly indexed: false;
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
readonly name: "expiresAt";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
}, {
|
|
221
|
+
readonly indexed: false;
|
|
222
|
+
readonly internalType: "uint64";
|
|
223
|
+
readonly name: "nonce";
|
|
224
|
+
readonly type: "uint64";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "ServiceDidRegistered";
|
|
227
|
+
readonly type: "event";
|
|
228
|
+
}, {
|
|
229
|
+
readonly anonymous: false;
|
|
230
|
+
readonly inputs: readonly [];
|
|
231
|
+
readonly name: "ServiceDidRegistryInitialized";
|
|
232
|
+
readonly type: "event";
|
|
233
|
+
}, {
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "bytes32";
|
|
236
|
+
readonly name: "controllerDid";
|
|
237
|
+
readonly type: "bytes32";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "uint64";
|
|
240
|
+
readonly name: "nonce";
|
|
241
|
+
readonly type: "uint64";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "computeServiceDid";
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly internalType: "bytes32";
|
|
246
|
+
readonly name: "serviceDid";
|
|
247
|
+
readonly type: "bytes32";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "pure";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}, {
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly internalType: "bytes32";
|
|
254
|
+
readonly name: "serviceDid";
|
|
255
|
+
readonly type: "bytes32";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "deactivateServiceDid";
|
|
258
|
+
readonly outputs: readonly [{
|
|
259
|
+
readonly internalType: "bool";
|
|
260
|
+
readonly name: "success";
|
|
261
|
+
readonly type: "bool";
|
|
262
|
+
}];
|
|
263
|
+
readonly stateMutability: "nonpayable";
|
|
264
|
+
readonly type: "function";
|
|
265
|
+
}, {
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly internalType: "bytes32";
|
|
268
|
+
readonly name: "serviceDid";
|
|
269
|
+
readonly type: "bytes32";
|
|
270
|
+
}];
|
|
271
|
+
readonly name: "getServiceDid";
|
|
272
|
+
readonly outputs: readonly [{
|
|
273
|
+
readonly components: readonly [{
|
|
274
|
+
readonly internalType: "bytes32";
|
|
275
|
+
readonly name: "controllerDid";
|
|
276
|
+
readonly type: "bytes32";
|
|
277
|
+
}, {
|
|
278
|
+
readonly internalType: "bytes32";
|
|
279
|
+
readonly name: "labelHash";
|
|
280
|
+
readonly type: "bytes32";
|
|
281
|
+
}, {
|
|
282
|
+
readonly internalType: "bytes32";
|
|
283
|
+
readonly name: "pubKeyX";
|
|
284
|
+
readonly type: "bytes32";
|
|
285
|
+
}, {
|
|
286
|
+
readonly internalType: "bytes32";
|
|
287
|
+
readonly name: "pubKeyY";
|
|
288
|
+
readonly type: "bytes32";
|
|
289
|
+
}, {
|
|
290
|
+
readonly internalType: "uint64";
|
|
291
|
+
readonly name: "expiresAt";
|
|
292
|
+
readonly type: "uint64";
|
|
293
|
+
}, {
|
|
294
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
295
|
+
readonly name: "ellipticType";
|
|
296
|
+
readonly type: "uint8";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "uint64";
|
|
299
|
+
readonly name: "nonce";
|
|
300
|
+
readonly type: "uint64";
|
|
301
|
+
}, {
|
|
302
|
+
readonly internalType: "bool";
|
|
303
|
+
readonly name: "deactivated";
|
|
304
|
+
readonly type: "bool";
|
|
305
|
+
}, {
|
|
306
|
+
readonly internalType: "bool";
|
|
307
|
+
readonly name: "exists";
|
|
308
|
+
readonly type: "bool";
|
|
309
|
+
}, {
|
|
310
|
+
readonly internalType: "uint64";
|
|
311
|
+
readonly name: "registeredAt";
|
|
312
|
+
readonly type: "uint64";
|
|
313
|
+
}, {
|
|
314
|
+
readonly internalType: "uint64";
|
|
315
|
+
readonly name: "updatedAt";
|
|
316
|
+
readonly type: "uint64";
|
|
317
|
+
}];
|
|
318
|
+
readonly internalType: "struct IServiceDidRegistry.ServiceDidRecord";
|
|
319
|
+
readonly name: "record";
|
|
320
|
+
readonly type: "tuple";
|
|
321
|
+
}];
|
|
322
|
+
readonly stateMutability: "view";
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
}, {
|
|
325
|
+
readonly inputs: readonly [{
|
|
326
|
+
readonly internalType: "bytes32";
|
|
327
|
+
readonly name: "controllerDid";
|
|
328
|
+
readonly type: "bytes32";
|
|
329
|
+
}, {
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
readonly name: "page";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}, {
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
readonly name: "pageSize";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}];
|
|
338
|
+
readonly name: "getServiceDidsByController";
|
|
339
|
+
readonly outputs: readonly [{
|
|
340
|
+
readonly components: readonly [{
|
|
341
|
+
readonly internalType: "bytes32";
|
|
342
|
+
readonly name: "controllerDid";
|
|
343
|
+
readonly type: "bytes32";
|
|
344
|
+
}, {
|
|
345
|
+
readonly internalType: "bytes32";
|
|
346
|
+
readonly name: "labelHash";
|
|
347
|
+
readonly type: "bytes32";
|
|
348
|
+
}, {
|
|
349
|
+
readonly internalType: "bytes32";
|
|
350
|
+
readonly name: "pubKeyX";
|
|
351
|
+
readonly type: "bytes32";
|
|
352
|
+
}, {
|
|
353
|
+
readonly internalType: "bytes32";
|
|
354
|
+
readonly name: "pubKeyY";
|
|
355
|
+
readonly type: "bytes32";
|
|
356
|
+
}, {
|
|
357
|
+
readonly internalType: "uint64";
|
|
358
|
+
readonly name: "expiresAt";
|
|
359
|
+
readonly type: "uint64";
|
|
360
|
+
}, {
|
|
361
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
362
|
+
readonly name: "ellipticType";
|
|
363
|
+
readonly type: "uint8";
|
|
364
|
+
}, {
|
|
365
|
+
readonly internalType: "uint64";
|
|
366
|
+
readonly name: "nonce";
|
|
367
|
+
readonly type: "uint64";
|
|
368
|
+
}, {
|
|
369
|
+
readonly internalType: "bool";
|
|
370
|
+
readonly name: "deactivated";
|
|
371
|
+
readonly type: "bool";
|
|
372
|
+
}, {
|
|
373
|
+
readonly internalType: "bool";
|
|
374
|
+
readonly name: "exists";
|
|
375
|
+
readonly type: "bool";
|
|
376
|
+
}, {
|
|
377
|
+
readonly internalType: "uint64";
|
|
378
|
+
readonly name: "registeredAt";
|
|
379
|
+
readonly type: "uint64";
|
|
380
|
+
}, {
|
|
381
|
+
readonly internalType: "uint64";
|
|
382
|
+
readonly name: "updatedAt";
|
|
383
|
+
readonly type: "uint64";
|
|
384
|
+
}];
|
|
385
|
+
readonly internalType: "struct IServiceDidRegistry.ServiceDidRecord[]";
|
|
386
|
+
readonly name: "items";
|
|
387
|
+
readonly type: "tuple[]";
|
|
388
|
+
}, {
|
|
389
|
+
readonly internalType: "uint256";
|
|
390
|
+
readonly name: "total";
|
|
391
|
+
readonly type: "uint256";
|
|
392
|
+
}, {
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly name: "howMany";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}, {
|
|
397
|
+
readonly internalType: "uint256";
|
|
398
|
+
readonly name: "prev";
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
}, {
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
readonly name: "next";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}];
|
|
405
|
+
readonly stateMutability: "view";
|
|
406
|
+
readonly type: "function";
|
|
407
|
+
}, {
|
|
408
|
+
readonly inputs: readonly [{
|
|
409
|
+
readonly internalType: "bytes32";
|
|
410
|
+
readonly name: "serviceDid";
|
|
411
|
+
readonly type: "bytes32";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "getServiceDocument";
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly internalType: "string";
|
|
416
|
+
readonly name: "document";
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
}];
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
readonly type: "function";
|
|
421
|
+
}, {
|
|
422
|
+
readonly inputs: readonly [];
|
|
423
|
+
readonly name: "initializeServiceDidRegistry";
|
|
424
|
+
readonly outputs: readonly [];
|
|
425
|
+
readonly stateMutability: "nonpayable";
|
|
426
|
+
readonly type: "function";
|
|
427
|
+
}, {
|
|
428
|
+
readonly inputs: readonly [{
|
|
429
|
+
readonly internalType: "bytes32";
|
|
430
|
+
readonly name: "serviceDid";
|
|
431
|
+
readonly type: "bytes32";
|
|
432
|
+
}];
|
|
433
|
+
readonly name: "isServiceDidActive";
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly internalType: "bool";
|
|
436
|
+
readonly name: "active";
|
|
437
|
+
readonly type: "bool";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
readonly type: "function";
|
|
441
|
+
}, {
|
|
442
|
+
readonly inputs: readonly [{
|
|
443
|
+
readonly internalType: "bytes32";
|
|
444
|
+
readonly name: "controllerDid";
|
|
445
|
+
readonly type: "bytes32";
|
|
446
|
+
}, {
|
|
447
|
+
readonly internalType: "bytes";
|
|
448
|
+
readonly name: "publicKey";
|
|
449
|
+
readonly type: "bytes";
|
|
450
|
+
}, {
|
|
451
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
452
|
+
readonly name: "ellipticType";
|
|
453
|
+
readonly type: "uint8";
|
|
454
|
+
}, {
|
|
455
|
+
readonly internalType: "bytes32";
|
|
456
|
+
readonly name: "labelHash";
|
|
457
|
+
readonly type: "bytes32";
|
|
458
|
+
}, {
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly name: "expiresAt";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "registerServiceDid";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly internalType: "bytes32";
|
|
466
|
+
readonly name: "serviceDid";
|
|
467
|
+
readonly type: "bytes32";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "nonpayable";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [{
|
|
473
|
+
readonly internalType: "bytes32";
|
|
474
|
+
readonly name: "controllerDid";
|
|
475
|
+
readonly type: "bytes32";
|
|
476
|
+
}, {
|
|
477
|
+
readonly internalType: "bytes";
|
|
478
|
+
readonly name: "publicKey";
|
|
479
|
+
readonly type: "bytes";
|
|
480
|
+
}, {
|
|
481
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
482
|
+
readonly name: "ellipticType";
|
|
483
|
+
readonly type: "uint8";
|
|
484
|
+
}, {
|
|
485
|
+
readonly internalType: "bytes32";
|
|
486
|
+
readonly name: "labelHash";
|
|
487
|
+
readonly type: "bytes32";
|
|
488
|
+
}, {
|
|
489
|
+
readonly internalType: "uint256";
|
|
490
|
+
readonly name: "expiresAt";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}, {
|
|
493
|
+
readonly internalType: "string";
|
|
494
|
+
readonly name: "document";
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
}];
|
|
497
|
+
readonly name: "registerServiceDidWithDocument";
|
|
498
|
+
readonly outputs: readonly [{
|
|
499
|
+
readonly internalType: "bytes32";
|
|
500
|
+
readonly name: "serviceDid";
|
|
501
|
+
readonly type: "bytes32";
|
|
502
|
+
}];
|
|
503
|
+
readonly stateMutability: "nonpayable";
|
|
504
|
+
readonly type: "function";
|
|
505
|
+
}, {
|
|
506
|
+
readonly inputs: readonly [{
|
|
507
|
+
readonly internalType: "bytes32";
|
|
508
|
+
readonly name: "serviceDid";
|
|
509
|
+
readonly type: "bytes32";
|
|
510
|
+
}, {
|
|
511
|
+
readonly internalType: "bytes";
|
|
512
|
+
readonly name: "newPublicKey";
|
|
513
|
+
readonly type: "bytes";
|
|
514
|
+
}, {
|
|
515
|
+
readonly internalType: "enum IDidDocumentDetailed.EllipticType";
|
|
516
|
+
readonly name: "newEllipticType";
|
|
517
|
+
readonly type: "uint8";
|
|
518
|
+
}];
|
|
519
|
+
readonly name: "rotateSigningKey";
|
|
520
|
+
readonly outputs: readonly [{
|
|
521
|
+
readonly internalType: "bool";
|
|
522
|
+
readonly name: "success";
|
|
523
|
+
readonly type: "bool";
|
|
524
|
+
}];
|
|
525
|
+
readonly stateMutability: "nonpayable";
|
|
526
|
+
readonly type: "function";
|
|
527
|
+
}, {
|
|
528
|
+
readonly inputs: readonly [{
|
|
529
|
+
readonly internalType: "bytes32";
|
|
530
|
+
readonly name: "serviceDid";
|
|
531
|
+
readonly type: "bytes32";
|
|
532
|
+
}];
|
|
533
|
+
readonly name: "signingKeyAddressOf";
|
|
534
|
+
readonly outputs: readonly [{
|
|
535
|
+
readonly internalType: "address";
|
|
536
|
+
readonly name: "signingKeyAddress";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
}];
|
|
539
|
+
readonly stateMutability: "view";
|
|
540
|
+
readonly type: "function";
|
|
541
|
+
}, {
|
|
542
|
+
readonly inputs: readonly [{
|
|
543
|
+
readonly internalType: "bytes32";
|
|
544
|
+
readonly name: "serviceDid";
|
|
545
|
+
readonly type: "bytes32";
|
|
546
|
+
}, {
|
|
547
|
+
readonly internalType: "uint256";
|
|
548
|
+
readonly name: "newExpiresAt";
|
|
549
|
+
readonly type: "uint256";
|
|
550
|
+
}];
|
|
551
|
+
readonly name: "updateExpiry";
|
|
552
|
+
readonly outputs: readonly [{
|
|
553
|
+
readonly internalType: "bool";
|
|
554
|
+
readonly name: "success";
|
|
555
|
+
readonly type: "bool";
|
|
556
|
+
}];
|
|
557
|
+
readonly stateMutability: "nonpayable";
|
|
558
|
+
readonly type: "function";
|
|
559
|
+
}, {
|
|
560
|
+
readonly inputs: readonly [{
|
|
561
|
+
readonly internalType: "bytes32";
|
|
562
|
+
readonly name: "serviceDid";
|
|
563
|
+
readonly type: "bytes32";
|
|
564
|
+
}, {
|
|
565
|
+
readonly internalType: "string";
|
|
566
|
+
readonly name: "document";
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
}];
|
|
569
|
+
readonly name: "updateServiceDocument";
|
|
570
|
+
readonly outputs: readonly [{
|
|
571
|
+
readonly internalType: "bool";
|
|
572
|
+
readonly name: "success";
|
|
573
|
+
readonly type: "bool";
|
|
574
|
+
}];
|
|
575
|
+
readonly stateMutability: "nonpayable";
|
|
576
|
+
readonly type: "function";
|
|
577
|
+
}];
|
|
578
|
+
//# sourceMappingURL=IServiceDidRegistry.abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IServiceDidRegistry.abi.d.ts","sourceRoot":"","sources":["../../../src/abi/IServiceDidRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0sBzB,CAAC"}
|