Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e35d741
rename main Evm structs, introduce wip external type
rakita Nov 8, 2023
fc03f9b
tests
rakita Nov 8, 2023
90a81f0
Split evm and external context
rakita Nov 16, 2023
fda7f8f
continue previous commit
rakita Nov 16, 2023
99ec673
wip inspector handle register
rakita Nov 21, 2023
ee65aa5
add few more handlers for frame and host
rakita Nov 21, 2023
006a9c2
Add instruction handle
rakita Nov 23, 2023
73f5ebd
add instruction handler registration and Inspector wrap
rakita Nov 24, 2023
42dfcf4
Rm Spec generic, more handlers, start factory
rakita Nov 25, 2023
6252606
move towards the builder, allow EVM modify
rakita Nov 27, 2023
a8eba54
wip on EvmBuilder and modify functionality
rakita Nov 28, 2023
ed188d7
EvmBuilder with stages wip
rakita Nov 29, 2023
85be2c5
Merge remote-tracking branch 'origin/main' into handlers
rakita Nov 29, 2023
64a1bd6
Add wip stages for builer
rakita Nov 29, 2023
45d7209
make handle register simple function, add raw instruction table, spli…
rakita Nov 30, 2023
5ca9580
wip on simple builder functions and handler registry
rakita Dec 1, 2023
aef8257
Examples and cleanup
rakita Dec 1, 2023
bebc79d
fix lifetime and fmt
rakita Dec 1, 2023
580ddf8
Add more handlers, deduct caller, validate tx agains state
rakita Dec 5, 2023
6352f90
All handlers counted, started on docs, some cleanup
rakita Dec 6, 2023
900ff89
renaming and docs
rakita Dec 7, 2023
55f8924
Support all Inspector functionality with Handler
rakita Dec 8, 2023
c930aeb
Handler restructured. Documentation added
rakita Dec 9, 2023
5dc55bd
more docs on registers
rakita Dec 9, 2023
238ea1b
integrate builder, fmt, move optimism l1block
rakita Dec 15, 2023
66b8642
add utility builder stage functions
rakita Dec 15, 2023
697a3e3
add precompiles, fix bugs with journal spec
rakita Dec 18, 2023
9375f35
spec to generic, optimism build
rakita Dec 18, 2023
65997b7
fix optimism test
rakita Dec 18, 2023
bfc5d8b
fuck macros
rakita Dec 26, 2023
8b23136
Merge remote-tracking branch 'origin/main' into handlers
rakita Dec 26, 2023
be3af16
clippy and fmt
rakita Dec 26, 2023
74ae8b0
fix trace block example
rakita Dec 26, 2023
55fc1f7
ci fixes
rakita Dec 26, 2023
b74f7e3
Flatten builder stages to generic and handler stage
rakita Dec 27, 2023
b24c19c
EvmBuilder doc and refactor fn access
rakita Dec 30, 2023
a6feb1a
Merge remote-tracking branch 'origin/main' into handlers
rakita Dec 30, 2023
7024cad
ignore rust code in book
rakita Dec 30, 2023
a704c70
make revme compile, will refactor this in future
rakita Jan 3, 2024
6fdf87a
Rename handles to Pre/Post Execution and ExecutionLoop
rakita Jan 4, 2024
62e9eaa
fix optimism clippy
rakita Jan 4, 2024
c6385be
small rename
rakita Jan 8, 2024
648ba93
FrameData and docs
rakita Jan 9, 2024
055f0f6
check links mdbook
rakita Jan 9, 2024
0b3be0e
comments and cleanup
rakita Jan 10, 2024
8fdcea9
comment
rakita Jan 10, 2024
6cd1414
Merge remote-tracking branch 'origin/main' into handlers
rakita Jan 11, 2024
fa4c712
Add initialize interepreter to first frame
rakita Jan 12, 2024
2133f7f
clippy
rakita Jan 12, 2024
d95dae5
clippy2
rakita Jan 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci fixes
  • Loading branch information
rakita committed Dec 26, 2023
commit 55fc1f7376f03dcbea8e0f0ff27fb18ebef4bafc
2 changes: 1 addition & 1 deletion crates/primitives/src/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ mod tests {

#[cfg(feature = "optimism")]
#[cfg(test)]
mod tests {
mod optimism_tests {
use super::*;

#[test]
Expand Down
4 changes: 2 additions & 2 deletions crates/revm/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ pub(crate) mod test_utils {
/// Creates an evm context with a cache db backend.
/// Additionally loads the mock caller account into the db,
/// and sets the balance to the provided U256 value.
pub fn create_cache_db_evm_context_with_balance<'a>(
pub fn create_cache_db_evm_context_with_balance(
env: Box<Env>,
mut db: CacheDB<EmptyDB>,
balance: U256,
Expand All @@ -557,7 +557,7 @@ pub(crate) mod test_utils {
}

/// Creates a cached db evm context.
pub fn create_cache_db_evm_context<'a>(
pub fn create_cache_db_evm_context(
env: Box<Env>,
db: CacheDB<EmptyDB>,
) -> EvmContext<CacheDB<EmptyDB>> {
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/handler/mainnet/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn create_first_frame<SPEC: Spec, EXT, DB: Database>(
}
}

/// Helper function called inside [`main_call_return`]
/// Helper function called inside [`main_frame_return`]
pub fn frame_return_with_refund_flag<SPEC: Spec>(
env: &Env,
call_result: InstructionResult,
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/inspector/handler_register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait GetInspector<'a, DB: Database> {
/// Most of the functions are wrapped for Inspector usage expect
/// the SubCreate and SubCall calls that got overwritten.
///
/// Few instructions handlers are wrapped twice once for `step`` and `step_end`
/// Few instructions handlers are wrapped twice once for `step` and `step_end`
/// and in case of Logs and Selfdestruct wrapper is wrapped again for the
/// `log` and `selfdestruct` calls.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/optimism/handler_register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{
use alloc::sync::Arc;
use core::ops::Mul;

pub fn optimism_handle_register<'a, DB: Database, EXT>(handler: &mut EvmHandler<'a, EXT, DB>) {
pub fn optimism_handle_register<DB: Database, EXT>(handler: &mut EvmHandler<'_, EXT, DB>) {
spec_to_generic!(handler.spec_id, {
// Refund is calculated differently then mainnet.
handler.frame.first_frame_return = Arc::new(handle_call_return::<SPEC>);
Expand Down