pub struct RawDeclarationV3 { /* private fields */ }Expand description
DeclarationV3 but with nonce and other transaction fee options already determined.
Implementations§
Source§impl RawDeclarationV3
impl RawDeclarationV3
Sourcepub fn transaction_hash(
&self,
chain_id: Felt,
address: Felt,
query_only: bool,
) -> Felt
pub fn transaction_hash( &self, chain_id: Felt, address: Felt, query_only: bool, ) -> Felt
Calculates transaction hash given chain_id, address, and query_only.
Sourcepub fn contract_class(&self) -> &FlattenedSierraClass
pub fn contract_class(&self) -> &FlattenedSierraClass
Gets a reference to the flattened Sierra (Cairo 1) class being declared.
Sourcepub const fn compiled_class_hash(&self) -> Felt
pub const fn compiled_class_hash(&self) -> Felt
Gets the CASM class hash corresponding to the Sierra class being declared.
Sourcepub const fn l1_gas_price(&self) -> u128
pub const fn l1_gas_price(&self) -> u128
Gets the l1_gas_price of the declaration request.
Sourcepub const fn l2_gas_price(&self) -> u128
pub const fn l2_gas_price(&self) -> u128
Gets the l2_gas_price of the declaration request.
Sourcepub const fn l1_data_gas(&self) -> u64
pub const fn l1_data_gas(&self) -> u64
Gets the l1_data_gas of the declaration request.
Sourcepub const fn l1_data_gas_price(&self) -> u128
pub const fn l1_data_gas_price(&self) -> u128
Gets the l1_data_gas_price of the declaration request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawDeclarationV3
impl RefUnwindSafe for RawDeclarationV3
impl Send for RawDeclarationV3
impl Sync for RawDeclarationV3
impl Unpin for RawDeclarationV3
impl UnwindSafe for RawDeclarationV3
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