Struct starknet_accounts::AccountDeployment
source · pub struct AccountDeployment<'f, F> { /* private fields */ }Expand description
An intermediate type allowing users to optionally specify nonce and/or max_fee.
Implementations§
source§impl<'f, F> AccountDeployment<'f, F>
impl<'f, F> AccountDeployment<'f, F>
pub fn new(salt: FieldElement, factory: &'f F) -> Self
pub fn nonce(self, nonce: FieldElement) -> Self
pub fn max_fee(self, max_fee: FieldElement) -> Self
pub fn fee_estimate_multiplier(self, fee_estimate_multiplier: f64) -> Self
sourcepub fn prepared(
self
) -> Result<PreparedAccountDeployment<'f, F>, NotPreparedError>
pub fn prepared( self ) -> Result<PreparedAccountDeployment<'f, F>, NotPreparedError>
Calling this function after manually specifying nonce and max_fee turns
AccountDeployment into PreparedAccountDeployment. Returns Err if either field is
None.
source§impl<'f, F> AccountDeployment<'f, F>where
F: AccountFactory + Sync,
impl<'f, F> AccountDeployment<'f, F>where
F: AccountFactory + Sync,
pub async fn fetch_nonce(&self) -> Result<FieldElement, ProviderError>
pub async fn estimate_fee( &self ) -> Result<FeeEstimate, AccountFactoryError<F::SignError>>
pub async fn simulate( &self, skip_validate: bool, skip_fee_charge: bool ) -> Result<SimulatedTransaction, AccountFactoryError<F::SignError>>
pub async fn send( &self ) -> Result<DeployAccountTransactionResult, AccountFactoryError<F::SignError>>
Trait Implementations§
Auto Trait Implementations§
impl<'f, F> RefUnwindSafe for AccountDeployment<'f, F>where
F: RefUnwindSafe,
impl<'f, F> Send for AccountDeployment<'f, F>where
F: Sync,
impl<'f, F> Sync for AccountDeployment<'f, F>where
F: Sync,
impl<'f, F> Unpin for AccountDeployment<'f, F>
impl<'f, F> UnwindSafe for AccountDeployment<'f, F>where
F: 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