Struct ink_env::test::ChainSpec[][src]

pub struct ChainSpec { /* fields omitted */ }

The chain specification.

Implementations

impl ChainSpec[src]

pub fn uninitialized() -> Self[src]

Creates a new uninitialized chain specification.

pub fn reset(&mut self)[src]

Resets the chain spec to uninitialized state.

pub fn initialize_as_default<T>(&mut self) -> Result<()> where
    T: Environment,
    <T as Environment>::AccountId: From<[u8; 32]>, 
[src]

Default initialization for the off-chain specification.

pub fn gas_price<T>(&self) -> Result<T::Balance, OffChainError> where
    T: Environment
[src]

Returns the gas price for the chain.

pub fn set_gas_price<T>(&mut self, gas_price: T::Balance) where
    T: Environment
[src]

Set the gas price for the chain.

pub fn minimum_balance<T>(&self) -> Result<T::Balance, OffChainError> where
    T: Environment
[src]

Returns the minimum balance that is required for creating an account.

pub fn tombstone_deposit<T>(&self) -> Result<T::Balance, OffChainError> where
    T: Environment
[src]

Returns the tombstone deposit for the chain.

pub fn block_time<T>(&self) -> Result<T::Timestamp, OffChainError> where
    T: Environment
[src]

Returns the targeted block time for the chain.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,