referrerpolicy=no-referrer-when-downgrade

Chain

Trait Chain 

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

    // Required methods
    fn account_data_of(
        account: <Self::Runtime as Config>::AccountId,
    ) -> AccountData<u128>;
    fn events() -> Vec<Self::RuntimeEvent>;
    fn native_total_issuance_source_of_truth() -> bool;

    // Provided method
    fn account_id_of(
        seed: &str,
    ) -> <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId { ... }
}

Required Associated Types§

Required Methods§

fn account_data_of( account: <Self::Runtime as Config>::AccountId, ) -> AccountData<u128>

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

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§