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>;
// Provided method
fn account_id_of(seed: &str) -> AccountId { ... }
}
Required Associated Types§
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>
Provided Methods§
fn account_id_of(seed: &str) -> 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.