referrerpolicy=no-referrer-when-downgrade
emulated_integration_tests_common::impls

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

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

Required Associated Types§

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 Methods§

fn account_id_of( seed: &str, ) -> <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

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<N: Network> Chain for AssetHubRococo<N>

impl<N: Network> Chain for AssetHubWestend<N>

impl<N: Network> Chain for BridgeHubRococo<N>

impl<N: Network> Chain for CoretimeRococo<N>

impl<N: Network> Chain for CoretimeWestend<N>

impl<N: Network> Chain for PenpalA<N>

impl<N: Network> Chain for PenpalB<N>

impl<N: Network> Chain for PeopleRococo<N>

impl<N: Network> Chain for PeopleWestend<N>

impl<N: Network> Chain for Rococo<N>

impl<N: Network> Chain for Westend<N>