Skip to content

Commit 38c2133

Browse files
Evalirprestwich
authored andcommitted
signet methods
1 parent cb457b6 commit 38c2133

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

crates/rpc/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ pub use ctx::RpcCtx;
4949
mod eth;
5050
pub use eth::{eth, CallErrorData, EthError, TxCacheForwarder};
5151

52+
mod signet;
53+
pub use signet::signet;
54+
5255
mod interest;
5356

5457
pub(crate) mod util;

crates/rpc/src/signet/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//! Signet RPC methods and related code.
2+
use reth_node_api::FullNodeComponents;
3+
4+
use crate::{ctx::RpcCtx, util::not_supported, Pnt};
5+
6+
/// Instantiate a `signet` API router.
7+
pub fn signet<Host, Signet>() -> ajj::Router<RpcCtx<Host, Signet>>
8+
where
9+
Host: FullNodeComponents,
10+
Signet: Pnt,
11+
{
12+
ajj::Router::new()
13+
.route("sendBundle", not_supported)
14+
.route("sendOrder", not_supported)
15+
}

0 commit comments

Comments
 (0)