-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
161 additions
and
229 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
use clap::Parser; | ||
use integration::test_util::prove_and_verify_chunk; | ||
use prover::utils::init_env_and_log; | ||
use std::env; | ||
|
||
#[derive(Parser, Debug)] | ||
#[clap(author, version, about, long_about = None)] | ||
struct Args { | ||
/// Get params dir path. | ||
#[clap(short, long = "params", default_value = "params")] | ||
params_path: String, | ||
/// Get asserts dir path. | ||
#[clap(short, long = "assets", default_value = "test_assets")] | ||
assets_path: String, | ||
/// Get BlockTrace from file or dir. | ||
#[clap( | ||
short, | ||
long = "trace", | ||
default_value = "tests/extra_traces/batch_34700/chunk_1236462/block_4176564.json" | ||
)] | ||
trace_path: String, | ||
} | ||
|
||
fn main() { | ||
// Layer config files are located in `./integration/configs`. | ||
env::set_current_dir("./integration").unwrap(); | ||
let output_dir = init_env_and_log("trace_prover"); | ||
log::info!("Initialized ENV and created output-dir {output_dir}"); | ||
|
||
let args = Args::parse(); | ||
prove_and_verify_chunk( | ||
&args.trace_path, | ||
Some("test"), | ||
&args.params_path, | ||
&args.assets_path, | ||
&output_dir, | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.