interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
33 lines (32 loc) • 1.19 kB
JavaScript
import { buildTx } from "../../../helper-func-types";
import { MsgCreateVestingAccount, MsgCreatePermanentLockedAccount, MsgCreatePeriodicVestingAccount } from "./tx";
/**
* CreateVestingAccount defines a method that enables creating a vesting
* account.
* @name createVestingAccount
* @package cosmos.vesting.v1beta1
* @see proto service: cosmos.vesting.v1beta1.CreateVestingAccount
*/
export const createVestingAccount = buildTx({
msg: MsgCreateVestingAccount
});
/**
* CreatePermanentLockedAccount defines a method that enables creating a permanent
* locked account.
* @name createPermanentLockedAccount
* @package cosmos.vesting.v1beta1
* @see proto service: cosmos.vesting.v1beta1.CreatePermanentLockedAccount
*/
export const createPermanentLockedAccount = buildTx({
msg: MsgCreatePermanentLockedAccount
});
/**
* CreatePeriodicVestingAccount defines a method that enables creating a
* periodic vesting account.
* @name createPeriodicVestingAccount
* @package cosmos.vesting.v1beta1
* @see proto service: cosmos.vesting.v1beta1.CreatePeriodicVestingAccount
*/
export const createPeriodicVestingAccount = buildTx({
msg: MsgCreatePeriodicVestingAccount
});