pub struct DeployMethod<'a, W> { /* private fields */ }Expand description
A pending contract deployment interaction.
Created by ContractDeployer::deploy. Supports building the deployment
payload, computing the target instance, simulating, and sending.
Implementations§
Source§impl<W: Wallet> DeployMethod<'_, W>
impl<W: Wallet> DeployMethod<'_, W>
Sourcepub async fn request(
&self,
opts: &DeployOptions,
) -> Result<ExecutionPayload, Error>
pub async fn request( &self, opts: &DeployOptions, ) -> Result<ExecutionPayload, Error>
Build the deployment ExecutionPayload.
Sourcepub fn get_instance(
&self,
opts: &DeployOptions,
) -> Result<ContractInstanceWithAddress, Error>
pub fn get_instance( &self, opts: &DeployOptions, ) -> Result<ContractInstanceWithAddress, Error>
Compute the contract instance that would be deployed.
Sourcepub async fn simulate(
&self,
deploy_opts: &DeployOptions,
sim_opts: SimulateOptions,
) -> Result<TxSimulationResult, Error>
pub async fn simulate( &self, deploy_opts: &DeployOptions, sim_opts: SimulateOptions, ) -> Result<TxSimulationResult, Error>
Simulate the deployment without sending.
Sourcepub async fn profile(
&self,
deploy_opts: &DeployOptions,
profile_opts: ProfileOptions,
) -> Result<TxProfileResult, Error>
pub async fn profile( &self, deploy_opts: &DeployOptions, profile_opts: ProfileOptions, ) -> Result<TxProfileResult, Error>
Profile the deployment transaction.
Sourcepub async fn send(
&self,
deploy_opts: &DeployOptions,
send_opts: SendOptions,
) -> Result<DeployResult, Error>
pub async fn send( &self, deploy_opts: &DeployOptions, send_opts: SendOptions, ) -> Result<DeployResult, Error>
Send the deployment transaction.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for DeployMethod<'a, W>
impl<'a, W> RefUnwindSafe for DeployMethod<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for DeployMethod<'a, W>where
W: Sync,
impl<'a, W> Sync for DeployMethod<'a, W>where
W: Sync,
impl<'a, W> Unpin for DeployMethod<'a, W>
impl<'a, W> UnwindSafe for DeployMethod<'a, W>where
W: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more