@hyperlane-xyz/cli
Version:
A command-line utility for common Hyperlane operations
28 lines • 978 B
JavaScript
// Commands that send tx and require a key to sign.
// It's useful to have this listed here so the context
// middleware can request keys up front when required.
export const SIGN_COMMANDS = [
'apply',
'deploy',
'send',
'status',
'submit',
'relayer',
];
export function isSignCommand(argv) {
return (SIGN_COMMANDS.includes(argv._[0]) ||
(argv._.length > 1 && SIGN_COMMANDS.includes(argv._[1])));
}
export var CommandType;
(function (CommandType) {
CommandType["WARP_DEPLOY"] = "warp:deploy";
CommandType["WARP_SEND"] = "warp:send";
CommandType["WARP_APPLY"] = "warp:apply";
CommandType["SEND_MESSAGE"] = "send:message";
CommandType["AGENT_KURTOSIS"] = "deploy:kurtosis-agents";
CommandType["STATUS"] = "status:";
CommandType["SUBMIT"] = "submit:";
CommandType["RELAYER"] = "relayer:";
CommandType["CORE_APPLY"] = "core:apply";
})(CommandType || (CommandType = {}));
//# sourceMappingURL=signCommands.js.map