interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
56 lines (55 loc) • 2.95 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.payPacketFeeAsync = exports.payPacketFee = exports.registerCounterpartyPayee = exports.registerPayee = void 0;
const helper_func_types_1 = require("../../../../helper-func-types");
const tx_1 = require("./tx");
/**
* RegisterPayee defines a rpc handler method for MsgRegisterPayee
* RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional
* payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on
* the source chain from which packets originate as this is where fee distribution takes place. This function may be
* called more than once by a relayer, in which case, the latest payee is always used.
* @name registerPayee
* @package ibc.applications.fee.v1
* @see proto service: ibc.applications.fee.v1.RegisterPayee
*/
exports.registerPayee = (0, helper_func_types_1.buildTx)({
msg: tx_1.MsgRegisterPayee
});
/**
* RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee
* RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty
* payee address before relaying. This ensures they will be properly compensated for forward relaying since
* the destination chain must include the registered counterparty payee address in the acknowledgement. This function
* may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.
* @name registerCounterpartyPayee
* @package ibc.applications.fee.v1
* @see proto service: ibc.applications.fee.v1.RegisterCounterpartyPayee
*/
exports.registerCounterpartyPayee = (0, helper_func_types_1.buildTx)({
msg: tx_1.MsgRegisterCounterpartyPayee
});
/**
* PayPacketFee defines a rpc handler method for MsgPayPacketFee
* PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to
* incentivize the relaying of the packet at the next sequence
* NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows
* initiates the lifecycle of the incentivized packet
* @name payPacketFee
* @package ibc.applications.fee.v1
* @see proto service: ibc.applications.fee.v1.PayPacketFee
*/
exports.payPacketFee = (0, helper_func_types_1.buildTx)({
msg: tx_1.MsgPayPacketFee
});
/**
* PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync
* PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to
* incentivize the relaying of a known packet (i.e. at a particular sequence)
* @name payPacketFeeAsync
* @package ibc.applications.fee.v1
* @see proto service: ibc.applications.fee.v1.PayPacketFeeAsync
*/
exports.payPacketFeeAsync = (0, helper_func_types_1.buildTx)({
msg: tx_1.MsgPayPacketFeeAsync
});