Struct starknet_accounts::ArgentAccountFactory
source · pub struct ArgentAccountFactory<S, P> { /* private fields */ }Implementations§
source§impl<S, P> ArgentAccountFactory<S, P>where
S: Signer,
impl<S, P> ArgentAccountFactory<S, P>where
S: Signer,
pub async fn new( class_hash: FieldElement, chain_id: FieldElement, guardian_public_key: FieldElement, signer: S, provider: P ) -> Result<Self, S::GetPublicKeyError>
pub fn set_block_id(&mut self, block_id: BlockId) -> &Self
Trait Implementations§
source§impl<S, P> AccountFactory for ArgentAccountFactory<S, P>
impl<S, P> AccountFactory for ArgentAccountFactory<S, P>
type Provider = P
type SignError = <S as Signer>::SignError
fn class_hash(&self) -> FieldElement
fn calldata(&self) -> Vec<FieldElement>
fn chain_id(&self) -> FieldElement
fn provider(&self) -> &Self::Provider
fn sign_deployment<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment: &'life1 RawAccountDeployment
) -> Pin<Box<dyn Future<Output = Result<Vec<FieldElement>, Self::SignError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deploy(&self, salt: FieldElement) -> AccountDeployment<'_, Self>
Auto Trait Implementations§
impl<S, P> RefUnwindSafe for ArgentAccountFactory<S, P>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P> Send for ArgentAccountFactory<S, P>
impl<S, P> Sync for ArgentAccountFactory<S, P>
impl<S, P> Unpin for ArgentAccountFactory<S, P>
impl<S, P> UnwindSafe for ArgentAccountFactory<S, P>where
P: UnwindSafe,
S: UnwindSafe,
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