This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests benchmarks (#1615)
### Description Move SC compilation step to a build script. Rewrite deployment function based on SC rust bindings generated with [ethers_contract_abigen::Abigen](https://docs.rs/ethers-contract-abigen/latest/ethers_contract_abigen/) and submit Txs for proof generation benchmarking. ### Issue Link #1557 ### Type of change - New feature (non-breaking change which adds functionality) ### Contents - build.rs : Compile smart contracts and generate rust bindings - gen_blockchain_data: - Remove compilation step and rewrite fn deploy. New one uses the bindings generated at build step to deploy SCs and also instantiates SC instances to interact with. - Create a dump TxTrace function [needed for testing future implementations of benchmark contracts - needs attribute allow(dead_code)] - Submit Txs optimized for maximum calls of MLOAD and SDIV up to 300k gas ### How Has This Been Tested? ``` https://github.com/privacy-scaling-explorations/zkevm-circuits/actions/runs/6264433154 ``` ~~https://github.com/privacy-scaling-explorations/zkevm-circuits/actions/runs/6234076847/job/16920593180~~ ~~>> Workflow build step is currently failing~~ --------- Co-authored-by: ntampakas <nick@gmx.co.uk> Co-authored-by: Chih Cheng Liang <chihchengliang@gmail.com>
- Loading branch information
1 parent
e48d06f
commit f07ca3d
Showing
16 changed files
with
523 additions
and
228 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
gendata_output.json | ||
src/bindings_benchmarks.rs | ||
src/bindings_greeter.rs | ||
src/bindings_openzeppelinerc20testtoken.rs |
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.