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 error traits and ATs #11

Merged
merged 4 commits into from
Feb 17, 2025
Merged

feat: add error traits and ATs #11

merged 4 commits into from
Feb 17, 2025

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 7, 2025

Motivation

Extracts some API changes from #7 to make it easier to prototype with reth in scope of paradigmxyz/reth#14021

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@klkvr klkvr requested a review from mattsse as a code owner February 7, 2025 00:34
@@ -14,12 +21,17 @@ use revm::{
/// Executing a transaction will return the outcome of the transaction.
pub trait Evm {
/// Database type held by the EVM.
type DB: Database;
type DB;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's kinda nice

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's actually just a workaround for weird trait bounds issue :/ we still require DB: Database on EvmFactory

@klkvr
Copy link
Member Author

klkvr commented Feb 7, 2025

ci is failing because current revm feature-gates Error impls behind std so holding this off

@mattsse
Copy link
Member

mattsse commented Feb 7, 2025

since this is a new release basically revm ideally bumps msrv so we can use core

@emhane
Copy link

emhane commented Feb 7, 2025

ci is failing because current revm feature-gates Error impls behind std so holding this off

is it possible to ship a std only version of this first of all, so I can base re-impl of paradigmxyz/reth#14124 on main with paradigmxyz/reth#14021 merged? that way we can work in parallel and be more efficient. alt is there a revm issue for making Error impls no_std compatible?

@klkvr klkvr force-pushed the klkvr/extract-api-changes branch from 1e4ebfd to e3d24c1 Compare February 10, 2025 11:09
* wip

* wip

* wip

* wip

* rename

* fix

* update docs

* fix transact

* generalize from impl

* use patches

* fix deny warning

* fix features

* newline

* conflicts

* Simple -> Raw

* deref + fixes

* bump revm

* bump revm

* JournalExt bound

* bump revm

* rm EthInterpreter

* bump revm

* chore: relax a generic trait (#12)

* bump revm

* add new fn for EthEvm

* use evm for EthEvm

* fn change

* bump revm

* bump revm

* cleanup and new revm commit

* add into_inner function

* bump revm

* bump revm

---------

Co-authored-by: rakita <rakita@users.noreply.github.com>
@klkvr klkvr merged commit 048248c into main Feb 17, 2025
26 checks passed
@klkvr klkvr deleted the klkvr/extract-api-changes branch February 17, 2025 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants