pub struct PreparedLegacyDeclaration<'a, A> { /* private fields */ }Expand description
RawLegacyDeclaration but with an account associated.
Implementations§
source§impl<'a, A> PreparedLegacyDeclaration<'a, A>where
A: Account,
impl<'a, A> PreparedLegacyDeclaration<'a, A>where
A: Account,
sourcepub fn transaction_hash(
&self,
query_only: bool
) -> Result<FieldElement, ComputeClassHashError>
pub fn transaction_hash( &self, query_only: bool ) -> Result<FieldElement, ComputeClassHashError>
Locally calculates the hash of the transaction to be sent from this declaration given the parameters.
source§impl<'a, A> PreparedLegacyDeclaration<'a, A>where
A: ConnectedAccount,
impl<'a, A> PreparedLegacyDeclaration<'a, A>where
A: ConnectedAccount,
pub async fn send( &self ) -> Result<DeclareTransactionResult, AccountError<A::SignError>>
pub async fn get_declare_request( &self, query_only: bool ) -> Result<BroadcastedDeclareTransactionV1, AccountError<A::SignError>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for PreparedLegacyDeclaration<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for PreparedLegacyDeclaration<'a, A>where
A: Sync,
impl<'a, A> Sync for PreparedLegacyDeclaration<'a, A>where
A: Sync,
impl<'a, A> Unpin for PreparedLegacyDeclaration<'a, A>
impl<'a, A> UnwindSafe for PreparedLegacyDeclaration<'a, A>where
A: 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