referrerpolicy=no-referrer-when-downgrade

Chain

Trait Chain 

Source
pub trait Chain: TestExt {
    type Network: Network;
    type Runtime: SystemConfig;
    type RuntimeCall: Clone + Dispatchable<RuntimeOrigin = Self::RuntimeOrigin>;
    type RuntimeOrigin;
    type RuntimeEvent;
    type System;
    type OriginCaller;

    // Required methods
    fn account_data_of(
        account: AccountIdOf<Self::Runtime>,
    ) -> AccountData<Balance>;
    fn events() -> Vec<<Self as Chain>::RuntimeEvent>;
    fn native_total_issuance_source_of_truth() -> bool;

    // Provided method
    fn account_id_of(seed: &str) -> AccountId { ... }
}

Required Associated Types§

Required Methods§

Source

fn account_data_of(account: AccountIdOf<Self::Runtime>) -> AccountData<Balance>

Source

fn events() -> Vec<<Self as Chain>::RuntimeEvent>

Source

fn native_total_issuance_source_of_truth() -> bool

Whether the local Total Issuance can be treated as authoritative.

Provided Methods§

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§