Trait oasis_runtime_sdk::module::Module

source ·
pub trait Module {
    type Error: Error + 'static;
    type Event: Event + 'static;
    type Parameters: Parameters + 'static;

    const NAME: &'static str;
    const VERSION: u32 = 1u32;

    // Provided methods
    fn params() -> Self::Parameters { ... }
    fn set_params(params: Self::Parameters) { ... }
}
Expand description

A runtime module.

Required Associated Types§

source

type Error: Error + 'static

Module error type.

source

type Event: Event + 'static

Module event type.

source

type Parameters: Parameters + 'static

Module parameters.

Required Associated Constants§

source

const NAME: &'static str

Module name.

Provided Associated Constants§

source

const VERSION: u32 = 1u32

Module version.

Provided Methods§

source

fn params() -> Self::Parameters

Return the module’s parameters.

source

fn set_params(params: Self::Parameters)

Set the module’s parameters.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Module for oasis_runtime_sdk::modules::accounts::Module

source§

const NAME: &'static str = MODULE_NAME

§

type Error = Error

§

type Event = Event

§

type Parameters = Parameters

source§

impl Module for oasis_runtime_sdk::modules::consensus::Module

source§

const NAME: &'static str = MODULE_NAME

source§

const VERSION: u32 = 1u32

§

type Error = Error

§

type Event = Event

§

type Parameters = Parameters

source§

impl Module for oasis_runtime_sdk::modules::rewards::Module

source§

const NAME: &'static str = MODULE_NAME

source§

const VERSION: u32 = 2u32

§

type Error = Error

§

type Event = ()

§

type Parameters = Parameters

source§

impl<Cfg: Config> Module for oasis_runtime_sdk::modules::access::Module<Cfg>

source§

const NAME: &'static str = MODULE_NAME

source§

const VERSION: u32 = 1u32

§

type Error = Error

§

type Event = ()

§

type Parameters = ()

source§

impl<Cfg: Config> Module for oasis_runtime_sdk::modules::core::Module<Cfg>

source§

const NAME: &'static str = MODULE_NAME

§

type Error = Error

§

type Event = Event

§

type Parameters = Parameters

source§

impl<Cfg: Config> Module for oasis_runtime_sdk::modules::rofl::Module<Cfg>

source§

const NAME: &'static str = MODULE_NAME

§

type Error = Error

§

type Event = Event

§

type Parameters = Parameters

source§

impl<Consensus: API> Module for oasis_runtime_sdk::modules::consensus_accounts::Module<Consensus>

source§

const NAME: &'static str = MODULE_NAME

source§

const VERSION: u32 = 1u32

§

type Error = Error

§

type Event = Event

§

type Parameters = Parameters