pub trait OfflineClientT<T: Config>: Clone + Send + Sync + 'static {
    // Required methods
    fn metadata(&self) -> Metadata;
    fn genesis_hash(&self) -> T::Hash;
    fn runtime_version(&self) -> RuntimeVersion;

    // Provided methods
    fn tx(&self) -> TxClient<T, Self> { ... }
    fn events(&self) -> EventsClient<T, Self> { ... }
    fn storage(&self) -> StorageClient<T, Self> { ... }
    fn constants(&self) -> ConstantsClient<T, Self> { ... }
    fn blocks(&self) -> BlocksClient<T, Self> { ... }
    fn runtime_api(&self) -> RuntimeApiClient<T, Self> { ... }
}
Expand description

A trait representing a client that can perform offline-only actions.

Required Methods§

source

fn metadata(&self) -> Metadata

Return the provided Metadata.

source

fn genesis_hash(&self) -> T::Hash

Return the provided genesis hash.

source

fn runtime_version(&self) -> RuntimeVersion

Return the provided RuntimeVersion.

Provided Methods§

source

fn tx(&self) -> TxClient<T, Self>

Work with transactions.

source

fn events(&self) -> EventsClient<T, Self>

Work with events.

source

fn storage(&self) -> StorageClient<T, Self>

Work with storage.

source

fn constants(&self) -> ConstantsClient<T, Self>

Access constants.

source

fn blocks(&self) -> BlocksClient<T, Self>

Work with blocks.

source

fn runtime_api(&self) -> RuntimeApiClient<T, Self>

Work with runtime API.

Implementors§