forked from scroll-tech/zkevm-circuits
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CircuitTestBuilder for EVM & State tests (scroll-tech#1120)
* chore: Migrate tests to use assert_satisfied * feat: Add `CircuitTestBuilder` for EVM & State tests This struct provides a builder-pattern which allows to generate an entire circuit test for the EVM &/| State circuits with ease. Unifying the way to test circuits in the crate. Also, it defaults to the usage of `assert_satisfied` in the verification of the Proofs. Resolves: scroll-tech#1107, scroll-tech#1097 * chore: Migrate EVMCircuit test fns to CTB * chore: Migrate `executor` mod to CTB usage * chore: Migrate opcode impls to CircuitTestBuilder usage * chore: Fix warnings left during impl * chore: Allow for type complexity with Clippy * chore: Remove `random_tx` test fn and use `mock` crate * feat: Add docs for CircuitTestBuilder * chore: Apply formatting * chore: Fix warnings * chore: Generate configs inside calls in executor * chore: Use block_modifier when possible * chore: Move standalone fns to corresp. impl blocks * chore: Address small nits from 1st review * chore: Introduce `new_from` instead of `empty` for CTB * chore: prevent missusage of `params()` * remove: BytecodeConfig is deleted due to unusage * chore: Fix last nits * chore: Leave testool untouched * fix: Intra-doc links * fix: testool tests passing * remove: info! logs * chore: Bump `halo2wrong` & `halo2_proofs` to latest release * fix: use `at_rows` in neg test to speed them up * feat: Include the possibility to use `at_rows` variant always * fix: Allow type complexity for CTB * chore: Add an extra tx to enable enough for testing * fix: Impl Default for PublicData using `MOCK_CHAIN_ID` * chore: Derive `Copy` for `CircuitsParams` * chore: Update `max_rws` in callop tests * fix: Fix rows being checked in EVMCircuit state tests Co-authored-by: Eduard S. <[email protected]> * fix: Clippy lints * chore: Comment out callop failing tests Filed scroll-tech#1132 as a follow-up PR as the problem seems non trivial to solve in this PR and would make the diff and the review harder. --------- Co-authored-by: Eduard S. <[email protected]>
- Loading branch information
Showing
86 changed files
with
916 additions
and
1,063 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
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
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
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
Oops, something went wrong.