UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

68 lines (67 loc) 2.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageComposer = exports.registry = void 0; const tx_1 = require("./tx"); exports.registry = [["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", tx_1.MsgCreateVestingAccount], ["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", tx_1.MsgCreatePermanentLockedAccount], ["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", tx_1.MsgCreatePeriodicVestingAccount]]; exports.MessageComposer = { encoded: { createVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: tx_1.MsgCreateVestingAccount.encode(value).finish() }; }, createPermanentLockedAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: tx_1.MsgCreatePermanentLockedAccount.encode(value).finish() }; }, createPeriodicVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: tx_1.MsgCreatePeriodicVestingAccount.encode(value).finish() }; } }, withTypeUrl: { createVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value }; }, createPermanentLockedAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value }; }, createPeriodicVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value }; } }, fromPartial: { createVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: tx_1.MsgCreateVestingAccount.fromPartial(value) }; }, createPermanentLockedAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: tx_1.MsgCreatePermanentLockedAccount.fromPartial(value) }; }, createPeriodicVestingAccount(value) { return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: tx_1.MsgCreatePeriodicVestingAccount.fromPartial(value) }; } } };