openzeppelin_relayer::services::provider

Trait NetworkConfiguration

Source
pub trait NetworkConfiguration: Sized {
    type Provider;

    // Required methods
    fn public_rpc_urls(&self) -> Vec<String>;
    fn new_provider(
        rpc_urls: Vec<RpcConfig>,
        timeout_seconds: u64,
    ) -> Result<Self::Provider, ProviderError>;
}

Required Associated Types§

Required Methods§

Source

fn public_rpc_urls(&self) -> Vec<String>

Source

fn new_provider( rpc_urls: Vec<RpcConfig>, timeout_seconds: u64, ) -> Result<Self::Provider, ProviderError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§