Skip to main content

HoprStaticChainApi

Trait HoprStaticChainApi 

pub trait HoprStaticChainApi: ChainReadSafeOperations<Error = Self::ChainError> + ChainValues<Error = Self::ChainError> {
    type ChainError: Error + Send + Sync + 'static;
}
Expand description

Reduced set of read-only HOPR on-chain operation APIs.

Useful when only basic on-chain operations are required for querying.

This trait is automatically implemented for types that implement all the individual chain API traits with the same error.

Required Associated Types§

type ChainError: Error + Send + Sync + 'static

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§

§

impl<T, E> HoprStaticChainApi for T
where T: ChainReadSafeOperations<Error = E> + ChainValues<Error = E>, E: Error + Send + Sync + 'static,

§

type ChainError = E