chore: replace maili deps with op-alloy (#13927)

This commit is contained in:
Matthias Seitz
2025-01-22 17:58:06 +01:00
committed by GitHub
parent 56f2c43582
commit 073aee175f
6 changed files with 46 additions and 133 deletions

View File

@ -52,7 +52,7 @@ alloy-eips.workspace = true
alloy-primitives.workspace = true
op-alloy-consensus.workspace = true
op-alloy-rpc-types-engine.workspace = true
maili-flz.workspace = true
op-alloy-flz.workspace = true
alloy-rpc-types-engine.workspace = true
alloy-consensus.workspace = true

View File

@ -72,7 +72,7 @@ impl OpPooledTransaction {
/// max(minTransactionSize, intercept + fastlzCoef*fastlzSize)
// TODO(mattsse): replace with library fn from revm or maili once available
fn tx_estimated_size_fjord(input: &[u8]) -> u64 {
let fastlz_size = maili_flz::flz_compress_len(input) as u64;
let fastlz_size = op_alloy_flz::flz_compress_len(input) as u64;
fastlz_size.saturating_mul(836_500).saturating_sub(42_585_600).max(100_000_000)
}

View File

@ -46,7 +46,7 @@ alloy-consensus.workspace = true
op-alloy-network.workspace = true
op-alloy-rpc-types.workspace = true
op-alloy-rpc-types-engine.workspace = true
maili-rpc = { workspace = true, features = ["jsonrpsee"] }
op-alloy-rpc-jsonrpsee.workspace = true
op-alloy-consensus.workspace = true
revm.workspace = true

View File

@ -2,7 +2,7 @@
use alloy_primitives::U64;
use jsonrpsee_core::{async_trait, RpcResult};
pub use maili_rpc::MinerApiExtServer;
pub use op_alloy_rpc_jsonrpsee::traits::MinerApiExtServer;
use reth_optimism_payload_builder::config::OpDAConfig;
use tracing::debug;