Macro brontes_inspect::mev_composability
source · macro_rules! mev_composability { ($($($child_mev_type:ident),+ => $parent_mev_type:ident;)+) => { ... }; }
Expand description
Defines rules for composing multiple child MEV types into a single, complex parent MEV type.
This macro creates a static reference (MEV_COMPOSABILITY_FILTER
) that maps
a list of child MEV types to each parent MEV type along with a composition
function. The composition function is used to combine instances of the child
MEV types into a new instance of the parent MEV type.
§Usage
ⓘ
mev_composability!(
ChildMevType1, ChildMevType2 => ParentMevType;
);
In this example, ParentMevType
is composed of ChildMevType1
and
ChildMevType2
using a specific composition function.