Struct ink_env::call::CreateBuilder[][src]

pub struct CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    E: Environment
{ /* fields omitted */ }

Builds up contract instantiations.

Implementations

impl<E, GasLimit, Endowment, Args, Salt, R> CreateBuilder<E, Unset<E::Hash>, GasLimit, Endowment, Args, Salt, R> where
    E: Environment
[src]

pub fn code_hash(
    self,
    code_hash: E::Hash
) -> CreateBuilder<E, Set<E::Hash>, GasLimit, Endowment, Args, Salt, R>
[src]

Sets the used code hash for the contract instantiation.

impl<E, CodeHash, Endowment, Args, Salt, R> CreateBuilder<E, CodeHash, Unset<u64>, Endowment, Args, Salt, R> where
    E: Environment
[src]

pub fn gas_limit(
    self,
    gas_limit: u64
) -> CreateBuilder<E, CodeHash, Set<u64>, Endowment, Args, Salt, R>
[src]

Sets the maximum allowed gas costs for the contract instantiation.

impl<E, CodeHash, GasLimit, Args, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Unset<E::Balance>, Args, Salt, R> where
    E: Environment
[src]

pub fn endowment(
    self,
    endowment: E::Balance
) -> CreateBuilder<E, CodeHash, GasLimit, Set<E::Balance>, Args, Salt, R>
[src]

Sets the value transferred upon the execution of the call.

impl<E, CodeHash, GasLimit, Endowment, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Unset<ExecutionInput<EmptyArgumentList>>, Salt, R> where
    E: Environment
[src]

pub fn exec_input<Args>(
    self,
    exec_input: ExecutionInput<Args>
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Set<ExecutionInput<Args>>, Salt, R>
[src]

Sets the value transferred upon the execution of the call.

impl<E, CodeHash, GasLimit, Endowment, Args, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Unset<Salt>, R> where
    E: Environment
[src]

pub fn salt_bytes<Salt>(
    self,
    salt: Salt
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Set<Salt>, R> where
    Salt: AsRef<[u8]>, 
[src]

Sets the value transferred upon the execution of the call.

impl<E, GasLimit, Args, Salt, R> CreateBuilder<E, Set<E::Hash>, GasLimit, Set<E::Balance>, Set<ExecutionInput<Args>>, Set<Salt>, R> where
    E: Environment,
    GasLimit: Unwrap<Output = u64>, 
[src]

pub fn params(self) -> CreateParams<E, Args, Salt, R>[src]

Sets the value transferred upon the execution of the call.

impl<E, GasLimit, Args, Salt, R> CreateBuilder<E, Set<E::Hash>, GasLimit, Set<E::Balance>, Set<ExecutionInput<Args>>, Set<Salt>, R> where
    E: Environment,
    GasLimit: Unwrap<Output = u64>,
    Args: Encode,
    Salt: AsRef<[u8]>,
    R: FromAccountId<E>, 
[src]

pub fn instantiate(self) -> Result<R, Error>[src]

Instantiates the contract using the given instantiation parameters.

Auto Trait Implementations

impl<E, CodeHash, GasLimit, Endowment, Args, Salt, R> RefUnwindSafe for CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    Args: RefUnwindSafe,
    CodeHash: RefUnwindSafe,
    Endowment: RefUnwindSafe,
    GasLimit: RefUnwindSafe,
    Salt: RefUnwindSafe

impl<E, CodeHash, GasLimit, Endowment, Args, Salt, R> Send for CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    Args: Send,
    CodeHash: Send,
    Endowment: Send,
    GasLimit: Send,
    Salt: Send

impl<E, CodeHash, GasLimit, Endowment, Args, Salt, R> Sync for CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    Args: Sync,
    CodeHash: Sync,
    Endowment: Sync,
    GasLimit: Sync,
    Salt: Sync

impl<E, CodeHash, GasLimit, Endowment, Args, Salt, R> Unpin for CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    Args: Unpin,
    CodeHash: Unpin,
    Endowment: Unpin,
    GasLimit: Unpin,
    Salt: Unpin

impl<E, CodeHash, GasLimit, Endowment, Args, Salt, R> UnwindSafe for CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R> where
    Args: UnwindSafe,
    CodeHash: UnwindSafe,
    Endowment: UnwindSafe,
    GasLimit: UnwindSafe,
    Salt: UnwindSafe

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>,