gadget-sdk 0.6.2

SDK for building Blueprints and gadget on Tangle Network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::future::Future;

/// `EVMProviderContext` trait provides access to the EVM provider from the context.
pub trait EVMProviderContext {
    type Network: alloy_network::Network;
    type Transport: alloy_transport::Transport + Clone;
    type Provider: alloy_provider::Provider<Self::Transport, Self::Network>;
    /// Get the EVM provider from the context.
    fn evm_provider(
        &self,
    ) -> impl Future<Output = color_eyre::Result<Self::Provider, alloy_transport::TransportError>>;
}