@verana-labs/verana-types 0.10.1-dev.5 → 0.10.1-dev.7
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/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
- package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
- package/dist/codec/google/protobuf/descriptor.js +16 -2
- package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
- package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
- package/dist/codec/verana/de/v1/genesis.js +57 -2
- package/dist/codec/verana/de/v1/query.d.ts +39 -1
- package/dist/codec/verana/de/v1/query.js +145 -1
- package/dist/codec/verana/{dd/module → di/module/v1}/module.d.ts +5 -2
- package/dist/codec/verana/{dd/module → di/module/v1}/module.js +2 -2
- package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
- package/dist/codec/verana/{dd → di}/v1/genesis.js +11 -13
- package/dist/codec/verana/{dd → di}/v1/params.d.ts +5 -7
- package/dist/codec/verana/di/v1/params.js +81 -0
- package/dist/codec/verana/di/v1/query.d.ts +99 -0
- package/dist/codec/verana/{dd → di}/v1/query.js +65 -166
- package/dist/codec/verana/di/v1/tx.d.ts +116 -0
- package/dist/codec/verana/di/v1/tx.js +381 -0
- package/dist/codec/verana/td/v1/genesis.d.ts +2 -0
- package/dist/codec/verana/td/v1/genesis.js +16 -2
- package/dist/codec/verana/td/v1/tx.d.ts +17 -4
- package/dist/codec/verana/td/v1/tx.js +40 -24
- package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/xr/module/v1/module.js +98 -0
- package/dist/codec/verana/xr/v1/genesis.d.ts +32 -0
- package/dist/codec/verana/{dd/v1/params.js → xr/v1/genesis.js} +46 -29
- package/dist/codec/verana/xr/v1/params.d.ts +24 -0
- package/dist/codec/verana/xr/v1/params.js +81 -0
- package/dist/codec/verana/xr/v1/query.d.ts +162 -0
- package/dist/codec/verana/xr/v1/query.js +775 -0
- package/dist/codec/verana/xr/v1/tx.d.ts +190 -0
- package/dist/codec/verana/xr/v1/tx.js +894 -0
- package/dist/helpers/aminoConverters.d.ts +2 -4
- package/dist/helpers/aminoConverters.js +51 -75
- package/package.json +1 -1
- package/dist/codec/verana/dd/v1/query.d.ts +0 -108
- package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
- package/dist/codec/verana/dd/v1/tx.js +0 -636
- package/dist/codec/verana/dd/v1/types.d.ts +0 -30
- package/dist/codec/verana/dd/v1/types.js +0 -206
|
@@ -10,15 +10,13 @@ export declare const MsgUpdateTrustRegistryAminoConverter: AminoConverter;
|
|
|
10
10
|
export declare const MsgArchiveTrustRegistryAminoConverter: AminoConverter;
|
|
11
11
|
export declare const MsgAddGovernanceFrameworkDocumentAminoConverter: AminoConverter;
|
|
12
12
|
export declare const MsgIncreaseActiveGovernanceFrameworkVersionAminoConverter: AminoConverter;
|
|
13
|
-
export declare const MsgAddDIDAminoConverter: AminoConverter;
|
|
14
|
-
export declare const MsgRenewDIDAminoConverter: AminoConverter;
|
|
15
|
-
export declare const MsgTouchDIDAminoConverter: AminoConverter;
|
|
16
|
-
export declare const MsgRemoveDIDAminoConverter: AminoConverter;
|
|
17
13
|
export declare const MsgCreateCredentialSchemaAminoConverter: AminoConverter;
|
|
18
14
|
export declare const MsgUpdateCredentialSchemaAminoConverter: AminoConverter;
|
|
19
15
|
export declare const MsgArchiveCredentialSchemaAminoConverter: AminoConverter;
|
|
20
16
|
export declare const MsgReclaimTrustDepositAminoConverter: AminoConverter;
|
|
21
17
|
export declare const MsgReclaimTrustDepositYieldAminoConverter: AminoConverter;
|
|
18
|
+
export declare const MsgRepaySlashedTrustDepositAminoConverter: AminoConverter;
|
|
19
|
+
export declare const MsgSlashTrustDepositAminoConverter: AminoConverter;
|
|
22
20
|
export declare const MsgCreateRootPermissionAminoConverter: AminoConverter;
|
|
23
21
|
export declare const MsgAdjustPermissionAminoConverter: AminoConverter;
|
|
24
22
|
export declare const MsgRevokePermissionAminoConverter: AminoConverter;
|
|
@@ -9,14 +9,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MsgRevokeOperatorAuthorizationAminoConverter = exports.MsgGrantOperatorAuthorizationAminoConverter = exports.MsgCreatePermissionAminoConverter = exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = exports.MsgSlashPermissionTrustDepositAminoConverter = exports.MsgCreateOrUpdatePermissionSessionAminoConverter = exports.MsgCancelPermissionVPLastRequestAminoConverter = exports.MsgSetPermissionVPToValidatedAminoConverter = exports.MsgRenewPermissionVPAminoConverter = exports.MsgStartPermissionVPAminoConverter = exports.MsgRevokePermissionAminoConverter = exports.MsgAdjustPermissionAminoConverter = exports.MsgCreateRootPermissionAminoConverter = exports.
|
|
12
|
+
exports.MsgRevokeOperatorAuthorizationAminoConverter = exports.MsgGrantOperatorAuthorizationAminoConverter = exports.MsgCreatePermissionAminoConverter = exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = exports.MsgSlashPermissionTrustDepositAminoConverter = exports.MsgCreateOrUpdatePermissionSessionAminoConverter = exports.MsgCancelPermissionVPLastRequestAminoConverter = exports.MsgSetPermissionVPToValidatedAminoConverter = exports.MsgRenewPermissionVPAminoConverter = exports.MsgStartPermissionVPAminoConverter = exports.MsgRevokePermissionAminoConverter = exports.MsgAdjustPermissionAminoConverter = exports.MsgCreateRootPermissionAminoConverter = exports.MsgSlashTrustDepositAminoConverter = exports.MsgRepaySlashedTrustDepositAminoConverter = exports.MsgReclaimTrustDepositYieldAminoConverter = exports.MsgReclaimTrustDepositAminoConverter = exports.MsgArchiveCredentialSchemaAminoConverter = exports.MsgUpdateCredentialSchemaAminoConverter = exports.MsgCreateCredentialSchemaAminoConverter = exports.MsgIncreaseActiveGovernanceFrameworkVersionAminoConverter = exports.MsgAddGovernanceFrameworkDocumentAminoConverter = exports.MsgArchiveTrustRegistryAminoConverter = exports.MsgUpdateTrustRegistryAminoConverter = exports.MsgCreateTrustRegistryAminoConverter = void 0;
|
|
13
13
|
const long_1 = __importDefault(require("long"));
|
|
14
14
|
const tx_1 = require("../codec/verana/tr/v1/tx");
|
|
15
15
|
const tx_2 = require("../codec/verana/de/v1/tx");
|
|
16
|
-
const tx_3 = require("../codec/verana/
|
|
17
|
-
const tx_4 = require("../codec/verana/
|
|
18
|
-
const tx_5 = require("../codec/verana/
|
|
19
|
-
const tx_6 = require("../codec/verana/perm/v1/tx");
|
|
16
|
+
const tx_3 = require("../codec/verana/cs/v1/tx");
|
|
17
|
+
const tx_4 = require("../codec/verana/td/v1/tx");
|
|
18
|
+
const tx_5 = require("../codec/verana/perm/v1/tx");
|
|
20
19
|
const types_1 = require("../codec/verana/perm/v1/types");
|
|
21
20
|
// Helper functions for Amino conversion (matching frontend)
|
|
22
21
|
const u64ToStr = (v) => v != null ? long_1.default.fromValue(v).toString() : undefined;
|
|
@@ -158,57 +157,6 @@ exports.MsgIncreaseActiveGovernanceFrameworkVersionAminoConverter = {
|
|
|
158
157
|
}),
|
|
159
158
|
};
|
|
160
159
|
// ============================================================================
|
|
161
|
-
// DID Directory (DD) Module Converters
|
|
162
|
-
// ============================================================================
|
|
163
|
-
exports.MsgAddDIDAminoConverter = {
|
|
164
|
-
aminoType: '/verana.dd.v1.MsgAddDID',
|
|
165
|
-
toAmino: ({ creator, did, years }) => ({
|
|
166
|
-
creator,
|
|
167
|
-
did,
|
|
168
|
-
years,
|
|
169
|
-
}),
|
|
170
|
-
fromAmino: (value) => tx_3.MsgAddDID.fromPartial({
|
|
171
|
-
creator: value.creator,
|
|
172
|
-
did: value.did,
|
|
173
|
-
years: value.years,
|
|
174
|
-
}),
|
|
175
|
-
};
|
|
176
|
-
exports.MsgRenewDIDAminoConverter = {
|
|
177
|
-
aminoType: '/verana.dd.v1.MsgRenewDID',
|
|
178
|
-
toAmino: ({ creator, did, years }) => ({
|
|
179
|
-
creator,
|
|
180
|
-
did,
|
|
181
|
-
years,
|
|
182
|
-
}),
|
|
183
|
-
fromAmino: (value) => tx_3.MsgRenewDID.fromPartial({
|
|
184
|
-
creator: value.creator,
|
|
185
|
-
did: value.did,
|
|
186
|
-
years: value.years,
|
|
187
|
-
}),
|
|
188
|
-
};
|
|
189
|
-
exports.MsgTouchDIDAminoConverter = {
|
|
190
|
-
aminoType: '/verana.dd.v1.MsgTouchDID',
|
|
191
|
-
toAmino: ({ creator, did }) => ({
|
|
192
|
-
creator,
|
|
193
|
-
did,
|
|
194
|
-
}),
|
|
195
|
-
fromAmino: (value) => tx_3.MsgTouchDID.fromPartial({
|
|
196
|
-
creator: value.creator,
|
|
197
|
-
did: value.did,
|
|
198
|
-
}),
|
|
199
|
-
};
|
|
200
|
-
exports.MsgRemoveDIDAminoConverter = {
|
|
201
|
-
aminoType: '/verana.dd.v1.MsgRemoveDID',
|
|
202
|
-
toAmino: ({ creator, did }) => ({
|
|
203
|
-
creator,
|
|
204
|
-
did,
|
|
205
|
-
}),
|
|
206
|
-
fromAmino: (value) => tx_3.MsgRemoveDID.fromPartial({
|
|
207
|
-
creator: value.creator,
|
|
208
|
-
did: value.did,
|
|
209
|
-
}),
|
|
210
|
-
};
|
|
211
|
-
// ============================================================================
|
|
212
160
|
// Credential Schema (CS) Module Converters
|
|
213
161
|
// ============================================================================
|
|
214
162
|
exports.MsgCreateCredentialSchemaAminoConverter = {
|
|
@@ -234,7 +182,7 @@ exports.MsgCreateCredentialSchemaAminoConverter = {
|
|
|
234
182
|
},
|
|
235
183
|
fromAmino: (a) => {
|
|
236
184
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
237
|
-
return
|
|
185
|
+
return tx_3.MsgCreateCredentialSchema.fromPartial({
|
|
238
186
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
239
187
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
240
188
|
trId: strToU64(a.tr_id) != null ? Number(strToU64(a.tr_id).toString()) : 0, // Convert Long to number
|
|
@@ -269,7 +217,7 @@ exports.MsgUpdateCredentialSchemaAminoConverter = {
|
|
|
269
217
|
},
|
|
270
218
|
fromAmino: (a) => {
|
|
271
219
|
var _a, _b;
|
|
272
|
-
return
|
|
220
|
+
return tx_3.MsgUpdateCredentialSchema.fromPartial({
|
|
273
221
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
274
222
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
275
223
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0, // Convert Long to number
|
|
@@ -294,7 +242,7 @@ exports.MsgArchiveCredentialSchemaAminoConverter = {
|
|
|
294
242
|
},
|
|
295
243
|
fromAmino: (a) => {
|
|
296
244
|
var _a;
|
|
297
|
-
return
|
|
245
|
+
return tx_3.MsgArchiveCredentialSchema.fromPartial({
|
|
298
246
|
authority: a.authority,
|
|
299
247
|
operator: a.operator,
|
|
300
248
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0, // Convert Long to number
|
|
@@ -311,18 +259,46 @@ exports.MsgReclaimTrustDepositAminoConverter = {
|
|
|
311
259
|
creator,
|
|
312
260
|
claimed: claimed != null ? claimed.toString() : undefined,
|
|
313
261
|
}),
|
|
314
|
-
fromAmino: (value) =>
|
|
262
|
+
fromAmino: (value) => tx_4.MsgReclaimTrustDeposit.fromPartial({
|
|
315
263
|
creator: value.creator,
|
|
316
264
|
claimed: value.claimed != null ? Number(value.claimed) : 0,
|
|
317
265
|
}),
|
|
318
266
|
};
|
|
319
267
|
exports.MsgReclaimTrustDepositYieldAminoConverter = {
|
|
320
268
|
aminoType: '/verana.td.v1.MsgReclaimTrustDepositYield',
|
|
321
|
-
toAmino: ({
|
|
322
|
-
|
|
269
|
+
toAmino: ({ authority, operator }) => ({
|
|
270
|
+
authority,
|
|
271
|
+
operator,
|
|
323
272
|
}),
|
|
324
|
-
fromAmino: (value) =>
|
|
325
|
-
|
|
273
|
+
fromAmino: (value) => tx_4.MsgReclaimTrustDepositYield.fromPartial({
|
|
274
|
+
authority: value.authority,
|
|
275
|
+
operator: value.operator,
|
|
276
|
+
}),
|
|
277
|
+
};
|
|
278
|
+
exports.MsgRepaySlashedTrustDepositAminoConverter = {
|
|
279
|
+
aminoType: '/verana.td.v1.MsgRepaySlashedTrustDeposit',
|
|
280
|
+
toAmino: ({ authority, operator, amount }) => ({
|
|
281
|
+
authority,
|
|
282
|
+
operator,
|
|
283
|
+
amount: amount != null ? amount.toString() : undefined,
|
|
284
|
+
}),
|
|
285
|
+
fromAmino: (value) => tx_4.MsgRepaySlashedTrustDeposit.fromPartial({
|
|
286
|
+
authority: value.authority,
|
|
287
|
+
operator: value.operator,
|
|
288
|
+
amount: value.amount != null ? Number(value.amount) : 0,
|
|
289
|
+
}),
|
|
290
|
+
};
|
|
291
|
+
exports.MsgSlashTrustDepositAminoConverter = {
|
|
292
|
+
aminoType: '/verana.td.v1.MsgSlashTrustDeposit',
|
|
293
|
+
toAmino: ({ authority, account, amount }) => ({
|
|
294
|
+
authority,
|
|
295
|
+
account,
|
|
296
|
+
amount,
|
|
297
|
+
}),
|
|
298
|
+
fromAmino: (value) => tx_4.MsgSlashTrustDeposit.fromPartial({
|
|
299
|
+
authority: value.authority,
|
|
300
|
+
account: value.account,
|
|
301
|
+
amount: value.amount,
|
|
326
302
|
}),
|
|
327
303
|
};
|
|
328
304
|
// ============================================================================
|
|
@@ -346,7 +322,7 @@ exports.MsgCreateRootPermissionAminoConverter = {
|
|
|
346
322
|
},
|
|
347
323
|
fromAmino: (a) => {
|
|
348
324
|
var _a, _b, _c;
|
|
349
|
-
return
|
|
325
|
+
return tx_5.MsgCreateRootPermission.fromPartial({
|
|
350
326
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
351
327
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
352
328
|
schemaId: strToU64(a.schema_id) != null ? Number(strToU64(a.schema_id).toString()) : 0,
|
|
@@ -372,7 +348,7 @@ exports.MsgAdjustPermissionAminoConverter = {
|
|
|
372
348
|
},
|
|
373
349
|
fromAmino: (a) => {
|
|
374
350
|
var _a, _b;
|
|
375
|
-
return
|
|
351
|
+
return tx_5.MsgAdjustPermission.fromPartial({
|
|
376
352
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
377
353
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
378
354
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -392,7 +368,7 @@ exports.MsgRevokePermissionAminoConverter = {
|
|
|
392
368
|
},
|
|
393
369
|
fromAmino: (a) => {
|
|
394
370
|
var _a, _b;
|
|
395
|
-
return
|
|
371
|
+
return tx_5.MsgRevokePermission.fromPartial({
|
|
396
372
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
397
373
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
398
374
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -422,7 +398,7 @@ exports.MsgStartPermissionVPAminoConverter = {
|
|
|
422
398
|
},
|
|
423
399
|
fromAmino: (a) => {
|
|
424
400
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
425
|
-
return
|
|
401
|
+
return tx_5.MsgStartPermissionVP.fromPartial({
|
|
426
402
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
427
403
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
428
404
|
type: (_c = a.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
|
|
@@ -452,7 +428,7 @@ exports.MsgRenewPermissionVPAminoConverter = {
|
|
|
452
428
|
},
|
|
453
429
|
fromAmino: (a) => {
|
|
454
430
|
var _a, _b;
|
|
455
|
-
return
|
|
431
|
+
return tx_5.MsgRenewPermissionVP.fromPartial({
|
|
456
432
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
457
433
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
458
434
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -478,7 +454,7 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
|
|
|
478
454
|
},
|
|
479
455
|
fromAmino: (a) => {
|
|
480
456
|
var _a, _b, _c;
|
|
481
|
-
return
|
|
457
|
+
return tx_5.MsgSetPermissionVPToValidated.fromPartial({
|
|
482
458
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
483
459
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
484
460
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -504,7 +480,7 @@ exports.MsgCancelPermissionVPLastRequestAminoConverter = {
|
|
|
504
480
|
},
|
|
505
481
|
fromAmino: (a) => {
|
|
506
482
|
var _a, _b;
|
|
507
|
-
return
|
|
483
|
+
return tx_5.MsgCancelPermissionVPLastRequest.fromPartial({
|
|
508
484
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
509
485
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
510
486
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -528,7 +504,7 @@ exports.MsgCreateOrUpdatePermissionSessionAminoConverter = {
|
|
|
528
504
|
},
|
|
529
505
|
fromAmino: (a) => {
|
|
530
506
|
var _a, _b, _c, _d;
|
|
531
|
-
return
|
|
507
|
+
return tx_5.MsgCreateOrUpdatePermissionSession.fromPartial({
|
|
532
508
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
533
509
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
534
510
|
id: (_c = a.id) !== null && _c !== void 0 ? _c : '',
|
|
@@ -553,7 +529,7 @@ exports.MsgSlashPermissionTrustDepositAminoConverter = {
|
|
|
553
529
|
},
|
|
554
530
|
fromAmino: (a) => {
|
|
555
531
|
var _a, _b;
|
|
556
|
-
return
|
|
532
|
+
return tx_5.MsgSlashPermissionTrustDeposit.fromPartial({
|
|
557
533
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
558
534
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
559
535
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -573,7 +549,7 @@ exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
|
|
|
573
549
|
},
|
|
574
550
|
fromAmino: (a) => {
|
|
575
551
|
var _a, _b;
|
|
576
|
-
return
|
|
552
|
+
return tx_5.MsgRepayPermissionSlashedTrustDeposit.fromPartial({
|
|
577
553
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
578
554
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
579
555
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
@@ -604,7 +580,7 @@ exports.MsgCreatePermissionAminoConverter = {
|
|
|
604
580
|
},
|
|
605
581
|
fromAmino: (a) => {
|
|
606
582
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
607
|
-
return
|
|
583
|
+
return tx_5.MsgCreatePermission.fromPartial({
|
|
608
584
|
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
609
585
|
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
610
586
|
type: (_c = a.type) !== null && _c !== void 0 ? _c : 0,
|
package/package.json
CHANGED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Params } from "./params";
|
|
3
|
-
import { DIDDirectory } from "./types";
|
|
4
|
-
export declare const protobufPackage = "verana.dd.v1";
|
|
5
|
-
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
6
|
-
export interface QueryParamsRequest {
|
|
7
|
-
}
|
|
8
|
-
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
9
|
-
export interface QueryParamsResponse {
|
|
10
|
-
/** params holds all the parameters of this module. */
|
|
11
|
-
params: Params | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface QueryListDIDsRequest {
|
|
14
|
-
account: string;
|
|
15
|
-
changed: Date | undefined;
|
|
16
|
-
expired: boolean;
|
|
17
|
-
overGrace: boolean;
|
|
18
|
-
responseMaxSize: number;
|
|
19
|
-
}
|
|
20
|
-
export interface QueryListDIDsResponse {
|
|
21
|
-
dids: DIDDirectory[];
|
|
22
|
-
}
|
|
23
|
-
export interface QueryGetDIDRequest {
|
|
24
|
-
did: string;
|
|
25
|
-
}
|
|
26
|
-
export interface QueryGetDIDResponse {
|
|
27
|
-
did: DIDDirectory | undefined;
|
|
28
|
-
}
|
|
29
|
-
export declare const QueryParamsRequest: {
|
|
30
|
-
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
32
|
-
fromJSON(_: any): QueryParamsRequest;
|
|
33
|
-
toJSON(_: QueryParamsRequest): unknown;
|
|
34
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest;
|
|
35
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest;
|
|
36
|
-
};
|
|
37
|
-
export declare const QueryParamsResponse: {
|
|
38
|
-
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
40
|
-
fromJSON(object: any): QueryParamsResponse;
|
|
41
|
-
toJSON(message: QueryParamsResponse): unknown;
|
|
42
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse;
|
|
43
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse;
|
|
44
|
-
};
|
|
45
|
-
export declare const QueryListDIDsRequest: {
|
|
46
|
-
encode(message: QueryListDIDsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
47
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListDIDsRequest;
|
|
48
|
-
fromJSON(object: any): QueryListDIDsRequest;
|
|
49
|
-
toJSON(message: QueryListDIDsRequest): unknown;
|
|
50
|
-
create<I extends Exact<DeepPartial<QueryListDIDsRequest>, I>>(base?: I): QueryListDIDsRequest;
|
|
51
|
-
fromPartial<I extends Exact<DeepPartial<QueryListDIDsRequest>, I>>(object: I): QueryListDIDsRequest;
|
|
52
|
-
};
|
|
53
|
-
export declare const QueryListDIDsResponse: {
|
|
54
|
-
encode(message: QueryListDIDsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
55
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListDIDsResponse;
|
|
56
|
-
fromJSON(object: any): QueryListDIDsResponse;
|
|
57
|
-
toJSON(message: QueryListDIDsResponse): unknown;
|
|
58
|
-
create<I extends Exact<DeepPartial<QueryListDIDsResponse>, I>>(base?: I): QueryListDIDsResponse;
|
|
59
|
-
fromPartial<I extends Exact<DeepPartial<QueryListDIDsResponse>, I>>(object: I): QueryListDIDsResponse;
|
|
60
|
-
};
|
|
61
|
-
export declare const QueryGetDIDRequest: {
|
|
62
|
-
encode(message: QueryGetDIDRequest, writer?: _m0.Writer): _m0.Writer;
|
|
63
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetDIDRequest;
|
|
64
|
-
fromJSON(object: any): QueryGetDIDRequest;
|
|
65
|
-
toJSON(message: QueryGetDIDRequest): unknown;
|
|
66
|
-
create<I extends Exact<DeepPartial<QueryGetDIDRequest>, I>>(base?: I): QueryGetDIDRequest;
|
|
67
|
-
fromPartial<I extends Exact<DeepPartial<QueryGetDIDRequest>, I>>(object: I): QueryGetDIDRequest;
|
|
68
|
-
};
|
|
69
|
-
export declare const QueryGetDIDResponse: {
|
|
70
|
-
encode(message: QueryGetDIDResponse, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetDIDResponse;
|
|
72
|
-
fromJSON(object: any): QueryGetDIDResponse;
|
|
73
|
-
toJSON(message: QueryGetDIDResponse): unknown;
|
|
74
|
-
create<I extends Exact<DeepPartial<QueryGetDIDResponse>, I>>(base?: I): QueryGetDIDResponse;
|
|
75
|
-
fromPartial<I extends Exact<DeepPartial<QueryGetDIDResponse>, I>>(object: I): QueryGetDIDResponse;
|
|
76
|
-
};
|
|
77
|
-
/** Query defines the gRPC querier service. */
|
|
78
|
-
export interface Query {
|
|
79
|
-
/** Parameters queries the parameters of the module. */
|
|
80
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
81
|
-
ListDIDs(request: QueryListDIDsRequest): Promise<QueryListDIDsResponse>;
|
|
82
|
-
GetDID(request: QueryGetDIDRequest): Promise<QueryGetDIDResponse>;
|
|
83
|
-
}
|
|
84
|
-
export declare const QueryServiceName = "verana.dd.v1.Query";
|
|
85
|
-
export declare class QueryClientImpl implements Query {
|
|
86
|
-
private readonly rpc;
|
|
87
|
-
private readonly service;
|
|
88
|
-
constructor(rpc: Rpc, opts?: {
|
|
89
|
-
service?: string;
|
|
90
|
-
});
|
|
91
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
92
|
-
ListDIDs(request: QueryListDIDsRequest): Promise<QueryListDIDsResponse>;
|
|
93
|
-
GetDID(request: QueryGetDIDRequest): Promise<QueryGetDIDResponse>;
|
|
94
|
-
}
|
|
95
|
-
interface Rpc {
|
|
96
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
97
|
-
}
|
|
98
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
99
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
100
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
101
|
-
} : Partial<T>;
|
|
102
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
103
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
104
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
105
|
-
} & {
|
|
106
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
107
|
-
};
|
|
108
|
-
export {};
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Params } from "./params";
|
|
3
|
-
export declare const protobufPackage = "verana.dd.v1";
|
|
4
|
-
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
5
|
-
export interface MsgUpdateParams {
|
|
6
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
7
|
-
authority: string;
|
|
8
|
-
/**
|
|
9
|
-
* params defines the module parameters to update.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: All parameters must be supplied.
|
|
12
|
-
*/
|
|
13
|
-
params: Params | undefined;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
17
|
-
* MsgUpdateParams message.
|
|
18
|
-
*/
|
|
19
|
-
export interface MsgUpdateParamsResponse {
|
|
20
|
-
}
|
|
21
|
-
/** MsgAddDID defines the Msg/AddDID request type */
|
|
22
|
-
export interface MsgAddDID {
|
|
23
|
-
creator: string;
|
|
24
|
-
did: string;
|
|
25
|
-
years: number;
|
|
26
|
-
}
|
|
27
|
-
/** MsgAddDIDResponse defines the Msg/AddDID response type */
|
|
28
|
-
export interface MsgAddDIDResponse {
|
|
29
|
-
}
|
|
30
|
-
/** MsgRenewDID defines the Msg/RenewDID request type */
|
|
31
|
-
export interface MsgRenewDID {
|
|
32
|
-
creator: string;
|
|
33
|
-
did: string;
|
|
34
|
-
years: number;
|
|
35
|
-
}
|
|
36
|
-
/** MsgRenewDIDResponse defines the Msg/RenewDID response type */
|
|
37
|
-
export interface MsgRenewDIDResponse {
|
|
38
|
-
}
|
|
39
|
-
/** MsgRemoveDID defines the Msg/RemoveDID request type */
|
|
40
|
-
export interface MsgRemoveDID {
|
|
41
|
-
creator: string;
|
|
42
|
-
did: string;
|
|
43
|
-
}
|
|
44
|
-
/** MsgRemoveDIDResponse defines the Msg/RemoveDID response type */
|
|
45
|
-
export interface MsgRemoveDIDResponse {
|
|
46
|
-
}
|
|
47
|
-
/** MsgTouchDID defines the Msg/TouchDID request type */
|
|
48
|
-
export interface MsgTouchDID {
|
|
49
|
-
creator: string;
|
|
50
|
-
did: string;
|
|
51
|
-
}
|
|
52
|
-
/** MsgTouchDIDResponse defines the Msg/TouchDID response type */
|
|
53
|
-
export interface MsgTouchDIDResponse {
|
|
54
|
-
}
|
|
55
|
-
export declare const MsgUpdateParams: {
|
|
56
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
57
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
|
|
58
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
59
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
60
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams;
|
|
61
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams;
|
|
62
|
-
};
|
|
63
|
-
export declare const MsgUpdateParamsResponse: {
|
|
64
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
|
|
66
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
67
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
68
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse;
|
|
69
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse;
|
|
70
|
-
};
|
|
71
|
-
export declare const MsgAddDID: {
|
|
72
|
-
encode(message: MsgAddDID, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddDID;
|
|
74
|
-
fromJSON(object: any): MsgAddDID;
|
|
75
|
-
toJSON(message: MsgAddDID): unknown;
|
|
76
|
-
create<I extends Exact<DeepPartial<MsgAddDID>, I>>(base?: I): MsgAddDID;
|
|
77
|
-
fromPartial<I extends Exact<DeepPartial<MsgAddDID>, I>>(object: I): MsgAddDID;
|
|
78
|
-
};
|
|
79
|
-
export declare const MsgAddDIDResponse: {
|
|
80
|
-
encode(_: MsgAddDIDResponse, writer?: _m0.Writer): _m0.Writer;
|
|
81
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddDIDResponse;
|
|
82
|
-
fromJSON(_: any): MsgAddDIDResponse;
|
|
83
|
-
toJSON(_: MsgAddDIDResponse): unknown;
|
|
84
|
-
create<I extends Exact<DeepPartial<MsgAddDIDResponse>, I>>(base?: I): MsgAddDIDResponse;
|
|
85
|
-
fromPartial<I extends Exact<DeepPartial<MsgAddDIDResponse>, I>>(_: I): MsgAddDIDResponse;
|
|
86
|
-
};
|
|
87
|
-
export declare const MsgRenewDID: {
|
|
88
|
-
encode(message: MsgRenewDID, writer?: _m0.Writer): _m0.Writer;
|
|
89
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewDID;
|
|
90
|
-
fromJSON(object: any): MsgRenewDID;
|
|
91
|
-
toJSON(message: MsgRenewDID): unknown;
|
|
92
|
-
create<I extends Exact<DeepPartial<MsgRenewDID>, I>>(base?: I): MsgRenewDID;
|
|
93
|
-
fromPartial<I extends Exact<DeepPartial<MsgRenewDID>, I>>(object: I): MsgRenewDID;
|
|
94
|
-
};
|
|
95
|
-
export declare const MsgRenewDIDResponse: {
|
|
96
|
-
encode(_: MsgRenewDIDResponse, writer?: _m0.Writer): _m0.Writer;
|
|
97
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewDIDResponse;
|
|
98
|
-
fromJSON(_: any): MsgRenewDIDResponse;
|
|
99
|
-
toJSON(_: MsgRenewDIDResponse): unknown;
|
|
100
|
-
create<I extends Exact<DeepPartial<MsgRenewDIDResponse>, I>>(base?: I): MsgRenewDIDResponse;
|
|
101
|
-
fromPartial<I extends Exact<DeepPartial<MsgRenewDIDResponse>, I>>(_: I): MsgRenewDIDResponse;
|
|
102
|
-
};
|
|
103
|
-
export declare const MsgRemoveDID: {
|
|
104
|
-
encode(message: MsgRemoveDID, writer?: _m0.Writer): _m0.Writer;
|
|
105
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveDID;
|
|
106
|
-
fromJSON(object: any): MsgRemoveDID;
|
|
107
|
-
toJSON(message: MsgRemoveDID): unknown;
|
|
108
|
-
create<I extends Exact<DeepPartial<MsgRemoveDID>, I>>(base?: I): MsgRemoveDID;
|
|
109
|
-
fromPartial<I extends Exact<DeepPartial<MsgRemoveDID>, I>>(object: I): MsgRemoveDID;
|
|
110
|
-
};
|
|
111
|
-
export declare const MsgRemoveDIDResponse: {
|
|
112
|
-
encode(_: MsgRemoveDIDResponse, writer?: _m0.Writer): _m0.Writer;
|
|
113
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgRemoveDIDResponse;
|
|
114
|
-
fromJSON(_: any): MsgRemoveDIDResponse;
|
|
115
|
-
toJSON(_: MsgRemoveDIDResponse): unknown;
|
|
116
|
-
create<I extends Exact<DeepPartial<MsgRemoveDIDResponse>, I>>(base?: I): MsgRemoveDIDResponse;
|
|
117
|
-
fromPartial<I extends Exact<DeepPartial<MsgRemoveDIDResponse>, I>>(_: I): MsgRemoveDIDResponse;
|
|
118
|
-
};
|
|
119
|
-
export declare const MsgTouchDID: {
|
|
120
|
-
encode(message: MsgTouchDID, writer?: _m0.Writer): _m0.Writer;
|
|
121
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgTouchDID;
|
|
122
|
-
fromJSON(object: any): MsgTouchDID;
|
|
123
|
-
toJSON(message: MsgTouchDID): unknown;
|
|
124
|
-
create<I extends Exact<DeepPartial<MsgTouchDID>, I>>(base?: I): MsgTouchDID;
|
|
125
|
-
fromPartial<I extends Exact<DeepPartial<MsgTouchDID>, I>>(object: I): MsgTouchDID;
|
|
126
|
-
};
|
|
127
|
-
export declare const MsgTouchDIDResponse: {
|
|
128
|
-
encode(_: MsgTouchDIDResponse, writer?: _m0.Writer): _m0.Writer;
|
|
129
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgTouchDIDResponse;
|
|
130
|
-
fromJSON(_: any): MsgTouchDIDResponse;
|
|
131
|
-
toJSON(_: MsgTouchDIDResponse): unknown;
|
|
132
|
-
create<I extends Exact<DeepPartial<MsgTouchDIDResponse>, I>>(base?: I): MsgTouchDIDResponse;
|
|
133
|
-
fromPartial<I extends Exact<DeepPartial<MsgTouchDIDResponse>, I>>(_: I): MsgTouchDIDResponse;
|
|
134
|
-
};
|
|
135
|
-
/** Msg defines the Msg service. */
|
|
136
|
-
export interface Msg {
|
|
137
|
-
/**
|
|
138
|
-
* UpdateParams defines a (governance) operation for updating the module
|
|
139
|
-
* parameters. The authority defaults to the x/gov module account.
|
|
140
|
-
*/
|
|
141
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
142
|
-
AddDID(request: MsgAddDID): Promise<MsgAddDIDResponse>;
|
|
143
|
-
RenewDID(request: MsgRenewDID): Promise<MsgRenewDIDResponse>;
|
|
144
|
-
RemoveDID(request: MsgRemoveDID): Promise<MsgRemoveDIDResponse>;
|
|
145
|
-
TouchDID(request: MsgTouchDID): Promise<MsgTouchDIDResponse>;
|
|
146
|
-
}
|
|
147
|
-
export declare const MsgServiceName = "verana.dd.v1.Msg";
|
|
148
|
-
export declare class MsgClientImpl implements Msg {
|
|
149
|
-
private readonly rpc;
|
|
150
|
-
private readonly service;
|
|
151
|
-
constructor(rpc: Rpc, opts?: {
|
|
152
|
-
service?: string;
|
|
153
|
-
});
|
|
154
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
155
|
-
AddDID(request: MsgAddDID): Promise<MsgAddDIDResponse>;
|
|
156
|
-
RenewDID(request: MsgRenewDID): Promise<MsgRenewDIDResponse>;
|
|
157
|
-
RemoveDID(request: MsgRemoveDID): Promise<MsgRemoveDIDResponse>;
|
|
158
|
-
TouchDID(request: MsgTouchDID): Promise<MsgTouchDIDResponse>;
|
|
159
|
-
}
|
|
160
|
-
interface Rpc {
|
|
161
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
162
|
-
}
|
|
163
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
164
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
165
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
166
|
-
} : Partial<T>;
|
|
167
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
168
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
169
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
170
|
-
} & {
|
|
171
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
172
|
-
};
|
|
173
|
-
export {};
|