Skip to content

Commit 4b8add3

Browse files
authored
chore: bump alloy and zenith deps (#83)
* chore: bump alloy and zenith deps * fix: in test too
1 parent 26459ff commit 4b8add3

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

Cargo.toml

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "trevm"
3-
version = "0.19.7"
3+
version = "0.19.8"
44
rust-version = "1.83.0"
55
edition = "2021"
66
authors = ["init4"]
@@ -27,21 +27,17 @@ option-if-let-else = "warn"
2727
redundant-clone = "warn"
2828

2929
[dependencies]
30-
alloy-rlp = { version = "0.3.10", default-features = false, features = ["std"]}
31-
alloy-sol-types = { version = "0.8.11", default-features = false, features = ["std"]}
32-
33-
alloy = { version = "=0.9.2", default-features = false, features = ["consensus", "rpc-types-mev", "eips", "k256", "std"] }
30+
alloy = { version = "=0.11.1", default-features = false, features = ["consensus", "rpc-types-mev", "eips", "k256", "std", "rlp", "sol-types"] }
3431

3532
revm = { version = "19.5.0", default-features = false, features = ["std"] }
3633

37-
zenith-types = { version = "0.14" }
34+
zenith-types = { version = "0.15" }
3835

3936
dashmap = { version = "6.1.0", optional = true }
4037
tracing = { version = "0.1.41", optional = true}
4138

4239
[dev-dependencies]
43-
alloy-rlp = { version = "0.3", default-features = false }
44-
revm = { version = "19.0.0", features = [
40+
revm = { version = "19.5.0", features = [
4541
"test-utils",
4642
"serde-json",
4743
"std",

src/evm.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1763,13 +1763,13 @@ impl<'a, Ext, Db: Database + DatabaseCommit> EvmTransacted<'a, Ext, Db> {
17631763
/// a [`SolCall`]. If `validate` is true, the output will be type- and
17641764
/// range-checked.
17651765
///
1766-
/// [`SolCall`]: alloy_sol_types::SolCall
1767-
pub fn output_sol<T: alloy_sol_types::SolCall>(
1766+
/// [`SolCall`]: alloy::sol_types::SolCall
1767+
pub fn output_sol<T: alloy::sol_types::SolCall>(
17681768
&self,
17691769
validate: bool,
1770-
) -> Option<alloy_sol_types::Result<T::Return>>
1770+
) -> Option<alloy::sol_types::Result<T::Return>>
17711771
where
1772-
T::Return: alloy_sol_types::SolType,
1772+
T::Return: alloy::sol_types::SolType,
17731773
{
17741774
self.output().map(|output| T::abi_decode_returns(output, validate))
17751775
}

src/fill/alloy.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,10 @@ impl Block for alloy::rpc::types::BlockOverrides {
380380
#[cfg(test)]
381381
mod tests {
382382
use crate::{NoopBlock, NoopCfg, TrevmBuilder};
383-
use alloy::consensus::{Header, TxEnvelope, EMPTY_ROOT_HASH};
384-
385-
use alloy_rlp::Decodable;
386-
383+
use alloy::{
384+
consensus::{Header, TxEnvelope, EMPTY_ROOT_HASH},
385+
rlp::Decodable,
386+
};
387387
use revm::{Evm, InMemoryDB};
388388

389389
#[test]

src/fill/zenith.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::{Block, Tx};
2-
use alloy::primitives::{Address, U256};
3-
use alloy_sol_types::SolCall;
2+
use alloy::{
3+
primitives::{Address, U256},
4+
sol_types::SolCall,
5+
};
46
use revm::primitives::{TransactTo, TxEnv};
57
use zenith_types::{Passage::EnterToken, Transactor, ZenithCallBundle};
68

src/journal/coder.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::journal::{AcctDiff, BundleStateIndex, InfoOutcome};
2-
use alloy::primitives::{Address, Bytes, B256, U256};
3-
use alloy_rlp::{Buf, BufMut};
2+
use alloy::{
3+
primitives::{Address, Bytes, B256, U256},
4+
rlp::{Buf, BufMut},
5+
};
46
use revm::{
57
db::{states::StorageSlot, BundleState},
68
primitives::{
@@ -14,7 +16,6 @@ use std::{
1416
sync::Arc,
1517
vec::Vec,
1618
};
17-
1819
use zenith_types::Zenith;
1920

2021
type Result<T, E = JournalDecodeError> = core::result::Result<T, E>;

src/system/eip6110.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
use alloy::consensus::ReceiptEnvelope;
2-
use alloy::primitives::{Bytes, Log};
3-
use alloy_rlp::BufMut;
4-
use alloy_sol_types::{sol, SolEvent};
1+
use alloy::{
2+
consensus::ReceiptEnvelope,
3+
primitives::{Bytes, Log},
4+
rlp::BufMut,
5+
sol_types::SolEvent,
6+
};
57

68
/// The address for the Ethereum 2.0 deposit contract on the mainnet.
79
pub use alloy::eips::eip6110::MAINNET_DEPOSIT_CONTRACT_ADDRESS;
810

9-
sol! {
11+
alloy::sol! {
1012
#[allow(missing_docs)]
1113
event DepositEvent(
1214
bytes pubkey,

0 commit comments

Comments
 (0)