[][src]Struct srml_contract::GenesisConfig

pub struct GenesisConfig<T: Trait> {
    pub transfer_fee: BalanceOf<T>,
    pub creation_fee: BalanceOf<T>,
    pub transaction_base_fee: BalanceOf<T>,
    pub transaction_byte_fee: BalanceOf<T>,
    pub contract_fee: BalanceOf<T>,
    pub call_base_fee: T::Gas,
    pub create_base_fee: T::Gas,
    pub gas_price: BalanceOf<T>,
    pub max_depth: u32,
    pub block_gas_limit: T::Gas,
    pub current_schedule: Schedule<T::Gas>,
}

Fields

transfer_fee: BalanceOf<T>

The fee required to make a transfer.

creation_fee: BalanceOf<T>

The fee required to create an account.

transaction_base_fee: BalanceOf<T>

The fee to be paid for making a transaction; the base.

transaction_byte_fee: BalanceOf<T>

The fee to be paid for making a transaction; the per-byte portion.

contract_fee: BalanceOf<T>

The fee required to create a contract instance.

call_base_fee: T::Gas

The base fee charged for calling into a contract.

create_base_fee: T::Gas

The base fee charged for creating a contract.

gas_price: BalanceOf<T>

The price of one unit of gas.

max_depth: u32

The maximum nesting level of a call/create stack.

block_gas_limit: T::Gas

The maximum amount of gas that could be expended per block.

current_schedule: Schedule<T::Gas>

Current cost schedule for contracts.

Trait Implementations

impl<T: Trait> Default for GenesisConfig<T>[src]

impl<T: Trait> Serialize for GenesisConfig<T> where
    BalanceOf<T>: Serialize,
    BalanceOf<T>: Serialize,
    BalanceOf<T>: Serialize,
    BalanceOf<T>: Serialize,
    BalanceOf<T>: Serialize,
    T::Gas: Serialize,
    T::Gas: Serialize,
    BalanceOf<T>: Serialize,
    u32: Serialize,
    T::Gas: Serialize,
    Schedule<T::Gas>: Serialize
[src]

impl<'de, T: Trait> Deserialize<'de> for GenesisConfig<T> where
    BalanceOf<T>: DeserializeOwned,
    BalanceOf<T>: DeserializeOwned,
    BalanceOf<T>: DeserializeOwned,
    BalanceOf<T>: DeserializeOwned,
    BalanceOf<T>: DeserializeOwned,
    T::Gas: DeserializeOwned,
    T::Gas: DeserializeOwned,
    BalanceOf<T>: DeserializeOwned,
    u32: DeserializeOwned,
    T::Gas: DeserializeOwned,
    Schedule<T::Gas>: DeserializeOwned
[src]

impl<T: Trait> BuildStorage for GenesisConfig<T>[src]

Auto Trait Implementations

impl<T> Sync for GenesisConfig<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 GenesisConfig<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 GenesisConfig<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 GenesisConfig<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 GenesisConfig<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<T> MaybeSerialize for T where
    T: Serialize
[src]

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

impl<T> Erased for T[src]