Struct ink_env::call::CreateBuilder [−][src]
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]
E: Environment,
pub fn code_hash(
self,
code_hash: E::Hash
) -> CreateBuilder<E, Set<E::Hash>, GasLimit, Endowment, Args, Salt, R>
[src]
self,
code_hash: E::Hash
) -> CreateBuilder<E, Set<E::Hash>, GasLimit, Endowment, Args, Salt, R>
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]
E: Environment,
pub fn gas_limit(
self,
gas_limit: u64
) -> CreateBuilder<E, CodeHash, Set<u64>, Endowment, Args, Salt, R>
[src]
self,
gas_limit: u64
) -> CreateBuilder<E, CodeHash, Set<u64>, Endowment, Args, Salt, R>
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]
E: Environment,
pub fn endowment(
self,
endowment: E::Balance
) -> CreateBuilder<E, CodeHash, GasLimit, Set<E::Balance>, Args, Salt, R>
[src]
self,
endowment: E::Balance
) -> CreateBuilder<E, CodeHash, GasLimit, Set<E::Balance>, Args, Salt, R>
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]
E: Environment,
pub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Set<ExecutionInput<Args>>, Salt, R>
[src]
self,
exec_input: ExecutionInput<Args>
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Set<ExecutionInput<Args>>, Salt, R>
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]
E: Environment,
pub fn salt_bytes<Salt>(
self,
salt: Salt
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Set<Salt>, R> where
Salt: AsRef<[u8]>,
[src]
self,
salt: Salt
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Set<Salt>, R> where
Salt: AsRef<[u8]>,
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]
E: Environment,
GasLimit: Unwrap<Output = u64>,
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]
E: Environment,
GasLimit: Unwrap<Output = u64>,
Args: Encode,
Salt: AsRef<[u8]>,
R: FromAccountId<E>,
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,
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,
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,
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,
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,
Args: UnwindSafe,
CodeHash: UnwindSafe,
Endowment: UnwindSafe,
GasLimit: UnwindSafe,
Salt: UnwindSafe,
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>,