forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6803dc6
commit 0334465
Showing
3 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
pub use era_vm::tracers::tracer::Tracer; | ||
use zksync_state::ReadStorage; | ||
use zksync_types::U256; | ||
|
||
use crate::era_vm::hook::Hook; | ||
pub use crate::{era_vm::vm::Vm, vm_latest::ExecutionResult}; | ||
|
||
pub trait VmTracer<S: ReadStorage>: Tracer { | ||
fn before_bootloader_execution(&mut self, _state: &mut Vm<S>) {} | ||
|
||
fn after_bootloader_execution(&mut self, _state: &mut Vm<S>, _stop_reason: ExecutionResult) {} | ||
|
||
fn bootloader_hook_call(&mut self, _state: &mut Vm<S>, _hook: Hook, _hook_params: &[U256; 3]) {} | ||
} |
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