Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ codec = { package = "parity-scale-codec", version = "2.0", default-features = fa
ethereum = { version = "0.10", default-features = false }
environmental = { version = "1.1.2", default-features = false, optional = true }
scale-info = { version = "1.0.0", default-features = false, features = ["derive"], optional = true }
auto_impl = "0.5.0"

[dev-dependencies]
criterion = "0.3"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ evm-core = { version = "0.33", path = "../core", default-features = false }
primitive-types = { version = "0.10", default-features = false }
sha3 = { version = "0.8", default-features = false }
environmental = { version = "1.1.2", default-features = false, optional = true}
auto_impl = "0.5.0"

[features]
default = ["std"]
Expand Down
1 change: 1 addition & 0 deletions runtime/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub struct Transfer {
}

/// EVM context handler.
#[auto_impl::auto_impl(&mut, Box)]
pub trait Handler {
/// Type of `CREATE` interrupt.
type CreateInterrupt;
Expand Down
1 change: 1 addition & 0 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub enum Apply<I> {
}

/// EVM backend.
#[auto_impl::auto_impl(&, Arc, Box)]
pub trait Backend {
/// Gas price. Unused for London.
fn gas_price(&self) -> U256;
Expand Down
1 change: 1 addition & 0 deletions src/executor/stack/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl<'config> StackSubstateMetadata<'config> {
}
}

#[auto_impl::auto_impl(&mut, Box)]
pub trait StackState<'config>: Backend {
fn metadata(&self) -> &StackSubstateMetadata<'config>;
fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>;
Expand Down