Skip to content

Commit

Permalink
coins
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Mar 26, 2024
1 parent ff6f4eb commit 4d2f827
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn main() {
match &args.command {
MantisCommands::Solve(_) => todo!(),
MantisCommands::Simulate(x) => {
simulate_orders(&args, x).await;
simulate_orders(x).await;
}

MantisCommands::Id(_) => todo!(),
Expand Down Expand Up @@ -115,9 +115,9 @@ async fn main() {

}

async fn simulate_orders(mantis_args: &MantisArgs, simulate_args: &SimulateArgs) {

let mut wasm_read_client = create_wasm_query_client(&args.grpc_centauri).await;
async fn simulate_orders(simulate_args: &SimulateArgs) {
let args = simulate_args.shared;
let mut wasm_read_client = create_wasm_query_client(&args.).await;

let signer = mantis_node::mantis::cosmos::signer::from_mnemonic(
args.wallet.as_str(),
Expand Down
11 changes: 3 additions & 8 deletions mantis/node/src/mantis/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,9 @@ pub struct SimulateArgs {
pub cvm_contract: Option<String>,

/// tokens to send to order contract as problem
/// format: "token1amount1,token2amount2"
#[arg(long)]
pub pair: Option<String>,


/// the problem to solve
#[arg(long, default_value_t = 10)]
pub simulate_period_seconds: u16,
/// format: "--coins="token1amount1,token2amount2" --coins="token2amount2,token3amount3"
#[arg(long, value_delimiter = ' ', num_args = 1..)]
pub coins: Vec<String>,
}

#[derive(clap::Parser, Debug)]
Expand Down

0 comments on commit 4d2f827

Please sign in to comment.