diff --git a/mantis/node/src/bin/mantis.rs b/mantis/node/src/bin/mantis.rs index 15384a0b..82821cdc 100644 --- a/mantis/node/src/bin/mantis.rs +++ b/mantis/node/src/bin/mantis.rs @@ -32,6 +32,15 @@ use mantis_node::{ #[tokio::main] async fn main() { let args = MantisArgs::parsed(); + + match args.command { + MantisCommands::Solve(_) => todo!(), + MantisCommands::Simulate(_) => todo!(), + + MantisCommands::Id(_) => todo!(), + MantisCommands::Glt(_) => todo!(), + } + match args.command { MantisCommands::Solve(args) => { let mut wasm_read_client = create_wasm_query_client(&args.grpc_centauri).await; diff --git a/mantis/node/src/mantis/args.rs b/mantis/node/src/mantis/args.rs index ad771d86..ab445fdd 100644 --- a/mantis/node/src/mantis/args.rs +++ b/mantis/node/src/mantis/args.rs @@ -9,8 +9,10 @@ pub struct MantisArgs { #[derive(Debug, Subcommand)] pub enum MantisCommands { + /// solves orders Solve(SolverArgs), Id(IdArgs), + /// spams chain with test orders Simulate(SimulateArgs), Glt(GltArgs), } @@ -107,6 +109,9 @@ pub struct SolverArgs { /// the problem to solve #[arg(long, default_value_t = 10)] pub solve_period_seconds: u16, + + /// http url to call with parameters to obtain route + pub solution_provider: String, } impl MantisArgs {