pub struct DecodedCall {
pub function_name: String,
pub selector: Option<[u8; 4]>,
pub inputs: Vec<(String, NormalizedValue)>,
pub raw_data: Vec<u8>,
pub decode_errors: HashMap<String, String>,
}Expand description
Result of decoding a function call’s calldata.
Fields§
§function_name: StringFunction name (e.g. “transfer”, “swap”)
selector: Option<[u8; 4]>First 4 bytes of calldata (keccak256 of signature)
inputs: Vec<(String, NormalizedValue)>Decoded input parameters in declaration order
raw_data: Vec<u8>Raw calldata bytes (including selector)
decode_errors: HashMap<String, String>Fields that failed to decode (field_name → error message)
Implementations§
Source§impl DecodedCall
impl DecodedCall
Trait Implementations§
Source§impl Clone for DecodedCall
impl Clone for DecodedCall
Source§fn clone(&self) -> DecodedCall
fn clone(&self) -> DecodedCall
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 DecodedCall
impl Debug for DecodedCall
Source§impl<'de> Deserialize<'de> for DecodedCall
impl<'de> Deserialize<'de> for DecodedCall
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
Auto Trait Implementations§
impl Freeze for DecodedCall
impl RefUnwindSafe for DecodedCall
impl Send for DecodedCall
impl Sync for DecodedCall
impl Unpin for DecodedCall
impl UnsafeUnpin for DecodedCall
impl UnwindSafe for DecodedCall
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