interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
94 lines (93 loc) • 2.92 kB
JavaScript
import { buildTx } from "../../../../helper-func-types";
import { MsgChannelOpenInit, MsgChannelOpenTry, MsgChannelOpenAck, MsgChannelOpenConfirm, MsgChannelCloseInit, MsgChannelCloseConfirm, MsgRecvPacket, MsgTimeout, MsgTimeoutOnClose, MsgAcknowledgement } from "./tx";
/**
* ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit.
* @name channelOpenInit
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelOpenInit
*/
export const channelOpenInit = buildTx({
msg: MsgChannelOpenInit
});
/**
* ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry.
* @name channelOpenTry
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelOpenTry
*/
export const channelOpenTry = buildTx({
msg: MsgChannelOpenTry
});
/**
* ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck.
* @name channelOpenAck
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelOpenAck
*/
export const channelOpenAck = buildTx({
msg: MsgChannelOpenAck
});
/**
* ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm.
* @name channelOpenConfirm
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelOpenConfirm
*/
export const channelOpenConfirm = buildTx({
msg: MsgChannelOpenConfirm
});
/**
* ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit.
* @name channelCloseInit
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelCloseInit
*/
export const channelCloseInit = buildTx({
msg: MsgChannelCloseInit
});
/**
* ChannelCloseConfirm defines a rpc handler method for
* MsgChannelCloseConfirm.
* @name channelCloseConfirm
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.ChannelCloseConfirm
*/
export const channelCloseConfirm = buildTx({
msg: MsgChannelCloseConfirm
});
/**
* RecvPacket defines a rpc handler method for MsgRecvPacket.
* @name recvPacket
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.RecvPacket
*/
export const recvPacket = buildTx({
msg: MsgRecvPacket
});
/**
* Timeout defines a rpc handler method for MsgTimeout.
* @name timeout
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.Timeout
*/
export const timeout = buildTx({
msg: MsgTimeout
});
/**
* TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose.
* @name timeoutOnClose
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.TimeoutOnClose
*/
export const timeoutOnClose = buildTx({
msg: MsgTimeoutOnClose
});
/**
* Acknowledgement defines a rpc handler method for MsgAcknowledgement.
* @name acknowledgement
* @package ibc.core.channel.v1
* @see proto service: ibc.core.channel.v1.Acknowledgement
*/
export const acknowledgement = buildTx({
msg: MsgAcknowledgement
});