pub struct PodReceiptResponse {
pub receipt: TransactionReceipt,
pub pod_metadata: DetailedReceiptMetadata,
}
Fields§
§receipt: TransactionReceipt
§pod_metadata: DetailedReceiptMetadata
Implementations§
Source§impl PodReceiptResponse
impl PodReceiptResponse
pub fn verify_receipt( &self, committee: &Committee, ) -> Result<(), CommitteeError>
pub fn transaction(&self) -> &Signed<Transaction>
Methods from Deref<Target = TransactionReceipt>§
Sourcepub fn transaction_type(&self) -> TxType
pub fn transaction_type(&self) -> TxType
Returns the transaction type.
Sourcepub fn calculate_create_address(&self, nonce: u64) -> Option<Address>
pub fn calculate_create_address(&self, nonce: u64) -> Option<Address>
Calculates the address that will be created by the transaction, if any.
Returns None
if the transaction is not a contract creation (the to
field is set).
Sourcepub fn decoded_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
pub fn decoded_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
Attempts to decode the logs to the provided log type.
Returns the first log that decodes successfully.
Returns None, if none of the logs could be decoded to the provided log type or if there are no logs.
Sourcepub fn decode_first_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
pub fn decode_first_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
Attempts to decode the first log in the receipt to the provided log type.
Returns None
if there are no logs or if decoding fails.
Sourcepub fn decode_nth_log<E>(&self, idx: usize) -> Option<Log<E>>where
E: SolEvent,
pub fn decode_nth_log<E>(&self, idx: usize) -> Option<Log<E>>where
E: SolEvent,
Decode the log at the given index as the given SolEvent type.
Sourcepub fn decode_last_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
pub fn decode_last_log<E>(&self) -> Option<Log<E>>where
E: SolEvent,
Decode the last log in the receipt.
Trait Implementations§
Source§impl Clone for PodReceiptResponse
impl Clone for PodReceiptResponse
Source§fn clone(&self) -> PodReceiptResponse
fn clone(&self) -> PodReceiptResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PodReceiptResponse
impl Debug for PodReceiptResponse
Source§impl Deref for PodReceiptResponse
impl Deref for PodReceiptResponse
Source§type Target = TransactionReceipt
type Target = TransactionReceipt
The resulting type after dereferencing.
Source§fn deref(&self) -> &TransactionReceipt
fn deref(&self) -> &TransactionReceipt
Dereferences the value.
Source§impl<'de> Deserialize<'de> for PodReceiptResponse
impl<'de> Deserialize<'de> for PodReceiptResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ReceiptResponse for PodReceiptResponse
impl ReceiptResponse for PodReceiptResponse
Source§fn contract_address(&self) -> Option<Address>
fn contract_address(&self) -> Option<Address>
Address of the created contract, or
None
if the transaction was not a deployment.Source§fn block_hash(&self) -> Option<BlockHash>
fn block_hash(&self) -> Option<BlockHash>
Hash of the block this transaction was included within.
Source§fn block_number(&self) -> Option<u64>
fn block_number(&self) -> Option<u64>
Number of the block this transaction was included within.
Source§fn transaction_hash(&self) -> TxHash
fn transaction_hash(&self) -> TxHash
Transaction Hash.
Source§fn transaction_index(&self) -> Option<u64>
fn transaction_index(&self) -> Option<u64>
Index within the block.
Source§fn effective_gas_price(&self) -> u128
fn effective_gas_price(&self) -> u128
Effective gas price.
Source§fn blob_gas_used(&self) -> Option<u64>
fn blob_gas_used(&self) -> Option<u64>
Blob gas used by the eip-4844 transaction.
Source§fn blob_gas_price(&self) -> Option<u128>
fn blob_gas_price(&self) -> Option<u128>
Blob gas price paid by the eip-4844 transaction.
Source§fn cumulative_gas_used(&self) -> u64
fn cumulative_gas_used(&self) -> u64
Returns the cumulative gas used at this receipt.
Auto Trait Implementations§
impl !Freeze for PodReceiptResponse
impl RefUnwindSafe for PodReceiptResponse
impl Send for PodReceiptResponse
impl Sync for PodReceiptResponse
impl Unpin for PodReceiptResponse
impl UnwindSafe for PodReceiptResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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