Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

test: add more traces & bump zkevm-circuits version #15

Merged
merged 17 commits into from
Jun 28, 2022
10 changes: 5 additions & 5 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ test-evm-trace: ## test evm circuit with real trace
test-state-trace: ## test state circuit with real trace
@cargo test --features prove_verify --release test_state_prove_verify

again:
MODE=dao cargo test --features prove_verify --release test_evm_prove_verify > 0624.dao.evm.txt 2>&1; MODE=dao cargo test --features prove_verify --release test_state_prove_verify > 0624.dao.state.txt 2>&1; MODE=nft cargo test --features prove_verify --release test_evm_prove_verify > 0624.nft.evm.txt 2>&1; MODE=nft cargo test --features prove_verify --release test_state_prove_verify > 0624.nft.state.txt 2>&1; MODE=sushi cargo test --features prove_verify --release test_evm_prove_verify > 0624.sushi.evm.txt 2>&1; MODE=sushi cargo test --features prove_verify --release test_state_prove_verify > 0624.sushi.state.txt 2>&1

## commented out for now, waiting for halo2 upstream upgrade
# test-circuit-connect: ## test connect evm circuit & state circuit
# @cargo test --features prove_verify --release test_state_evm_connect
Expand Down
2 changes: 1 addition & 1 deletion types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "16f6951c" }
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "d7dd50a" }
base64 = "0.13.0"
blake2 = "0.10.3"
ethers-core = "0.6.0"
Expand Down
6 changes: 3 additions & 3 deletions zkevm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ edition = "2021"
[dependencies]
pairing = { git = 'https://github.com/appliedzkp/pairing', package = "pairing_bn256" }
halo2_proofs = { git = "https://github.com/appliedzkp/halo2.git", tag = "v2022_05_09" }
bus-mapping = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "16f6951c" }
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "16f6951c" }
zkevm-circuits = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "16f6951c", features = ["test"] }
bus-mapping = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "d7dd50a" }
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "d7dd50a" }
zkevm-circuits = { git = "https://github.com/scroll-tech/zkevm-circuits", rev = "d7dd50a", features = ["test"] }
rand = "0.8"
rand_xorshift = "0.3"
is-even = "1.0.0"
Expand Down
3 changes: 3 additions & 0 deletions zkevm/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ fn parse_trace_path_from_env(mode: &str) -> &'static str {
"multiple" => "./tests/trace-multiple-erc20.json",
"native" => "./tests/trace-native-transfer.json",
"single" => "./tests/trace-single-erc20.json",
"dao" => "./tests/trace-dao.json",
"nft" => "./tests/trace-nft.json",
"sushi" => "./tests/trace-masterchef.json",
_ => "./tests/trace-multiple-erc20.json",
};
log::info!("using mode {:?}, testing with {:?}", mode, trace_path);
Expand Down
104,579 changes: 104,579 additions & 0 deletions zkevm/tests/trace-dao.json

Large diffs are not rendered by default.

8,821 changes: 8,821 additions & 0 deletions zkevm/tests/trace-masterchef.json

Large diffs are not rendered by default.

25,932 changes: 25,932 additions & 0 deletions zkevm/tests/trace-nft.json

Large diffs are not rendered by default.