diff --git a/src/msg/cosmos/index.ts b/src/msg/cosmos/index.ts index 393db31..6a13c75 100644 --- a/src/msg/cosmos/index.ts +++ b/src/msg/cosmos/index.ts @@ -58,6 +58,23 @@ function newMsgVoteGovernance( }; } +export interface Msg { + type: T; + value: V; +} +export type TransferMsg = Msg< + { + source_port: string; + source_channel: string; + token: Coin; + sender: string; + receiver: string; + timeout_height: {}; + timeout_timestamp: string; + }, + 'cosmos-sdk/MsgTransfer' +>; + /** * Creates an IBC transfer * @param {String} sourcePort the port identifier, we would expect to always be "transfer" * @param {String} sourcePort the port identifier, we would expect to always be "transfer" @@ -75,7 +92,7 @@ function newMsgTransfer( sender: string, receiver: string, timeoutTimestamp: number -) { +): TransferMsg { return { type: 'cosmos-sdk/MsgTransfer', value: {