evm-state-diff 0.1.0

Ethereum execution state diffs from prestateTracer traces: per transaction or per block, filtered and rendered as text, JSON, NDJSON or CSV
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]

use std::path::PathBuf;

#[cfg(feature = "rpc")]
mod geth;
#[cfg(feature = "rpc")]
#[allow(unused_imports)]
pub use geth::Geth;

pub fn fixtures_dir() -> PathBuf {
    PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("testdata/geth")
}

pub fn update_fixtures() -> bool {
    std::env::var("ETH_STATE_DIFF_UPDATE_FIXTURES").as_deref() == Ok("1")
}