@verana-labs/verana-types 0.10.1-dev.4 → 0.10.1-dev.6
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/README.md +1 -1
- package/dist/codec/verana/perm/v1/tx.d.ts +76 -40
- package/dist/codec/verana/perm/v1/tx.js +580 -249
- package/dist/codec/verana/perm/v1/types.d.ts +28 -15
- package/dist/codec/verana/perm/v1/types.js +220 -76
- package/dist/codec/verana/td/v1/tx.d.ts +17 -4
- package/dist/codec/verana/td/v1/tx.js +40 -24
- package/dist/helpers/aminoConverters.d.ts +6 -2
- package/dist/helpers/aminoConverters.js +192 -78
- package/package.json +1 -1
|
@@ -18,9 +18,15 @@ export interface MsgUpdateParams {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface MsgUpdateParamsResponse {
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* MsgReclaimTrustDepositYield defines the request type
|
|
23
|
+
* [MOD-TD-MSG-2] Reclaim Trust Deposit Yield
|
|
24
|
+
*/
|
|
22
25
|
export interface MsgReclaimTrustDepositYield {
|
|
23
|
-
|
|
26
|
+
/** authority is the group address that owns the trust deposit. */
|
|
27
|
+
authority: string;
|
|
28
|
+
/** operator is the account authorized by the authority to run this Msg. */
|
|
29
|
+
operator: string;
|
|
24
30
|
}
|
|
25
31
|
/** MsgReclaimTrustDepositYieldResponse defines the response type */
|
|
26
32
|
export interface MsgReclaimTrustDepositYieldResponse {
|
|
@@ -52,9 +58,16 @@ export interface MsgSlashTrustDeposit {
|
|
|
52
58
|
/** MsgSlashTrustDepositResponse defines the response for MsgSlashTrustDeposit */
|
|
53
59
|
export interface MsgSlashTrustDepositResponse {
|
|
54
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* MsgRepaySlashedTrustDeposit defines the message for repaying a slashed trust deposit.
|
|
63
|
+
* [MOD-TD-MSG-6] Any authorized operator CAN execute this on behalf of an authority.
|
|
64
|
+
*/
|
|
55
65
|
export interface MsgRepaySlashedTrustDeposit {
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
/** authority is the group address that owns the slashed trust deposit. */
|
|
67
|
+
authority: string;
|
|
68
|
+
/** operator is the account authorized by the authority to run this Msg. */
|
|
69
|
+
operator: string;
|
|
70
|
+
/** amount is the repayment amount (must equal outstanding slashed amount). */
|
|
58
71
|
amount: number;
|
|
59
72
|
}
|
|
60
73
|
export interface MsgRepaySlashedTrustDepositResponse {
|
|
@@ -151,12 +151,15 @@ exports.MsgUpdateParamsResponse = {
|
|
|
151
151
|
},
|
|
152
152
|
};
|
|
153
153
|
function createBaseMsgReclaimTrustDepositYield() {
|
|
154
|
-
return {
|
|
154
|
+
return { authority: "", operator: "" };
|
|
155
155
|
}
|
|
156
156
|
exports.MsgReclaimTrustDepositYield = {
|
|
157
157
|
encode(message, writer = _m0.Writer.create()) {
|
|
158
|
-
if (message.
|
|
159
|
-
writer.uint32(10).string(message.
|
|
158
|
+
if (message.authority !== "") {
|
|
159
|
+
writer.uint32(10).string(message.authority);
|
|
160
|
+
}
|
|
161
|
+
if (message.operator !== "") {
|
|
162
|
+
writer.uint32(18).string(message.operator);
|
|
160
163
|
}
|
|
161
164
|
return writer;
|
|
162
165
|
},
|
|
@@ -171,7 +174,13 @@ exports.MsgReclaimTrustDepositYield = {
|
|
|
171
174
|
if (tag !== 10) {
|
|
172
175
|
break;
|
|
173
176
|
}
|
|
174
|
-
message.
|
|
177
|
+
message.authority = reader.string();
|
|
178
|
+
continue;
|
|
179
|
+
case 2:
|
|
180
|
+
if (tag !== 18) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
message.operator = reader.string();
|
|
175
184
|
continue;
|
|
176
185
|
}
|
|
177
186
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -182,12 +191,18 @@ exports.MsgReclaimTrustDepositYield = {
|
|
|
182
191
|
return message;
|
|
183
192
|
},
|
|
184
193
|
fromJSON(object) {
|
|
185
|
-
return {
|
|
194
|
+
return {
|
|
195
|
+
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
196
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
197
|
+
};
|
|
186
198
|
},
|
|
187
199
|
toJSON(message) {
|
|
188
200
|
const obj = {};
|
|
189
|
-
if (message.
|
|
190
|
-
obj.
|
|
201
|
+
if (message.authority !== "") {
|
|
202
|
+
obj.authority = message.authority;
|
|
203
|
+
}
|
|
204
|
+
if (message.operator !== "") {
|
|
205
|
+
obj.operator = message.operator;
|
|
191
206
|
}
|
|
192
207
|
return obj;
|
|
193
208
|
},
|
|
@@ -195,9 +210,10 @@ exports.MsgReclaimTrustDepositYield = {
|
|
|
195
210
|
return exports.MsgReclaimTrustDepositYield.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
196
211
|
},
|
|
197
212
|
fromPartial(object) {
|
|
198
|
-
var _a;
|
|
213
|
+
var _a, _b;
|
|
199
214
|
const message = createBaseMsgReclaimTrustDepositYield();
|
|
200
|
-
message.
|
|
215
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
216
|
+
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
201
217
|
return message;
|
|
202
218
|
},
|
|
203
219
|
};
|
|
@@ -505,15 +521,15 @@ exports.MsgSlashTrustDepositResponse = {
|
|
|
505
521
|
},
|
|
506
522
|
};
|
|
507
523
|
function createBaseMsgRepaySlashedTrustDeposit() {
|
|
508
|
-
return {
|
|
524
|
+
return { authority: "", operator: "", amount: 0 };
|
|
509
525
|
}
|
|
510
526
|
exports.MsgRepaySlashedTrustDeposit = {
|
|
511
527
|
encode(message, writer = _m0.Writer.create()) {
|
|
512
|
-
if (message.
|
|
513
|
-
writer.uint32(10).string(message.
|
|
528
|
+
if (message.authority !== "") {
|
|
529
|
+
writer.uint32(10).string(message.authority);
|
|
514
530
|
}
|
|
515
|
-
if (message.
|
|
516
|
-
writer.uint32(18).string(message.
|
|
531
|
+
if (message.operator !== "") {
|
|
532
|
+
writer.uint32(18).string(message.operator);
|
|
517
533
|
}
|
|
518
534
|
if (message.amount !== 0) {
|
|
519
535
|
writer.uint32(24).uint64(message.amount);
|
|
@@ -531,13 +547,13 @@ exports.MsgRepaySlashedTrustDeposit = {
|
|
|
531
547
|
if (tag !== 10) {
|
|
532
548
|
break;
|
|
533
549
|
}
|
|
534
|
-
message.
|
|
550
|
+
message.authority = reader.string();
|
|
535
551
|
continue;
|
|
536
552
|
case 2:
|
|
537
553
|
if (tag !== 18) {
|
|
538
554
|
break;
|
|
539
555
|
}
|
|
540
|
-
message.
|
|
556
|
+
message.operator = reader.string();
|
|
541
557
|
continue;
|
|
542
558
|
case 3:
|
|
543
559
|
if (tag !== 24) {
|
|
@@ -555,18 +571,18 @@ exports.MsgRepaySlashedTrustDeposit = {
|
|
|
555
571
|
},
|
|
556
572
|
fromJSON(object) {
|
|
557
573
|
return {
|
|
558
|
-
|
|
559
|
-
|
|
574
|
+
authority: isSet(object.authority) ? globalThis.String(object.authority) : "",
|
|
575
|
+
operator: isSet(object.operator) ? globalThis.String(object.operator) : "",
|
|
560
576
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
561
577
|
};
|
|
562
578
|
},
|
|
563
579
|
toJSON(message) {
|
|
564
580
|
const obj = {};
|
|
565
|
-
if (message.
|
|
566
|
-
obj.
|
|
581
|
+
if (message.authority !== "") {
|
|
582
|
+
obj.authority = message.authority;
|
|
567
583
|
}
|
|
568
|
-
if (message.
|
|
569
|
-
obj.
|
|
584
|
+
if (message.operator !== "") {
|
|
585
|
+
obj.operator = message.operator;
|
|
570
586
|
}
|
|
571
587
|
if (message.amount !== 0) {
|
|
572
588
|
obj.amount = Math.round(message.amount);
|
|
@@ -579,8 +595,8 @@ exports.MsgRepaySlashedTrustDeposit = {
|
|
|
579
595
|
fromPartial(object) {
|
|
580
596
|
var _a, _b, _c;
|
|
581
597
|
const message = createBaseMsgRepaySlashedTrustDeposit();
|
|
582
|
-
message.
|
|
583
|
-
message.
|
|
598
|
+
message.authority = (_a = object.authority) !== null && _a !== void 0 ? _a : "";
|
|
599
|
+
message.operator = (_b = object.operator) !== null && _b !== void 0 ? _b : "";
|
|
584
600
|
message.amount = (_c = object.amount) !== null && _c !== void 0 ? _c : 0;
|
|
585
601
|
return message;
|
|
586
602
|
},
|
|
@@ -19,14 +19,18 @@ export declare const MsgUpdateCredentialSchemaAminoConverter: AminoConverter;
|
|
|
19
19
|
export declare const MsgArchiveCredentialSchemaAminoConverter: AminoConverter;
|
|
20
20
|
export declare const MsgReclaimTrustDepositAminoConverter: AminoConverter;
|
|
21
21
|
export declare const MsgReclaimTrustDepositYieldAminoConverter: AminoConverter;
|
|
22
|
+
export declare const MsgRepaySlashedTrustDepositAminoConverter: AminoConverter;
|
|
23
|
+
export declare const MsgSlashTrustDepositAminoConverter: AminoConverter;
|
|
22
24
|
export declare const MsgCreateRootPermissionAminoConverter: AminoConverter;
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const MsgExtendPermissionAminoConverter: AminoConverter;
|
|
25
|
+
export declare const MsgAdjustPermissionAminoConverter: AminoConverter;
|
|
25
26
|
export declare const MsgRevokePermissionAminoConverter: AminoConverter;
|
|
26
27
|
export declare const MsgStartPermissionVPAminoConverter: AminoConverter;
|
|
27
28
|
export declare const MsgRenewPermissionVPAminoConverter: AminoConverter;
|
|
28
29
|
export declare const MsgSetPermissionVPToValidatedAminoConverter: AminoConverter;
|
|
29
30
|
export declare const MsgCancelPermissionVPLastRequestAminoConverter: AminoConverter;
|
|
30
31
|
export declare const MsgCreateOrUpdatePermissionSessionAminoConverter: AminoConverter;
|
|
32
|
+
export declare const MsgSlashPermissionTrustDepositAminoConverter: AminoConverter;
|
|
33
|
+
export declare const MsgRepayPermissionSlashedTrustDepositAminoConverter: AminoConverter;
|
|
34
|
+
export declare const MsgCreatePermissionAminoConverter: AminoConverter;
|
|
31
35
|
export declare const MsgGrantOperatorAuthorizationAminoConverter: AminoConverter;
|
|
32
36
|
export declare const MsgRevokeOperatorAuthorizationAminoConverter: AminoConverter;
|
|
@@ -9,7 +9,7 @@ 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.MsgCreateOrUpdatePermissionSessionAminoConverter = exports.MsgCancelPermissionVPLastRequestAminoConverter = exports.MsgSetPermissionVPToValidatedAminoConverter = exports.MsgRenewPermissionVPAminoConverter = exports.MsgStartPermissionVPAminoConverter = exports.MsgRevokePermissionAminoConverter = 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.MsgRemoveDIDAminoConverter = exports.MsgTouchDIDAminoConverter = exports.MsgRenewDIDAminoConverter = exports.MsgAddDIDAminoConverter = 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");
|
|
@@ -318,11 +318,39 @@ exports.MsgReclaimTrustDepositAminoConverter = {
|
|
|
318
318
|
};
|
|
319
319
|
exports.MsgReclaimTrustDepositYieldAminoConverter = {
|
|
320
320
|
aminoType: '/verana.td.v1.MsgReclaimTrustDepositYield',
|
|
321
|
-
toAmino: ({
|
|
322
|
-
|
|
321
|
+
toAmino: ({ authority, operator }) => ({
|
|
322
|
+
authority,
|
|
323
|
+
operator,
|
|
323
324
|
}),
|
|
324
325
|
fromAmino: (value) => tx_5.MsgReclaimTrustDepositYield.fromPartial({
|
|
325
|
-
|
|
326
|
+
authority: value.authority,
|
|
327
|
+
operator: value.operator,
|
|
328
|
+
}),
|
|
329
|
+
};
|
|
330
|
+
exports.MsgRepaySlashedTrustDepositAminoConverter = {
|
|
331
|
+
aminoType: '/verana.td.v1.MsgRepaySlashedTrustDeposit',
|
|
332
|
+
toAmino: ({ authority, operator, amount }) => ({
|
|
333
|
+
authority,
|
|
334
|
+
operator,
|
|
335
|
+
amount: amount != null ? amount.toString() : undefined,
|
|
336
|
+
}),
|
|
337
|
+
fromAmino: (value) => tx_5.MsgRepaySlashedTrustDeposit.fromPartial({
|
|
338
|
+
authority: value.authority,
|
|
339
|
+
operator: value.operator,
|
|
340
|
+
amount: value.amount != null ? Number(value.amount) : 0,
|
|
341
|
+
}),
|
|
342
|
+
};
|
|
343
|
+
exports.MsgSlashTrustDepositAminoConverter = {
|
|
344
|
+
aminoType: '/verana.td.v1.MsgSlashTrustDeposit',
|
|
345
|
+
toAmino: ({ authority, account, amount }) => ({
|
|
346
|
+
authority,
|
|
347
|
+
account,
|
|
348
|
+
amount,
|
|
349
|
+
}),
|
|
350
|
+
fromAmino: (value) => tx_5.MsgSlashTrustDeposit.fromPartial({
|
|
351
|
+
authority: value.authority,
|
|
352
|
+
account: value.account,
|
|
353
|
+
amount: value.amount,
|
|
326
354
|
}),
|
|
327
355
|
};
|
|
328
356
|
// ============================================================================
|
|
@@ -333,10 +361,10 @@ exports.MsgCreateRootPermissionAminoConverter = {
|
|
|
333
361
|
toAmino: (m) => {
|
|
334
362
|
var _a, _b, _c;
|
|
335
363
|
return clean({
|
|
336
|
-
|
|
364
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
365
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
337
366
|
schema_id: u64ToStr(m.schemaId),
|
|
338
|
-
did: (
|
|
339
|
-
country: (_c = m.country) !== null && _c !== void 0 ? _c : '',
|
|
367
|
+
did: (_c = m.did) !== null && _c !== void 0 ? _c : '',
|
|
340
368
|
effective_from: dateToAmino(m.effectiveFrom),
|
|
341
369
|
effective_until: dateToAmino(m.effectiveUntil),
|
|
342
370
|
validation_fees: u64ToStr(m.validationFees),
|
|
@@ -347,10 +375,10 @@ exports.MsgCreateRootPermissionAminoConverter = {
|
|
|
347
375
|
fromAmino: (a) => {
|
|
348
376
|
var _a, _b, _c;
|
|
349
377
|
return tx_6.MsgCreateRootPermission.fromPartial({
|
|
350
|
-
|
|
378
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
379
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
351
380
|
schemaId: strToU64(a.schema_id) != null ? Number(strToU64(a.schema_id).toString()) : 0,
|
|
352
|
-
did: (
|
|
353
|
-
country: (_c = a.country) !== null && _c !== void 0 ? _c : '',
|
|
381
|
+
did: (_c = a.did) !== null && _c !== void 0 ? _c : '',
|
|
354
382
|
effectiveFrom: dateFromAmino(a.effective_from),
|
|
355
383
|
effectiveUntil: dateFromAmino(a.effective_until),
|
|
356
384
|
validationFees: strToU64(a.validation_fees) != null ? Number(strToU64(a.validation_fees).toString()) : 0,
|
|
@@ -359,51 +387,22 @@ exports.MsgCreateRootPermissionAminoConverter = {
|
|
|
359
387
|
});
|
|
360
388
|
},
|
|
361
389
|
};
|
|
362
|
-
exports.
|
|
363
|
-
aminoType: '/verana.perm.v1.
|
|
364
|
-
toAmino: (m) => {
|
|
365
|
-
var _a, _b, _c, _d;
|
|
366
|
-
return clean({
|
|
367
|
-
creator: (_a = m.creator) !== null && _a !== void 0 ? _a : '',
|
|
368
|
-
schema_id: u64ToStr(m.schemaId),
|
|
369
|
-
type: (_b = m.type) !== null && _b !== void 0 ? _b : types_1.PermissionType.UNSPECIFIED,
|
|
370
|
-
did: (_c = m.did) !== null && _c !== void 0 ? _c : '',
|
|
371
|
-
country: (_d = m.country) !== null && _d !== void 0 ? _d : '',
|
|
372
|
-
effective_from: dateToAmino(m.effectiveFrom),
|
|
373
|
-
effective_until: dateToAmino(m.effectiveUntil),
|
|
374
|
-
verification_fees: u64ToStrIfNonZero(m.verificationFees),
|
|
375
|
-
validation_fees: u64ToStrIfNonZero(m.validationFees),
|
|
376
|
-
});
|
|
377
|
-
},
|
|
378
|
-
fromAmino: (a) => {
|
|
379
|
-
var _a, _b, _c, _d;
|
|
380
|
-
return tx_6.MsgCreatePermission.fromPartial({
|
|
381
|
-
creator: (_a = a.creator) !== null && _a !== void 0 ? _a : '',
|
|
382
|
-
schemaId: strToU64(a.schema_id) != null ? Number(strToU64(a.schema_id).toString()) : 0,
|
|
383
|
-
type: (_b = a.type) !== null && _b !== void 0 ? _b : types_1.PermissionType.UNSPECIFIED,
|
|
384
|
-
did: (_c = a.did) !== null && _c !== void 0 ? _c : '',
|
|
385
|
-
country: (_d = a.country) !== null && _d !== void 0 ? _d : '',
|
|
386
|
-
effectiveFrom: dateFromAmino(a.effective_from),
|
|
387
|
-
effectiveUntil: dateFromAmino(a.effective_until),
|
|
388
|
-
verificationFees: strToU64(a.verification_fees) != null ? Number(strToU64(a.verification_fees).toString()) : 0,
|
|
389
|
-
validationFees: strToU64(a.validation_fees) != null ? Number(strToU64(a.validation_fees).toString()) : 0,
|
|
390
|
-
});
|
|
391
|
-
},
|
|
392
|
-
};
|
|
393
|
-
exports.MsgExtendPermissionAminoConverter = {
|
|
394
|
-
aminoType: '/verana.perm.v1.MsgExtendPermission',
|
|
390
|
+
exports.MsgAdjustPermissionAminoConverter = {
|
|
391
|
+
aminoType: '/verana.perm.v1.MsgAdjustPermission',
|
|
395
392
|
toAmino: (m) => {
|
|
396
|
-
var _a;
|
|
393
|
+
var _a, _b;
|
|
397
394
|
return clean({
|
|
398
|
-
|
|
395
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
396
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
399
397
|
id: u64ToStr(m.id),
|
|
400
398
|
effective_until: dateToAmino(m.effectiveUntil),
|
|
401
399
|
});
|
|
402
400
|
},
|
|
403
401
|
fromAmino: (a) => {
|
|
404
|
-
var _a;
|
|
405
|
-
return tx_6.
|
|
406
|
-
|
|
402
|
+
var _a, _b;
|
|
403
|
+
return tx_6.MsgAdjustPermission.fromPartial({
|
|
404
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
405
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
407
406
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
408
407
|
effectiveUntil: dateFromAmino(a.effective_until),
|
|
409
408
|
});
|
|
@@ -412,16 +411,18 @@ exports.MsgExtendPermissionAminoConverter = {
|
|
|
412
411
|
exports.MsgRevokePermissionAminoConverter = {
|
|
413
412
|
aminoType: '/verana.perm.v1.MsgRevokePermission',
|
|
414
413
|
toAmino: (m) => {
|
|
415
|
-
var _a;
|
|
414
|
+
var _a, _b;
|
|
416
415
|
return clean({
|
|
417
|
-
|
|
416
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
417
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
418
418
|
id: u64ToStr(m.id),
|
|
419
419
|
});
|
|
420
420
|
},
|
|
421
421
|
fromAmino: (a) => {
|
|
422
|
-
var _a;
|
|
422
|
+
var _a, _b;
|
|
423
423
|
return tx_6.MsgRevokePermission.fromPartial({
|
|
424
|
-
|
|
424
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
425
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
425
426
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
426
427
|
});
|
|
427
428
|
},
|
|
@@ -429,39 +430,59 @@ exports.MsgRevokePermissionAminoConverter = {
|
|
|
429
430
|
exports.MsgStartPermissionVPAminoConverter = {
|
|
430
431
|
aminoType: '/verana.perm.v1.MsgStartPermissionVP',
|
|
431
432
|
toAmino: (m) => {
|
|
432
|
-
var _a, _b, _c, _d;
|
|
433
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
433
434
|
return clean({
|
|
434
|
-
|
|
435
|
-
|
|
435
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
436
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
437
|
+
type: (_c = m.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
|
|
436
438
|
validator_perm_id: u64ToStr(m.validatorPermId),
|
|
437
|
-
country: (_c = m.country) !== null && _c !== void 0 ? _c : '',
|
|
438
439
|
did: (_d = m.did) !== null && _d !== void 0 ? _d : '',
|
|
440
|
+
validation_fees: m.validationFees ? { value: u64ToStr(m.validationFees.value) } : undefined,
|
|
441
|
+
issuance_fees: m.issuanceFees ? { value: u64ToStr(m.issuanceFees.value) } : undefined,
|
|
442
|
+
verification_fees: m.verificationFees ? { value: u64ToStr(m.verificationFees.value) } : undefined,
|
|
443
|
+
vs_operator: m.vsOperator || undefined,
|
|
444
|
+
vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
|
|
445
|
+
vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
|
|
446
|
+
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
447
|
+
vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
|
|
448
|
+
vs_operator_authz_spend_period: (_g = m.vsOperatorAuthzSpendPeriod) !== null && _g !== void 0 ? _g : undefined,
|
|
439
449
|
});
|
|
440
450
|
},
|
|
441
451
|
fromAmino: (a) => {
|
|
442
|
-
var _a, _b, _c, _d;
|
|
452
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
443
453
|
return tx_6.MsgStartPermissionVP.fromPartial({
|
|
444
|
-
|
|
445
|
-
|
|
454
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
455
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
456
|
+
type: (_c = a.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
|
|
446
457
|
validatorPermId: strToU64(a.validator_perm_id) != null ? Number(strToU64(a.validator_perm_id).toString()) : 0,
|
|
447
|
-
country: (_c = a.country) !== null && _c !== void 0 ? _c : '',
|
|
448
458
|
did: (_d = a.did) !== null && _d !== void 0 ? _d : '',
|
|
459
|
+
validationFees: a.validation_fees ? { value: Number(a.validation_fees.value) } : undefined,
|
|
460
|
+
issuanceFees: a.issuance_fees ? { value: Number(a.issuance_fees.value) } : undefined,
|
|
461
|
+
verificationFees: a.verification_fees ? { value: Number(a.verification_fees.value) } : undefined,
|
|
462
|
+
vsOperator: (_e = a.vs_operator) !== null && _e !== void 0 ? _e : '',
|
|
463
|
+
vsOperatorAuthzEnabled: (_f = a.vs_operator_authz_enabled) !== null && _f !== void 0 ? _f : false,
|
|
464
|
+
vsOperatorAuthzSpendLimit: (_g = a.vs_operator_authz_spend_limit) !== null && _g !== void 0 ? _g : [],
|
|
465
|
+
vsOperatorAuthzWithFeegrant: (_h = a.vs_operator_authz_with_feegrant) !== null && _h !== void 0 ? _h : false,
|
|
466
|
+
vsOperatorAuthzFeeSpendLimit: (_j = a.vs_operator_authz_fee_spend_limit) !== null && _j !== void 0 ? _j : [],
|
|
467
|
+
vsOperatorAuthzSpendPeriod: (_k = a.vs_operator_authz_spend_period) !== null && _k !== void 0 ? _k : undefined,
|
|
449
468
|
});
|
|
450
469
|
},
|
|
451
470
|
};
|
|
452
471
|
exports.MsgRenewPermissionVPAminoConverter = {
|
|
453
472
|
aminoType: '/verana.perm.v1.MsgRenewPermissionVP',
|
|
454
473
|
toAmino: (m) => {
|
|
455
|
-
var _a;
|
|
474
|
+
var _a, _b;
|
|
456
475
|
return clean({
|
|
457
|
-
|
|
476
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
477
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
458
478
|
id: u64ToStr(m.id),
|
|
459
479
|
});
|
|
460
480
|
},
|
|
461
481
|
fromAmino: (a) => {
|
|
462
|
-
var _a;
|
|
482
|
+
var _a, _b;
|
|
463
483
|
return tx_6.MsgRenewPermissionVP.fromPartial({
|
|
464
|
-
|
|
484
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
485
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
465
486
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
466
487
|
});
|
|
467
488
|
},
|
|
@@ -471,43 +492,49 @@ exports.MsgSetPermissionVPToValidatedAminoConverter = {
|
|
|
471
492
|
toAmino: (m) => {
|
|
472
493
|
var _a, _b, _c;
|
|
473
494
|
return clean({
|
|
474
|
-
|
|
495
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
496
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
475
497
|
id: u64ToStr(m.id),
|
|
476
498
|
effective_until: dateToAmino(m.effectiveUntil),
|
|
477
499
|
validation_fees: u64ToStr(m.validationFees),
|
|
478
500
|
issuance_fees: u64ToStr(m.issuanceFees),
|
|
479
501
|
verification_fees: u64ToStr(m.verificationFees),
|
|
480
|
-
country: (_b = m.country) !== null && _b !== void 0 ? _b : '',
|
|
481
502
|
vp_summary_digest_sri: (_c = m.vpSummaryDigestSri) !== null && _c !== void 0 ? _c : '',
|
|
503
|
+
issuance_fee_discount: u64ToStr(m.issuanceFeeDiscount),
|
|
504
|
+
verification_fee_discount: u64ToStr(m.verificationFeeDiscount),
|
|
482
505
|
});
|
|
483
506
|
},
|
|
484
507
|
fromAmino: (a) => {
|
|
485
508
|
var _a, _b, _c;
|
|
486
509
|
return tx_6.MsgSetPermissionVPToValidated.fromPartial({
|
|
487
|
-
|
|
510
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
511
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
488
512
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
489
513
|
effectiveUntil: dateFromAmino(a.effective_until),
|
|
490
514
|
validationFees: strToU64(a.validation_fees) != null ? Number(strToU64(a.validation_fees).toString()) : 0,
|
|
491
515
|
issuanceFees: strToU64(a.issuance_fees) != null ? Number(strToU64(a.issuance_fees).toString()) : 0,
|
|
492
516
|
verificationFees: strToU64(a.verification_fees) != null ? Number(strToU64(a.verification_fees).toString()) : 0,
|
|
493
|
-
country: (_b = a.country) !== null && _b !== void 0 ? _b : '',
|
|
494
517
|
vpSummaryDigestSri: (_c = a.vp_summary_digest_sri) !== null && _c !== void 0 ? _c : '',
|
|
518
|
+
issuanceFeeDiscount: strToU64(a.issuance_fee_discount) != null ? Number(strToU64(a.issuance_fee_discount).toString()) : 0,
|
|
519
|
+
verificationFeeDiscount: strToU64(a.verification_fee_discount) != null ? Number(strToU64(a.verification_fee_discount).toString()) : 0,
|
|
495
520
|
});
|
|
496
521
|
},
|
|
497
522
|
};
|
|
498
523
|
exports.MsgCancelPermissionVPLastRequestAminoConverter = {
|
|
499
524
|
aminoType: '/verana.perm.v1.MsgCancelPermissionVPLastRequest',
|
|
500
525
|
toAmino: (m) => {
|
|
501
|
-
var _a;
|
|
526
|
+
var _a, _b;
|
|
502
527
|
return clean({
|
|
503
|
-
|
|
528
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
529
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
504
530
|
id: u64ToStr(m.id),
|
|
505
531
|
});
|
|
506
532
|
},
|
|
507
533
|
fromAmino: (a) => {
|
|
508
|
-
var _a;
|
|
534
|
+
var _a, _b;
|
|
509
535
|
return tx_6.MsgCancelPermissionVPLastRequest.fromPartial({
|
|
510
|
-
|
|
536
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
537
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
511
538
|
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
512
539
|
});
|
|
513
540
|
},
|
|
@@ -515,25 +542,112 @@ exports.MsgCancelPermissionVPLastRequestAminoConverter = {
|
|
|
515
542
|
exports.MsgCreateOrUpdatePermissionSessionAminoConverter = {
|
|
516
543
|
aminoType: '/verana.perm.v1.MsgCreateOrUpdatePermissionSession',
|
|
517
544
|
toAmino: (m) => {
|
|
518
|
-
var _a, _b;
|
|
545
|
+
var _a, _b, _c, _d;
|
|
519
546
|
return clean({
|
|
520
|
-
|
|
521
|
-
|
|
547
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
548
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
549
|
+
id: (_c = m.id) !== null && _c !== void 0 ? _c : '',
|
|
522
550
|
issuer_perm_id: u64ToStr(m.issuerPermId),
|
|
523
551
|
verifier_perm_id: u64ToStr(m.verifierPermId),
|
|
524
552
|
agent_perm_id: u64ToStr(m.agentPermId),
|
|
525
553
|
wallet_agent_perm_id: u64ToStr(m.walletAgentPermId),
|
|
554
|
+
digest: (_d = m.digest) !== null && _d !== void 0 ? _d : undefined,
|
|
526
555
|
});
|
|
527
556
|
},
|
|
528
557
|
fromAmino: (a) => {
|
|
529
|
-
var _a, _b;
|
|
558
|
+
var _a, _b, _c, _d;
|
|
530
559
|
return tx_6.MsgCreateOrUpdatePermissionSession.fromPartial({
|
|
531
|
-
|
|
532
|
-
|
|
560
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
561
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
562
|
+
id: (_c = a.id) !== null && _c !== void 0 ? _c : '',
|
|
533
563
|
issuerPermId: strToU64(a.issuer_perm_id) != null ? Number(strToU64(a.issuer_perm_id).toString()) : 0,
|
|
534
564
|
verifierPermId: strToU64(a.verifier_perm_id) != null ? Number(strToU64(a.verifier_perm_id).toString()) : 0,
|
|
535
565
|
agentPermId: strToU64(a.agent_perm_id) != null ? Number(strToU64(a.agent_perm_id).toString()) : 0,
|
|
536
566
|
walletAgentPermId: strToU64(a.wallet_agent_perm_id) != null ? Number(strToU64(a.wallet_agent_perm_id).toString()) : 0,
|
|
567
|
+
digest: (_d = a.digest) !== null && _d !== void 0 ? _d : '',
|
|
568
|
+
});
|
|
569
|
+
},
|
|
570
|
+
};
|
|
571
|
+
exports.MsgSlashPermissionTrustDepositAminoConverter = {
|
|
572
|
+
aminoType: '/verana.perm.v1.MsgSlashPermissionTrustDeposit',
|
|
573
|
+
toAmino: (m) => {
|
|
574
|
+
var _a, _b;
|
|
575
|
+
return clean({
|
|
576
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
577
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
578
|
+
id: u64ToStr(m.id),
|
|
579
|
+
amount: u64ToStr(m.amount),
|
|
580
|
+
});
|
|
581
|
+
},
|
|
582
|
+
fromAmino: (a) => {
|
|
583
|
+
var _a, _b;
|
|
584
|
+
return tx_6.MsgSlashPermissionTrustDeposit.fromPartial({
|
|
585
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
586
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
587
|
+
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
588
|
+
amount: strToU64(a.amount) != null ? Number(strToU64(a.amount).toString()) : 0,
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
};
|
|
592
|
+
exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
|
|
593
|
+
aminoType: '/verana.perm.v1.MsgRepayPermissionSlashedTrustDeposit',
|
|
594
|
+
toAmino: (m) => {
|
|
595
|
+
var _a, _b;
|
|
596
|
+
return clean({
|
|
597
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
598
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
599
|
+
id: u64ToStr(m.id),
|
|
600
|
+
});
|
|
601
|
+
},
|
|
602
|
+
fromAmino: (a) => {
|
|
603
|
+
var _a, _b;
|
|
604
|
+
return tx_6.MsgRepayPermissionSlashedTrustDeposit.fromPartial({
|
|
605
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
606
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
607
|
+
id: strToU64(a.id) != null ? Number(strToU64(a.id).toString()) : 0,
|
|
608
|
+
});
|
|
609
|
+
},
|
|
610
|
+
};
|
|
611
|
+
exports.MsgCreatePermissionAminoConverter = {
|
|
612
|
+
aminoType: '/verana.perm.v1.MsgCreatePermission',
|
|
613
|
+
toAmino: (m) => {
|
|
614
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
615
|
+
return clean({
|
|
616
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : '',
|
|
617
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : '',
|
|
618
|
+
type: (_c = m.type) !== null && _c !== void 0 ? _c : 0,
|
|
619
|
+
validator_perm_id: u64ToStr(m.validatorPermId),
|
|
620
|
+
did: (_d = m.did) !== null && _d !== void 0 ? _d : '',
|
|
621
|
+
effective_from: dateToAmino(m.effectiveFrom),
|
|
622
|
+
effective_until: dateToAmino(m.effectiveUntil),
|
|
623
|
+
verification_fees: u64ToStrIfNonZero(m.verificationFees),
|
|
624
|
+
validation_fees: u64ToStrIfNonZero(m.validationFees),
|
|
625
|
+
vs_operator: m.vsOperator || undefined,
|
|
626
|
+
vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
|
|
627
|
+
vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
|
|
628
|
+
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
629
|
+
vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
|
|
630
|
+
vs_operator_authz_spend_period: (_g = m.vsOperatorAuthzSpendPeriod) !== null && _g !== void 0 ? _g : undefined,
|
|
631
|
+
});
|
|
632
|
+
},
|
|
633
|
+
fromAmino: (a) => {
|
|
634
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
635
|
+
return tx_6.MsgCreatePermission.fromPartial({
|
|
636
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : '',
|
|
637
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : '',
|
|
638
|
+
type: (_c = a.type) !== null && _c !== void 0 ? _c : 0,
|
|
639
|
+
validatorPermId: strToU64(a.validator_perm_id) != null ? Number(strToU64(a.validator_perm_id).toString()) : 0,
|
|
640
|
+
did: (_d = a.did) !== null && _d !== void 0 ? _d : '',
|
|
641
|
+
effectiveFrom: dateFromAmino(a.effective_from),
|
|
642
|
+
effectiveUntil: dateFromAmino(a.effective_until),
|
|
643
|
+
verificationFees: strToU64(a.verification_fees) != null ? Number(strToU64(a.verification_fees).toString()) : 0,
|
|
644
|
+
validationFees: strToU64(a.validation_fees) != null ? Number(strToU64(a.validation_fees).toString()) : 0,
|
|
645
|
+
vsOperator: (_e = a.vs_operator) !== null && _e !== void 0 ? _e : '',
|
|
646
|
+
vsOperatorAuthzEnabled: (_f = a.vs_operator_authz_enabled) !== null && _f !== void 0 ? _f : false,
|
|
647
|
+
vsOperatorAuthzSpendLimit: (_g = a.vs_operator_authz_spend_limit) !== null && _g !== void 0 ? _g : [],
|
|
648
|
+
vsOperatorAuthzWithFeegrant: (_h = a.vs_operator_authz_with_feegrant) !== null && _h !== void 0 ? _h : false,
|
|
649
|
+
vsOperatorAuthzFeeSpendLimit: (_j = a.vs_operator_authz_fee_spend_limit) !== null && _j !== void 0 ? _j : [],
|
|
650
|
+
vsOperatorAuthzSpendPeriod: (_k = a.vs_operator_authz_spend_period) !== null && _k !== void 0 ? _k : undefined,
|
|
537
651
|
});
|
|
538
652
|
},
|
|
539
653
|
};
|
package/package.json
CHANGED