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>;

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

Required Associated Types§

Required Methods§

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§