Skip to content

Commit

Permalink
feature: ProviderCall
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed May 28, 2024
1 parent 7d060f0 commit 33fb629
Show file tree
Hide file tree
Showing 7 changed files with 461 additions and 174 deletions.
7 changes: 4 additions & 3 deletions crates/json-rpc/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ where

impl<Params> Request<&Params>
where
Params: Clone,
Params: ToOwned,
Params::Owned: RpcParam,
{
/// Clone the request, including the request parameters.
pub fn into_owned_params(self) -> Request<Params> {
Request { meta: self.meta, params: self.params.clone() }
pub fn into_owned_params(self) -> Request<Params::Owned> {
Request { meta: self.meta, params: self.params.to_owned() }
}
}

Expand Down
11 changes: 6 additions & 5 deletions crates/provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,21 @@ extern crate tracing;
mod builder;
pub use builder::{Identity, ProviderBuilder, ProviderLayer, Stack};

mod chain;

pub mod ext;

pub mod fillers;
pub mod layers;

mod chain;

mod heart;
pub use heart::{PendingTransaction, PendingTransactionBuilder, PendingTransactionConfig};

pub mod layers;

mod provider;
pub use provider::{
EthCall, FilterPollerBuilder, Provider, RootProvider, RpcWithBlock, SendableTx, TraceCallList,
WalletProvider,
EthCall, FilterPollerBuilder, Provider, ProviderCall, RootProvider, RpcWithBlock, SendableTx,
TraceCallList, WalletProvider,
};

pub mod utils;
Expand Down
Loading

0 comments on commit 33fb629

Please sign in to comment.