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 856
Conversation
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
github-actions
bot
added
crate-bus-mapping
Issues related to the bus-mapping workspace member
crate-eth-types
Issues related to the eth-types workspace member
crate-geth-utils
Issues related to the geth-utils workspace member
crate-zkevm-circuits
Issues related to the zkevm-circuits workspace member
labels
Apr 16, 2023
axic
commented
Apr 16, 2023
@@ -96,6 +96,11 @@ impl Bytecode { | |||
|
|||
/// Push | |||
pub fn push<T: ToWord>(&mut self, n: u8, value: T) -> &mut Self { | |||
if n == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually not needed.
axic
commented
Apr 16, 2023
|
||
fn configure(cb: &mut ConstraintBuilder<F>) -> Self { | ||
// Push the value to the stack | ||
cb.stack_push(Constant(F::from(0u64))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I guess this would suffice too:
Suggested change
cb.stack_push(Constant(F::from(0u64))); | |
cb.stack_push(0.expr()); |
Seen both patterns in the codebase.
4 tasks
ed255
pushed a commit
that referenced
this pull request
Apr 18, 2023
### Description Updates the geth dependency in geth-utils to latest release. Pulled this out from #1361. ### Issue Link Related to #1362. ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents - Update geth dependency (and ran `go mod tidy` to update sub-dependencies) - Update code bindings to struct changes ### Rationale N/A ### How Has This Been Tested? Using the testing suite in the repo.
hi @axic is this considered finished? if yes then i will mark it as ready for review and try ci. |
This was referenced May 22, 2023
ed255
pushed a commit
that referenced
this pull request
Jun 2, 2023
…es (#1424) ### Description 1. Add Shanghai related fields to chain config in geth-utils. 2. EIP-3651 (Warm COINBASE): add a new access-list write for coinbase to Begin TX. 3. Part of EIP-3860 (Limit and meter initcode): only add gas cost of init code to Begin TX (missing gas cost changes in Create and OOG Create). ### Issue Link Issue #1362 Local related PRs: scroll-tech#497 scroll-tech#500 scroll-tech#507 Reference previous PR: #1361 ### Type of change - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) ### How Has This Been Tested? Unit test cases of CI could pass with Shanghai geth traces. --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
Closing this PR in favor of #1463 |
Thank you @axic for the contribution and demonstrating the idea! |
johntaiko
pushed a commit
to johntaiko/zkevm-circuits
that referenced
this pull request
Aug 20, 2023
…es (privacy-scaling-explorations#1424) 1. Add Shanghai related fields to chain config in geth-utils. 2. EIP-3651 (Warm COINBASE): add a new access-list write for coinbase to Begin TX. 3. Part of EIP-3860 (Limit and meter initcode): only add gas cost of init code to Begin TX (missing gas cost changes in Create and OOG Create). Issue privacy-scaling-explorations#1362 Local related PRs: scroll-tech#497 scroll-tech#500 scroll-tech#507 Reference previous PR: privacy-scaling-explorations#1361 - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) Unit test cases of CI could pass with Shanghai geth traces. --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
johntaiko
pushed a commit
to johntaiko/zkevm-circuits
that referenced
this pull request
Aug 20, 2023
…es (privacy-scaling-explorations#1424) 1. Add Shanghai related fields to chain config in geth-utils. 2. EIP-3651 (Warm COINBASE): add a new access-list write for coinbase to Begin TX. 3. Part of EIP-3860 (Limit and meter initcode): only add gas cost of init code to Begin TX (missing gas cost changes in Create and OOG Create). Issue privacy-scaling-explorations#1362 Local related PRs: scroll-tech#497 scroll-tech#500 scroll-tech#507 Reference previous PR: privacy-scaling-explorations#1361 - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) Unit test cases of CI could pass with Shanghai geth traces. --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
johntaiko
pushed a commit
to johntaiko/zkevm-circuits
that referenced
this pull request
Aug 20, 2023
…es (privacy-scaling-explorations#1424) 1. Add Shanghai related fields to chain config in geth-utils. 2. EIP-3651 (Warm COINBASE): add a new access-list write for coinbase to Begin TX. 3. Part of EIP-3860 (Limit and meter initcode): only add gas cost of init code to Begin TX (missing gas cost changes in Create and OOG Create). Issue privacy-scaling-explorations#1362 Local related PRs: scroll-tech#497 scroll-tech#500 scroll-tech#507 Reference previous PR: privacy-scaling-explorations#1361 - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) Unit test cases of CI could pass with Shanghai geth traces. --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
johntaiko
pushed a commit
to johntaiko/zkevm-circuits
that referenced
this pull request
Aug 20, 2023
…es (privacy-scaling-explorations#1424) 1. Add Shanghai related fields to chain config in geth-utils. 2. EIP-3651 (Warm COINBASE): add a new access-list write for coinbase to Begin TX. 3. Part of EIP-3860 (Limit and meter initcode): only add gas cost of init code to Begin TX (missing gas cost changes in Create and OOG Create). Issue privacy-scaling-explorations#1362 Local related PRs: scroll-tech#497 scroll-tech#500 scroll-tech#507 Reference previous PR: privacy-scaling-explorations#1361 - [x] Breaking change (fix or feature that would cause existing functionality to not work as expected) Unit test cases of CI could pass with Shanghai geth traces. --------- Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
github-merge-queue bot
pushed a commit
that referenced
this pull request
Aug 23, 2023
### Description 1. Add `PUSH0` opcode to eth-types. It could be parsed from `0x5f` or a string of PUSH0. 2. In eth-types, update `is_push` function to return true for `PUSH0 .. PUSH32`, and add a new function `is_push_with_data`, it returns true for `PUSH1 .. PUSH32`. 3. Small fixes to replace `PUSH1 - 1` with PUSH0 value. 4. Add PUSH0 implementation to bus-mapping, and `PushGadget` to support PUSH0 in zkevm-circuits. ### Issue Link Close #1473 Reference previous PR #1361 zkevm-specs PR privacy-scaling-explorations/zkevm-specs#471 ### Type of change - [x] New feature (non-breaking change which adds functionality) --------- Co-authored-by: Chih Cheng Liang <chihchengliang@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
crate-bus-mapping
Issues related to the bus-mapping workspace member
crate-eth-types
Issues related to the eth-types workspace member
crate-geth-utils
Issues related to the geth-utils workspace member
crate-zkevm-circuits
Issues related to the zkevm-circuits workspace member
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.
Description
Introduction of support of the PUSH0 instruction, together with bumping geth integration to a newer version supporting it.
This is a PR for discussion and not meant to be merged, given the amount of changes and potential regressions.
Issue Link
#1362
Type of change
Contents
The PR consists of 3 parts:
Updating geth from v1.10.18 to v1.11.5. The previous version is rather old (and it of course does not support Shanghai). This I think could be pulled out and merged on its own.Rationale
N/A
How Has This Been Tested?
Unit test in
bus-mapping
.