Skip to content

Commit

Permalink
WIP: toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Oct 2, 2024
1 parent 09c4e36 commit e499cc3
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
36 changes: 35 additions & 1 deletion world-chain-builder/Cargo.lock

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

8 changes: 7 additions & 1 deletion world-chain-builder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "world-chain-builder"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
default-run = "world-chain-builder"

[dependencies]
# reth
Expand Down Expand Up @@ -61,6 +61,7 @@ op-alloy-network = "0.2"
alloy-consensus = "0.3"
alloy-network = "0.3"
alloy-primitives = "0.8"
# alloy-provider = "0.3"
alloy-rpc-types-eth = "0.3"
alloy-rpc-types = "0.3"
alloy-rlp = "0.3"
Expand Down Expand Up @@ -92,6 +93,7 @@ tikv-jemallocator = { version = "0.6.0", optional = true }

[dev-dependencies]
tempfile = "3"
test-case = "3"
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
reth-provider = { git = "https://github.com/ewoolsey/reth", rev = "b2848f", features = [
"test-utils",
Expand All @@ -107,3 +109,7 @@ jemalloc = ["tikv-jemallocator"]
[[bin]]
name = "world-chain-builder"
path = "bin/world-chain-builder.rs"

[[bin]]
name = "toolkit"
path = "bin/toolkit.rs"
28 changes: 28 additions & 0 deletions world-chain-builder/bin/toolkit.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
use clap::Parser;

#[derive(Debug, Clone, Parser)]
struct Args {
#[clap(subcommand)]
cmd: Cmd,
}

#[derive(Debug, Clone, Parser)]
enum Cmd {
Prove(ProveArgs),
}

#[derive(Debug, Clone, Parser)]
struct ProveArgs {
#[clap(short, long)]
tx_index: usize,
}

#[tokio::main]
async fn main() -> eyre::Result<()> {
dotenvy::dotenv().ok();

let args = Args::parse();
println!("{:?}", args);

Ok(())
}

0 comments on commit e499cc3

Please sign in to comment.