mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
29 lines
787 B
Rust
29 lines
787 B
Rust
use crate::node::rpc::{HlEthApi, HlRpcNodeCore};
|
|
use alloy_primitives::{Bytes, B256};
|
|
use reth::rpc::server_types::eth::EthApiError;
|
|
use reth_rpc_eth_api::{
|
|
helpers::{spec::SignersForRpc, EthTransactions, LoadTransaction},
|
|
RpcConvert,
|
|
};
|
|
|
|
impl<N, Rpc> LoadTransaction for HlEthApi<N, Rpc>
|
|
where
|
|
N: HlRpcNodeCore,
|
|
Rpc: RpcConvert<Primitives = N::Primitives, Error = EthApiError>,
|
|
{
|
|
}
|
|
|
|
impl<N, Rpc> EthTransactions for HlEthApi<N, Rpc>
|
|
where
|
|
N: HlRpcNodeCore,
|
|
Rpc: RpcConvert<Primitives = N::Primitives, Error = EthApiError>,
|
|
{
|
|
fn signers(&self) -> &SignersForRpc<Self::Provider, Self::NetworkTypes> {
|
|
self.inner.eth_api.signers()
|
|
}
|
|
|
|
async fn send_raw_transaction(&self, _tx: Bytes) -> Result<B256, Self::Error> {
|
|
unreachable!()
|
|
}
|
|
}
|