This repository was archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 841
Modularize mock crate for easier and more customizable testing setup generation #349
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
093d992
mock: Add ethbloom to deps
CPerezz 2857627
mock: Add MockBlock and builder methods
CPerezz 1f16907
mock: Add MockTransaction and builder methods
CPerezz 94ea670
mock: Add MockAccount and builder methods
CPerezz 122b109
mock: Add build functions for mock structs
CPerezz 7d26175
mock: Remove BlockData from bus-mapping
CPerezz eaa0658
mock: Update TestContext builder sig params
CPerezz e19adbb
eth-types: Change `GethExecTrace` visibility to `pub`
CPerezz 859094a
mock: Add const generics for ACC specification in TestContext
CPerezz 6a38351
Update default values for MockBlock
CPerezz 49fefec
mock: Accept multiple Tx's in TraceContext builder pattern
CPerezz b649598
mock: Update tests to generate Traces using TraceContext
CPerezz a48f0a2
mock: Remove unused code in mock and refactor EndTx/BeginTx
CPerezz 659fa3d
mock: Fix and comment BeginTx strange testscases
CPerezz 5d8166d
mock: Fix rebase conflicts
CPerezz 5dbed67
bus-mapping: Fix lib.rs docs
CPerezz 6acba31
mock: Change FACC trait to avoid returning &mut MockBlock
CPerezz 1562763
mock: Add helpers for TextContext simple constructions
CPerezz b0eb4d8
mock: Change from Bytecode to Bytes in MockAccount
CPerezz 806da6f
mock: Fix EXTCODEHASH errors introduced in the refactor
CPerezz d92a46f
mock: Add documentation & usage examples for TestContext
CPerezz 65f8850
bus-mapping: Shorten bolerprate with TestContext helpers
CPerezz 58a67a4
fix docs
CPerezz fb97a2c
Fix documentation for bus-mapping
CPerezz 3185220
Fix ETH test value to point_one for BeginTx
CPerezz c127588
Fix according to review suggestions from @ed255 and @han0110
CPerezz b94becb
eth_types: Add docs for GethExecTrace
CPerezz a9e7b5b
mock: Update MockTransaction `to` field to be Option
CPerezz eb80673
Merge branch 'main' into modularize_mock
CPerezz 23a09ee
bus-mapping: Fix CircuitInputBuilder rebased tests
CPerezz 80b36e5
mock: Make all MOCK statics pub
CPerezz b1324da
zkevm_circuits: Update end_tx testcase with correct idx and nonce
CPerezz 1d0dc4f
Update TestContext to use consecutive TxId & nonce as default
CPerezz 7f47aeb
zkevm-circuits: Fix reduce random gas_price range
CPerezz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.