-
Notifications
You must be signed in to change notification settings - Fork 27
all: implement EIP-7702 #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
hao-phamSM
approved these changes
May 20, 2025
hao-phamSM
left a comment
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.
LGTM
chiphamskymavis
approved these changes
May 20, 2025
Contributor
Author
|
rebased PR: #87 |
in other tx types
leave it to the next PR
to ensure forward compatibility
content: - update core/vm - update EXT... gas estimation from: - ethereum/go-ethereum#30078 - ethereum/go-ethereum#31089 * core/vm: update 7702 gas calculation on impacted OpCode CALL, CALLCODE, STATICCALL, DELEGATECALL. EXTCODE... opcodes are aligned with the EIP update ethereum/EIPs#9248 * core/vm: EVM resolve code with delegations of 7702 * core/vm: add gas cost test * fixup! core/vm: add gas cost test * fixup! core/vm: add gas cost test
* core: state_transition with AuthList * core: statedb SetCode() returning prev code * fixup! core: state_transition with AuthList * fixup! core: statedb SetCode() returning prev code
* tests: adapt TestState to Prague hardfork * internal, graphql: update AuthList in the Tx interface * fixup! tests: adapt TestState to Prague hardfork --------- Co-authored-by: sonhv0212 <[email protected]>
* eth/tracers/logger: make structlog/json-log stack hex again (#28628) * common/hexutil: define hex wrappers for uint256.Int * eth/tracers/logger: make structlog/json-log stack hex again * common/hexutil: goimports * pick up ethereum/go-ethereum#30926 ethereum/go-ethereum#30926 * pick up ethereum/go-ethereum#30933 ethereum/go-ethereum#30933 * core/types: rename SetCodeAuthorization 'v' to 'yParity' The API spec requires the name yParity. * pick up ethereum/go-ethereum#30935 ethereum/go-ethereum#30935 * fixup! pick up ethereum/go-ethereum#30935 --------- Co-authored-by: Martin Holst Swende <[email protected]> Co-authored-by: Felix Lange <[email protected]>
* pick up ethereum/go-ethereum#30982 Co-authored-by: Felix Lange <[email protected]> * tests: synchronize with go-ethereum, run code gen Co-authored-by: Felix Lange <[email protected]> * core/types: correct chainId check for pragueSigner (#31032) Use zero value check for the pragueSigner This aligns with cancunSigner and londonSigner as well. * core/types: initialize ChainID in SetCodeTx copy method (#31054) --------- Co-authored-by: Felix Lange <[email protected]> Co-authored-by: Shude Li <[email protected]>
* pick up ethereum/go-ethereum#31073 Co-authored-by: lightclient <[email protected]> Co-authored-by: Marius van der Wijden <[email protected]> Co-authored-by: Felix Lange <[email protected]> * pick up ethereum/go-ethereum#31206 Co-authored-by: Marius van der Wijden <[email protected]> * pick up ethereum/go-ethereum#31209 Co-authored-by: rjl493456442 <[email protected]> Co-authored-by: lightclient <[email protected]> * pick up ethereum/go-ethereum#31249 Co-authored-by: buddho <[email protected]> Co-authored-by: lightclient <[email protected]> * fixup! pick up ethereum/go-ethereum#31249 * fixup! pick up ethereum/go-ethereum#31249 --------- Co-authored-by: lightclient <[email protected]> Co-authored-by: Marius van der Wijden <[email protected]> Co-authored-by: Felix Lange <[email protected]> Co-authored-by: rjl493456442 <[email protected]> Co-authored-by: lightclient <[email protected]> Co-authored-by: buddho <[email protected]>
* pick up ethereum/go-ethereum#29520 * core/state: update test cases * core/state: fix SetStorage override behavior (#30185) This pull request fixes the broken feature where the entire storage set is overridden. Originally, the storage set override was achieved by marking the associated account as deleted, preventing access to the storage slot on disk. However, since #29520, this flag is also checked when accessing the account, rendering the account unreachable. A fix has been applied in this pull request, which re-creates a new state object with all account metadata inherited. * fixup! pick up ethereum/go-ethereum#29520 * fixup! core/state: fix SetStorage override behavior (#30185) --------- Co-authored-by: rjl493456442 <[email protected]>
* core/txpool/legacypool: reject gapped tx from delegated account (#31430) This pull request improves the protection mechanism in the txpool for senders with delegation. A sender with either delegation or pending delegation is now limited to a maximum of one in-flight executable transaction, while gapped transactions will be rejected. Reason: If nonce-gapped transaction from delegated/pending-delegated senders can be acceptable, then it's no-longer possible to send another "executable" transaction with correct nonce due to the policy of at most one inflight tx. The gapped transaction will be stuck in the txpool, with no meaningful way to unlock the sender. --------- Co-authored-by: lightclient <[email protected]> * core/txpool/legacypool: fix data race in checkDelegationLimit (#31475) --------- Co-authored-by: rjl493456442 <[email protected]> Co-authored-by: lightclient <[email protected]> Co-authored-by: rekyyang <[email protected]>
…cessList (#31336) (#56) closes ethereum/go-ethereum#31335 --------- Co-authored-by: sashabeton <[email protected]> Co-authored-by: sashabeton <[email protected]>
📊 Code Coverage Report✅ Total coverage: 52.2% (Above threshold of 50%) 📑 Detailed coverage report:
📈 Download detailed HTML coverage report |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Member PRs:
core/types: setcode tx typecore/types: transaction NewMessage() add authListcore/vm: update 7702 EVM resolve code & gas estimationcore: state_transition with AuthListinternal, graphql, test: remaining components of 7702all: refactor names & singner 7702core/types, test: correct chainId 7702core/txpool: support SetCode tx 7702core/state: correct account selfdestruct EIP-6780 (part of 7702)core/txpool/legacypool: reject gapped tx from delegated account