UNPKG

cosmic-interchain-cli

Version:

A command-line utility for Cosmic Wire's interchain messaging protocol

36 lines 1.23 kB
import { runKurtosisAgentDeploy } from '../deploy/agent.js'; import { log, logGray } from '../logger.js'; import { agentConfigCommandOption, agentTargetsCommandOption, originCommandOption, } from './options.js'; /** * Parent command */ export const deployCommand = { command: 'deploy', describe: 'Permissionlessly deploy a interchain contracts or extensions', builder: (yargs) => yargs.command(agentCommand).version(false).demandCommand(), handler: () => log('Command required'), }; /** * Agent command */ const agentCommand = { command: 'kurtosis-agents', describe: 'Deploy interchain agents with Kurtosis', builder: { origin: originCommandOption, targets: agentTargetsCommandOption, config: agentConfigCommandOption(true), }, handler: async ({ context, origin, targets, config }) => { logGray('Interchain Agent Deployment with Kurtosis'); logGray('----------------------------------------'); await runKurtosisAgentDeploy({ context, originChain: origin, relayChains: targets, agentConfigurationPath: config, }); process.exit(0); }, }; //# sourceMappingURL=deploy.js.map