Struct ink_env::test::ChainSpec [−][src]
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]
T: Environment,
<T as Environment>::AccountId: From<[u8; 32]>,
Default initialization for the off-chain specification.
pub fn gas_price<T>(&self) -> Result<T::Balance, OffChainError> where
T: Environment,
[src]
T: Environment,
Returns the gas price for the chain.
pub fn set_gas_price<T>(&mut self, gas_price: T::Balance) where
T: Environment,
[src]
T: Environment,
Set the gas price for the chain.
pub fn minimum_balance<T>(&self) -> Result<T::Balance, OffChainError> where
T: Environment,
[src]
T: Environment,
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]
T: Environment,
Returns the tombstone deposit for the chain.
pub fn block_time<T>(&self) -> Result<T::Timestamp, OffChainError> where
T: Environment,
[src]
T: Environment,
Returns the targeted block time for the chain.
Auto Trait Implementations
impl RefUnwindSafe for ChainSpec
impl Send for ChainSpec
impl Sync for ChainSpec
impl Unpin for ChainSpec
impl UnwindSafe for ChainSpec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,