Skip to content

Tool for generate test vectors from Ethereum

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

froghub-io/fevm-test-vectors

Repository files navigation

FEVM Test Vectors

fevm-test-vectors generate test vector from geth rpc with debug namespace enabled.

Build

cargo build --release

Command

extract ethereum transaction

Extract transaction detail file through evm tracing (including contract slot changes, balance changes, and bytecodes, etc.).

RUST_LOG=info fevm-test-vectors extract --geth-rpc-endpoint <GETH_RPC_ENDPOINT> --tx-hash <TX_HASH> --out-dir <OUT_DIR> 

generate test vector

Generate test vector from transation detail file.

RUST_LOG=info fevm-test-vectors generate-from-file --input <IN_FILE|IN_DIR> --out-dir <OUT_DIR>

Generate test vector from geth rpc directly.

RUST_LOG=info fevm-test-vectors generate --geth-rpc-endpoint <GETH_RPC_ENDPOINT> --tx-hash <TX_HASH> --out-dir <OUT_DIR>

Consume Test Vector

Use froghub-io/ref-fvm branch testing-evm-vectors to consume test vectors.

RUST_LOG=info CARGO_PROFILE_BENCH_DEBUG=true VECTOR=fevm-test-vectors/corpus/test_vectors/xxx.json cargo bench --bench  bench_conformance -- --nocapture

License

Dual-licensed under MIT

About

Tool for generate test vectors from Ethereum

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages