1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
use revm::primitives::Address; use tycho_client::feed::synchronizer::ComponentWithState; use crate::evm::protocol::ekubo_v3::decoder::extension_type; mod addresses; mod attributes; mod decoder; mod pool; pub mod state; #[cfg(test)] mod test_cases; /// Filters out unsupported extensions. pub fn filter_fn(component: &ComponentWithState) -> bool { component .component .static_attributes .get("extension") .is_some_and(|extension_bytes| { Address::try_from(&extension_bytes[..]) .is_ok_and(|extension| extension_type(extension).is_some()) }) }