@verana-labs/verana-types 0.10.1-dev.6 → 0.10.1-dev.8
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/amino-converter/cs.d.ts +4 -0
- package/dist/amino-converter/cs.js +96 -0
- package/dist/amino-converter/de.d.ts +3 -0
- package/dist/amino-converter/de.js +51 -0
- package/dist/amino-converter/di.d.ts +2 -0
- package/dist/amino-converter/di.js +21 -0
- package/dist/amino-converter/perm.d.ts +12 -0
- package/dist/amino-converter/perm.js +307 -0
- package/dist/amino-converter/td.d.ts +5 -0
- package/dist/amino-converter/td.js +52 -0
- package/dist/amino-converter/tr.d.ts +6 -0
- package/dist/amino-converter/tr.js +91 -0
- package/dist/amino-converter/util/helpers.d.ts +30 -0
- package/dist/amino-converter/util/helpers.js +88 -0
- package/dist/amino-converter/xr.d.ts +4 -0
- package/dist/amino-converter/xr.js +68 -0
- 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/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 +8 -36
- package/dist/helpers/aminoConverters.js +21 -703
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/dist/signing.d.ts +67 -0
- package/dist/signing.js +124 -0
- package/package.json +31 -5
- 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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AminoConverter } from "@cosmjs/stargate";
|
|
2
|
+
export declare const MsgCreateCredentialSchemaAminoConverter: AminoConverter;
|
|
3
|
+
export declare const MsgUpdateCredentialSchemaAminoConverter: AminoConverter;
|
|
4
|
+
export declare const MsgArchiveCredentialSchemaAminoConverter: AminoConverter;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgArchiveCredentialSchemaAminoConverter = exports.MsgUpdateCredentialSchemaAminoConverter = exports.MsgCreateCredentialSchemaAminoConverter = void 0;
|
|
4
|
+
const tx_1 = require("../codec/verana/cs/v1/tx");
|
|
5
|
+
const helpers_1 = require("./util/helpers");
|
|
6
|
+
exports.MsgCreateCredentialSchemaAminoConverter = {
|
|
7
|
+
aminoType: "/verana.cs.v1.MsgCreateCredentialSchema",
|
|
8
|
+
toAmino: (m) => {
|
|
9
|
+
var _a, _b, _c, _d, _e, _f;
|
|
10
|
+
return (0, helpers_1.clean)({
|
|
11
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
12
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
13
|
+
tr_id: (0, helpers_1.u64ToStr)(m.trId),
|
|
14
|
+
json_schema: (_c = m.jsonSchema) !== null && _c !== void 0 ? _c : "",
|
|
15
|
+
issuer_grantor_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.issuerGrantorValidationValidityPeriod),
|
|
16
|
+
verifier_grantor_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.verifierGrantorValidationValidityPeriod),
|
|
17
|
+
issuer_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.issuerValidationValidityPeriod),
|
|
18
|
+
verifier_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.verifierValidationValidityPeriod),
|
|
19
|
+
holder_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.holderValidationValidityPeriod),
|
|
20
|
+
issuer_perm_management_mode: (0, helpers_1.u32ToAmino)(m.issuerPermManagementMode),
|
|
21
|
+
verifier_perm_management_mode: (0, helpers_1.u32ToAmino)(m.verifierPermManagementMode),
|
|
22
|
+
pricing_asset_type: (_d = m.pricingAssetType) !== null && _d !== void 0 ? _d : 0,
|
|
23
|
+
pricing_asset: (_e = m.pricingAsset) !== null && _e !== void 0 ? _e : "",
|
|
24
|
+
digest_algorithm: (_f = m.digestAlgorithm) !== null && _f !== void 0 ? _f : "",
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
fromAmino: (a) => {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
29
|
+
return tx_1.MsgCreateCredentialSchema.fromPartial({
|
|
30
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
31
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
32
|
+
trId: (0, helpers_1.strToU64)(a.tr_id) != null ? Number((0, helpers_1.strToU64)(a.tr_id).toString()) : 0,
|
|
33
|
+
jsonSchema: (_c = a.json_schema) !== null && _c !== void 0 ? _c : "",
|
|
34
|
+
issuerGrantorValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.issuer_grantor_validation_validity_period),
|
|
35
|
+
verifierGrantorValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.verifier_grantor_validation_validity_period),
|
|
36
|
+
issuerValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.issuer_validation_validity_period),
|
|
37
|
+
verifierValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.verifier_validation_validity_period),
|
|
38
|
+
holderValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.holder_validation_validity_period),
|
|
39
|
+
issuerPermManagementMode: (_d = a.issuer_perm_management_mode) !== null && _d !== void 0 ? _d : 0,
|
|
40
|
+
verifierPermManagementMode: (_e = a.verifier_perm_management_mode) !== null && _e !== void 0 ? _e : 0,
|
|
41
|
+
pricingAssetType: (_f = a.pricing_asset_type) !== null && _f !== void 0 ? _f : 0,
|
|
42
|
+
pricingAsset: (_g = a.pricing_asset) !== null && _g !== void 0 ? _g : "",
|
|
43
|
+
digestAlgorithm: (_h = a.digest_algorithm) !== null && _h !== void 0 ? _h : "",
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
exports.MsgUpdateCredentialSchemaAminoConverter = {
|
|
48
|
+
aminoType: "/verana.cs.v1.MsgUpdateCredentialSchema",
|
|
49
|
+
toAmino: (m) => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return (0, helpers_1.clean)({
|
|
52
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
53
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
54
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
55
|
+
issuer_grantor_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.issuerGrantorValidationValidityPeriod),
|
|
56
|
+
verifier_grantor_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.verifierGrantorValidationValidityPeriod),
|
|
57
|
+
issuer_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.issuerValidationValidityPeriod),
|
|
58
|
+
verifier_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.verifierValidationValidityPeriod),
|
|
59
|
+
holder_validation_validity_period: (0, helpers_1.toOptU32Amino)(m.holderValidationValidityPeriod),
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
fromAmino: (a) => {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
return tx_1.MsgUpdateCredentialSchema.fromPartial({
|
|
65
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
66
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
67
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
68
|
+
issuerGrantorValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.issuer_grantor_validation_validity_period),
|
|
69
|
+
verifierGrantorValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.verifier_grantor_validation_validity_period),
|
|
70
|
+
issuerValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.issuer_validation_validity_period),
|
|
71
|
+
verifierValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.verifier_validation_validity_period),
|
|
72
|
+
holderValidationValidityPeriod: (0, helpers_1.fromOptU32Amino)(a.holder_validation_validity_period),
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
exports.MsgArchiveCredentialSchemaAminoConverter = {
|
|
77
|
+
aminoType: "/verana.cs.v1.MsgArchiveCredentialSchema",
|
|
78
|
+
toAmino: (m) => {
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
return ({
|
|
81
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
82
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
83
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
84
|
+
archive: (_c = m.archive) !== null && _c !== void 0 ? _c : false,
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
fromAmino: (a) => {
|
|
88
|
+
var _a;
|
|
89
|
+
return tx_1.MsgArchiveCredentialSchema.fromPartial({
|
|
90
|
+
authority: a.authority,
|
|
91
|
+
operator: a.operator,
|
|
92
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
93
|
+
archive: (_a = a.archive) !== null && _a !== void 0 ? _a : false,
|
|
94
|
+
});
|
|
95
|
+
},
|
|
96
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgRevokeOperatorAuthorizationAminoConverter = exports.MsgGrantOperatorAuthorizationAminoConverter = void 0;
|
|
4
|
+
const tx_1 = require("../codec/verana/de/v1/tx");
|
|
5
|
+
const helpers_1 = require("./util/helpers");
|
|
6
|
+
exports.MsgGrantOperatorAuthorizationAminoConverter = {
|
|
7
|
+
aminoType: "/verana.de.v1.MsgGrantOperatorAuthorization",
|
|
8
|
+
toAmino: (m) => {
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
return (0, helpers_1.clean)({
|
|
11
|
+
authority: m.authority || undefined,
|
|
12
|
+
operator: m.operator || undefined,
|
|
13
|
+
grantee: m.grantee || undefined,
|
|
14
|
+
msg_types: ((_a = m.msgTypes) === null || _a === void 0 ? void 0 : _a.length) ? m.msgTypes : undefined,
|
|
15
|
+
expiration: (0, helpers_1.dateToIsoAmino)(m.expiration),
|
|
16
|
+
authz_spend_limit: ((_b = m.authzSpendLimit) === null || _b === void 0 ? void 0 : _b.length) ? m.authzSpendLimit : undefined,
|
|
17
|
+
authz_spend_limit_period: (0, helpers_1.durationToAmino)(m.authzSpendLimitPeriod),
|
|
18
|
+
with_feegrant: m.withFeegrant || undefined,
|
|
19
|
+
feegrant_spend_limit: ((_c = m.feegrantSpendLimit) === null || _c === void 0 ? void 0 : _c.length) ? m.feegrantSpendLimit : undefined,
|
|
20
|
+
feegrant_spend_limit_period: (0, helpers_1.durationToAmino)(m.feegrantSpendLimitPeriod),
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
fromAmino: (a) => {
|
|
24
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
25
|
+
return tx_1.MsgGrantOperatorAuthorization.fromPartial({
|
|
26
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
27
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
28
|
+
grantee: (_c = a.grantee) !== null && _c !== void 0 ? _c : "",
|
|
29
|
+
msgTypes: (_d = a.msg_types) !== null && _d !== void 0 ? _d : [],
|
|
30
|
+
expiration: (0, helpers_1.isoToDate)(a.expiration),
|
|
31
|
+
authzSpendLimit: (_e = a.authz_spend_limit) !== null && _e !== void 0 ? _e : [],
|
|
32
|
+
authzSpendLimitPeriod: (0, helpers_1.aminoToDuration)(a.authz_spend_limit_period),
|
|
33
|
+
withFeegrant: (_f = a.with_feegrant) !== null && _f !== void 0 ? _f : false,
|
|
34
|
+
feegrantSpendLimit: (_g = a.feegrant_spend_limit) !== null && _g !== void 0 ? _g : [],
|
|
35
|
+
feegrantSpendLimitPeriod: (0, helpers_1.aminoToDuration)(a.feegrant_spend_limit_period),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
exports.MsgRevokeOperatorAuthorizationAminoConverter = {
|
|
40
|
+
aminoType: "/verana.de.v1.MsgRevokeOperatorAuthorization",
|
|
41
|
+
toAmino: ({ authority, operator, grantee }) => (0, helpers_1.clean)({
|
|
42
|
+
authority: authority || undefined,
|
|
43
|
+
operator: operator || undefined,
|
|
44
|
+
grantee: grantee || undefined,
|
|
45
|
+
}),
|
|
46
|
+
fromAmino: (value) => tx_1.MsgRevokeOperatorAuthorization.fromPartial({
|
|
47
|
+
authority: value.authority,
|
|
48
|
+
operator: value.operator,
|
|
49
|
+
grantee: value.grantee,
|
|
50
|
+
}),
|
|
51
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgStoreDigestAminoConverter = void 0;
|
|
4
|
+
const tx_1 = require("../codec/verana/di/v1/tx");
|
|
5
|
+
const helpers_1 = require("./util/helpers");
|
|
6
|
+
exports.MsgStoreDigestAminoConverter = {
|
|
7
|
+
aminoType: "/verana.di.v1.MsgStoreDigest",
|
|
8
|
+
toAmino: (m) => (0, helpers_1.clean)({
|
|
9
|
+
authority: m.authority || undefined,
|
|
10
|
+
operator: m.operator || undefined,
|
|
11
|
+
digest: m.digest || undefined,
|
|
12
|
+
}),
|
|
13
|
+
fromAmino: (a) => {
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
return tx_1.MsgStoreDigest.fromPartial({
|
|
16
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
17
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
18
|
+
digest: (_c = a.digest) !== null && _c !== void 0 ? _c : "",
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AminoConverter } from "@cosmjs/stargate";
|
|
2
|
+
export declare const MsgCreateRootPermissionAminoConverter: AminoConverter;
|
|
3
|
+
export declare const MsgAdjustPermissionAminoConverter: AminoConverter;
|
|
4
|
+
export declare const MsgRevokePermissionAminoConverter: AminoConverter;
|
|
5
|
+
export declare const MsgStartPermissionVPAminoConverter: AminoConverter;
|
|
6
|
+
export declare const MsgRenewPermissionVPAminoConverter: AminoConverter;
|
|
7
|
+
export declare const MsgSetPermissionVPToValidatedAminoConverter: AminoConverter;
|
|
8
|
+
export declare const MsgCancelPermissionVPLastRequestAminoConverter: AminoConverter;
|
|
9
|
+
export declare const MsgCreateOrUpdatePermissionSessionAminoConverter: AminoConverter;
|
|
10
|
+
export declare const MsgSlashPermissionTrustDepositAminoConverter: AminoConverter;
|
|
11
|
+
export declare const MsgRepayPermissionSlashedTrustDepositAminoConverter: AminoConverter;
|
|
12
|
+
export declare const MsgCreatePermissionAminoConverter: AminoConverter;
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgCreatePermissionAminoConverter = exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = exports.MsgSlashPermissionTrustDepositAminoConverter = exports.MsgCreateOrUpdatePermissionSessionAminoConverter = exports.MsgCancelPermissionVPLastRequestAminoConverter = exports.MsgSetPermissionVPToValidatedAminoConverter = exports.MsgRenewPermissionVPAminoConverter = exports.MsgStartPermissionVPAminoConverter = exports.MsgRevokePermissionAminoConverter = exports.MsgAdjustPermissionAminoConverter = exports.MsgCreateRootPermissionAminoConverter = void 0;
|
|
4
|
+
const tx_1 = require("../codec/verana/perm/v1/tx");
|
|
5
|
+
const types_1 = require("../codec/verana/perm/v1/types");
|
|
6
|
+
const helpers_1 = require("./util/helpers");
|
|
7
|
+
exports.MsgCreateRootPermissionAminoConverter = {
|
|
8
|
+
aminoType: "/verana.perm.v1.MsgCreateRootPermission",
|
|
9
|
+
toAmino: (m) => {
|
|
10
|
+
var _a, _b, _c;
|
|
11
|
+
return (0, helpers_1.clean)({
|
|
12
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
13
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
14
|
+
schema_id: (0, helpers_1.u64ToStr)(m.schemaId),
|
|
15
|
+
did: (_c = m.did) !== null && _c !== void 0 ? _c : "",
|
|
16
|
+
effective_from: (0, helpers_1.dateToIsoAmino)(m.effectiveFrom),
|
|
17
|
+
effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
|
|
18
|
+
validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
|
|
19
|
+
issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
|
|
20
|
+
verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
fromAmino: (a) => {
|
|
24
|
+
var _a, _b, _c;
|
|
25
|
+
return tx_1.MsgCreateRootPermission.fromPartial({
|
|
26
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
27
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
28
|
+
schemaId: (0, helpers_1.strToU64)(a.schema_id) != null ? Number((0, helpers_1.strToU64)(a.schema_id).toString()) : 0,
|
|
29
|
+
did: (_c = a.did) !== null && _c !== void 0 ? _c : "",
|
|
30
|
+
effectiveFrom: (0, helpers_1.isoToDate)(a.effective_from),
|
|
31
|
+
effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
|
|
32
|
+
validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
|
|
33
|
+
issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
|
|
34
|
+
verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
exports.MsgAdjustPermissionAminoConverter = {
|
|
39
|
+
aminoType: "/verana.perm.v1.MsgAdjustPermission",
|
|
40
|
+
toAmino: (m) => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return (0, helpers_1.clean)({
|
|
43
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
44
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
45
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
46
|
+
effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
fromAmino: (a) => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
return tx_1.MsgAdjustPermission.fromPartial({
|
|
52
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
53
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
54
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
55
|
+
effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
exports.MsgRevokePermissionAminoConverter = {
|
|
60
|
+
aminoType: "/verana.perm.v1.MsgRevokePermission",
|
|
61
|
+
toAmino: (m) => {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
return (0, helpers_1.clean)({
|
|
64
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
65
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
66
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
fromAmino: (a) => {
|
|
70
|
+
var _a, _b;
|
|
71
|
+
return tx_1.MsgRevokePermission.fromPartial({
|
|
72
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
73
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
74
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
exports.MsgStartPermissionVPAminoConverter = {
|
|
79
|
+
aminoType: "/verana.perm.v1.MsgStartPermissionVP",
|
|
80
|
+
toAmino: (m) => {
|
|
81
|
+
var _a, _b, _c, _d, _e, _f;
|
|
82
|
+
return (0, helpers_1.clean)({
|
|
83
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
84
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
85
|
+
type: (_c = m.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
|
|
86
|
+
validator_perm_id: (0, helpers_1.u64ToStr)(m.validatorPermId),
|
|
87
|
+
did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
|
|
88
|
+
validation_fees: m.validationFees ? { value: (0, helpers_1.u64ToStr)(m.validationFees.value) } : undefined,
|
|
89
|
+
issuance_fees: m.issuanceFees ? { value: (0, helpers_1.u64ToStr)(m.issuanceFees.value) } : undefined,
|
|
90
|
+
verification_fees: m.verificationFees ? { value: (0, helpers_1.u64ToStr)(m.verificationFees.value) } : undefined,
|
|
91
|
+
vs_operator: m.vsOperator || undefined,
|
|
92
|
+
vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
|
|
93
|
+
vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
|
|
94
|
+
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
95
|
+
vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
|
|
96
|
+
vs_operator_authz_spend_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzSpendPeriod),
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
fromAmino: (a) => {
|
|
100
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
101
|
+
return tx_1.MsgStartPermissionVP.fromPartial({
|
|
102
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
103
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
104
|
+
type: (_c = a.type) !== null && _c !== void 0 ? _c : types_1.PermissionType.UNSPECIFIED,
|
|
105
|
+
validatorPermId: (0, helpers_1.strToU64)(a.validator_perm_id) != null ? Number((0, helpers_1.strToU64)(a.validator_perm_id).toString()) : 0,
|
|
106
|
+
did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
|
|
107
|
+
validationFees: a.validation_fees ? { value: Number((_e = a.validation_fees.value) !== null && _e !== void 0 ? _e : a.validation_fees) } : undefined,
|
|
108
|
+
issuanceFees: a.issuance_fees ? { value: Number((_f = a.issuance_fees.value) !== null && _f !== void 0 ? _f : a.issuance_fees) } : undefined,
|
|
109
|
+
verificationFees: a.verification_fees ? { value: Number((_g = a.verification_fees.value) !== null && _g !== void 0 ? _g : a.verification_fees) } : undefined,
|
|
110
|
+
vsOperator: (_h = a.vs_operator) !== null && _h !== void 0 ? _h : "",
|
|
111
|
+
vsOperatorAuthzEnabled: (_j = a.vs_operator_authz_enabled) !== null && _j !== void 0 ? _j : false,
|
|
112
|
+
vsOperatorAuthzSpendLimit: (_k = a.vs_operator_authz_spend_limit) !== null && _k !== void 0 ? _k : [],
|
|
113
|
+
vsOperatorAuthzWithFeegrant: (_l = a.vs_operator_authz_with_feegrant) !== null && _l !== void 0 ? _l : false,
|
|
114
|
+
vsOperatorAuthzFeeSpendLimit: (_m = a.vs_operator_authz_fee_spend_limit) !== null && _m !== void 0 ? _m : [],
|
|
115
|
+
vsOperatorAuthzSpendPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_spend_period),
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
exports.MsgRenewPermissionVPAminoConverter = {
|
|
120
|
+
aminoType: "/verana.perm.v1.MsgRenewPermissionVP",
|
|
121
|
+
toAmino: (m) => {
|
|
122
|
+
var _a, _b;
|
|
123
|
+
return (0, helpers_1.clean)({
|
|
124
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
125
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
126
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
fromAmino: (a) => {
|
|
130
|
+
var _a, _b;
|
|
131
|
+
return tx_1.MsgRenewPermissionVP.fromPartial({
|
|
132
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
133
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
134
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
exports.MsgSetPermissionVPToValidatedAminoConverter = {
|
|
139
|
+
aminoType: "/verana.perm.v1.MsgSetPermissionVPToValidated",
|
|
140
|
+
toAmino: (m) => {
|
|
141
|
+
var _a, _b, _c;
|
|
142
|
+
return (0, helpers_1.clean)({
|
|
143
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
144
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
145
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
146
|
+
effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
|
|
147
|
+
validation_fees: (0, helpers_1.u64ToStr)(m.validationFees),
|
|
148
|
+
issuance_fees: (0, helpers_1.u64ToStr)(m.issuanceFees),
|
|
149
|
+
verification_fees: (0, helpers_1.u64ToStr)(m.verificationFees),
|
|
150
|
+
vp_summary_digest_sri: (_c = m.vpSummaryDigestSri) !== null && _c !== void 0 ? _c : "",
|
|
151
|
+
issuance_fee_discount: (0, helpers_1.u64ToStr)(m.issuanceFeeDiscount),
|
|
152
|
+
verification_fee_discount: (0, helpers_1.u64ToStr)(m.verificationFeeDiscount),
|
|
153
|
+
});
|
|
154
|
+
},
|
|
155
|
+
fromAmino: (a) => {
|
|
156
|
+
var _a, _b, _c;
|
|
157
|
+
return tx_1.MsgSetPermissionVPToValidated.fromPartial({
|
|
158
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
159
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
160
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
161
|
+
effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
|
|
162
|
+
validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
|
|
163
|
+
issuanceFees: (0, helpers_1.strToU64)(a.issuance_fees) != null ? Number((0, helpers_1.strToU64)(a.issuance_fees).toString()) : 0,
|
|
164
|
+
verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
|
|
165
|
+
vpSummaryDigestSri: (_c = a.vp_summary_digest_sri) !== null && _c !== void 0 ? _c : "",
|
|
166
|
+
issuanceFeeDiscount: (0, helpers_1.strToU64)(a.issuance_fee_discount) != null
|
|
167
|
+
? Number((0, helpers_1.strToU64)(a.issuance_fee_discount).toString())
|
|
168
|
+
: 0,
|
|
169
|
+
verificationFeeDiscount: (0, helpers_1.strToU64)(a.verification_fee_discount) != null
|
|
170
|
+
? Number((0, helpers_1.strToU64)(a.verification_fee_discount).toString())
|
|
171
|
+
: 0,
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
exports.MsgCancelPermissionVPLastRequestAminoConverter = {
|
|
176
|
+
aminoType: "/verana.perm.v1.MsgCancelPermissionVPLastRequest",
|
|
177
|
+
toAmino: (m) => {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
return (0, helpers_1.clean)({
|
|
180
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
181
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
182
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
183
|
+
});
|
|
184
|
+
},
|
|
185
|
+
fromAmino: (a) => {
|
|
186
|
+
var _a, _b;
|
|
187
|
+
return tx_1.MsgCancelPermissionVPLastRequest.fromPartial({
|
|
188
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
189
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
190
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
exports.MsgCreateOrUpdatePermissionSessionAminoConverter = {
|
|
195
|
+
aminoType: "/verana.perm.v1.MsgCreateOrUpdatePermissionSession",
|
|
196
|
+
toAmino: (m) => {
|
|
197
|
+
var _a, _b, _c, _d;
|
|
198
|
+
return (0, helpers_1.clean)({
|
|
199
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
200
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
201
|
+
id: (_c = m.id) !== null && _c !== void 0 ? _c : "",
|
|
202
|
+
issuer_perm_id: (0, helpers_1.u64ToStr)(m.issuerPermId),
|
|
203
|
+
verifier_perm_id: (0, helpers_1.u64ToStr)(m.verifierPermId),
|
|
204
|
+
agent_perm_id: (0, helpers_1.u64ToStr)(m.agentPermId),
|
|
205
|
+
wallet_agent_perm_id: (0, helpers_1.u64ToStr)(m.walletAgentPermId),
|
|
206
|
+
digest: (_d = m.digest) !== null && _d !== void 0 ? _d : undefined,
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
fromAmino: (a) => {
|
|
210
|
+
var _a, _b, _c, _d;
|
|
211
|
+
return tx_1.MsgCreateOrUpdatePermissionSession.fromPartial({
|
|
212
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
213
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
214
|
+
id: (_c = a.id) !== null && _c !== void 0 ? _c : "",
|
|
215
|
+
issuerPermId: (0, helpers_1.strToU64)(a.issuer_perm_id) != null ? Number((0, helpers_1.strToU64)(a.issuer_perm_id).toString()) : 0,
|
|
216
|
+
verifierPermId: (0, helpers_1.strToU64)(a.verifier_perm_id) != null ? Number((0, helpers_1.strToU64)(a.verifier_perm_id).toString()) : 0,
|
|
217
|
+
agentPermId: (0, helpers_1.strToU64)(a.agent_perm_id) != null ? Number((0, helpers_1.strToU64)(a.agent_perm_id).toString()) : 0,
|
|
218
|
+
walletAgentPermId: (0, helpers_1.strToU64)(a.wallet_agent_perm_id) != null
|
|
219
|
+
? Number((0, helpers_1.strToU64)(a.wallet_agent_perm_id).toString())
|
|
220
|
+
: 0,
|
|
221
|
+
digest: (_d = a.digest) !== null && _d !== void 0 ? _d : "",
|
|
222
|
+
});
|
|
223
|
+
},
|
|
224
|
+
};
|
|
225
|
+
exports.MsgSlashPermissionTrustDepositAminoConverter = {
|
|
226
|
+
aminoType: "/verana.perm.v1.MsgSlashPermissionTrustDeposit",
|
|
227
|
+
toAmino: (m) => {
|
|
228
|
+
var _a, _b;
|
|
229
|
+
return (0, helpers_1.clean)({
|
|
230
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
231
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
232
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
233
|
+
amount: (0, helpers_1.u64ToStr)(m.amount),
|
|
234
|
+
});
|
|
235
|
+
},
|
|
236
|
+
fromAmino: (a) => {
|
|
237
|
+
var _a, _b;
|
|
238
|
+
return tx_1.MsgSlashPermissionTrustDeposit.fromPartial({
|
|
239
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
240
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
241
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
242
|
+
amount: (0, helpers_1.strToU64)(a.amount) != null ? Number((0, helpers_1.strToU64)(a.amount).toString()) : 0,
|
|
243
|
+
});
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
exports.MsgRepayPermissionSlashedTrustDepositAminoConverter = {
|
|
247
|
+
aminoType: "/verana.perm.v1.MsgRepayPermissionSlashedTrustDeposit",
|
|
248
|
+
toAmino: (m) => {
|
|
249
|
+
var _a, _b;
|
|
250
|
+
return (0, helpers_1.clean)({
|
|
251
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
252
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
253
|
+
id: (0, helpers_1.u64ToStr)(m.id),
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
fromAmino: (a) => {
|
|
257
|
+
var _a, _b;
|
|
258
|
+
return tx_1.MsgRepayPermissionSlashedTrustDeposit.fromPartial({
|
|
259
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
260
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
261
|
+
id: (0, helpers_1.strToU64)(a.id) != null ? Number((0, helpers_1.strToU64)(a.id).toString()) : 0,
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
};
|
|
265
|
+
exports.MsgCreatePermissionAminoConverter = {
|
|
266
|
+
aminoType: "/verana.perm.v1.MsgCreatePermission",
|
|
267
|
+
toAmino: (m) => {
|
|
268
|
+
var _a, _b, _c, _d, _e, _f;
|
|
269
|
+
return (0, helpers_1.clean)({
|
|
270
|
+
authority: (_a = m.authority) !== null && _a !== void 0 ? _a : "",
|
|
271
|
+
operator: (_b = m.operator) !== null && _b !== void 0 ? _b : "",
|
|
272
|
+
type: (_c = m.type) !== null && _c !== void 0 ? _c : 0,
|
|
273
|
+
validator_perm_id: (0, helpers_1.u64ToStr)(m.validatorPermId),
|
|
274
|
+
did: (_d = m.did) !== null && _d !== void 0 ? _d : "",
|
|
275
|
+
effective_from: (0, helpers_1.dateToIsoAmino)(m.effectiveFrom),
|
|
276
|
+
effective_until: (0, helpers_1.dateToIsoAmino)(m.effectiveUntil),
|
|
277
|
+
verification_fees: (0, helpers_1.u64ToStrIfNonZero)(m.verificationFees),
|
|
278
|
+
validation_fees: (0, helpers_1.u64ToStrIfNonZero)(m.validationFees),
|
|
279
|
+
vs_operator: m.vsOperator || undefined,
|
|
280
|
+
vs_operator_authz_enabled: m.vsOperatorAuthzEnabled || undefined,
|
|
281
|
+
vs_operator_authz_spend_limit: (_e = m.vsOperatorAuthzSpendLimit) !== null && _e !== void 0 ? _e : [],
|
|
282
|
+
vs_operator_authz_with_feegrant: m.vsOperatorAuthzWithFeegrant || undefined,
|
|
283
|
+
vs_operator_authz_fee_spend_limit: (_f = m.vsOperatorAuthzFeeSpendLimit) !== null && _f !== void 0 ? _f : [],
|
|
284
|
+
vs_operator_authz_spend_period: (0, helpers_1.durationToAmino)(m.vsOperatorAuthzSpendPeriod),
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
fromAmino: (a) => {
|
|
288
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
289
|
+
return tx_1.MsgCreatePermission.fromPartial({
|
|
290
|
+
authority: (_a = a.authority) !== null && _a !== void 0 ? _a : "",
|
|
291
|
+
operator: (_b = a.operator) !== null && _b !== void 0 ? _b : "",
|
|
292
|
+
type: (_c = a.type) !== null && _c !== void 0 ? _c : 0,
|
|
293
|
+
validatorPermId: (0, helpers_1.strToU64)(a.validator_perm_id) != null ? Number((0, helpers_1.strToU64)(a.validator_perm_id).toString()) : 0,
|
|
294
|
+
did: (_d = a.did) !== null && _d !== void 0 ? _d : "",
|
|
295
|
+
effectiveFrom: (0, helpers_1.isoToDate)(a.effective_from),
|
|
296
|
+
effectiveUntil: (0, helpers_1.isoToDate)(a.effective_until),
|
|
297
|
+
verificationFees: (0, helpers_1.strToU64)(a.verification_fees) != null ? Number((0, helpers_1.strToU64)(a.verification_fees).toString()) : 0,
|
|
298
|
+
validationFees: (0, helpers_1.strToU64)(a.validation_fees) != null ? Number((0, helpers_1.strToU64)(a.validation_fees).toString()) : 0,
|
|
299
|
+
vsOperator: (_e = a.vs_operator) !== null && _e !== void 0 ? _e : "",
|
|
300
|
+
vsOperatorAuthzEnabled: (_f = a.vs_operator_authz_enabled) !== null && _f !== void 0 ? _f : false,
|
|
301
|
+
vsOperatorAuthzSpendLimit: (_g = a.vs_operator_authz_spend_limit) !== null && _g !== void 0 ? _g : [],
|
|
302
|
+
vsOperatorAuthzWithFeegrant: (_h = a.vs_operator_authz_with_feegrant) !== null && _h !== void 0 ? _h : false,
|
|
303
|
+
vsOperatorAuthzFeeSpendLimit: (_j = a.vs_operator_authz_fee_spend_limit) !== null && _j !== void 0 ? _j : [],
|
|
304
|
+
vsOperatorAuthzSpendPeriod: (0, helpers_1.aminoToDuration)(a.vs_operator_authz_spend_period),
|
|
305
|
+
});
|
|
306
|
+
},
|
|
307
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AminoConverter } from "@cosmjs/stargate";
|
|
2
|
+
export declare const MsgReclaimTrustDepositAminoConverter: AminoConverter;
|
|
3
|
+
export declare const MsgReclaimTrustDepositYieldAminoConverter: AminoConverter;
|
|
4
|
+
export declare const MsgRepaySlashedTrustDepositAminoConverter: AminoConverter;
|
|
5
|
+
export declare const MsgSlashTrustDepositAminoConverter: AminoConverter;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MsgSlashTrustDepositAminoConverter = exports.MsgRepaySlashedTrustDepositAminoConverter = exports.MsgReclaimTrustDepositYieldAminoConverter = exports.MsgReclaimTrustDepositAminoConverter = void 0;
|
|
4
|
+
const tx_1 = require("../codec/verana/td/v1/tx");
|
|
5
|
+
exports.MsgReclaimTrustDepositAminoConverter = {
|
|
6
|
+
aminoType: "/verana.td.v1.MsgReclaimTrustDeposit",
|
|
7
|
+
toAmino: ({ creator, claimed }) => ({
|
|
8
|
+
creator,
|
|
9
|
+
claimed: claimed != null ? claimed.toString() : undefined,
|
|
10
|
+
}),
|
|
11
|
+
fromAmino: (value) => tx_1.MsgReclaimTrustDeposit.fromPartial({
|
|
12
|
+
creator: value.creator,
|
|
13
|
+
claimed: value.claimed != null ? Number(value.claimed) : 0,
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
16
|
+
exports.MsgReclaimTrustDepositYieldAminoConverter = {
|
|
17
|
+
aminoType: "/verana.td.v1.MsgReclaimTrustDepositYield",
|
|
18
|
+
toAmino: ({ authority, operator }) => ({
|
|
19
|
+
authority,
|
|
20
|
+
operator,
|
|
21
|
+
}),
|
|
22
|
+
fromAmino: (value) => tx_1.MsgReclaimTrustDepositYield.fromPartial({
|
|
23
|
+
authority: value.authority,
|
|
24
|
+
operator: value.operator,
|
|
25
|
+
}),
|
|
26
|
+
};
|
|
27
|
+
exports.MsgRepaySlashedTrustDepositAminoConverter = {
|
|
28
|
+
aminoType: "/verana.td.v1.MsgRepaySlashedTrustDeposit",
|
|
29
|
+
toAmino: ({ authority, operator, amount }) => ({
|
|
30
|
+
authority,
|
|
31
|
+
operator,
|
|
32
|
+
amount: amount != null ? amount.toString() : undefined,
|
|
33
|
+
}),
|
|
34
|
+
fromAmino: (value) => tx_1.MsgRepaySlashedTrustDeposit.fromPartial({
|
|
35
|
+
authority: value.authority,
|
|
36
|
+
operator: value.operator,
|
|
37
|
+
amount: value.amount != null ? Number(value.amount) : 0,
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
exports.MsgSlashTrustDepositAminoConverter = {
|
|
41
|
+
aminoType: "/verana.td.v1.MsgSlashTrustDeposit",
|
|
42
|
+
toAmino: ({ authority, account, amount }) => ({
|
|
43
|
+
authority,
|
|
44
|
+
account,
|
|
45
|
+
amount,
|
|
46
|
+
}),
|
|
47
|
+
fromAmino: (value) => tx_1.MsgSlashTrustDeposit.fromPartial({
|
|
48
|
+
authority: value.authority,
|
|
49
|
+
account: value.account,
|
|
50
|
+
amount: value.amount,
|
|
51
|
+
}),
|
|
52
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AminoConverter } from "@cosmjs/stargate";
|
|
2
|
+
export declare const MsgCreateTrustRegistryAminoConverter: AminoConverter;
|
|
3
|
+
export declare const MsgUpdateTrustRegistryAminoConverter: AminoConverter;
|
|
4
|
+
export declare const MsgArchiveTrustRegistryAminoConverter: AminoConverter;
|
|
5
|
+
export declare const MsgAddGovernanceFrameworkDocumentAminoConverter: AminoConverter;
|
|
6
|
+
export declare const MsgIncreaseActiveGovernanceFrameworkVersionAminoConverter: AminoConverter;
|