cosmic-interchain-cli
Version:
A command-line utility for Cosmic Wire's interchain messaging protocol
29 lines • 801 B
JavaScript
import { checkMessageStatus } from '../status/message.js';
import { messageOptions } from './send.js';
export const statusCommand = {
command: 'status',
describe: 'Check status of a message',
builder: {
...messageOptions,
id: {
type: 'string',
description: 'Message ID',
},
dispatchTx: {
type: 'string',
description: 'Dispatch transaction hash',
},
},
handler: async ({ context, origin, destination, id, relay, dispatchTx }) => {
await checkMessageStatus({
context,
dispatchTx,
messageId: id,
destination,
origin,
selfRelay: relay,
});
process.exit(0);
},
};
//# sourceMappingURL=status.js.map