[][src]Struct srml_contract::Config

pub struct Config<T: Trait> {
    pub schedule: Schedule<T::Gas>,
    pub existential_deposit: BalanceOf<T>,
    pub max_depth: u32,
    pub contract_account_instantiate_fee: BalanceOf<T>,
    pub account_create_fee: BalanceOf<T>,
    pub transfer_fee: BalanceOf<T>,
    pub call_base_fee: T::Gas,
    pub instantiate_base_fee: T::Gas,
}

In-memory cache of configuration values.

We assume that these values can't be changed in the course of transaction execution.

Fields

schedule: Schedule<T::Gas>existential_deposit: BalanceOf<T>max_depth: u32contract_account_instantiate_fee: BalanceOf<T>account_create_fee: BalanceOf<T>transfer_fee: BalanceOf<T>call_base_fee: T::Gasinstantiate_base_fee: T::Gas

Auto Trait Implementations

impl<T> Sync for Config<T> where
    <<T as Trait>::Currency as Currency<<T as Trait>::AccountId>>::Balance: Sync,
    <T as Trait>::Currency: Currency<<T as Trait>::AccountId>,
    <T as Trait>::Gas: Sync

impl<T> Send for Config<T> where
    <<T as Trait>::Currency as Currency<<T as Trait>::AccountId>>::Balance: Send,
    <T as Trait>::Currency: Currency<<T as Trait>::AccountId>,
    <T as Trait>::Gas: Send

impl<T> Unpin for Config<T> where
    <<T as Trait>::Currency as Currency<<T as Trait>::AccountId>>::Balance: Unpin,
    <T as Trait>::Currency: Currency<<T as Trait>::AccountId>,
    <T as Trait>::Gas: Unpin

impl<T> UnwindSafe for Config<T> where
    <<T as Trait>::Currency as Currency<<T as Trait>::AccountId>>::Balance: UnwindSafe,
    <T as Trait>::Currency: Currency<<T as Trait>::AccountId>,
    <T as Trait>::Gas: UnwindSafe

impl<T> RefUnwindSafe for Config<T> where
    <<T as Trait>::Currency as Currency<<T as Trait>::AccountId>>::Balance: RefUnwindSafe,
    <T as Trait>::Currency: Currency<<T as Trait>::AccountId>,
    <T as Trait>::Gas: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Erased for T[src]