Trait Environment

Source
pub trait Environment: AutoTraits {
    type Storage: Storage<Context = Self::StorageContext>;
    type Network: Network<Node = Self::ValidatorNode>;
    type Signer: Signer;
    type Wallet: Wallet;
    type ValidatorNode: ValidatorNode + AutoTraits + Clone;
    type StorageContext: Context<Extra: ExecutionRuntimeContext> + AutoTraits;

    // Required methods
    fn storage(&self) -> &Self::Storage;
    fn network(&self) -> &Self::Network;
    fn signer(&self) -> &Self::Signer;
    fn wallet(&self) -> &Self::Wallet;
}

Required Associated Types§

Required Methods§

Source

fn storage(&self) -> &Self::Storage

Source

fn network(&self) -> &Self::Network

Source

fn signer(&self) -> &Self::Signer

Source

fn wallet(&self) -> &Self::Wallet

Implementors§