Struct ink_env::call::CreateBuilder
source · [−]pub struct CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Salt, R>where
E: Environment,{ /* private fields */ }
Expand description
Builds up contract instantiations.
Implementations
sourceimpl<E, GasLimit, Endowment, Args, Salt, R> CreateBuilder<E, Unset<E::Hash>, GasLimit, Endowment, Args, Salt, R>where
E: Environment,
impl<E, GasLimit, Endowment, Args, Salt, R> CreateBuilder<E, Unset<E::Hash>, GasLimit, Endowment, Args, Salt, R>where
E: Environment,
sourceimpl<E, CodeHash, Endowment, Args, Salt, R> CreateBuilder<E, CodeHash, Unset<u64>, Endowment, Args, Salt, R>where
E: Environment,
impl<E, CodeHash, Endowment, Args, Salt, R> CreateBuilder<E, CodeHash, Unset<u64>, Endowment, Args, Salt, R>where
E: Environment,
sourceimpl<E, CodeHash, GasLimit, Args, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Unset<E::Balance>, Args, Salt, R>where
E: Environment,
impl<E, CodeHash, GasLimit, Args, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Unset<E::Balance>, Args, Salt, R>where
E: Environment,
sourceimpl<E, CodeHash, GasLimit, Endowment, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Unset<ExecutionInput<EmptyArgumentList>>, Salt, R>where
E: Environment,
impl<E, CodeHash, GasLimit, Endowment, Salt, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Unset<ExecutionInput<EmptyArgumentList>>, Salt, R>where
E: Environment,
sourcepub fn exec_input<Args>(
self,
exec_input: ExecutionInput<Args>
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Set<ExecutionInput<Args>>, Salt, R>
pub fn exec_input<Args>(
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.
sourceimpl<E, CodeHash, GasLimit, Endowment, Args, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Unset<Salt>, R>where
E: Environment,
impl<E, CodeHash, GasLimit, Endowment, Args, R> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Unset<Salt>, R>where
E: Environment,
sourcepub fn salt_bytes<Salt>(
self,
salt: Salt
) -> CreateBuilder<E, CodeHash, GasLimit, Endowment, Args, Set<Salt>, R>where
Salt: AsRef<[u8]>,
pub fn salt_bytes<Salt>(
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.
sourceimpl<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>,
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>,
sourcepub fn params(self) -> CreateParams<E, Args, Salt, R>
pub fn params(self) -> CreateParams<E, Args, Salt, R>
Sets the value transferred upon the execution of the call.
sourceimpl<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>,
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>,
sourcepub fn instantiate(self) -> Result<R, Error>
pub fn instantiate(self) -> Result<R, Error>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more