Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add L2EthApiExt trait #13539

Merged
merged 3 commits into from
Dec 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: remove redundant generic
mattsse committed Dec 24, 2024

Verified

This commit was signed with the committer’s verified signature.
sourabhxyz Sourabh
commit edabeabe671ddee9a3128a34e9d7954412cfd769
3 changes: 1 addition & 2 deletions crates/rpc/rpc-eth-api/src/ext.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
//! `eth_` Extension traits.
use alloy_json_rpc::RpcObject;
use alloy_primitives::{Bytes, B256};
use alloy_rpc_types_eth::erc4337::ConditionalOptions;
use jsonrpsee::{core::RpcResult, proc_macros::rpc};

/// Extension trait for `eth_` namespace for L2s.
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "eth"))]
#[cfg_attr(feature = "client", rpc(server, client, namespace = "eth"))]
pub trait L2EthApiExt<T: RpcObject> {
pub trait L2EthApiExt {
/// Sends signed transaction with the given condition.
#[method(name = "sendRawTransactionConditional")]
async fn send_raw_transaction_conditional(