#[repr(u8)]pub enum AccountAccessKind {
Call,
DelegateCall,
CallCode,
StaticCall,
Create,
SelfDestruct,
Resume,
Balance,
Extcodesize,
Extcodehash,
Extcodecopy,
// some variants omitted
}
Expand description
The kind of account access that occurred.
enum AccountAccessKind { Call, DelegateCall, CallCode, StaticCall, Create, SelfDestruct, Resume, Balance, Extcodesize, Extcodehash, Extcodecopy }
Variants§
Call
The account was called.
DelegateCall
The account was called via delegatecall.
CallCode
The account was called via callcode.
StaticCall
The account was called via staticcall.
Create
The account was created.
SelfDestruct
The account was selfdestructed.
Resume
Synthetic access indicating the current context has resumed after a previous sub-context (AccountAccess).
Balance
The account’s balance was read.
Extcodesize
The account’s codesize was read.
Extcodehash
The account’s codehash was read.
Extcodecopy
The account’s code was copied.
Implementations§
Trait Implementations§
Source§impl Clone for AccountAccessKind
impl Clone for AccountAccessKind
Source§fn clone(&self) -> AccountAccessKind
fn clone(&self) -> AccountAccessKind
Returns a copy 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 AccountAccessKind
impl Debug for AccountAccessKind
Source§impl EventTopic for AccountAccessKind
impl EventTopic for AccountAccessKind
Source§fn topic_preimage_length(rust: &Self::RustType) -> usize
fn topic_preimage_length(rust: &Self::RustType) -> usize
The number of bytes this type occupies in another topic’s preimage,
usually a multiple of 32. Read more
Source§fn encode_topic_preimage(rust: &Self::RustType, out: &mut Vec<u8>)
fn encode_topic_preimage(rust: &Self::RustType, out: &mut Vec<u8>)
Encodes this type as preimage bytes which are then hashed in
complex types’ [
encode_topic
][EventTopic::encode_topic]. Read moreSource§fn encode_topic(rust: &Self::RustType) -> WordToken
fn encode_topic(rust: &Self::RustType) -> WordToken
Indexed event parameter encoding. Read more
Source§impl From<AccountAccessKind> for u8
impl From<AccountAccessKind> for u8
Source§fn from(v: AccountAccessKind) -> Self
fn from(v: AccountAccessKind) -> Self
Converts to this type from the input type.
Source§impl SolEnum for AccountAccessKind
impl SolEnum for AccountAccessKind
§fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
ABI decode the enum from the given buffer.
§fn abi_encode_raw(self, out: &mut Vec<u8>)
fn abi_encode_raw(self, out: &mut Vec<u8>)
ABI encode the enum into the given buffer.
§fn abi_encode(self) -> Vec<u8>
fn abi_encode(self) -> Vec<u8>
ABI encode the enum.
Source§impl SolType for AccountAccessKind
impl SolType for AccountAccessKind
Source§const SOL_NAME: &'static str = <alloy_sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::SOL_NAME
const SOL_NAME: &'static str = <alloy_sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::SOL_NAME
The name of this type in Solidity.
Source§const ENCODED_SIZE: Option<usize> = <alloy_sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::ENCODED_SIZE
const ENCODED_SIZE: Option<usize> = <alloy_sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::ENCODED_SIZE
The statically-known ABI-encoded size of the type. Read more
Source§const PACKED_ENCODED_SIZE: Option<usize> = <alloy_sol_types::sol_data::Uint<8> as
alloy_sol_types::SolType>::PACKED_ENCODED_SIZE
const PACKED_ENCODED_SIZE: Option<usize> = <alloy_sol_types::sol_data::Uint<8> as alloy_sol_types::SolType>::PACKED_ENCODED_SIZE
The statically-known Non-standard Packed Mode ABI-encoded size of the type. Read more
Source§type RustType = AccountAccessKind
type RustType = AccountAccessKind
The corresponding Rust type.
Source§type Token<'a> = <Uint<8> as SolType>::Token<'a>
type Token<'a> = <Uint<8> as SolType>::Token<'a>
The corresponding ABI token type. Read more
Source§fn valid_token(token: &Self::Token<'_>) -> bool
fn valid_token(token: &Self::Token<'_>) -> bool
Returns
true
if the given token can be detokenized with this type.Source§fn type_check(token: &Self::Token<'_>) -> Result<()>
fn type_check(token: &Self::Token<'_>) -> Result<()>
Returns an error if the given token cannot be detokenized with this
type.
Source§fn detokenize(token: Self::Token<'_>) -> Self::RustType
fn detokenize(token: Self::Token<'_>) -> Self::RustType
Detokenize this type’s value from the given token. Read more
§fn sol_type_name() -> Cow<'static, str>
fn sol_type_name() -> Cow<'static, str>
👎Deprecated since 0.6.3: use
SOL_NAME
insteadReturns the name of this type in Solidity.
§fn abi_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
fn abi_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
Calculate the ABI-encoded size of the data, counting both head and tail
words. For a single-word type this will always be 32.
§fn tokenize<E>(rust: &E) -> Self::Token<'_>where
E: SolTypeValue<Self> + ?Sized,
fn tokenize<E>(rust: &E) -> Self::Token<'_>where
E: SolTypeValue<Self> + ?Sized,
Tokenizes the given value into this type’s token. Read more
§fn eip712_data_word<E>(rust: &E) -> FixedBytes<32>where
E: SolTypeValue<Self> + ?Sized,
fn eip712_data_word<E>(rust: &E) -> FixedBytes<32>where
E: SolTypeValue<Self> + ?Sized,
Encode this data according to EIP-712
encodeData
rules, and hash it
if necessary. Read more§fn abi_packed_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
fn abi_packed_encoded_size<E>(rust: &E) -> usizewhere
E: SolTypeValue<Self> + ?Sized,
Returns the length of this value when ABI-encoded in Non-standard Packed Mode. Read more
§fn abi_encode_packed_to<E>(rust: &E, out: &mut Vec<u8>)where
E: SolTypeValue<Self> + ?Sized,
fn abi_encode_packed_to<E>(rust: &E, out: &mut Vec<u8>)where
E: SolTypeValue<Self> + ?Sized,
Non-standard Packed Mode ABI encoding. Read more
§fn abi_encode_packed<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
fn abi_encode_packed<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Non-standard Packed Mode ABI encoding. Read more
§fn abi_encode<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
fn abi_encode<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Tokenizes and ABI-encodes the given value by wrapping it in a
single-element sequence. Read more
§fn abi_encode_params<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Self::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_params<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Self::Token<'a>: for<'a> TokenSeq<'a>,
Tokenizes and ABI-encodes the given value as function parameters. Read more
§fn abi_encode_sequence<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Self::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_sequence<E>(rust: &E) -> Vec<u8>where
E: SolTypeValue<Self> + ?Sized,
Self::Token<'a>: for<'a> TokenSeq<'a>,
Tokenizes and ABI-encodes the given value as a sequence. Read more
§fn abi_decode(data: &[u8], validate: bool) -> Result<Self::RustType, Error>
fn abi_decode(data: &[u8], validate: bool) -> Result<Self::RustType, Error>
Decodes this type’s value from an ABI blob by interpreting it as a
single-element sequence. Read more
Source§impl SolTypeValue<AccountAccessKind> for AccountAccessKind
impl SolTypeValue<AccountAccessKind> for AccountAccessKind
fn stv_to_tokens(&self) -> <Uint<8> as SolType>::Token<'_>
fn stv_eip712_data_word(&self) -> Word
fn stv_abi_encode_packed_to(&self, out: &mut Vec<u8>)
fn stv_abi_encoded_size(&self) -> usize
fn stv_abi_packed_encoded_size(&self) -> usize
Source§impl SolValue for AccountAccessKind
impl SolValue for AccountAccessKind
Source§type SolType = AccountAccessKind
type SolType = AccountAccessKind
The Solidity type that this type corresponds to.
§fn sol_type_name(&self) -> Cow<'static, str>
fn sol_type_name(&self) -> Cow<'static, str>
👎Deprecated since 0.6.3: use
sol_name
insteadThe name of the associated Solidity type. Read more
§fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>
fn tokenize(&self) -> <Self::SolType as SolType>::Token<'_>
Tokenizes the given value into this type’s token. Read more
§fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Selfwhere
Self: From<<Self::SolType as SolType>::RustType>,
fn detokenize(token: <Self::SolType as SolType>::Token<'_>) -> Selfwhere
Self: From<<Self::SolType as SolType>::RustType>,
Detokenize a value from the given token. Read more
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
Calculate the ABI-encoded size of the data. Read more
§fn eip712_data_word(&self) -> FixedBytes<32>
fn eip712_data_word(&self) -> FixedBytes<32>
Encode this data according to EIP-712
encodeData
rules, and hash it
if necessary. Read more§fn abi_encode_packed_to(&self, out: &mut Vec<u8>)
fn abi_encode_packed_to(&self, out: &mut Vec<u8>)
Non-standard Packed Mode ABI encoding. Read more
§fn abi_encode_packed(&self) -> Vec<u8>
fn abi_encode_packed(&self) -> Vec<u8>
Non-standard Packed Mode ABI encoding. Read more
§fn abi_encode(&self) -> Vec<u8>
fn abi_encode(&self) -> Vec<u8>
ABI-encodes the value. Read more
§fn abi_encode_sequence(&self) -> Vec<u8>where
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_sequence(&self) -> Vec<u8>where
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
Encodes an ABI sequence. Read more
§fn abi_encode_params(&self) -> Vec<u8>where
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
fn abi_encode_params(&self) -> Vec<u8>where
<Self::SolType as SolType>::Token<'a>: for<'a> TokenSeq<'a>,
Encodes an ABI sequence suitable for function parameters. Read more
§fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>where
Self: From<<Self::SolType as SolType>::RustType>,
fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>where
Self: From<<Self::SolType as SolType>::RustType>,
ABI-decode this type from the given data. Read more
Source§impl TryFrom<u8> for AccountAccessKind
impl TryFrom<u8> for AccountAccessKind
impl Copy for AccountAccessKind
Auto Trait Implementations§
impl Freeze for AccountAccessKind
impl RefUnwindSafe for AccountAccessKind
impl Send for AccountAccessKind
impl Sync for AccountAccessKind
impl Unpin for AccountAccessKind
impl UnwindSafe for AccountAccessKind
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,
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: 1 byte
Size for each variant:
Call
: 0 bytesDelegateCall
: 0 bytesCallCode
: 0 bytesStaticCall
: 0 bytesCreate
: 0 bytesSelfDestruct
: 0 bytesResume
: 0 bytesBalance
: 0 bytesExtcodesize
: 0 bytesExtcodehash
: 0 bytesExtcodecopy
: 0 bytes__Invalid
: 0 bytes