Skip to content
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

feat: Add x/precompile interface to support EIP-2929 with precompiles #54

Closed
wants to merge 7 commits into from

Conversation

drklee3
Copy link
Member

@drklee3 drklee3 commented Apr 29, 2024

  • Add PrecompileKeeper interface with a GetPrecompileAddresses() method.
  • Use a DefaultPrecompileKeeper when nil precompile keeper is passed to evmkeeper.New
    • DefaultPrecompileKeeper preserves basic behavior as if there are no stateful precompiles registered
  • Test access list is populated correctly with PrecompileKeeper by checking expected gas
    • Uses a test smart contract that triggers corresponding state accesses
  • Update access_list tracer to use the same combined list of precompiles

Resolves #50

@drklee3 drklee3 marked this pull request as ready for review April 29, 2024 22:15
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs.

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days-before-close if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants