pub struct EvmDataObservation {
pub arguments: Vec<ObservedArgument>,
pub function: Option<EvmDataObservationFunction>,
pub selector: Option<EvmDataObservationSelector>,
pub type_: EvmDataObservationType,
}Expand description
The call an evmData criterion decoded from the transaction data with the criterion’s abi. Parameters are checked against the first of the criterion’s conditions whose function equals function.
JSON schema
{
"title": "EvmDataObservation",
"description": "The call an `evmData` criterion decoded from the transaction `data` with the criterion's `abi`. Parameters are checked against the first of the criterion's `conditions` whose `function` equals `function`.",
"examples": [
{
"arguments": [
{
"name": "to",
"truncated": false,
"type": "address",
"value": "0x1111111254EEB25477B68fb85Ed929f73A960582"
},
{
"name": "value",
"truncated": false,
"type": "uint256",
"value": "25000000"
}
],
"function": "transfer",
"selector": "0xa9059cbb",
"type": "evmData"
}
],
"type": "object",
"required": [
"arguments",
"type"
],
"properties": {
"arguments": {
"description": "The decoded arguments of `function`, in ABI order. Empty when `function` is omitted. Only the first 32 arguments are returned.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ObservedArgument"
},
"maxItems": 32
},
"function": {
"description": "The name of the ABI function with this selector. Omitted when no function in the `abi` has it.",
"examples": [
"transfer"
],
"type": "string",
"maxLength": 256
},
"selector": {
"description": "The 4-byte function selector. Omitted when `data` is shorter than 4 bytes.",
"examples": [
"0xa9059cbb"
],
"type": "string",
"pattern": "^0x[0-9a-f]{8}$"
},
"type": {
"description": "The criterion type.",
"examples": [
"evmData"
],
"type": "string",
"enum": [
"evmData"
],
"x-go-type": "string"
}
},
"additionalProperties": false
}Fields§
§arguments: Vec<ObservedArgument>The decoded arguments of function, in ABI order. Empty when function is omitted. Only the first 32 arguments are returned.
function: Option<EvmDataObservationFunction>The name of the ABI function with this selector. Omitted when no function in the abi has it.
selector: Option<EvmDataObservationSelector>The 4-byte function selector. Omitted when data is shorter than 4 bytes.
type_: EvmDataObservationTypeThe criterion type.
Implementations§
Source§impl EvmDataObservation
impl EvmDataObservation
pub fn builder() -> EvmDataObservation
Trait Implementations§
Source§impl Clone for EvmDataObservation
impl Clone for EvmDataObservation
Source§impl Debug for EvmDataObservation
impl Debug for EvmDataObservation
Source§impl<'de> Deserialize<'de> for EvmDataObservation
impl<'de> Deserialize<'de> for EvmDataObservation
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 From<&EvmDataObservation> for EvmDataObservation
impl From<&EvmDataObservation> for EvmDataObservation
Source§fn from(value: &EvmDataObservation) -> Self
fn from(value: &EvmDataObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmDataObservation> for PolicyCriterionObservation
impl From<EvmDataObservation> for PolicyCriterionObservation
Source§fn from(value: EvmDataObservation) -> Self
fn from(value: EvmDataObservation) -> Self
Converts to this type from the input type.
Source§impl From<EvmDataObservation> for EvmDataObservation
impl From<EvmDataObservation> for EvmDataObservation
Source§fn from(value: EvmDataObservation) -> Self
fn from(value: EvmDataObservation) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmDataObservation
impl Serialize for EvmDataObservation
Source§impl TryFrom<EvmDataObservation> for EvmDataObservation
impl TryFrom<EvmDataObservation> for EvmDataObservation
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmDataObservation) -> Result<Self, ConversionError>
fn try_from(value: EvmDataObservation) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmDataObservation
impl RefUnwindSafe for EvmDataObservation
impl Send for EvmDataObservation
impl Sync for EvmDataObservation
impl Unpin for EvmDataObservation
impl UnsafeUnpin for EvmDataObservation
impl UnwindSafe for EvmDataObservation
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