Skip to content
Closed
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
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bins/revm-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
bytes = "1.6"
hex = "0.4"
revm = { path = "../../crates/revm", version = "8.0.0",default-features=false }
revm = { path = "../../crates/revm", version = "8.0.1",default-features=false }
microbench = "0.5"
alloy-sol-macro = "0.7.0"
alloy-sol-types = "0.7.0"
Expand Down
5 changes: 5 additions & 0 deletions bins/revme/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.1](https://github.com/BigBenlau/revm_ben/compare/revme-v0.4.0...revme-v0.4.1) - 2024-05-02

### Other
- updated the following local packages: revm

## [0.4.0](https://github.com/bluealloy/revm/compare/revme-v0.3.1...revme-v0.4.0) - 2024-04-02

### Added
Expand Down
4 changes: 2 additions & 2 deletions bins/revme/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["ethereum", "evm"]
license = "MIT"
repository = "https://github.com/bluealloy/revm"
description = "Rust Ethereum Virtual Machine Executable"
version = "0.4.0"
version = "0.4.1"

[dependencies]
hash-db = "0.15"
Expand All @@ -15,7 +15,7 @@ hashbrown = "0.14"
indicatif = "0.17"
microbench = "0.5"
plain_hasher = "0.2"
revm = { path = "../../crates/revm", version = "8.0.0", default-features = false, features = [
revm = { path = "../../crates/revm", version = "8.0.1", default-features = false, features = [
"ethersdb",
"std",
"serde-json",
Expand Down
5 changes: 5 additions & 0 deletions crates/interpreter/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.1](https://github.com/BigBenlau/revm_ben/compare/revm-interpreter-v4.0.0...revm-interpreter-v4.0.1) - 2024-05-02

### Other
- updated the following local packages: revm-primitives

## [4.0.0](https://github.com/bluealloy/revm/compare/revm-interpreter-v3.4.0...revm-interpreter-v4.0.0) - 2024-04-02

### Added
Expand Down
4 changes: 2 additions & 2 deletions crates/interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ keywords = ["no_std", "ethereum", "evm", "revm", "interpreter"]
license = "MIT"
name = "revm-interpreter"
repository = "https://github.com/bluealloy/revm"
version = "4.0.0"
version = "4.0.1"
readme = "../../README.md"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
revm-primitives = { path = "../primitives", version = "3.1.1", default-features = false }
revm-primitives = { path = "../primitives", version = "4.0.0", default-features = false }

# optional
serde = { version = "1.0", default-features = false, features = [
Expand Down
5 changes: 5 additions & 0 deletions crates/precompile/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [6.0.1](https://github.com/BigBenlau/revm_ben/compare/revm-precompile-v6.0.0...revm-precompile-v6.0.1) - 2024-05-02

### Other
- updated the following local packages: revm-primitives

## [6.0.0](https://github.com/bluealloy/revm/compare/revm-precompile-v5.1.0...revm-precompile-v6.0.0) - 2024-04-02

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ keywords = ["no_std", "ethereum", "evm", "revm", "precompiles"]
license = "MIT"
name = "revm-precompile"
repository = "https://github.com/bluealloy/revm"
version = "6.0.0"
version = "6.0.1"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
revm-primitives = { path = "../primitives", version = "3.1.1", default-features = false }
revm-primitives = { path = "../primitives", version = "4.0.0", default-features = false }
bn = { package = "substrate-bn", version = "0.6", default-features = false }
once_cell = { version = "1.19", default-features = false, features = ["alloc"] }
ripemd = { version = "0.1", default-features = false }
Expand Down
8 changes: 8 additions & 0 deletions crates/primitives/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.0.0](https://github.com/BigBenlau/revm_ben/compare/revm-primitives-v3.1.1...revm-primitives-v4.0.0) - 2024-05-02

### Fixed
- fixed bugs in post_execution.rs

### Other
- update exectutionResult structure add total_op_count and total_time

## [3.1.1](https://github.com/bluealloy/revm/compare/revm-primitives-v3.1.0...revm-primitives-v3.1.1) - 2024-04-02

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm", "types"]
license = "MIT"
name = "revm-primitives"
repository = "https://github.com/bluealloy/revm"
version = "3.1.1"
version = "4.0.0"
readme = "../../README.md"

# Don't need to run build script outside of this repo
Expand Down
5 changes: 4 additions & 1 deletion crates/primitives/src/result.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::{Address, Bytes, Log, State, U256};
use core::fmt;
use std::{boxed::Box, string::String, vec::Vec};
use std::collections::HashMap;

/// Result of EVM execution.
pub type EVMResult<DBError> = EVMResultGeneric<ResultAndState, DBError>;
Expand All @@ -18,7 +19,7 @@ pub struct ResultAndState {
}

/// Result of a transaction execution.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum ExecutionResult {
/// Returned successfully
Expand All @@ -28,6 +29,8 @@ pub enum ExecutionResult {
gas_refunded: u64,
logs: Vec<Log>,
output: Output,
total_op_count: HashMap<String, u64>,
total_time: HashMap<String, u64>
},
/// Reverted by `REVERT` opcode that doesn't spend all gas.
Revert { gas_used: u64, output: Bytes },
Expand Down
9 changes: 9 additions & 0 deletions crates/revm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [8.0.1](https://github.com/BigBenlau/revm_ben/compare/revm-v8.0.0...revm-v8.0.1) - 2024-05-02

### Fixed
- fixed bugs in post_execution.rs
- fixed bugs

### Other
- add log in transact()

## [8.0.0](https://github.com/bluealloy/revm/compare/revm-v7.2.0...revm-v8.0.0) - 2024-04-02

### Added
Expand Down
6 changes: 3 additions & 3 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm"]
license = "MIT"
name = "revm"
repository = "https://github.com/bluealloy/revm"
version = "8.0.0"
version = "8.0.1"
readme = "../../README.md"

[package.metadata.docs.rs]
Expand All @@ -15,8 +15,8 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
# revm
revm-interpreter = { path = "../interpreter", version = "4.0.0", default-features = false }
revm-precompile = { path = "../precompile", version = "6.0.0", default-features = false }
revm-interpreter = { path = "../interpreter", version = "4.0.1", default-features = false }
revm-precompile = { path = "../precompile", version = "6.0.1", default-features = false }

# misc
auto_impl = { version = "1.2", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions crates/revm/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ impl<EXT, DB: Database> Evm<'_, EXT, DB> {
/// This function will validate the transaction.
#[inline]
pub fn transact(&mut self) -> EVMResult<DB::Error> {
println!("Start revm transact");
self.handler.validation().env(&self.context.evm.env)?;
let initial_gas_spend = self
.handler
Expand Down
3 changes: 3 additions & 0 deletions crates/revm/src/handler/mainnet/post_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
},
Context, FrameResult,
};
use std::collections::HashMap;

/// Mainnet end handle does not change the output.
#[inline]
Expand Down Expand Up @@ -93,6 +94,8 @@ pub fn output<EXT, DB: Database>(
gas_refunded,
logs,
output,
total_op_count: HashMap::new(),
total_time: HashMap::new()
},
SuccessOrHalt::Revert => ExecutionResult::Revert {
gas_used: final_gas_used,
Expand Down