UNPKG

interchainjs

Version:

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

37 lines (36 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pruneAllowances = exports.revokeAllowance = exports.grantAllowance = void 0; const helper_func_types_1 = require("../../../helper-func-types"); const tx_1 = require("./tx"); /** * GrantAllowance grants fee allowance to the grantee on the granter's * account with the provided expiration time. * @name grantAllowance * @package cosmos.feegrant.v1beta1 * @see proto service: cosmos.feegrant.v1beta1.GrantAllowance */ exports.grantAllowance = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgGrantAllowance }); /** * RevokeAllowance revokes any fee allowance of granter's account that * has been granted to the grantee. * @name revokeAllowance * @package cosmos.feegrant.v1beta1 * @see proto service: cosmos.feegrant.v1beta1.RevokeAllowance */ exports.revokeAllowance = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgRevokeAllowance }); /** * PruneAllowances prunes expired fee allowances, currently up to 75 at a time. * * Since cosmos-sdk 0.50 * @name pruneAllowances * @package cosmos.feegrant.v1beta1 * @see proto service: cosmos.feegrant.v1beta1.PruneAllowances */ exports.pruneAllowances = (0, helper_func_types_1.buildTx)({ msg: tx_1.MsgPruneAllowances });