From ce928f455d1ecbc4306126af8835ad2c5636a8df Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 16 Jul 2024 16:45:39 +0200 Subject: [PATCH 01/10] fix: remove generic on SignedAuthorization --- crates/primitives/src/transaction/eip7702.rs | 4 ++-- crates/primitives/src/transaction/mod.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/primitives/src/transaction/eip7702.rs b/crates/primitives/src/transaction/eip7702.rs index 5d53e1dfe824..50bc09c66045 100644 --- a/crates/primitives/src/transaction/eip7702.rs +++ b/crates/primitives/src/transaction/eip7702.rs @@ -64,7 +64,7 @@ pub struct TxEip7702 { /// Authorizations are used to temporarily set the code of its signer to /// the code referenced by `address`. These also include a `chain_id` (which /// can be set to zero and not evaluated) as well as an optional `nonce`. - pub authorization_list: Vec>, + pub authorization_list: Vec, /// Input has two uses depending if the transaction `to` field is [`TxKind::Create`] or /// [`TxKind::Call`]. /// @@ -105,7 +105,7 @@ impl TxEip7702 { self.to.size() + // to mem::size_of::() + // value self.access_list.size() + // access_list - mem::size_of::>() + mem::size_of::() * self.authorization_list.capacity() + // authorization_list self.input.len() // input } diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs index 1749666b1472..ed6d235aca33 100644 --- a/crates/primitives/src/transaction/mod.rs +++ b/crates/primitives/src/transaction/mod.rs @@ -262,9 +262,7 @@ impl Transaction { /// Returns the [`SignedAuthorization`] list of the transaction. /// /// Returns `None` if this transaction is not EIP-7702. - pub fn authorization_list( - &self, - ) -> Option<&[SignedAuthorization]> { + pub fn authorization_list(&self) -> Option<&[SignedAuthorization]> { match self { Self::Eip7702(tx) => Some(&tx.authorization_list), _ => None, From c1a6ae681888c4d7e3822b7c96f377654f5bdc6a Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 16 Jul 2024 16:49:26 +0200 Subject: [PATCH 02/10] fix: proptest --- crates/storage/codecs/src/alloy/access_list.rs | 5 +++-- crates/storage/codecs/src/alloy/authorization_list.rs | 2 +- crates/storage/codecs/src/alloy/withdrawal.rs | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/storage/codecs/src/alloy/access_list.rs b/crates/storage/codecs/src/alloy/access_list.rs index f5564e81601a..6b18d8ad73eb 100644 --- a/crates/storage/codecs/src/alloy/access_list.rs +++ b/crates/storage/codecs/src/alloy/access_list.rs @@ -49,11 +49,12 @@ mod tests { use super::*; use alloy_primitives::Bytes; use proptest::proptest; + use proptest_arbitrary_interop::arb; use serde::Deserialize; proptest! { #[test] - fn test_roundtrip_compact_access_list_item(access_list_item: AccessListItem) { + fn test_roundtrip_compact_access_list_item(access_list_item in arb::()) { let mut compacted_access_list_item = Vec::::new(); let len = access_list_item.clone().to_compact(&mut compacted_access_list_item); @@ -64,7 +65,7 @@ mod tests { proptest! { #[test] - fn test_roundtrip_compact_access_list(access_list: AccessList) { + fn test_roundtrip_compact_access_list(access_list in arb::()) { let mut compacted_access_list = Vec::::new(); let len = access_list.clone().to_compact(&mut compacted_access_list); diff --git a/crates/storage/codecs/src/alloy/authorization_list.rs b/crates/storage/codecs/src/alloy/authorization_list.rs index 5dc9836985ae..520a4cc04324 100644 --- a/crates/storage/codecs/src/alloy/authorization_list.rs +++ b/crates/storage/codecs/src/alloy/authorization_list.rs @@ -36,7 +36,7 @@ impl Compact for AlloyAuthorization { } } -impl Compact for SignedAuthorization { +impl Compact for SignedAuthorization { fn to_compact(self, buf: &mut B) -> usize where B: bytes::BufMut + AsMut<[u8]>, diff --git a/crates/storage/codecs/src/alloy/withdrawal.rs b/crates/storage/codecs/src/alloy/withdrawal.rs index 80effd6683fb..b1ced8fb42cf 100644 --- a/crates/storage/codecs/src/alloy/withdrawal.rs +++ b/crates/storage/codecs/src/alloy/withdrawal.rs @@ -49,10 +49,11 @@ impl Compact for AlloyWithdrawal { mod tests { use super::*; use proptest::proptest; + use proptest_arbitrary_interop::arb; proptest! { #[test] - fn roundtrip(withdrawal: AlloyWithdrawal) { + fn roundtrip(withdrawal in arb::()) { let mut compacted_withdrawal = Vec::::new(); let len = withdrawal.to_compact(&mut compacted_withdrawal); let (decoded, _) = AlloyWithdrawal::from_compact(&compacted_withdrawal, len); From 14490f6c226614a666235778973f4a2c01408b2a Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 16 Jul 2024 17:19:32 +0200 Subject: [PATCH 03/10] feat: use alloy RpcModules --- crates/rpc/rpc-types/src/lib.rs | 2 -- crates/rpc/rpc-types/src/rpc.rs | 42 --------------------------------- 2 files changed, 44 deletions(-) delete mode 100644 crates/rpc/rpc-types/src/rpc.rs diff --git a/crates/rpc/rpc-types/src/lib.rs b/crates/rpc/rpc-types/src/lib.rs index 7f578ab29400..6a73c740213a 100644 --- a/crates/rpc/rpc-types/src/lib.rs +++ b/crates/rpc/rpc-types/src/lib.rs @@ -12,7 +12,6 @@ #[allow(hidden_glob_reexports)] mod eth; mod peer; -mod rpc; // re-export for convenience pub use alloy_rpc_types::serde_helpers; @@ -54,4 +53,3 @@ pub use eth::{ }; pub use peer::*; -pub use rpc::*; diff --git a/crates/rpc/rpc-types/src/rpc.rs b/crates/rpc/rpc-types/src/rpc.rs deleted file mode 100644 index 0b9afeb79a67..000000000000 --- a/crates/rpc/rpc-types/src/rpc.rs +++ /dev/null @@ -1,42 +0,0 @@ -use serde::{Deserialize, Serialize}; -use std::collections::HashMap; - -/// Represents the `rpc_modules` response, which returns the -/// list of all available modules on that transport and their version -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] -#[serde(transparent)] -pub struct RpcModules { - module_map: HashMap, -} - -impl RpcModules { - /// Create a new instance of `RPCModules` - pub const fn new(module_map: HashMap) -> Self { - Self { module_map } - } - - /// Consumes self and returns the inner hashmap mapping module names to their versions - pub fn into_modules(self) -> HashMap { - self.module_map - } -} - -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn test_parse_module_versions_roundtrip() { - let s = r#"{"txpool":"1.0","trace":"1.0","eth":"1.0","web3":"1.0","net":"1.0"}"#; - let module_map = HashMap::from([ - ("txpool".to_owned(), "1.0".to_owned()), - ("trace".to_owned(), "1.0".to_owned()), - ("eth".to_owned(), "1.0".to_owned()), - ("web3".to_owned(), "1.0".to_owned()), - ("net".to_owned(), "1.0".to_owned()), - ]); - let m = RpcModules::new(module_map); - let de_serialized: RpcModules = serde_json::from_str(s).unwrap(); - assert_eq!(de_serialized, m); - } -} From 10657a4743153eff990759107297db9cd75de3f2 Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 16 Jul 2024 17:21:11 +0200 Subject: [PATCH 04/10] fix: various fixes --- crates/rpc/rpc-engine-api/src/engine_api.rs | 6 +++--- crates/rpc/rpc-eth-types/src/receipt.rs | 1 + crates/rpc/rpc-eth-types/src/revm_utils.rs | 2 +- crates/rpc/rpc-types-compat/src/proof.rs | 3 +-- crates/rpc/rpc-types-compat/src/transaction/mod.rs | 3 ++- crates/rpc/rpc/src/admin.rs | 3 +-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/rpc/rpc-engine-api/src/engine_api.rs b/crates/rpc/rpc-engine-api/src/engine_api.rs index 4ec832053d20..881413210ae4 100644 --- a/crates/rpc/rpc-engine-api/src/engine_api.rs +++ b/crates/rpc/rpc-engine-api/src/engine_api.rs @@ -540,7 +540,7 @@ where let local_hash = self .inner .provider - .block_hash(terminal_block_number.to()) + .block_hash(terminal_block_number) .map_err(|err| EngineApiError::Internal(Box::new(err)))?; // Transition configuration exchange is successful if block hashes match @@ -1154,7 +1154,7 @@ mod tests { .ttd() .unwrap(), terminal_block_hash: consensus_terminal_block.hash(), - terminal_block_number: U64::from(terminal_block_number), + terminal_block_number, }; // Unknown block number @@ -1196,7 +1196,7 @@ mod tests { .ttd() .unwrap(), terminal_block_hash: terminal_block.hash(), - terminal_block_number: U64::from(terminal_block_number), + terminal_block_number, }; handle.provider.add_block(terminal_block.hash(), terminal_block.unseal()); diff --git a/crates/rpc/rpc-eth-types/src/receipt.rs b/crates/rpc/rpc-eth-types/src/receipt.rs index cd3fd1ed514b..e49f46465d1d 100644 --- a/crates/rpc/rpc-eth-types/src/receipt.rs +++ b/crates/rpc/rpc-eth-types/src/receipt.rs @@ -104,6 +104,7 @@ impl ReceiptBuilder { // EIP-4844 fields blob_gas_price, blob_gas_used: blob_gas_used.map(u128::from), + authorization_list: transaction.authorization_list().map(|l| l.to_vec()), }; Ok(Self { base, other: Default::default() }) diff --git a/crates/rpc/rpc-eth-types/src/revm_utils.rs b/crates/rpc/rpc-eth-types/src/revm_utils.rs index 27ab25021acb..fb04abb72a51 100644 --- a/crates/rpc/rpc-eth-types/src/revm_utils.rs +++ b/crates/rpc/rpc-eth-types/src/revm_utils.rs @@ -254,7 +254,7 @@ where let mut account_info = DatabaseRef::basic_ref(db, account)?.unwrap_or_default(); if let Some(nonce) = account_override.nonce { - account_info.nonce = nonce.to(); + account_info.nonce = nonce; } if let Some(code) = account_override.code { account_info.code = Some(Bytecode::new_raw(code)); diff --git a/crates/rpc/rpc-types-compat/src/proof.rs b/crates/rpc/rpc-types-compat/src/proof.rs index 9d2fec876b0c..edf5855163b4 100644 --- a/crates/rpc/rpc-types-compat/src/proof.rs +++ b/crates/rpc/rpc-types-compat/src/proof.rs @@ -1,6 +1,5 @@ //! Compatibility functions for rpc proof related types. -use reth_primitives::U64; use reth_rpc_types::{ serde_helpers::JsonStorageKey, EIP1186AccountProofResponse, EIP1186StorageProof, }; @@ -18,7 +17,7 @@ pub fn from_primitive_account_proof(proof: AccountProof) -> EIP1186AccountProofR address: proof.address, balance: info.balance, code_hash: info.get_bytecode_hash(), - nonce: U64::from(info.nonce), + nonce: info.nonce, storage_hash: proof.storage_root, account_proof: proof.proof, storage_proof: proof.storage_proofs.into_iter().map(from_primitive_storage_proof).collect(), diff --git a/crates/rpc/rpc-types-compat/src/transaction/mod.rs b/crates/rpc/rpc-types-compat/src/transaction/mod.rs index 62eb2b8e49d2..01d4028682a1 100644 --- a/crates/rpc/rpc-types-compat/src/transaction/mod.rs +++ b/crates/rpc/rpc-types-compat/src/transaction/mod.rs @@ -73,7 +73,7 @@ fn fill( let chain_id = signed_tx.chain_id(); let blob_versioned_hashes = signed_tx.blob_versioned_hashes(); let access_list = signed_tx.access_list().cloned(); - let _authorization_list = signed_tx.authorization_list(); + let authorization_list = signed_tx.authorization_list().map(|l| l.to_vec()); let signature = from_primitive_signature(*signed_tx.signature(), signed_tx.tx_type(), signed_tx.chain_id()); @@ -101,6 +101,7 @@ fn fill( // EIP-4844 fields max_fee_per_blob_gas: signed_tx.max_fee_per_blob_gas(), blob_versioned_hashes, + authorization_list, // Optimism fields #[cfg(feature = "optimism")] other: reth_rpc_types::optimism::OptimismTransactionFields { diff --git a/crates/rpc/rpc/src/admin.rs b/crates/rpc/rpc/src/admin.rs index 1d59baa6e274..cb39136a0b04 100644 --- a/crates/rpc/rpc/src/admin.rs +++ b/crates/rpc/rpc/src/admin.rs @@ -1,7 +1,6 @@ use std::sync::Arc; use alloy_genesis::ChainConfig; -use alloy_primitives::B256; use async_trait::async_trait; use jsonrpsee::core::RpcResult; use reth_chainspec::ChainSpec; @@ -116,7 +115,7 @@ where }; let node_info = NodeInfo { - id: B256::from_slice(&enode.id.as_slice()[..32]), + id: enode.id.to_string(), name: status.client_version, enode: enode.to_string(), enr: self.network.local_enr().to_string(), From 081b75d50ffb08dd15aa8bc7d1a48e30e29192e5 Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 16 Jul 2024 19:46:54 +0000 Subject: [PATCH 05/10] bump alloy to v0.2 --- Cargo.lock | 424 +++++++++++++++++++++++++++++++++++++---------------- Cargo.toml | 54 +++---- 2 files changed, 328 insertions(+), 150 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 867a8cdc6afb..f3ab3d7c0c6e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,14 +127,26 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da374e868f54c7f4ad2ad56829827badca388efd645f8cf5fccc61c2b5343504" dependencies = [ - "alloy-eips", + "alloy-eips 0.1.4", "alloy-primitives", "alloy-rlp", - "alloy-serde", + "alloy-serde 0.1.4", + "c-kzg", + "serde", +] + +[[package]] +name = "alloy-consensus" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58047cc851e58c26224521d1ecda466e3d746ebca0274cd5427aa660a88c353" +dependencies = [ + "alloy-eips 0.2.0", + "alloy-primitives", + "alloy-rlp", + "alloy-serde 0.2.0", "arbitrary", "c-kzg", - "proptest", - "proptest-derive 0.4.0", "serde", ] @@ -164,25 +176,39 @@ checksum = "f76ecab54890cdea1e4808fc0891c7e6cfcf71fe1a9fe26810c7280ef768f4ed" dependencies = [ "alloy-primitives", "alloy-rlp", - "alloy-serde", + "alloy-serde 0.1.4", + "c-kzg", + "once_cell", + "serde", + "sha2 0.10.8", +] + +[[package]] +name = "alloy-eips" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32a3e14fa0d152d00bd8daf605eb74ad397efb0f54bd7155585823dddb4401e" +dependencies = [ + "alloy-primitives", + "alloy-rlp", + "alloy-serde 0.2.0", "arbitrary", "c-kzg", "derive_more", + "k256", "once_cell", - "proptest", - "proptest-derive 0.4.0", "serde", "sha2 0.10.8", ] [[package]] name = "alloy-genesis" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bca15afde1b6d15e3fc1c97421262b1bbb37aee45752e3c8b6d6f13f776554ff" +checksum = "20cb76c8a3913f2466c5488f3a915e3a15d15596bdc935558c1a9be75e9ec508" dependencies = [ "alloy-primitives", - "alloy-serde", + "alloy-serde 0.2.0", "serde", ] @@ -211,19 +237,52 @@ dependencies = [ "tracing", ] +[[package]] +name = "alloy-json-rpc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e76a9feec2352c78545d1a37415699817bae8dc41654bd1bfe57d6cdd5433bd" +dependencies = [ + "alloy-primitives", + "serde", + "serde_json", + "thiserror", + "tracing", +] + [[package]] name = "alloy-network" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25f6895fc31b48fa12306ef9b4f78b7764f8bd6d7d91cdb0a40e233704a0f23f" dependencies = [ - "alloy-consensus", - "alloy-eips", - "alloy-json-rpc", + "alloy-consensus 0.1.4", + "alloy-eips 0.1.4", + "alloy-json-rpc 0.1.4", + "alloy-primitives", + "alloy-rpc-types-eth 0.1.4", + "alloy-serde 0.1.4", + "alloy-signer 0.1.4", + "alloy-sol-types", + "async-trait", + "auto_impl", + "futures-utils-wasm", + "thiserror", +] + +[[package]] +name = "alloy-network" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3223d71dc78f464b2743418d0be8b5c894313e272105a6206ad5e867d67b3ce2" +dependencies = [ + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", + "alloy-json-rpc 0.2.0", "alloy-primitives", - "alloy-rpc-types-eth", - "alloy-serde", - "alloy-signer", + "alloy-rpc-types-eth 0.2.0", + "alloy-serde 0.2.0", + "alloy-signer 0.2.0", "alloy-sol-types", "async-trait", "auto_impl", @@ -233,9 +292,9 @@ dependencies = [ [[package]] name = "alloy-node-bindings" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494b2fb0276a78ec13791446a417c2517eee5c8e8a8c520ae0681975b8056e5c" +checksum = "77a2864b3470d3c74bf50a70f4a5f3e87a7359870878a268be829d7caff42f13" dependencies = [ "alloy-genesis", "alloy-primitives", @@ -276,21 +335,21 @@ dependencies = [ [[package]] name = "alloy-provider" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c538bfa893d07e27cb4f3c1ab5f451592b7c526d511d62b576a2ce59e146e4a" +checksum = "f29da7457d853cb8199ec04b227d5d2ef598be3e59fc2bbad70c8be213292f32" dependencies = [ "alloy-chains", - "alloy-consensus", - "alloy-eips", - "alloy-json-rpc", - "alloy-network", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", + "alloy-json-rpc 0.2.0", + "alloy-network 0.2.0", "alloy-primitives", "alloy-pubsub", "alloy-rpc-client", "alloy-rpc-types-admin", "alloy-rpc-types-engine", - "alloy-rpc-types-eth", + "alloy-rpc-types-eth 0.2.0", "alloy-transport", "alloy-transport-http", "alloy-transport-ws", @@ -312,11 +371,11 @@ dependencies = [ [[package]] name = "alloy-pubsub" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a7341322d9bc0e49f6e9fd9f2eb8e30f73806f2dd12cbb3d6bab2694c921f87" +checksum = "f64acfec654ade392cecfa9bba0408eb2a337d55f1b857925da79970cb70f3d6" dependencies = [ - "alloy-json-rpc", + "alloy-json-rpc 0.2.0", "alloy-primitives", "alloy-transport", "bimap", @@ -353,11 +412,11 @@ dependencies = [ [[package]] name = "alloy-rpc-client" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ba31bae67773fd5a60020bea900231f8396202b7feca4d0c70c6b59308ab4a8" +checksum = "f8a9e609524fa31c2c70eb24c0da60796809193ad4787a6dfe6d0db0d3ac112d" dependencies = [ - "alloy-json-rpc", + "alloy-json-rpc 0.2.0", "alloy-primitives", "alloy-pubsub", "alloy-transport", @@ -380,18 +439,29 @@ name = "alloy-rpc-types" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "184a7a42c7ba9141cc9e76368356168c282c3bc3d9e5d78f3556bdfe39343447" +dependencies = [ + "alloy-rpc-types-eth 0.1.4", + "alloy-rpc-types-trace 0.1.4", + "alloy-serde 0.1.4", +] + +[[package]] +name = "alloy-rpc-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e5d76f1e8b22f48b7b8f985782b68e7eb3938780e50e8b646a53e41a598cdf5" dependencies = [ "alloy-rpc-types-engine", - "alloy-rpc-types-eth", - "alloy-rpc-types-trace", - "alloy-serde", + "alloy-rpc-types-eth 0.2.0", + "alloy-serde 0.2.0", + "serde", ] [[package]] name = "alloy-rpc-types-admin" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e953064025c49dc9f6a3f3ac07a713487849065692228b33948f2714f2bb60d" +checksum = "137f0014c3a61ccc5168289fcc214d7296c389c0bf60425c0f898cff1d7e4bec" dependencies = [ "alloy-genesis", "alloy-primitives", @@ -401,22 +471,22 @@ dependencies = [ [[package]] name = "alloy-rpc-types-anvil" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c7cf4356a9d00df76d6e90d002e2a7b5edc1c8476e90e6f17ab868d99db6435" +checksum = "4282c002a4ae9f57887dae57083fcca6dca09cb6685bf98b8582ea93cb3df97d" dependencies = [ "alloy-primitives", - "alloy-serde", + "alloy-serde 0.2.0", "serde", ] [[package]] name = "alloy-rpc-types-beacon" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5f2e67d3e2478902b71bbadcd564ee5bbcc71945a0010a1f0e87a2339c6f3f9" +checksum = "9b47dcc8e3bebea57b1c9495a7e6f3313e99d355c0f5b80473cfbdfcbdd6ebea" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", "alloy-rpc-types-engine", "serde", @@ -426,16 +496,16 @@ dependencies = [ [[package]] name = "alloy-rpc-types-engine" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e765962e3b82fd6f276a0873b5bd897e5d75a25f78fa9a6a21bd350d8e98a4e" +checksum = "73445fbc5c02258e3d0d977835c92366a4d91545fd456c3fc8601c61810bc9f6" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types-eth", - "alloy-serde", + "alloy-rpc-types-eth 0.2.0", + "alloy-serde 0.2.0", "jsonrpsee-types", "jsonwebtoken", "rand 0.8.5", @@ -449,17 +519,33 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab4123ee21f99ba4bd31bfa36ba89112a18a500f8b452f02b35708b1b951e2b9" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.1.4", + "alloy-eips 0.1.4", + "alloy-primitives", + "alloy-rlp", + "alloy-serde 0.1.4", + "alloy-sol-types", + "itertools 0.13.0", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "alloy-rpc-types-eth" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "605fa8462732bb8fd0645a9941e12961e079d45ae6a44634c826f8229c187bdf" +dependencies = [ + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-primitives", "alloy-rlp", - "alloy-serde", + "alloy-serde 0.2.0", "alloy-sol-types", "arbitrary", "itertools 0.13.0", "jsonrpsee-types", - "proptest", - "proptest-derive 0.4.0", "serde", "serde_json", "thiserror", @@ -467,13 +553,13 @@ dependencies = [ [[package]] name = "alloy-rpc-types-mev" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dd8624e01721deacad6bc9af75abdf2e99d248df0e1ad5f3f0bda0b3c1d50fd" +checksum = "5ffcb83a5a91d327c40ba2157a19016bb883c1426f1708fea5f9e042032fd73e" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", - "alloy-serde", + "alloy-serde 0.2.0", "serde", "serde_json", ] @@ -485,8 +571,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567933b1d95fd42cb70b75126e32afec2e5e2c3c16e7100a3f83dc1c80f4dc0e" dependencies = [ "alloy-primitives", - "alloy-rpc-types-eth", - "alloy-serde", + "alloy-rpc-types-eth 0.1.4", + "alloy-serde 0.1.4", + "serde", + "serde_json", + "thiserror", +] + +[[package]] +name = "alloy-rpc-types-trace" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f561a8cdd377b6ac3beab805b9df5ec2c7d99bb6139aab23c317f26df6fb346" +dependencies = [ + "alloy-primitives", + "alloy-rpc-types-eth 0.2.0", + "alloy-serde 0.2.0", "serde", "serde_json", "thiserror", @@ -494,13 +594,13 @@ dependencies = [ [[package]] name = "alloy-rpc-types-txpool" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3115f4eb1bb9ae9aaa0b24ce875a1d86d6689b16438a12377832def2b09e373c" +checksum = "c06a4bd39910631c11148c5b2c55e2c61f8626affd2a612e382c668d5e5971ce" dependencies = [ "alloy-primitives", - "alloy-rpc-types-eth", - "alloy-serde", + "alloy-rpc-types-eth 0.2.0", + "alloy-serde 0.2.0", "serde", ] @@ -509,11 +609,20 @@ name = "alloy-serde" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9416c52959e66ead795a11f4a86c248410e9e368a0765710e57055b8a1774dd6" +dependencies = [ + "alloy-primitives", + "serde", + "serde_json", +] + +[[package]] +name = "alloy-serde" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15c5b9057acc02aee1b8aac2b5a0729cb0f73d080082c111313e5d1f92a96630" dependencies = [ "alloy-primitives", "arbitrary", - "proptest", - "proptest-derive 0.4.0", "serde", "serde_json", ] @@ -532,16 +641,30 @@ dependencies = [ "thiserror", ] +[[package]] +name = "alloy-signer" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37f10592696f4ab8b687d5a8ab55e998a14ea0ca5f8eb20ad74a96ad671bb54a" +dependencies = [ + "alloy-primitives", + "async-trait", + "auto_impl", + "elliptic-curve", + "k256", + "thiserror", +] + [[package]] name = "alloy-signer-local" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dfc9c26fe6c6f1bad818c9a976de9044dd12e1f75f1f156a801ee3e8148c1b6" +checksum = "0b537f3e55f30753578f4623d5f66ddad8fa582af3fa6b15bad23dd1b9775228" dependencies = [ - "alloy-consensus", - "alloy-network", + "alloy-consensus 0.2.0", + "alloy-network 0.2.0", "alloy-primitives", - "alloy-signer", + "alloy-signer 0.2.0", "async-trait", "coins-bip32", "coins-bip39", @@ -621,11 +744,11 @@ dependencies = [ [[package]] name = "alloy-transport" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01b51a291f949f755e6165c3ed562883175c97423703703355f4faa4b7d0a57c" +checksum = "5b44b0f6f4a2593b258fa7b6cae8968e6a4c404d9ef4f5bc74401f2d04fa23fa" dependencies = [ - "alloy-json-rpc", + "alloy-json-rpc 0.2.0", "base64 0.22.1", "futures-util", "futures-utils-wasm", @@ -640,11 +763,11 @@ dependencies = [ [[package]] name = "alloy-transport-http" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d65871f9f1cafe1ed25cde2f1303be83e6473e995a2d56c275ae4fcce6119c" +checksum = "6d8f1eefa8cb9e7550740ee330feba4fed303a77ad3085707546f9152a88c380" dependencies = [ - "alloy-json-rpc", + "alloy-json-rpc 0.2.0", "alloy-transport", "reqwest", "serde_json", @@ -655,11 +778,11 @@ dependencies = [ [[package]] name = "alloy-transport-ipc" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd7fbc8b6282ce41b01cbddef7bffb133fe6e1bf65dcd39770d45a905c051179" +checksum = "31007c56dc65bd81392112dda4a14c20ac7e30bb4cb2e9176192e8d9fab1983f" dependencies = [ - "alloy-json-rpc", + "alloy-json-rpc 0.2.0", "alloy-pubsub", "alloy-transport", "bytes", @@ -674,9 +797,9 @@ dependencies = [ [[package]] name = "alloy-transport-ws" -version = "0.1.4" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aec83fd052684556c78c54df111433493267234d82321c2236560c752f595f20" +checksum = "15ccc1c8f8ae415e93ec0e7851bd4cdf4afdd48793d13a91b860317da1f36104" dependencies = [ "alloy-pubsub", "alloy-transport", @@ -1274,6 +1397,19 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bls12_381" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7bc6d6292be3a19e6379786dac800f551e5865a5bb51ebbe3064ab80433f403" +dependencies = [ + "ff", + "group", + "pairing", + "rand_core 0.6.4", + "subtle", +] + [[package]] name = "blst" version = "0.3.12" @@ -3045,6 +3181,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ + "bitvec", "rand_core 0.6.4", "subtle", ] @@ -4383,6 +4520,21 @@ version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4933f3f57a8e9d9da04db23fb153356ecaf00cbd14aee46279c33dc80925c37" +[[package]] +name = "kzg-rs" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd9920cd4460ce3cbca19c62f3bb9a9611562478a4dc9d2c556f4a7d049c5b6b" +dependencies = [ + "bls12_381", + "glob", + "hex", + "once_cell", + "serde", + "serde_derive", + "serde_yaml", +] + [[package]] name = "lazy_static" version = "1.5.0" @@ -5171,11 +5323,11 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b48c0a77ef55d1a1bd1742777fba58a3ddd4b25bf49e275b667a522f8583f5b9" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.1.4", + "alloy-eips 0.1.4", "alloy-primitives", "alloy-rlp", - "alloy-serde", + "alloy-serde 0.1.4", "serde", ] @@ -5185,10 +5337,10 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bcd62a018e13a05284fa1686b78bd58c469de2e627401ba63c2ca06d7168f7e8" dependencies = [ - "alloy-network", + "alloy-network 0.1.4", "alloy-primitives", - "alloy-rpc-types-eth", - "alloy-serde", + "alloy-rpc-types-eth 0.1.4", + "alloy-serde 0.1.4", "op-alloy-consensus", "serde", "serde_json", @@ -5249,6 +5401,15 @@ dependencies = [ "winapi", ] +[[package]] +name = "pairing" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81fec4625e73cf41ef4bb6846cafa6d44736525f442ba45e407c4a000a13996f" +dependencies = [ + "group", +] + [[package]] name = "parity-scale-codec" version = "3.6.12" @@ -6328,9 +6489,9 @@ dependencies = [ name = "reth-bench" version = "1.0.1" dependencies = [ - "alloy-consensus", - "alloy-eips", - "alloy-json-rpc", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", + "alloy-json-rpc 0.2.0", "alloy-provider", "alloy-pubsub", "alloy-rpc-client", @@ -6415,7 +6576,7 @@ name = "reth-chainspec" version = "1.0.1" dependencies = [ "alloy-chains", - "alloy-eips", + "alloy-eips 0.2.0", "alloy-genesis", "alloy-primitives", "alloy-rlp", @@ -6510,7 +6671,7 @@ dependencies = [ name = "reth-cli-util" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", "eyre", "libc", @@ -6525,8 +6686,8 @@ dependencies = [ name = "reth-codecs" version = "1.0.1" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-genesis", "alloy-primitives", "arbitrary", @@ -6591,8 +6752,8 @@ dependencies = [ name = "reth-consensus-debug-client" version = "1.0.1" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-provider", "auto_impl", "eyre", @@ -6824,10 +6985,10 @@ dependencies = [ name = "reth-e2e-test-utils" version = "1.0.1" dependencies = [ - "alloy-consensus", - "alloy-network", - "alloy-rpc-types", - "alloy-signer", + "alloy-consensus 0.2.0", + "alloy-network 0.2.0", + "alloy-rpc-types 0.2.0", + "alloy-signer 0.2.0", "alloy-signer-local", "eyre", "futures-util", @@ -7133,7 +7294,7 @@ dependencies = [ name = "reth-evm" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "auto_impl", "futures-util", "parking_lot 0.12.3", @@ -7151,7 +7312,7 @@ dependencies = [ name = "reth-evm-ethereum" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-sol-types", "reth-chainspec", "reth-ethereum-consensus", @@ -7191,7 +7352,7 @@ dependencies = [ name = "reth-execution-errors" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", "reth-consensus", "reth-prune-types", @@ -7204,7 +7365,7 @@ dependencies = [ name = "reth-execution-types" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", "reth-chainspec", "reth-execution-errors", @@ -7911,11 +8072,12 @@ dependencies = [ name = "reth-primitives" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-genesis", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types", + "alloy-rpc-types 0.2.0", "alloy-trie", "arbitrary", "assert_matches", @@ -7955,12 +8117,12 @@ dependencies = [ name = "reth-primitives-traits" version = "1.0.1" dependencies = [ - "alloy-consensus", - "alloy-eips", + "alloy-consensus 0.2.0", + "alloy-eips 0.2.0", "alloy-genesis", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types-eth", + "alloy-rpc-types-eth 0.2.0", "arbitrary", "byteorder", "bytes", @@ -8076,7 +8238,7 @@ dependencies = [ name = "reth-revm" version = "1.0.1" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "reth-chainspec", "reth-consensus-common", "reth-ethereum-forks", @@ -8359,15 +8521,15 @@ name = "reth-rpc-types" version = "1.0.1" dependencies = [ "alloy-primitives", - "alloy-rpc-types", + "alloy-rpc-types 0.2.0", "alloy-rpc-types-admin", "alloy-rpc-types-anvil", "alloy-rpc-types-beacon", "alloy-rpc-types-engine", "alloy-rpc-types-mev", - "alloy-rpc-types-trace", + "alloy-rpc-types-trace 0.2.0", "alloy-rpc-types-txpool", - "alloy-serde", + "alloy-serde 0.2.0", "arbitrary", "bytes", "jsonrpsee-types", @@ -8384,7 +8546,7 @@ name = "reth-rpc-types-compat" version = "1.0.1" dependencies = [ "alloy-rlp", - "alloy-rpc-types", + "alloy-rpc-types 0.2.0", "reth-primitives", "reth-rpc-types", "reth-trie-common", @@ -8672,7 +8834,7 @@ dependencies = [ name = "reth-trie-common" version = "1.0.1" dependencies = [ - "alloy-consensus", + "alloy-consensus 0.2.0", "alloy-genesis", "alloy-primitives", "alloy-rlp", @@ -8726,8 +8888,6 @@ dependencies = [ [[package]] name = "revm" version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44102920a77b38b0144f4b84dcaa31fe44746e78f53685c2ca0149af5312e048" dependencies = [ "auto_impl", "cfg-if", @@ -8745,7 +8905,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "083fe9c20db39ab4d371e9c4d10367408fa3565ad277a4fa1770f7d9314e1b92" dependencies = [ "alloy-primitives", - "alloy-rpc-types", + "alloy-rpc-types 0.1.4", "alloy-sol-types", "anstyle", "boa_engine", @@ -8759,8 +8919,6 @@ dependencies = [ [[package]] name = "revm-interpreter" version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b319602039af3d130f792beba76592e7744bb3c4f2db5179758be33985a16b" dependencies = [ "revm-primitives", "serde", @@ -8769,8 +8927,6 @@ dependencies = [ [[package]] name = "revm-precompile" version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b441000a0d30e06269f822f42a13fa6bec922e951a84b643818651472c4fe6" dependencies = [ "aurora-engine-modexp", "blst", @@ -8789,10 +8945,8 @@ dependencies = [ [[package]] name = "revm-primitives" version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518f536bacee396eb28a43f0984b25b2cd80f052ba4f2e794d554d711c13f33" dependencies = [ - "alloy-eips", + "alloy-eips 0.2.0", "alloy-primitives", "auto_impl", "bitflags 2.6.0", @@ -8804,6 +8958,7 @@ dependencies = [ "enumn", "hashbrown 0.14.5", "hex", + "kzg-rs", "once_cell", "serde", ] @@ -9360,6 +9515,19 @@ dependencies = [ "syn 2.0.71", ] +[[package]] +name = "serde_yaml" +version = "0.9.34+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +dependencies = [ + "indexmap 2.2.6", + "itoa", + "ryu", + "serde", + "unsafe-libyaml", +] + [[package]] name = "serial_test" version = "3.1.1" @@ -10571,6 +10739,12 @@ dependencies = [ "subtle", ] +[[package]] +name = "unsafe-libyaml" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" + [[package]] name = "unsigned-varint" version = "0.7.2" diff --git a/Cargo.toml b/Cargo.toml index 9461d605fb0d..da802b115fa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -389,37 +389,37 @@ alloy-dyn-abi = "0.7.2" alloy-sol-types = "0.7.2" alloy-rlp = "0.3.4" alloy-trie = "0.4" -alloy-rpc-types = { version = "0.1", default-features = false, features = [ +alloy-rpc-types = { version = "0.2", default-features = false, features = [ "eth", ] } -alloy-rpc-types-anvil = { version = "0.1", default-features = false } -alloy-rpc-types-beacon = { version = "0.1", default-features = false } -alloy-rpc-types-admin = { version = "0.1", default-features = false } -alloy-rpc-types-txpool = { version = "0.1", default-features = false } -alloy-serde = { version = "0.1", default-features = false } -alloy-rpc-types-engine = { version = "0.1", default-features = false } -alloy-rpc-types-eth = { version = "0.1", default-features = false } -alloy-rpc-types-mev = { version = "0.1", default-features = false } -alloy-rpc-types-trace = { version = "0.1", default-features = false } -alloy-genesis = { version = "0.1", default-features = false } -alloy-node-bindings = { version = "0.1", default-features = false } -alloy-provider = { version = "0.1", default-features = false, features = [ +alloy-rpc-types-anvil = { version = "0.2", default-features = false } +alloy-rpc-types-beacon = { version = "0.2", default-features = false } +alloy-rpc-types-admin = { version = "0.2", default-features = false } +alloy-rpc-types-txpool = { version = "0.2", default-features = false } +alloy-serde = { version = "0.2", default-features = false } +alloy-rpc-types-engine = { version = "0.2", default-features = false } +alloy-rpc-types-eth = { version = "0.2", default-features = false } +alloy-rpc-types-mev = { version = "0.2", default-features = false } +alloy-rpc-types-trace = { version = "0.2", default-features = false } +alloy-genesis = { version = "0.2", default-features = false } +alloy-node-bindings = { version = "0.2", default-features = false } +alloy-provider = { version = "0.2", default-features = false, features = [ "reqwest", ] } -alloy-eips = { version = "0.1", default-features = false } -alloy-signer = { version = "0.1", default-features = false } -alloy-signer-local = { version = "0.1", default-features = false } -alloy-network = { version = "0.1", default-features = false } -alloy-consensus = { version = "0.1", default-features = false } -alloy-transport = { version = "0.1" } -alloy-transport-http = { version = "0.1", features = [ +alloy-eips = { version = "0.2", default-features = false } +alloy-signer = { version = "0.2", default-features = false } +alloy-signer-local = { version = "0.2", default-features = false } +alloy-network = { version = "0.2", default-features = false } +alloy-consensus = { version = "0.2", default-features = false } +alloy-transport = { version = "0.2" } +alloy-transport-http = { version = "0.2", features = [ "reqwest-rustls-tls", ], default-features = false } -alloy-transport-ws = { version = "0.1", default-features = false } -alloy-transport-ipc = { version = "0.1", default-features = false } -alloy-pubsub = { version = "0.1", default-features = false } -alloy-json-rpc = { version = "0.1", default-features = false } -alloy-rpc-client = { version = "0.1", default-features = false } +alloy-transport-ws = { version = "0.2", default-features = false } +alloy-transport-ipc = { version = "0.2", default-features = false } +alloy-pubsub = { version = "0.2", default-features = false } +alloy-json-rpc = { version = "0.2", default-features = false } +alloy-rpc-client = { version = "0.2", default-features = false } # op op-alloy-rpc-types = "0.1" @@ -535,3 +535,7 @@ serial_test = "3" similar-asserts = "1.5.0" test-fuzz = "5" iai-callgrind = "0.11" + +[patch.crates-io] +revm = { path = "../revm/crates/revm" } +revm-primitives = { path = "../revm/crates/primitives" } From cf3b0e087ebc89acb718478dce61a251e5c27d73 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 16 Jul 2024 22:13:40 +0200 Subject: [PATCH 06/10] bump deps --- Cargo.lock | 158 ++++++++++++++++---------------- Cargo.toml | 10 +- crates/rpc/rpc-types/Cargo.toml | 1 - 3 files changed, 80 insertions(+), 89 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8f04e1aca5c8..a754a9536d49 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -434,17 +434,6 @@ dependencies = [ "url", ] -[[package]] -name = "alloy-rpc-types" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "184a7a42c7ba9141cc9e76368356168c282c3bc3d9e5d78f3556bdfe39343447" -dependencies = [ - "alloy-rpc-types-eth 0.1.4", - "alloy-rpc-types-trace 0.1.4", - "alloy-serde 0.1.4", -] - [[package]] name = "alloy-rpc-types" version = "0.2.0" @@ -453,6 +442,7 @@ checksum = "7e5d76f1e8b22f48b7b8f985782b68e7eb3938780e50e8b646a53e41a598cdf5" dependencies = [ "alloy-rpc-types-engine", "alloy-rpc-types-eth 0.2.0", + "alloy-rpc-types-trace", "alloy-serde 0.2.0", "serde", ] @@ -564,20 +554,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "alloy-rpc-types-trace" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567933b1d95fd42cb70b75126e32afec2e5e2c3c16e7100a3f83dc1c80f4dc0e" -dependencies = [ - "alloy-primitives", - "alloy-rpc-types-eth 0.1.4", - "alloy-serde 0.1.4", - "serde", - "serde_json", - "thiserror", -] - [[package]] name = "alloy-rpc-types-trace" version = "0.2.0" @@ -1424,23 +1400,23 @@ dependencies = [ [[package]] name = "boa_ast" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b6fb81ca0f301f33aff7401e2ffab37dc9e0e4a1cf0ccf6b34f4d9e60aa0682" +checksum = "b49637e7ecb7c541c46c3e885d4c49326ad8076dbfb88bef2cf3165d8ea7df2b" dependencies = [ "bitflags 2.6.0", "boa_interner", "boa_macros", "indexmap 2.2.6", "num-bigint", - "rustc-hash 1.1.0", + "rustc-hash 2.0.0", ] [[package]] name = "boa_engine" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600e4e4a65b26efcef08a7b1cf2899d3845a32e82e067ee3b75eaf7e413ff31c" +checksum = "411558b4cbc7d0303012e26721815e612fed78179313888fd5dd8d6c50d70099" dependencies = [ "arrayvec", "bitflags 2.6.0", @@ -1450,6 +1426,7 @@ dependencies = [ "boa_macros", "boa_parser", "boa_profiler", + "boa_string", "bytemuck", "cfg-if", "dashmap", @@ -1458,18 +1435,17 @@ dependencies = [ "icu_normalizer", "indexmap 2.2.6", "intrusive-collections", - "itertools 0.12.1", + "itertools 0.13.0", "num-bigint", "num-integer", "num-traits", "num_enum", "once_cell", - "paste", "pollster", "portable-atomic", "rand 0.8.5", "regress", - "rustc-hash 1.1.0", + "rustc-hash 2.0.0", "ryu-js", "serde", "serde_json", @@ -1483,21 +1459,22 @@ dependencies = [ [[package]] name = "boa_gc" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c055ef3cd87ea7db014779195bc90c6adfc35de4902e3b2fe587adecbd384578" +checksum = "8eff345a85a39cf9b8ed863198947d61e6df2b1d774002b57341158b0ce2c525" dependencies = [ "boa_macros", "boa_profiler", + "boa_string", "hashbrown 0.14.5", "thin-vec", ] [[package]] name = "boa_interner" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cacc9caf022d92195c827a3e5bf83f96089d4bfaff834b359ac7b6be46e9187" +checksum = "72b779280420804c70da9043d152c84eb96e2f7c9e7d1ec3262decf59f9349df" dependencies = [ "boa_gc", "boa_macros", @@ -1505,15 +1482,15 @@ dependencies = [ "indexmap 2.2.6", "once_cell", "phf", - "rustc-hash 1.1.0", + "rustc-hash 2.0.0", "static_assertions", ] [[package]] name = "boa_macros" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6be9c93793b60dac381af475b98634d4b451e28336e72218cad9a20176218dbc" +checksum = "25e0097fa69cde4c95f9869654004340fbbe2bcf3ce9189ba2a31a65ac40e0a1" dependencies = [ "proc-macro2", "quote", @@ -1523,9 +1500,9 @@ dependencies = [ [[package]] name = "boa_parser" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e8592556849f0619ed142ce2b3a19086769314a8d657f93a5765d06dbce4818" +checksum = "dd63fe8faf62561fc8c50f9402687e8cfde720b57d292fb3b4ac17c821878ac1" dependencies = [ "bitflags 2.6.0", "boa_ast", @@ -1537,14 +1514,27 @@ dependencies = [ "num-bigint", "num-traits", "regress", - "rustc-hash 1.1.0", + "rustc-hash 2.0.0", ] [[package]] name = "boa_profiler" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d8372f2d5cbac600a260de87877141b42da1e18d2c7a08ccb493a49cbd55c0" +checksum = "cd9da895f0df9e2a97b36c1f98e0c5d2ab963abc8679d80f2a66f7bcb211ce90" + +[[package]] +name = "boa_string" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9ca6668df83fcd3c2903f6f296b7180421908c5b478ebe0d1c468be9fd60e1c" +dependencies = [ + "fast-float", + "paste", + "rustc-hash 2.0.0", + "sptr", + "static_assertions", +] [[package]] name = "boyer-moore-magiclen" @@ -3872,9 +3862,9 @@ dependencies = [ [[package]] name = "icu_collections" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "137d96353afc8544d437e8a99eceb10ab291352699573b0de5b08bda38c78c60" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ "displaydoc", "yoke", @@ -3884,9 +3874,9 @@ dependencies = [ [[package]] name = "icu_locid" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c0aa2536adc14c07e2a521e95512b75ed8ef832f0fdf9299d4a0a45d2be2a9d" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" dependencies = [ "displaydoc", "litemap", @@ -3897,9 +3887,9 @@ dependencies = [ [[package]] name = "icu_locid_transform" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c17d8f6524fdca4471101dd71f0a132eb6382b5d6d7f2970441cb25f6f435a" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ "displaydoc", "icu_locid", @@ -3911,15 +3901,15 @@ dependencies = [ [[package]] name = "icu_locid_transform_data" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "545c6c3e8bf9580e2dafee8de6f9ec14826aaf359787789c7724f1f85f47d3dc" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" [[package]] name = "icu_normalizer" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accb85c5b2e76f8dade22978b3795ae1e550198c6cfc7e915144e17cd6e2ab56" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" dependencies = [ "displaydoc", "icu_collections", @@ -3935,15 +3925,15 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3744fecc0df9ce19999cdaf1f9f3a48c253431ce1d67ef499128fe9d0b607ab" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" [[package]] name = "icu_properties" -version = "1.4.3" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db9e559598096627aeca8cdfb98138a70eb4078025f8d1d5f2416a361241f756" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" dependencies = [ "displaydoc", "icu_collections", @@ -3956,15 +3946,15 @@ dependencies = [ [[package]] name = "icu_properties_data" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e70a8b51ee5dd4ff8f20ee9b1dd1bc07afc110886a3747b1fec04cc6e5a15815" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" [[package]] name = "icu_provider" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba58e782287eb6950247abbf11719f83f5d4e4a5c1f2cd490d30a334bc47c2f4" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" dependencies = [ "displaydoc", "icu_locid", @@ -3979,9 +3969,9 @@ dependencies = [ [[package]] name = "icu_provider_macros" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2abdd3a62551e8337af119c5899e600ca0c88ec8f23a46c60ba216c803dcf1a" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ "proc-macro2", "quote", @@ -6242,9 +6232,9 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "regress" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eae2a1ebfecc58aff952ef8ccd364329abe627762f5bf09ff42eb9d98522479" +checksum = "16fe0a24af5daaae947294213d2fd2646fbf5e1fbacc1d4ba3e84b2393854842" dependencies = [ "hashbrown 0.14.5", "memchr", @@ -6987,7 +6977,7 @@ version = "1.0.2" dependencies = [ "alloy-consensus 0.2.0", "alloy-network 0.2.0", - "alloy-rpc-types 0.2.0", + "alloy-rpc-types", "alloy-signer 0.2.0", "alloy-signer-local", "eyre", @@ -8079,12 +8069,11 @@ dependencies = [ name = "reth-primitives" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", "alloy-eips 0.2.0", "alloy-genesis", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types 0.2.0", + "alloy-rpc-types", "alloy-trie", "arbitrary", "assert_matches", @@ -8529,13 +8518,13 @@ name = "reth-rpc-types" version = "1.0.2" dependencies = [ "alloy-primitives", - "alloy-rpc-types 0.2.0", + "alloy-rpc-types", "alloy-rpc-types-admin", "alloy-rpc-types-anvil", "alloy-rpc-types-beacon", "alloy-rpc-types-engine", "alloy-rpc-types-mev", - "alloy-rpc-types-trace 0.2.0", + "alloy-rpc-types-trace", "alloy-rpc-types-txpool", "alloy-serde 0.2.0", "arbitrary", @@ -8544,7 +8533,6 @@ dependencies = [ "proptest", "proptest-derive 0.5.0", "rand 0.8.5", - "serde", "serde_json", "similar-asserts", ] @@ -8554,7 +8542,7 @@ name = "reth-rpc-types-compat" version = "1.0.2" dependencies = [ "alloy-rlp", - "alloy-rpc-types 0.2.0", + "alloy-rpc-types", "reth-primitives", "reth-rpc-types", "reth-trie-common", @@ -8895,7 +8883,9 @@ dependencies = [ [[package]] name = "revm" -version = "11.0.0" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f930db322034ac6c530d0d5137cd3f562da4bbc74ae533bc255e93f98245c7" dependencies = [ "auto_impl", "cfg-if", @@ -8908,12 +8898,12 @@ dependencies = [ [[package]] name = "revm-inspectors" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "083fe9c20db39ab4d371e9c4d10367408fa3565ad277a4fa1770f7d9314e1b92" +checksum = "1d37905c9d80d261bb24692b3627b00c4827d0aa9fb9e48271aa5d9ffcba06ca" dependencies = [ "alloy-primitives", - "alloy-rpc-types 0.1.4", + "alloy-rpc-types", "alloy-sol-types", "anstyle", "boa_engine", @@ -8926,7 +8916,9 @@ dependencies = [ [[package]] name = "revm-interpreter" -version = "7.0.0" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31e80a0eafda56c4e85453c16913d4c2a8e92b3772b75c35e99c516aec84b703" dependencies = [ "revm-primitives", "serde", @@ -8934,7 +8926,9 @@ dependencies = [ [[package]] name = "revm-precompile" -version = "9.0.0" +version = "9.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51b941a8459a7c883d098bd573d9eebf8d4229a10d91a0feed03b1173933525a" dependencies = [ "aurora-engine-modexp", "blst", @@ -8952,7 +8946,9 @@ dependencies = [ [[package]] name = "revm-primitives" -version = "6.0.0" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "390a506e644fc09feeace6fa283b49ca0ea4bc2fe6d48d216baaa3b4332dc1da" dependencies = [ "alloy-eips 0.2.0", "alloy-primitives", diff --git a/Cargo.toml b/Cargo.toml index eb3aaad0f23a..d0502ecb5474 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -373,15 +373,15 @@ reth-trie-common = { path = "crates/trie/common" } reth-trie-parallel = { path = "crates/trie/parallel" } # revm -revm = { version = "11.0.0", features = [ +revm = { version = "12.0.0", features = [ "std", "secp256k1", "blst", ], default-features = false } -revm-primitives = { version = "6.0.0", features = [ +revm-primitives = { version = "7.0.0", features = [ "std", ], default-features = false } -revm-inspectors = "0.4" +revm-inspectors = "0.5" # eth alloy-chains = "0.1.18" @@ -536,7 +536,3 @@ serial_test = "3" similar-asserts = "1.5.0" test-fuzz = "5" iai-callgrind = "0.11" - -[patch.crates-io] -revm = { path = "../revm/crates/revm" } -revm-primitives = { path = "../revm/crates/primitives" } diff --git a/crates/rpc/rpc-types/Cargo.toml b/crates/rpc/rpc-types/Cargo.toml index fa5c8b79c9ae..2f52b907e144 100644 --- a/crates/rpc/rpc-types/Cargo.toml +++ b/crates/rpc/rpc-types/Cargo.toml @@ -26,7 +26,6 @@ alloy-serde.workspace = true alloy-rpc-types-engine = { workspace = true, features = ["jsonrpsee-types"] } # misc -serde = { workspace = true, features = ["derive"] } jsonrpsee-types = { workspace = true, optional = true } [dev-dependencies] From 123a32bde2a70f9433ee0b32050d572a452e213c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 16 Jul 2024 22:16:20 +0200 Subject: [PATCH 07/10] update op --- Cargo.lock | 255 ++++++++++++++++------------------------------------- 1 file changed, 75 insertions(+), 180 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a754a9536d49..83aac3099ecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,30 +121,16 @@ dependencies = [ "strum", ] -[[package]] -name = "alloy-consensus" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da374e868f54c7f4ad2ad56829827badca388efd645f8cf5fccc61c2b5343504" -dependencies = [ - "alloy-eips 0.1.4", - "alloy-primitives", - "alloy-rlp", - "alloy-serde 0.1.4", - "c-kzg", - "serde", -] - [[package]] name = "alloy-consensus" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f58047cc851e58c26224521d1ecda466e3d746ebca0274cd5427aa660a88c353" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "alloy-rlp", - "alloy-serde 0.2.0", + "alloy-serde", "arbitrary", "c-kzg", "serde", @@ -168,21 +154,6 @@ dependencies = [ "winnow 0.6.13", ] -[[package]] -name = "alloy-eips" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f76ecab54890cdea1e4808fc0891c7e6cfcf71fe1a9fe26810c7280ef768f4ed" -dependencies = [ - "alloy-primitives", - "alloy-rlp", - "alloy-serde 0.1.4", - "c-kzg", - "once_cell", - "serde", - "sha2 0.10.8", -] - [[package]] name = "alloy-eips" version = "0.2.0" @@ -191,7 +162,7 @@ checksum = "d32a3e14fa0d152d00bd8daf605eb74ad397efb0f54bd7155585823dddb4401e" dependencies = [ "alloy-primitives", "alloy-rlp", - "alloy-serde 0.2.0", + "alloy-serde", "arbitrary", "c-kzg", "derive_more", @@ -208,7 +179,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20cb76c8a3913f2466c5488f3a915e3a15d15596bdc935558c1a9be75e9ec508" dependencies = [ "alloy-primitives", - "alloy-serde 0.2.0", + "alloy-serde", "serde", ] @@ -224,19 +195,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "alloy-json-rpc" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d6f34930b7e3e2744bcc79056c217f00cb2abb33bc5d4ff88da7623c5bb078b" -dependencies = [ - "alloy-primitives", - "serde", - "serde_json", - "thiserror", - "tracing", -] - [[package]] name = "alloy-json-rpc" version = "0.2.0" @@ -250,39 +208,19 @@ dependencies = [ "tracing", ] -[[package]] -name = "alloy-network" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25f6895fc31b48fa12306ef9b4f78b7764f8bd6d7d91cdb0a40e233704a0f23f" -dependencies = [ - "alloy-consensus 0.1.4", - "alloy-eips 0.1.4", - "alloy-json-rpc 0.1.4", - "alloy-primitives", - "alloy-rpc-types-eth 0.1.4", - "alloy-serde 0.1.4", - "alloy-signer 0.1.4", - "alloy-sol-types", - "async-trait", - "auto_impl", - "futures-utils-wasm", - "thiserror", -] - [[package]] name = "alloy-network" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3223d71dc78f464b2743418d0be8b5c894313e272105a6206ad5e867d67b3ce2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", - "alloy-json-rpc 0.2.0", + "alloy-consensus", + "alloy-eips", + "alloy-json-rpc", "alloy-primitives", - "alloy-rpc-types-eth 0.2.0", - "alloy-serde 0.2.0", - "alloy-signer 0.2.0", + "alloy-rpc-types-eth", + "alloy-serde", + "alloy-signer", "alloy-sol-types", "async-trait", "auto_impl", @@ -340,16 +278,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29da7457d853cb8199ec04b227d5d2ef598be3e59fc2bbad70c8be213292f32" dependencies = [ "alloy-chains", - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", - "alloy-json-rpc 0.2.0", - "alloy-network 0.2.0", + "alloy-consensus", + "alloy-eips", + "alloy-json-rpc", + "alloy-network", "alloy-primitives", "alloy-pubsub", "alloy-rpc-client", "alloy-rpc-types-admin", "alloy-rpc-types-engine", - "alloy-rpc-types-eth 0.2.0", + "alloy-rpc-types-eth", "alloy-transport", "alloy-transport-http", "alloy-transport-ws", @@ -375,7 +313,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f64acfec654ade392cecfa9bba0408eb2a337d55f1b857925da79970cb70f3d6" dependencies = [ - "alloy-json-rpc 0.2.0", + "alloy-json-rpc", "alloy-primitives", "alloy-transport", "bimap", @@ -416,7 +354,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8a9e609524fa31c2c70eb24c0da60796809193ad4787a6dfe6d0db0d3ac112d" dependencies = [ - "alloy-json-rpc 0.2.0", + "alloy-json-rpc", "alloy-primitives", "alloy-pubsub", "alloy-transport", @@ -441,9 +379,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e5d76f1e8b22f48b7b8f985782b68e7eb3938780e50e8b646a53e41a598cdf5" dependencies = [ "alloy-rpc-types-engine", - "alloy-rpc-types-eth 0.2.0", + "alloy-rpc-types-eth", "alloy-rpc-types-trace", - "alloy-serde 0.2.0", + "alloy-serde", "serde", ] @@ -466,7 +404,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4282c002a4ae9f57887dae57083fcca6dca09cb6685bf98b8582ea93cb3df97d" dependencies = [ "alloy-primitives", - "alloy-serde 0.2.0", + "alloy-serde", "serde", ] @@ -476,7 +414,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b47dcc8e3bebea57b1c9495a7e6f3313e99d355c0f5b80473cfbdfcbdd6ebea" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "alloy-rpc-types-engine", "serde", @@ -490,12 +428,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73445fbc5c02258e3d0d977835c92366a4d91545fd456c3fc8601c61810bc9f6" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", + "alloy-consensus", + "alloy-eips", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types-eth 0.2.0", - "alloy-serde 0.2.0", + "alloy-rpc-types-eth", + "alloy-serde", "jsonrpsee-types", "jsonwebtoken", "rand 0.8.5", @@ -503,35 +441,17 @@ dependencies = [ "thiserror", ] -[[package]] -name = "alloy-rpc-types-eth" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab4123ee21f99ba4bd31bfa36ba89112a18a500f8b452f02b35708b1b951e2b9" -dependencies = [ - "alloy-consensus 0.1.4", - "alloy-eips 0.1.4", - "alloy-primitives", - "alloy-rlp", - "alloy-serde 0.1.4", - "alloy-sol-types", - "itertools 0.13.0", - "serde", - "serde_json", - "thiserror", -] - [[package]] name = "alloy-rpc-types-eth" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "605fa8462732bb8fd0645a9941e12961e079d45ae6a44634c826f8229c187bdf" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", + "alloy-consensus", + "alloy-eips", "alloy-primitives", "alloy-rlp", - "alloy-serde 0.2.0", + "alloy-serde", "alloy-sol-types", "arbitrary", "itertools 0.13.0", @@ -547,9 +467,9 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ffcb83a5a91d327c40ba2157a19016bb883c1426f1708fea5f9e042032fd73e" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", - "alloy-serde 0.2.0", + "alloy-serde", "serde", "serde_json", ] @@ -561,8 +481,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f561a8cdd377b6ac3beab805b9df5ec2c7d99bb6139aab23c317f26df6fb346" dependencies = [ "alloy-primitives", - "alloy-rpc-types-eth 0.2.0", - "alloy-serde 0.2.0", + "alloy-rpc-types-eth", + "alloy-serde", "serde", "serde_json", "thiserror", @@ -575,20 +495,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c06a4bd39910631c11148c5b2c55e2c61f8626affd2a612e382c668d5e5971ce" dependencies = [ "alloy-primitives", - "alloy-rpc-types-eth 0.2.0", - "alloy-serde 0.2.0", - "serde", -] - -[[package]] -name = "alloy-serde" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9416c52959e66ead795a11f4a86c248410e9e368a0765710e57055b8a1774dd6" -dependencies = [ - "alloy-primitives", + "alloy-rpc-types-eth", + "alloy-serde", "serde", - "serde_json", ] [[package]] @@ -603,20 +512,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "alloy-signer" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b33753c09fa1ad85e5b092b8dc2372f1e337a42e84b9b4cff9fede75ba4adb32" -dependencies = [ - "alloy-primitives", - "async-trait", - "auto_impl", - "elliptic-curve", - "k256", - "thiserror", -] - [[package]] name = "alloy-signer" version = "0.2.0" @@ -637,10 +532,10 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b537f3e55f30753578f4623d5f66ddad8fa582af3fa6b15bad23dd1b9775228" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-network 0.2.0", + "alloy-consensus", + "alloy-network", "alloy-primitives", - "alloy-signer 0.2.0", + "alloy-signer", "async-trait", "coins-bip32", "coins-bip39", @@ -724,7 +619,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b44b0f6f4a2593b258fa7b6cae8968e6a4c404d9ef4f5bc74401f2d04fa23fa" dependencies = [ - "alloy-json-rpc 0.2.0", + "alloy-json-rpc", "base64 0.22.1", "futures-util", "futures-utils-wasm", @@ -743,7 +638,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d8f1eefa8cb9e7550740ee330feba4fed303a77ad3085707546f9152a88c380" dependencies = [ - "alloy-json-rpc 0.2.0", + "alloy-json-rpc", "alloy-transport", "reqwest", "serde_json", @@ -758,7 +653,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31007c56dc65bd81392112dda4a14c20ac7e30bb4cb2e9176192e8d9fab1983f" dependencies = [ - "alloy-json-rpc 0.2.0", + "alloy-json-rpc", "alloy-pubsub", "alloy-transport", "bytes", @@ -4553,7 +4448,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e310b3a6b5907f99202fcdb4960ff45b93735d7c7d96b760fcff8db2dc0e103d" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -5309,28 +5204,28 @@ checksum = "b410bbe7e14ab526a0e86877eb47c6996a2bd7746f027ba551028c925390e4e9" [[package]] name = "op-alloy-consensus" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b48c0a77ef55d1a1bd1742777fba58a3ddd4b25bf49e275b667a522f8583f5b9" +checksum = "4d10e10cbbdb3931fed5109bbd570c0a6cf0ce08db1f93401cfb5cefc51998d1" dependencies = [ - "alloy-consensus 0.1.4", - "alloy-eips 0.1.4", + "alloy-consensus", + "alloy-eips", "alloy-primitives", "alloy-rlp", - "alloy-serde 0.1.4", + "alloy-serde", "serde", ] [[package]] name = "op-alloy-rpc-types" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcd62a018e13a05284fa1686b78bd58c469de2e627401ba63c2ca06d7168f7e8" +checksum = "9978c3d449abb03526d378988ae6d51b049ef36205cc97bf284574df9f578021" dependencies = [ - "alloy-network 0.1.4", + "alloy-network", "alloy-primitives", - "alloy-rpc-types-eth 0.1.4", - "alloy-serde 0.1.4", + "alloy-rpc-types-eth", + "alloy-serde", "op-alloy-consensus", "serde", "serde_json", @@ -6479,9 +6374,9 @@ dependencies = [ name = "reth-bench" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", - "alloy-json-rpc 0.2.0", + "alloy-consensus", + "alloy-eips", + "alloy-json-rpc", "alloy-provider", "alloy-pubsub", "alloy-rpc-client", @@ -6566,7 +6461,7 @@ name = "reth-chainspec" version = "1.0.2" dependencies = [ "alloy-chains", - "alloy-eips 0.2.0", + "alloy-eips", "alloy-genesis", "alloy-primitives", "alloy-rlp", @@ -6661,7 +6556,7 @@ dependencies = [ name = "reth-cli-util" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "eyre", "libc", @@ -6676,8 +6571,8 @@ dependencies = [ name = "reth-codecs" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", + "alloy-consensus", + "alloy-eips", "alloy-genesis", "alloy-primitives", "arbitrary", @@ -6742,8 +6637,8 @@ dependencies = [ name = "reth-consensus-debug-client" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", + "alloy-consensus", + "alloy-eips", "alloy-provider", "auto_impl", "eyre", @@ -6975,10 +6870,10 @@ dependencies = [ name = "reth-e2e-test-utils" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-network 0.2.0", + "alloy-consensus", + "alloy-network", "alloy-rpc-types", - "alloy-signer 0.2.0", + "alloy-signer", "alloy-signer-local", "eyre", "futures-util", @@ -7285,7 +7180,7 @@ dependencies = [ name = "reth-evm" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "auto_impl", "futures-util", "parking_lot 0.12.3", @@ -7303,7 +7198,7 @@ dependencies = [ name = "reth-evm-ethereum" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-sol-types", "reth-chainspec", "reth-ethereum-consensus", @@ -7343,7 +7238,7 @@ dependencies = [ name = "reth-execution-errors" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "reth-consensus", "reth-prune-types", @@ -7356,7 +7251,7 @@ dependencies = [ name = "reth-execution-types" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "reth-chainspec", "reth-execution-errors", @@ -8069,7 +7964,7 @@ dependencies = [ name = "reth-primitives" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-genesis", "alloy-primitives", "alloy-rlp", @@ -8113,12 +8008,12 @@ dependencies = [ name = "reth-primitives-traits" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", - "alloy-eips 0.2.0", + "alloy-consensus", + "alloy-eips", "alloy-genesis", "alloy-primitives", "alloy-rlp", - "alloy-rpc-types-eth 0.2.0", + "alloy-rpc-types-eth", "arbitrary", "byteorder", "bytes", @@ -8234,7 +8129,7 @@ dependencies = [ name = "reth-revm" version = "1.0.2" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "reth-chainspec", "reth-consensus-common", "reth-ethereum-forks", @@ -8526,7 +8421,7 @@ dependencies = [ "alloy-rpc-types-mev", "alloy-rpc-types-trace", "alloy-rpc-types-txpool", - "alloy-serde 0.2.0", + "alloy-serde", "arbitrary", "bytes", "jsonrpsee-types", @@ -8830,7 +8725,7 @@ dependencies = [ name = "reth-trie-common" version = "1.0.2" dependencies = [ - "alloy-consensus 0.2.0", + "alloy-consensus", "alloy-genesis", "alloy-primitives", "alloy-rlp", @@ -8950,7 +8845,7 @@ version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "390a506e644fc09feeace6fa283b49ca0ea4bc2fe6d48d216baaa3b4332dc1da" dependencies = [ - "alloy-eips 0.2.0", + "alloy-eips", "alloy-primitives", "auto_impl", "bitflags 2.6.0", From 6131fb14db15192778257fd30e531a4edf8600b6 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 16 Jul 2024 22:18:49 +0200 Subject: [PATCH 08/10] fix compat --- crates/primitives/src/alloy_compat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/primitives/src/alloy_compat.rs b/crates/primitives/src/alloy_compat.rs index 781327466d4a..02cdf93e4838 100644 --- a/crates/primitives/src/alloy_compat.rs +++ b/crates/primitives/src/alloy_compat.rs @@ -221,7 +221,7 @@ impl TryFrom for Transaction { .ok_or_else(|| ConversionError::Custom("MissingSourceHash".to_string()))?, from: tx.from, to: TxKind::from(tx.to), - mint: fields.mint.map(|n| n.to::()).filter(|n| *n != 0), + mint: fields.mint.filter(|n| *n != 0), value: tx.value, gas_limit: tx .gas From c1994ee839e58e73c0749f46dbf9eec447de0a4b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 16 Jul 2024 22:24:53 +0200 Subject: [PATCH 09/10] fix compat --- crates/optimism/rpc/src/eth/receipt.rs | 5 ++--- crates/rpc/rpc-eth-types/src/error.rs | 16 +++++++++------- .../rpc/rpc-types-compat/src/transaction/mod.rs | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/crates/optimism/rpc/src/eth/receipt.rs b/crates/optimism/rpc/src/eth/receipt.rs index 494b66ea5422..f11771d615f6 100644 --- a/crates/optimism/rpc/src/eth/receipt.rs +++ b/crates/optimism/rpc/src/eth/receipt.rs @@ -48,9 +48,8 @@ pub fn op_receipt_fields( let mut op_fields = OptimismTransactionReceiptFields::default(); if tx.is_deposit() { - op_fields.deposit_nonce = receipt.deposit_nonce.map(reth_primitives::U64::from); - op_fields.deposit_receipt_version = - receipt.deposit_receipt_version.map(reth_primitives::U64::from); + op_fields.deposit_nonce = receipt.deposit_nonce; + op_fields.deposit_receipt_version = receipt.deposit_receipt_version; } else if let Some(l1_block_info) = optimism_tx_meta.l1_block_info { op_fields.l1_fee = optimism_tx_meta.l1_fee; op_fields.l1_gas_used = optimism_tx_meta.l1_data_gas.map(|dg| { diff --git a/crates/rpc/rpc-eth-types/src/error.rs b/crates/rpc/rpc-eth-types/src/error.rs index 291efa8fb5f2..c4255461d145 100644 --- a/crates/rpc/rpc-eth-types/src/error.rs +++ b/crates/rpc/rpc-eth-types/src/error.rs @@ -17,6 +17,7 @@ use reth_transaction_pool::error::{ }; use revm::primitives::{EVMError, ExecutionResult, HaltReason, OutOfGasError}; use revm_inspectors::tracing::{js::JsInspectorError, MuxError}; +use revm_primitives::OptimismInvalidTransaction; /// Result alias pub type EthResult = Result; @@ -489,13 +490,14 @@ impl From for RpcInvalidTransactionError { Self::AuthorizationListInvalidFields } #[cfg(feature = "optimism")] - InvalidTransaction::DepositSystemTxPostRegolith => { - Self::other(OptimismInvalidTransactionError::DepositSystemTxPostRegolith) - } - #[cfg(feature = "optimism")] - InvalidTransaction::HaltedDepositPostRegolith => { - Self::Other(Box::new(OptimismInvalidTransactionError::HaltedDepositPostRegolith)) - } + InvalidTransaction::OptimismError(err) => match err { + OptimismInvalidTransaction::DepositSystemTxPostRegolith => { + Self::other(OptimismInvalidTransactionError::DepositSystemTxPostRegolith) + } + OptimismInvalidTransaction::HaltedDepositPostRegolith => Self::Other(Box::new( + OptimismInvalidTransactionError::HaltedDepositPostRegolith, + )), + }, } } } diff --git a/crates/rpc/rpc-types-compat/src/transaction/mod.rs b/crates/rpc/rpc-types-compat/src/transaction/mod.rs index 01d4028682a1..70a01ce1b783 100644 --- a/crates/rpc/rpc-types-compat/src/transaction/mod.rs +++ b/crates/rpc/rpc-types-compat/src/transaction/mod.rs @@ -106,7 +106,7 @@ fn fill( #[cfg(feature = "optimism")] other: reth_rpc_types::optimism::OptimismTransactionFields { source_hash: signed_tx.source_hash(), - mint: signed_tx.mint().map(reth_primitives::U128::from), + mint: signed_tx.mint(), is_system_tx: signed_tx.is_deposit().then_some(signed_tx.is_system_transaction()), } .into(), From 4bdeb4b54dd56539ec0095a25515d1d2e1b943d6 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 16 Jul 2024 22:27:48 +0200 Subject: [PATCH 10/10] more fixes --- crates/rpc/rpc-eth-types/src/error.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/rpc/rpc-eth-types/src/error.rs b/crates/rpc/rpc-eth-types/src/error.rs index c4255461d145..67fd11eae2c0 100644 --- a/crates/rpc/rpc-eth-types/src/error.rs +++ b/crates/rpc/rpc-eth-types/src/error.rs @@ -17,7 +17,6 @@ use reth_transaction_pool::error::{ }; use revm::primitives::{EVMError, ExecutionResult, HaltReason, OutOfGasError}; use revm_inspectors::tracing::{js::JsInspectorError, MuxError}; -use revm_primitives::OptimismInvalidTransaction; /// Result alias pub type EthResult = Result; @@ -491,12 +490,14 @@ impl From for RpcInvalidTransactionError { } #[cfg(feature = "optimism")] InvalidTransaction::OptimismError(err) => match err { - OptimismInvalidTransaction::DepositSystemTxPostRegolith => { + revm_primitives::OptimismInvalidTransaction::DepositSystemTxPostRegolith => { Self::other(OptimismInvalidTransactionError::DepositSystemTxPostRegolith) } - OptimismInvalidTransaction::HaltedDepositPostRegolith => Self::Other(Box::new( - OptimismInvalidTransactionError::HaltedDepositPostRegolith, - )), + revm_primitives::OptimismInvalidTransaction::HaltedDepositPostRegolith => { + Self::Other(Box::new( + OptimismInvalidTransactionError::HaltedDepositPostRegolith, + )) + } }, } }