Skip to content

Commit

Permalink
Reimplement cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya committed Oct 3, 2024
1 parent 58f5443 commit 408686a
Show file tree
Hide file tree
Showing 7 changed files with 269 additions and 140 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ regex = "1"
ton_liteapi = { path = "../liteapi" }
ton_networkconfig = { path = "../network-config", features = ["adnl"] }
rand = "0.8.5"
adnl = "0.1.0"
tokio = { version = "1.36", features = ["full"] }
2 changes: 1 addition & 1 deletion cli/src/arg_parsers.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::error::Error;

use regex::Regex;
use ton_liteapi::tl_types::{Int256, BlockIdExt, AccountId};
use ton_liteapi::tl::common::{Int256, BlockIdExt, AccountId};

pub fn parse_block_id_ext(s: &str) -> std::result::Result<BlockIdExt, String> {
let re = Regex::new(r"\(([-]?\d+),([a-fA-F0-9]+),(\d+)\):([^:]+):(.+)").unwrap();
Expand Down
Loading

0 comments on commit 408686a

Please sign in to comment.