mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(rpc): rename Client generics to Provider (#3126)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -17,8 +17,8 @@ pub type TraceBlockResult = Result<(Vec<LocalizedTransactionTrace>, BlockId), (R
|
||||
/// An extension trait for the Trace API.
|
||||
#[async_trait::async_trait]
|
||||
pub trait TraceApiExt {
|
||||
/// The client type that is used to make the requests.
|
||||
type Client;
|
||||
/// The provider type that is used to make the requests.
|
||||
type Provider;
|
||||
|
||||
/// Returns a new stream that yields the traces for the given blocks.
|
||||
///
|
||||
@ -39,7 +39,7 @@ pub trait TraceApiExt {
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl<T: TraceApiClient + Sync> TraceApiExt for T {
|
||||
type Client = T;
|
||||
type Provider = T;
|
||||
|
||||
fn trace_block_buffered<I, B>(&self, params: I, n: usize) -> TraceBlockStream<'_>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user