introduce standalone estimate gas type (#12344)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Steven
2024-11-14 06:32:29 -06:00
committed by GitHub
parent 7bd7c37b13
commit 5c655e44f6
6 changed files with 391 additions and 350 deletions

View File

@ -4,7 +4,7 @@ use alloy_rpc_types_eth::transaction::TransactionRequest;
use reth_evm::ConfigureEvm;
use reth_primitives::revm_primitives::{BlockEnv, OptimismFields, TxEnv};
use reth_rpc_eth_api::{
helpers::{Call, EthCall, LoadPendingBlock, LoadState, SpawnBlocking},
helpers::{estimate::EstimateCall, Call, EthCall, LoadPendingBlock, LoadState, SpawnBlocking},
FromEthApiError, IntoEthApiError, RpcNodeCore,
};
use reth_rpc_eth_types::{revm_utils::CallFees, RpcInvalidTransactionError};
@ -13,7 +13,15 @@ use crate::{OpEthApi, OpEthApiError};
impl<N> EthCall for OpEthApi<N>
where
Self: Call + LoadPendingBlock,
Self: EstimateCall + LoadPendingBlock,
N: RpcNodeCore,
{
}
impl<N> EstimateCall for OpEthApi<N>
where
Self: Call,
Self::Error: From<OpEthApiError>,
N: RpcNodeCore,
{
}