UNPKG

interchainjs

Version:

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

50 lines (49 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setSendEnabled = exports.updateParams = exports.multiSend = exports.send = void 0; const helper_func_types_1 = require("../../../helper-func-types"); const tx_1 = require("./tx"); /** * Send defines a method for sending coins from one account to another account. * @name send * @package cosmos.bank.v1beta1 * @see proto service: cosmos.bank.v1beta1.Send */ exports.send = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgSend }); /** * MultiSend defines a method for sending coins from some accounts to other accounts. * @name multiSend * @package cosmos.bank.v1beta1 * @see proto service: cosmos.bank.v1beta1.MultiSend */ exports.multiSend = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgMultiSend }); /** * UpdateParams defines a governance operation for updating the x/bank module parameters. * The authority is defined in the keeper. * * Since: cosmos-sdk 0.47 * @name updateParams * @package cosmos.bank.v1beta1 * @see proto service: cosmos.bank.v1beta1.UpdateParams */ exports.updateParams = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgUpdateParams }); /** * SetSendEnabled is a governance operation for setting the SendEnabled flag * on any number of Denoms. Only the entries to add or update should be * included. Entries that already exist in the store, but that aren't * included in this message, will be left unchanged. * * Since: cosmos-sdk 0.47 * @name setSendEnabled * @package cosmos.bank.v1beta1 * @see proto service: cosmos.bank.v1beta1.SetSendEnabled */ exports.setSendEnabled = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgSetSendEnabled });