diff --git a/CHANGELOG.md b/CHANGELOG.md index f6f758616a..1067d984ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ Because this is workspace with multi libraries, tags will be simplified, and with this document you can match version of project with git tag. +# v47 tag +date: 17.10.2024 +Maintenance release. bumping new alloy-eip7702 + +* `revme`: 0.11.0 -> 1.0.0 +* `revm`: 15.0.0 -> 16.0.0 +* `revm-primitives`: 11.0.0 -> 12.0.0 +* `revm-precompile`: 12.0.0 -> 13.0.0 +* `revm-interpreter`: 11.0.0 -> 12.0.0 + # v46 tag date: 17.10.2024 Maintenance release. EIP-7702 newest changes, alloy-primitives bump. diff --git a/Cargo.lock b/Cargo.lock index fb80631602..4056b2186f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -95,6 +95,17 @@ dependencies = [ name = "alloy-eip7702" version = "0.1.0" source = "git+https://github.com/scroll-tech/alloy-eips?branch=v0.1.0#06cb417f8b3df8c29a8bf69a8a10663ceb5a2c37" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "serde", +] + +[[package]] +name = "alloy-eip7702" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeffd2590ce780ddfaa9d0ae340eb2b4e08627650c4676eef537cef0b4bf535d" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -110,7 +121,7 @@ version = "0.3.0" source = "git+https://github.com/scroll-tech/alloy.git?branch=v0.3.0#41bbe34a38a2b1536c58b7c938313a2db4e9369a" dependencies = [ "alloy-eip2930", - "alloy-eip7702", + "alloy-eip7702 0.1.0", "alloy-primitives", "alloy-rlp", "alloy-serde 0.3.0", @@ -3187,7 +3198,7 @@ dependencies = [ [[package]] name = "revm" -version = "15.0.0" +version = "16.0.0" dependencies = [ "alloy-eips", "alloy-provider", @@ -3213,7 +3224,7 @@ dependencies = [ [[package]] name = "revm-interpreter" -version = "11.0.0" +version = "12.0.0" dependencies = [ "bincode", "cfg-if", @@ -3227,7 +3238,7 @@ dependencies = [ [[package]] name = "revm-precompile" -version = "12.0.0" +version = "13.0.0" dependencies = [ "aurora-engine-modexp", "blst", @@ -3253,10 +3264,10 @@ dependencies = [ [[package]] name = "revm-primitives" -version = "11.0.0" +version = "12.0.0" dependencies = [ "alloy-eip2930", - "alloy-eip7702", + "alloy-eip7702 0.2.0", "alloy-primitives", "auto_impl", "bitflags 2.6.0", @@ -3273,7 +3284,7 @@ dependencies = [ [[package]] name = "revm-test" -version = "0.1.0" +version = "1.0.0" dependencies = [ "alloy-sol-macro", "alloy-sol-types", @@ -3287,11 +3298,10 @@ dependencies = [ [[package]] name = "revme" -version = "0.11.0" +version = "1.0.0" dependencies = [ "alloy-rlp", "hash-db", - "hashbrown 0.14.5", "hex", "indicatif", "k256", diff --git a/bins/revm-test/CHANGELOG.md b/bins/revm-test/CHANGELOG.md index 42e7e1a943..5ad97ccc24 100644 --- a/bins/revm-test/CHANGELOG.md +++ b/bins/revm-test/CHANGELOG.md @@ -26,6 +26,116 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Other +- Bump v46 versions ([#1826](https://github.com/bluealloy/revm/pull/1826)) +- release-plz update ([#1807](https://github.com/bluealloy/revm/pull/1807)) +- release-plz update +- *(deps)* bump alloy-sol-types from 0.8.0 to 0.8.2 ([#1762](https://github.com/bluealloy/revm/pull/1762)) +- release ([#1729](https://github.com/bluealloy/revm/pull/1729)) +- release ([#1722](https://github.com/bluealloy/revm/pull/1722)) +- *(deps)* bump alloy and primitives ([#1725](https://github.com/bluealloy/revm/pull/1725)) +- *(deps)* bump bytes from 1.6.1 to 1.7.1 ([#1700](https://github.com/bluealloy/revm/pull/1700)) +- tag v41 revm v13.0.0 ([#1692](https://github.com/bluealloy/revm/pull/1692)) +- release ([#1683](https://github.com/bluealloy/revm/pull/1683)) +- *(deps)* bump regex from 1.10.5 to 1.10.6 ([#1682](https://github.com/bluealloy/revm/pull/1682)) +- bump versions bcs of primitives ([#1631](https://github.com/bluealloy/revm/pull/1631)) +- release ([#1620](https://github.com/bluealloy/revm/pull/1620)) +- *(deps)* bump alloy-sol-types from 0.7.6 to 0.7.7 ([#1614](https://github.com/bluealloy/revm/pull/1614)) +- *(deps)* bump alloy-sol-macro from 0.7.6 to 0.7.7 ([#1613](https://github.com/bluealloy/revm/pull/1613)) +- release ([#1579](https://github.com/bluealloy/revm/pull/1579)) +- release ([#1548](https://github.com/bluealloy/revm/pull/1548)) +- replace TransactTo with TxKind ([#1542](https://github.com/bluealloy/revm/pull/1542)) +- *(deps)* bump regex from 1.10.4 to 1.10.5 ([#1502](https://github.com/bluealloy/revm/pull/1502)) +- release ([#1261](https://github.com/bluealloy/revm/pull/1261)) +- *(interpreter)* rewrite gas accounting for memory expansion ([#1361](https://github.com/bluealloy/revm/pull/1361)) +- revert snailtracer without microbench ([#1259](https://github.com/bluealloy/revm/pull/1259)) +- release ([#1231](https://github.com/bluealloy/revm/pull/1231)) +- *(deps)* bump other alloy deps 0.7.0 ([#1252](https://github.com/bluealloy/revm/pull/1252)) +- *(deps)* bump regex from 1.10.3 to 1.10.4 ([#1223](https://github.com/bluealloy/revm/pull/1223)) +- *(deps)* bump bytes from 1.5.0 to 1.6.0 ([#1224](https://github.com/bluealloy/revm/pull/1224)) +- release ([#1175](https://github.com/bluealloy/revm/pull/1175)) +- tag v32 revm v7.1.0 ([#1176](https://github.com/bluealloy/revm/pull/1176)) +- release ([#1125](https://github.com/bluealloy/revm/pull/1125)) +- *(deps)* bump alloy-sol-types from 0.6.3 to 0.6.4 ([#1148](https://github.com/bluealloy/revm/pull/1148)) +- *(deps)* bump alloy-sol-macro from 0.6.3 to 0.6.4 ([#1136](https://github.com/bluealloy/revm/pull/1136)) +- release tag v30 revm v6.1.0 ([#1100](https://github.com/bluealloy/revm/pull/1100)) +- clippy cleanup ([#1112](https://github.com/bluealloy/revm/pull/1112)) +- *(deps)* bump alloy-sol-types from 0.6.2 to 0.6.3 ([#1103](https://github.com/bluealloy/revm/pull/1103)) +- release ([#1082](https://github.com/bluealloy/revm/pull/1082)) +- *(deps)* bump alloy-sol-macro from 0.6.2 to 0.6.3 ([#1094](https://github.com/bluealloy/revm/pull/1094)) +- license date and revm docs ([#1080](https://github.com/bluealloy/revm/pull/1080)) +- release ([#1067](https://github.com/bluealloy/revm/pull/1067)) +- tag v27, revm v4.0.0 release ([#1061](https://github.com/bluealloy/revm/pull/1061)) +- *(deps)* bump eyre from 0.6.11 to 0.6.12 ([#1051](https://github.com/bluealloy/revm/pull/1051)) +- *(deps)* bump alloy-sol-types from 0.6.0 to 0.6.2 ([#1035](https://github.com/bluealloy/revm/pull/1035)) +- *(deps)* bump alloy-sol-macro from 0.6.0 to 0.6.2 ([#1013](https://github.com/bluealloy/revm/pull/1013)) +- chore(Test) : const to static ([#1016](https://github.com/bluealloy/revm/pull/1016)) +- Burntpix criterion bench ([#1004](https://github.com/bluealloy/revm/pull/1004)) +- Instruction table ([#759](https://github.com/bluealloy/revm/pull/759)) +- rewrite revm-test as a criterion bench ([#579](https://github.com/bluealloy/revm/pull/579)) +- optimize stack usage for recursive `call` and `create` programs ([#522](https://github.com/bluealloy/revm/pull/522)) +- Bump v24, revm v3.3.0 ([#476](https://github.com/bluealloy/revm/pull/476)) +- Release v23, revm v3.2.0 ([#464](https://github.com/bluealloy/revm/pull/464)) +- Release v22, revm v3.1.1 ([#460](https://github.com/bluealloy/revm/pull/460)) +- v21, revm v3.1.0 ([#444](https://github.com/bluealloy/revm/pull/444)) +- remove gas blocks ([#391](https://github.com/bluealloy/revm/pull/391)) +- *(deps)* bump bytes from 1.3.0 to 1.4.0 ([#355](https://github.com/bluealloy/revm/pull/355)) +- Bump v20, changelog ([#350](https://github.com/bluealloy/revm/pull/350)) +- includes to libs ([#338](https://github.com/bluealloy/revm/pull/338)) +- Creating revm-primitives, revm better errors and db components ([#334](https://github.com/bluealloy/revm/pull/334)) +- Cleanup, move hot fields toggether in Interpreter ([#321](https://github.com/bluealloy/revm/pull/321)) +- native bits ([#278](https://github.com/bluealloy/revm/pull/278)) +- *(release)* Bump revm and precompiles versions +- Bump primitive_types. Add statetest spec +- Bump revm v2.1.0 ([#224](https://github.com/bluealloy/revm/pull/224)) +- revm bump v2.0.0, precompile bump v1.1.1 ([#212](https://github.com/bluealloy/revm/pull/212)) +- Cfg choose create analysis, option on bytecode size limit ([#210](https://github.com/bluealloy/revm/pull/210)) +- Cargo sort. Bump lib versions ([#208](https://github.com/bluealloy/revm/pull/208)) +- Return `ExecutionResult`, which includes `gas_refunded` ([#169](https://github.com/bluealloy/revm/pull/169)) +- Bytecode hash, remove override_spec, ([#165](https://github.com/bluealloy/revm/pull/165)) +- revm bump 1.8. update libs. snailtracer rename ([#159](https://github.com/bluealloy/revm/pull/159)) +- v6 changelog, bump versions +- Big Refactor. Machine to Interpreter. refactor instructions. call/create struct ([#52](https://github.com/bluealloy/revm/pull/52)) +- [revm] pop_top and unsafe comments ([#51](https://github.com/bluealloy/revm/pull/51)) +- [precompiles] remove unused borsh +- [recompl] Bump precompile deps, cargo sort on workspace +- [revm] output log. Stetetest test log output. fmt +- Bump versions, Changelogs, fmt, revm readme, clippy. +- [revm] Run test multiple times. fmt, BenchmarkDB +- Multiple changes: web3 db, debugger initial commit, precompile load +- Memory to usize, clippy,fmt +- wip optimize i256 +- TEMP switch stacks H256 with U256 +- [revm] some perfs +- [revm] Perfs stack pop. Benchmark snailtracer. +- [revm] cleanup +- fmt +- EVM Interface changed. Inspector called separately +- Bump revm v0.3.0. README updated +- DB ref mut polished +- And now we debug +- [revm] Interface. Inspector added, Env cleanup. revm-test passes +- Rename bin to bins + +## [0.1.0](https://github.com/bluealloy/revm/releases/tag/revm-test-v0.1.0) - 2024-10-17 + +### Added + +- EOF (Ethereum Object Format) ([#1143](https://github.com/bluealloy/revm/pull/1143)) +- add tests for shift instructions ([#1254](https://github.com/bluealloy/revm/pull/1254)) +- EvmBuilder and External Contexts ([#888](https://github.com/bluealloy/revm/pull/888)) +- separate initial checks ([#486](https://github.com/bluealloy/revm/pull/486)) +- revm-interpreter created ([#320](https://github.com/bluealloy/revm/pull/320)) +- *(interpreter)* Unify instruction fn signature ([#283](https://github.com/bluealloy/revm/pull/283)) +- Migrate `primitive_types::U256` to `ruint::Uint<256, 4>` ([#239](https://github.com/bluealloy/revm/pull/239)) +- Introduce ByteCode format, Update Readme ([#156](https://github.com/bluealloy/revm/pull/156)) + +### Fixed + +- *(eof)* fixture 2 tests ([#1550](https://github.com/bluealloy/revm/pull/1550)) +- *(clippy)* fix some clippy lints + +### Other + - release-plz update ([#1807](https://github.com/bluealloy/revm/pull/1807)) - release-plz update - *(deps)* bump alloy-sol-types from 0.8.0 to 0.8.2 ([#1762](https://github.com/bluealloy/revm/pull/1762)) diff --git a/bins/revm-test/Cargo.toml b/bins/revm-test/Cargo.toml index de7718d3e9..f806a86014 100644 --- a/bins/revm-test/Cargo.toml +++ b/bins/revm-test/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "revm-test" -version = "0.1.0" +version = "1.0.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] bytes = "1.7" hex = "0.4" -revm = { path = "../../crates/revm", version = "15.0.0", default-features=false } +revm = { path = "../../crates/revm", version = "16.0.0", default-features=false } microbench = "0.5" alloy-sol-macro = "0.8.0" alloy-sol-types = "0.8.2" diff --git a/bins/revme/CHANGELOG.md b/bins/revme/CHANGELOG.md index 3fdd51af13..3426616f05 100644 --- a/bins/revme/CHANGELOG.md +++ b/bins/revme/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.0.0](https://github.com/bluealloy/revm/compare/revme-v0.11.0...revme-v1.0.0) - 2024-09-26 + +### Other + +- update Cargo.lock dependencies + ## [0.11.0](https://github.com/bluealloy/revm/compare/revme-v0.10.3...revme-v0.11.0) - 2024-10-17 ### Added diff --git a/bins/revme/Cargo.toml b/bins/revme/Cargo.toml index aa70296ddb..840bb53fef 100644 --- a/bins/revme/Cargo.toml +++ b/bins/revme/Cargo.toml @@ -6,16 +6,15 @@ keywords = ["ethereum", "evm"] license = "MIT" repository = "https://github.com/bluealloy/revm" description = "Rust Ethereum Virtual Machine Executable" -version = "0.11.0" +version = "1.0.0" [dependencies] hash-db = "0.15" hex = "0.4" -hashbrown = "0.14" indicatif = "0.17" microbench = "0.5" plain_hasher = "0.2" -revm = { path = "../../crates/revm", version = "15.0.0", default-features = false, features = [ +revm = { path = "../../crates/revm", version = "16.0.0", default-features = false, features = [ "ethersdb", "std", "serde-json", diff --git a/crates/interpreter/CHANGELOG.md b/crates/interpreter/CHANGELOG.md index 884b9343da..191d4c99bb 100644 --- a/crates/interpreter/CHANGELOG.md +++ b/crates/interpreter/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [12.0.0](https://github.com/bluealloy/revm/compare/revm-interpreter-v11.0.0...revm-interpreter-v12.0.0) - 2024-10-17 + +### Other + +- updated the following local packages: revm-primitives + ## [11.0.0](https://github.com/bluealloy/revm/compare/revm-interpreter-v10.0.3...revm-interpreter-v11.0.0) - 2024-10-17 ### Other diff --git a/crates/interpreter/Cargo.toml b/crates/interpreter/Cargo.toml index c3f2255e09..c74c777eb0 100644 --- a/crates/interpreter/Cargo.toml +++ b/crates/interpreter/Cargo.toml @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm", "interpreter"] license = "MIT" name = "revm-interpreter" repository = "https://github.com/bluealloy/revm" -version = "11.0.0" +version = "12.0.0" readme = "../../README.md" [package.metadata.docs.rs] @@ -22,7 +22,7 @@ rust_2018_idioms = "deny" all = "warn" [dependencies] -revm-primitives = { path = "../primitives", version = "11.0.0", default-features = false } +revm-primitives = { path = "../primitives", version = "12.0.0", default-features = false } cfg-if = "1.0" paste = { version = "1.0", optional = true } diff --git a/crates/precompile/CHANGELOG.md b/crates/precompile/CHANGELOG.md index 1ef93ecff3..54f9bac639 100644 --- a/crates/precompile/CHANGELOG.md +++ b/crates/precompile/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [13.0.0](https://github.com/bluealloy/revm/compare/revm-precompile-v12.0.0...revm-precompile-v13.0.0) - 2024-10-17 + +### Other + +- updated the following local packages: revm-primitives + ## [12.0.0](https://github.com/bluealloy/revm/compare/revm-precompile-v11.0.3...revm-precompile-v12.0.0) - 2024-10-17 ### Added diff --git a/crates/precompile/Cargo.toml b/crates/precompile/Cargo.toml index dac15e58e6..b971f8802a 100644 --- a/crates/precompile/Cargo.toml +++ b/crates/precompile/Cargo.toml @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm", "precompiles"] license = "MIT" name = "revm-precompile" repository = "https://github.com/bluealloy/revm" -version = "12.0.0" +version = "13.0.0" readme = "../../README.md" [package.metadata.docs.rs] @@ -22,7 +22,7 @@ rust_2018_idioms = "deny" all = "warn" [dependencies] -revm-primitives = { path = "../primitives", version = "11.0.0", default-features = false } +revm-primitives = { path = "../primitives", version = "12.0.0", default-features = false } once_cell = { version = "1.19", default-features = false, features = ["alloc"] } # ecRecover diff --git a/crates/primitives/CHANGELOG.md b/crates/primitives/CHANGELOG.md index f5ae29eb49..b410ca77fa 100644 --- a/crates/primitives/CHANGELOG.md +++ b/crates/primitives/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [12.0.0](https://github.com/bluealloy/revm/compare/revm-primitives-v11.0.0...revm-primitives-v12.0.0) - 2024-10-17 + +### Other + +- update Cargo.toml dependencies + ## [11.0.0](https://github.com/bluealloy/revm/compare/revm-primitives-v10.0.0...revm-primitives-v11.0.0) - 2024-10-17 ### Added diff --git a/crates/primitives/Cargo.toml b/crates/primitives/Cargo.toml index 6ed98d9c05..06aee1464a 100644 --- a/crates/primitives/Cargo.toml +++ b/crates/primitives/Cargo.toml @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm", "types"] license = "MIT" name = "revm-primitives" repository = "https://github.com/bluealloy/revm" -version = "11.0.0" +version = "12.0.0" readme = "../../README.md" [package.metadata.docs.rs] @@ -24,7 +24,7 @@ all = "warn" [dependencies] # alloy alloy-eip2930 = { version = "0.1", default-features = false } -alloy-eip7702 = { version = "0.1", default-features = false, features = [ +alloy-eip7702 = { version = "0.2", default-features = false, features = [ "k256", ] } alloy-primitives = { version = "0.8.8", default-features = false, features = [ diff --git a/crates/revm/CHANGELOG.md b/crates/revm/CHANGELOG.md index 9d2b93eae4..22a04fe8f4 100644 --- a/crates/revm/CHANGELOG.md +++ b/crates/revm/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [16.0.0](https://github.com/bluealloy/revm/compare/revm-v15.0.0...revm-v16.0.0) - 2024-10-17 + +### Other + +- update Cargo.toml dependencies + ## [15.0.0](https://github.com/bluealloy/revm/compare/revm-v14.0.3...revm-v15.0.0) - 2024-10-17 ### Added diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index f071bbb3b3..b7f6d946a9 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -6,7 +6,7 @@ keywords = ["no_std", "ethereum", "evm", "revm"] license = "MIT" name = "revm" repository = "https://github.com/bluealloy/revm" -version = "15.0.0" +version = "16.0.0" readme = "../../README.md" [package.metadata.docs.rs] @@ -23,8 +23,8 @@ all = "warn" [dependencies] # revm -revm-interpreter = { path = "../interpreter", version = "11.0.0", default-features = false } -revm-precompile = { path = "../precompile", version = "12.0.0", default-features = false } +revm-interpreter = { path = "../interpreter", version = "12.0.0", default-features = false } +revm-precompile = { path = "../precompile", version = "13.0.0", default-features = false } # misc auto_impl = { version = "1.2", default-features = false } diff --git a/crates/revm/src/context/inner_evm_context.rs b/crates/revm/src/context/inner_evm_context.rs index 8869ea4ee1..2641e8c12e 100644 --- a/crates/revm/src/context/inner_evm_context.rs +++ b/crates/revm/src/context/inner_evm_context.rs @@ -268,7 +268,7 @@ impl InnerEvmContext { let hash = if delegated_account.is_empty() { B256::ZERO } else if delegated_account.info.code.as_ref().unwrap().is_eof() { - crate::primitives::EOF_MAGIC_HASH + EOF_MAGIC_HASH } else { delegated_account.info.code_hash }; diff --git a/crates/revm/src/evm.rs b/crates/revm/src/evm.rs index 88ac100e01..ebbde1d764 100644 --- a/crates/revm/src/evm.rs +++ b/crates/revm/src/evm.rs @@ -415,7 +415,7 @@ mod tests { tx.authorization_list = Some( vec![RecoveredAuthorization::new_unchecked( Authorization { - chain_id: U256::from(1), + chain_id: 1, address: delegate, nonce: 0, } diff --git a/crates/revm/src/handler/mainnet/pre_execution.rs b/crates/revm/src/handler/mainnet/pre_execution.rs index bfb6d68a5b..361db03464 100644 --- a/crates/revm/src/handler/mainnet/pre_execution.rs +++ b/crates/revm/src/handler/mainnet/pre_execution.rs @@ -115,8 +115,8 @@ pub fn apply_eip7702_auth_list( let mut refunded_accounts = 0; for authorization in authorization_list.recovered_iter() { // 1. Verify the chain id is either 0 or the chain's current ID. - if !authorization.chain_id().is_zero() - && authorization.chain_id() != U256::from(context.evm.inner.env.cfg.chain_id) + if !authorization.chain_id() == 0 + && authorization.chain_id() != context.evm.inner.env.cfg.chain_id { continue; }