pub struct DeployAccountMethod<'a, W> { /* private fields */ }Expand description
A deployment method for account contracts.
Wraps the generic [aztec_contract::deployment::DeployMethod] with
account-specific fee-payment wrapping via
crate::meta_payment::AccountEntrypointMetaPaymentMethod.
Implementations§
Source§impl<W: Wallet> DeployAccountMethod<'_, W>
impl<W: Wallet> DeployAccountMethod<'_, W>
Sourcepub async fn request(
&self,
opts: &DeployAccountOptions,
) -> Result<ExecutionPayload, Error>
pub async fn request( &self, opts: &DeployAccountOptions, ) -> Result<ExecutionPayload, Error>
Build the full deployment execution payload.
For self-deployed accounts (deployer == zero), fee payment goes after the deployment payload because the account contract must exist before it can execute its own entrypoint. For third-party deploys, fee goes first.
Sourcepub async fn simulate(
&self,
opts: &DeployAccountOptions,
sim_opts: SimulateOptions,
) -> Result<TxSimulationResult, Error>
pub async fn simulate( &self, opts: &DeployAccountOptions, sim_opts: SimulateOptions, ) -> Result<TxSimulationResult, Error>
Simulate the account deployment without sending.
Sourcepub async fn send(
&self,
opts: &DeployAccountOptions,
send_opts: SendOptions,
) -> Result<DeployResult, Error>
pub async fn send( &self, opts: &DeployAccountOptions, send_opts: SendOptions, ) -> Result<DeployResult, Error>
Send the account deployment transaction.
Sourcepub fn instance(&self) -> &ContractInstanceWithAddress
pub fn instance(&self) -> &ContractInstanceWithAddress
Get the contract instance that will be deployed.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for DeployAccountMethod<'a, W>
impl<'a, W> !RefUnwindSafe for DeployAccountMethod<'a, W>
impl<'a, W> Send for DeployAccountMethod<'a, W>where
W: Sync,
impl<'a, W> Sync for DeployAccountMethod<'a, W>where
W: Sync,
impl<'a, W> Unpin for DeployAccountMethod<'a, W>
impl<'a, W> !UnwindSafe for DeployAccountMethod<'a, W>
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