pub enum TempoTxEnvelope {
Legacy(Signed<TxLegacy>),
Eip2930(Signed<TxEip2930>),
Eip1559(Signed<TxEip1559>),
Eip7702(Signed<TxEip7702>),
AA(AASigned),
FeeToken(Signed<TxFeeToken>),
}Expand description
Tempo transaction envelope containing all supported transaction types
Transaction types included:
- Legacy transactions
- EIP-2930 access list transactions
- EIP-1559 dynamic fee transactions
- EIP-7702 authorization list transactions
- Tempo fee token transactions (0x77)
Variants§
Legacy(Signed<TxLegacy>)
Legacy transaction (type 0x00)
Eip2930(Signed<TxEip2930>)
EIP-2930 access list transaction (type 0x01)
Eip1559(Signed<TxEip1559>)
EIP-1559 dynamic fee transaction (type 0x02)
Eip7702(Signed<TxEip7702>)
EIP-7702 authorization list transaction (type 0x04)
AA(AASigned)
Tempo transaction (type 0x76)
FeeToken(Signed<TxFeeToken>)
Tempo fee token transaction (type 0x77)
Implementations§
Source§impl TempoTxEnvelope
impl TempoTxEnvelope
Sourcepub fn fee_token(&self) -> Option<Address>
pub fn fee_token(&self) -> Option<Address>
Returns the fee token preference if this is a fee token transaction
Sourcepub fn fee_payer(&self, sender: Address) -> Result<Address, SignatureError>
pub fn fee_payer(&self, sender: Address) -> Result<Address, SignatureError>
Resolves fee payer for the transaction.
Sourcepub const fn tx_type(&self) -> TempoTxType
pub const fn tx_type(&self) -> TempoTxType
Return the TempoTxType of the inner txn.
Sourcepub fn is_fee_token(&self) -> bool
pub fn is_fee_token(&self) -> bool
Returns true if this is a fee token transaction
Returns the authorization list if present (for EIP-7702 and FeeToken transactions)
Returns the Tempo authorization list if present (for Tempo transactions)
Sourcepub fn is_system_tx(&self) -> bool
pub fn is_system_tx(&self) -> bool
Returns true if this is a Tempo system transaction
Sourcepub fn is_valid_system_tx(&self, chain_id: u64) -> bool
pub fn is_valid_system_tx(&self, chain_id: u64) -> bool
Returns true if this is a valid Tempo system transaction, i.e all gas fields and nonce are zero.
Sourcepub fn is_payment(&self) -> bool
pub fn is_payment(&self) -> bool
Classify a transaction as payment or non-payment.
Currently uses classifier v1: transaction is a payment if the to address has the TIP20 prefix.
Sourcepub fn subblock_proposer(&self) -> Option<PartialValidatorKey>
pub fn subblock_proposer(&self) -> Option<PartialValidatorKey>
Returns the proposer of the subblock if this is a subblock transaction.
Sourcepub fn as_aa(&self) -> Option<&AASigned>
pub fn as_aa(&self) -> Option<&AASigned>
Returns the AASigned transaction if this is a Tempo transaction.
Trait Implementations§
Source§impl Arbitrary<'_> for TempoTxEnvelopewhere
Signed<TxLegacy>: for<'a> Arbitrary<'a>,
Signed<TxEip2930>: for<'a> Arbitrary<'a>,
Signed<TxEip1559>: for<'a> Arbitrary<'a>,
Signed<TxEip7702>: for<'a> Arbitrary<'a>,
AASigned: for<'a> Arbitrary<'a>,
Signed<TxFeeToken>: for<'a> Arbitrary<'a>,
Available on crate features arbitrary only.
impl Arbitrary<'_> for TempoTxEnvelopewhere
Signed<TxLegacy>: for<'a> Arbitrary<'a>,
Signed<TxEip2930>: for<'a> Arbitrary<'a>,
Signed<TxEip1559>: for<'a> Arbitrary<'a>,
Signed<TxEip7702>: for<'a> Arbitrary<'a>,
AASigned: for<'a> Arbitrary<'a>,
Signed<TxFeeToken>: for<'a> Arbitrary<'a>,
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
Self from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for TempoTxEnvelope
impl Clone for TempoTxEnvelope
Source§fn clone(&self) -> TempoTxEnvelope
fn clone(&self) -> TempoTxEnvelope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Compact for TempoTxEnvelope
Available on crate feature reth-codec only.
impl Compact for TempoTxEnvelope
reth-codec only.Source§fn to_compact<B>(&self, buf: &mut B) -> usize
fn to_compact<B>(&self, buf: &mut B) -> usize
Source§fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
fn from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
buf with its internal cursor
advanced (eg..advance(len)). Read more§fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
§fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])
Source§impl Compress for TempoTxEnvelope
Available on crate feature reth-codec only.
impl Compress for TempoTxEnvelope
reth-codec only.Source§type Compressed = Vec<u8>
type Compressed = Vec<u8>
Source§fn compress_to_buf<B: BufMut + AsMut<[u8]>>(&self, buf: &mut B)
fn compress_to_buf<B: BufMut + AsMut<[u8]>>(&self, buf: &mut B)
§fn uncompressable_ref(&self) -> Option<&[u8]>
fn uncompressable_ref(&self) -> Option<&[u8]>
Some(self.as_ref())Source§impl Debug for TempoTxEnvelope
impl Debug for TempoTxEnvelope
Source§impl Decodable for TempoTxEnvelopewhere
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
AASigned: Decodable2718,
Signed<TxFeeToken>: Decodable2718,
impl Decodable for TempoTxEnvelopewhere
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
AASigned: Decodable2718,
Signed<TxFeeToken>: Decodable2718,
Source§impl Decodable2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
AASigned: Decodable2718,
Signed<TxFeeToken>: Decodable2718,
impl Decodable2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Decodable2718,
Signed<TxEip2930>: Decodable2718,
Signed<TxEip1559>: Decodable2718,
Signed<TxEip7702>: Decodable2718,
AASigned: Decodable2718,
Signed<TxFeeToken>: Decodable2718,
Source§fn typed_decode(ty: u8, buf: &mut &[u8]) -> Eip2718Result<Self>
fn typed_decode(ty: u8, buf: &mut &[u8]) -> Eip2718Result<Self>
Source§fn fallback_decode(buf: &mut &[u8]) -> Eip2718Result<Self>
fn fallback_decode(buf: &mut &[u8]) -> Eip2718Result<Self>
§fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
fn extract_type_byte(buf: &mut &[u8]) -> Option<u8>
§fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718(buf: &mut &[u8]) -> Result<Self, Eip2718Error>
§fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
fn decode_2718_exact(bytes: &[u8]) -> Result<Self, Eip2718Error>
Source§impl Decompress for TempoTxEnvelope
Available on crate feature reth-codec only.
impl Decompress for TempoTxEnvelope
reth-codec only.Source§fn decompress(value: &[u8]) -> Result<Self, DatabaseError>
fn decompress(value: &[u8]) -> Result<Self, DatabaseError>
§fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError>
fn decompress_owned(value: Vec<u8>) -> Result<Self, DatabaseError>
Source§impl<'de> Deserialize<'de> for TempoTxEnvelopewhere
TempoTxEnvelope: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
AASigned: Serialize + DeserializeOwned,
Signed<TxFeeToken>: Serialize + DeserializeOwned,
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TempoTxEnvelopewhere
TempoTxEnvelope: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
AASigned: Serialize + DeserializeOwned,
Signed<TxFeeToken>: Serialize + DeserializeOwned,
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl Encodable for TempoTxEnvelopewhere
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
AASigned: Encodable2718,
Signed<TxFeeToken>: Encodable2718,
impl Encodable for TempoTxEnvelopewhere
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
AASigned: Encodable2718,
Signed<TxFeeToken>: Encodable2718,
Source§impl Encodable2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
AASigned: Encodable2718,
Signed<TxFeeToken>: Encodable2718,
impl Encodable2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Encodable2718,
Signed<TxEip2930>: Encodable2718,
Signed<TxEip1559>: Encodable2718,
Signed<TxEip7702>: Encodable2718,
AASigned: Encodable2718,
Signed<TxFeeToken>: Encodable2718,
Source§fn encode_2718_len(&self) -> usize
fn encode_2718_len(&self) -> usize
Source§fn encode_2718(&self, out: &mut dyn BufMut)
fn encode_2718(&self, out: &mut dyn BufMut)
Source§fn trie_hash(&self) -> B256
fn trie_hash(&self) -> B256
§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
§fn into_encoded(self) -> WithEncoded<Self>
fn into_encoded(self) -> WithEncoded<Self>
WithEncoded] wrapper. Read more§fn network_len(&self) -> usize
fn network_len(&self) -> usize
§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Source§impl Envelope for TempoTxEnvelope
Available on crate feature reth-codec only.
impl Envelope for TempoTxEnvelope
reth-codec only.Source§impl From<AASigned> for TempoTxEnvelope
impl From<AASigned> for TempoTxEnvelope
Source§impl From<Signed<TxEip1559>> for TempoTxEnvelope
impl From<Signed<TxEip1559>> for TempoTxEnvelope
Source§impl From<Signed<TxEip2930>> for TempoTxEnvelope
impl From<Signed<TxEip2930>> for TempoTxEnvelope
Source§impl From<Signed<TxEip7702>> for TempoTxEnvelope
impl From<Signed<TxEip7702>> for TempoTxEnvelope
Source§impl From<Signed<TxFeeToken>> for TempoTxEnvelope
impl From<Signed<TxFeeToken>> for TempoTxEnvelope
Source§fn from(value: Signed<TxFeeToken>) -> Self
fn from(value: Signed<TxFeeToken>) -> Self
Source§impl From<Signed<TxLegacy>> for TempoTxEnvelope
impl From<Signed<TxLegacy>> for TempoTxEnvelope
Source§impl From<TempoTxEnvelope> for TempoTypedTransaction
impl From<TempoTxEnvelope> for TempoTypedTransaction
Source§fn from(value: TempoTxEnvelope) -> Self
fn from(value: TempoTxEnvelope) -> Self
Source§impl FromTxCompact for TempoTxEnvelope
Available on crate feature reth-codec only.
impl FromTxCompact for TempoTxEnvelope
reth-codec only.Source§type TxType = TempoTxType
type TxType = TempoTxType
Source§impl Hash for TempoTxEnvelopewhere
Self: Encodable2718,
impl Hash for TempoTxEnvelopewhere
Self: Encodable2718,
Source§impl InMemorySize for TempoTxEnvelope
impl InMemorySize for TempoTxEnvelope
Source§impl IsTyped2718 for TempoTxEnvelope
impl IsTyped2718 for TempoTxEnvelope
Source§impl PartialEq for TempoTxEnvelope
impl PartialEq for TempoTxEnvelope
Source§impl Serialize for TempoTxEnvelopewhere
TempoTxEnvelope: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
AASigned: Serialize + DeserializeOwned,
Signed<TxFeeToken>: Serialize + DeserializeOwned,
Available on crate feature serde only.
impl Serialize for TempoTxEnvelopewhere
TempoTxEnvelope: Clone,
Signed<TxLegacy>: Serialize + DeserializeOwned,
Signed<TxEip2930>: Serialize + DeserializeOwned,
Signed<TxEip1559>: Serialize + DeserializeOwned,
Signed<TxEip7702>: Serialize + DeserializeOwned,
AASigned: Serialize + DeserializeOwned,
Signed<TxFeeToken>: Serialize + DeserializeOwned,
serde only.Source§impl SignableTxRequest<TempoTxEnvelope> for TransactionRequest
Available on crate feature rpc only.
impl SignableTxRequest<TempoTxEnvelope> for TransactionRequest
rpc only.Source§async fn try_build_and_sign(
self,
signer: impl TxSigner<Signature> + Send,
) -> Result<TempoTxEnvelope, SignTxRequestError>
async fn try_build_and_sign( self, signer: impl TxSigner<Signature> + Send, ) -> Result<TempoTxEnvelope, SignTxRequestError>
Source§impl SignedTransaction for TempoTxEnvelope
impl SignedTransaction for TempoTxEnvelope
§fn is_broadcastable_in_full(&self) -> bool
fn is_broadcastable_in_full(&self) -> bool
§fn try_recover(&self) -> Result<Address, RecoveryError>
fn try_recover(&self) -> Result<Address, RecoveryError>
§fn try_recover_unchecked(&self) -> Result<Address, RecoveryError>
fn try_recover_unchecked(&self) -> Result<Address, RecoveryError>
s
value. Read more§fn recalculate_hash(&self) -> FixedBytes<32>
fn recalculate_hash(&self) -> FixedBytes<32>
§fn try_clone_into_recovered(&self) -> Result<Recovered<Self>, RecoveryError>
fn try_clone_into_recovered(&self) -> Result<Recovered<Self>, RecoveryError>
Recovered] by cloning the type.§fn try_clone_into_recovered_unchecked(
&self,
) -> Result<Recovered<Self>, RecoveryError>
fn try_clone_into_recovered_unchecked( &self, ) -> Result<Recovered<Self>, RecoveryError>
Recovered] by cloning the type.§fn try_into_recovered(self) -> Result<Recovered<Self>, Self>
fn try_into_recovered(self) -> Result<Recovered<Self>, Self>
Recovered]. Read more§fn into_recovered_unchecked(self) -> Result<Recovered<Self>, RecoveryError>
fn into_recovered_unchecked(self) -> Result<Recovered<Self>, RecoveryError>
Recovered] without
ensuring that the signature has a low s value (EIP-2). Read more§fn with_signer(self, signer: Address) -> Recovered<Self>
fn with_signer(self, signer: Address) -> Recovered<Self>
Recovered] transaction with the given sender. Read more§fn with_signer_ref(&self, signer: Address) -> Recovered<&Self>
fn with_signer_ref(&self, signer: Address) -> Recovered<&Self>
Recovered] transaction with the given signer, using a reference to self. Read moreSource§impl SignerRecoverable for TempoTxEnvelope
impl SignerRecoverable for TempoTxEnvelope
Source§fn recover_signer(&self) -> Result<Address, RecoveryError>
fn recover_signer(&self) -> Result<Address, RecoveryError>
Source§fn recover_signer_unchecked(&self) -> Result<Address, RecoveryError>
fn recover_signer_unchecked(&self) -> Result<Address, RecoveryError>
s
value. Read more§fn recover_unchecked_with_buf(
&self,
buf: &mut Vec<u8>,
) -> Result<Address, RecoveryError>
fn recover_unchecked_with_buf( &self, buf: &mut Vec<u8>, ) -> Result<Address, RecoveryError>
SignerRecoverable::recover_signer_unchecked] but receives a buffer to operate on
for encoding. This is useful during batch recovery of historical transactions to avoid
allocating a new buffer for each transaction. Read more§fn try_into_recovered(self) -> Result<Recovered<Self>, RecoveryError>where
Self: Sized,
fn try_into_recovered(self) -> Result<Recovered<Self>, RecoveryError>where
Self: Sized,
SignerRecoverable::recover_signer] and returns a
Recovered<Self>§fn try_into_recovered_unchecked(self) -> Result<Recovered<Self>, RecoveryError>where
Self: Sized,
fn try_into_recovered_unchecked(self) -> Result<Recovered<Self>, RecoveryError>where
Self: Sized,
SignerRecoverable::recover_signer_unchecked] and returns a
Recovered<&Self>§fn try_to_recovered_ref(&self) -> Result<Recovered<&Self>, RecoveryError>
fn try_to_recovered_ref(&self) -> Result<Recovered<&Self>, RecoveryError>
SignerRecoverable::recover_signer] and returns a
Recovered<&Self>§fn try_to_recovered_ref_unchecked(
&self,
) -> Result<Recovered<&Self>, RecoveryError>
fn try_to_recovered_ref_unchecked( &self, ) -> Result<Recovered<&Self>, RecoveryError>
SignerRecoverable::recover_signer_unchecked] and returns a
Recovered<&Self>Source§impl ToTxCompact for TempoTxEnvelope
Available on crate feature reth-codec only.
impl ToTxCompact for TempoTxEnvelope
reth-codec only.Source§impl Transaction for TempoTxEnvelopewhere
Self: Debug,
Signed<TxLegacy>: Transaction,
Signed<TxEip2930>: Transaction,
Signed<TxEip1559>: Transaction,
Signed<TxEip7702>: Transaction,
AASigned: Transaction,
Signed<TxFeeToken>: Transaction,
impl Transaction for TempoTxEnvelopewhere
Self: Debug,
Signed<TxLegacy>: Transaction,
Signed<TxEip2930>: Transaction,
Signed<TxEip1559>: Transaction,
Signed<TxEip7702>: Transaction,
AASigned: Transaction,
Signed<TxFeeToken>: Transaction,
Source§fn max_fee_per_gas(&self) -> u128
fn max_fee_per_gas(&self) -> u128
Source§fn max_priority_fee_per_gas(&self) -> Option<u128>
fn max_priority_fee_per_gas(&self) -> Option<u128>
Source§fn max_fee_per_blob_gas(&self) -> Option<u128>
fn max_fee_per_blob_gas(&self) -> Option<u128>
Source§fn priority_fee_or_price(&self) -> u128
fn priority_fee_or_price(&self) -> u128
Source§fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
fn effective_gas_price(&self, base_fee: Option<u64>) -> u128
Source§fn is_dynamic_fee(&self) -> bool
fn is_dynamic_fee(&self) -> bool
true if the transaction supports dynamic fees.Source§fn is_create(&self) -> bool
fn is_create(&self) -> bool
kind as it copies the 21-byte
[TxKind] for this simple check. A proper implementation shouldn’t allocate.Source§fn access_list(&self) -> Option<&AccessList>
fn access_list(&self) -> Option<&AccessList>
access_list for the particular transaction type. Returns None for
older transaction types.Source§fn blob_versioned_hashes(&self) -> Option<&[B256]>
fn blob_versioned_hashes(&self) -> Option<&[B256]>
None.SignedAuthorization] list of the transaction. Read more§fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
fn effective_tip_per_gas(&self, base_fee: u64) -> Option<u128>
§fn to(&self) -> Option<Address>
fn to(&self) -> Option<Address>
§fn function_selector(&self) -> Option<&FixedBytes<4>>
fn function_selector(&self) -> Option<&FixedBytes<4>>
§fn blob_count(&self) -> Option<u64>
fn blob_count(&self) -> Option<u64>
§fn blob_gas_used(&self) -> Option<u64>
fn blob_gas_used(&self) -> Option<u64>
SignedAuthorization] in this transactions Read moreSource§impl TransactionEnvelope for TempoTxEnvelopewhere
Self: Transaction,
impl TransactionEnvelope for TempoTxEnvelopewhere
Self: Transaction,
Source§type TxType = TempoTxType
type TxType = TempoTxType
Source§impl<Eip4844> TryFrom<EthereumTxEnvelope<Eip4844>> for TempoTxEnvelope
impl<Eip4844> TryFrom<EthereumTxEnvelope<Eip4844>> for TempoTxEnvelope
Source§impl TryIntoSimTx<TempoTxEnvelope> for TransactionRequest
Available on crate feature rpc only.
impl TryIntoSimTx<TempoTxEnvelope> for TransactionRequest
rpc only.Source§fn try_into_sim_tx(self) -> Result<TempoTxEnvelope, ValueError<Self>>
fn try_into_sim_tx(self) -> Result<TempoTxEnvelope, ValueError<Self>>
Source§impl TxHashRef for TempoTxEnvelope
impl TxHashRef for TempoTxEnvelope
Source§impl Typed2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Typed2718,
Signed<TxEip2930>: Typed2718,
Signed<TxEip1559>: Typed2718,
Signed<TxEip7702>: Typed2718,
AASigned: Typed2718,
Signed<TxFeeToken>: Typed2718,
impl Typed2718 for TempoTxEnvelopewhere
Signed<TxLegacy>: Typed2718,
Signed<TxEip2930>: Typed2718,
Signed<TxEip1559>: Typed2718,
Signed<TxEip7702>: Typed2718,
AASigned: Typed2718,
Signed<TxFeeToken>: Typed2718,
§fn is_eip2930(&self) -> bool
fn is_eip2930(&self) -> bool
§fn is_eip1559(&self) -> bool
fn is_eip1559(&self) -> bool
§fn is_eip4844(&self) -> bool
fn is_eip4844(&self) -> bool
§fn is_eip7702(&self) -> bool
fn is_eip7702(&self) -> bool
impl Eq for TempoTxEnvelope
impl RlpBincode for TempoTxEnvelope
serde-bincode-compat only.Auto Trait Implementations§
impl !Freeze for TempoTxEnvelope
impl RefUnwindSafe for TempoTxEnvelope
impl Send for TempoTxEnvelope
impl Sync for TempoTxEnvelope
impl Unpin for TempoTxEnvelope
impl UnwindSafe for TempoTxEnvelope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompactEnvelope for T
impl<T> CompactEnvelope for T
§fn to_compact<B>(&self, buf: &mut B) -> usize
fn to_compact<B>(&self, buf: &mut B) -> usize
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
impl<TxEnv, T> FromRecoveredTx<&T> for TxEnvwhere
TxEnv: FromRecoveredTx<T>,
§fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
fn from_recovered_tx(tx: &&T, sender: Address) -> TxEnv
TxEnv] from a transaction and a sender address.§impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
impl<TxEnv, T> FromTxWithEncoded<&T> for TxEnvwhere
TxEnv: FromTxWithEncoded<T>,
§fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
fn from_encoded_tx(tx: &&T, sender: Address, encoded: Bytes) -> TxEnv
TxEnv] from a transaction, its sender, and encoded transaction bytes.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<ConsensusTx, RpcTx> IntoRpcTx<RpcTx> for ConsensusTxwhere
ConsensusTx: Transaction,
RpcTx: FromConsensusTx<ConsensusTx>,
<RpcTx as FromConsensusTx<ConsensusTx>>::Err: Debug,
impl<ConsensusTx, RpcTx> IntoRpcTx<RpcTx> for ConsensusTxwhere
ConsensusTx: Transaction,
RpcTx: FromConsensusTx<ConsensusTx>,
<RpcTx as FromConsensusTx<ConsensusTx>>::Err: Debug,
§type TxInfo = <RpcTx as FromConsensusTx<ConsensusTx>>::TxInfo
type TxInfo = <RpcTx as FromConsensusTx<ConsensusTx>>::TxInfo
TransactionInfo] in a wrapper that carries some
implementation specific extra information.§fn into_rpc_tx(
self,
signer: Address,
tx_info: <ConsensusTx as IntoRpcTx<RpcTx>>::TxInfo,
) -> Result<RpcTx, <ConsensusTx as IntoRpcTx<RpcTx>>::Err>
fn into_rpc_tx( self, signer: Address, tx_info: <ConsensusTx as IntoRpcTx<RpcTx>>::TxInfo, ) -> Result<RpcTx, <ConsensusTx as IntoRpcTx<RpcTx>>::Err>
self with signer and tx_info. See [IntoRpcTx]
for details.§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SerdeBincodeCompat for Twhere
T: RlpBincode + 'static,
impl<T> SerdeBincodeCompat for Twhere
T: RlpBincode + 'static,
§type BincodeRepr<'a> = Bytes
type BincodeRepr<'a> = Bytes
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<A> ArbInterop for A
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Eip2718Envelope for Twhere
T: Decodable2718 + Encodable2718,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> FullSignedTx for Twhere
T: SignedTransaction + MaybeCompact + MaybeSerdeBincodeCompat,
impl<T> FullTransaction for Twhere
T: Transaction + MaybeCompact,
impl<T> MaybeCompact for Twhere
T: Compact,
impl<T> MaybeDebug for Twhere
T: Debug,
impl<T> MaybeSerde for Twhere
T: Serialize + for<'de> Deserialize<'de>,
impl<T> MaybeSerdeBincodeCompat for Twhere
T: SerdeBincodeCompat,
impl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for Twhere
T: RpcSend + RpcRecv,
impl<T> RpcRecv for T
impl<T> RpcSend for T
impl<T> Transaction for T
impl<T> Value for Twhere
T: Compress + Decompress + Serialize,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 784 bytes
Size for each variant:
Legacy: 272 bytesEip2930: 288 bytesEip1559: 304 bytesEip7702: 320 bytesAA: 784 bytesFeeToken: 416 bytes