tycho_simulation/evm/protocol/
mod.rs1pub mod aerodrome_slipstreams;
2pub mod aerodrome_v1;
3mod clmm;
4pub mod cowamm;
5mod cpmm;
6pub mod curve;
7pub mod ekubo;
8pub mod ekubo_v3;
9pub mod erc4626;
10pub mod etherfi;
11pub mod filters;
12pub mod fluid;
13pub mod lunarbase;
14pub mod native_wrapper;
15pub mod pancakeswap_v2;
16pub mod ramses_v3;
17pub mod rocketpool;
18pub mod safe_math;
19pub mod u256_num;
20pub mod uniswap_v2;
21pub mod uniswap_v3;
22pub mod uniswap_v4;
23pub mod utils;
24pub mod velodrome_slipstreams;
25pub mod vm;
26
27#[cfg(test)]
28mod test_utils {
29 use std::collections::HashMap;
30
31 use tycho_client::feed::{synchronizer::ComponentWithState, BlockHeader};
32
33 use crate::protocol::models::TryFromWithBlock;
34
35 pub(super) async fn try_decode_snapshot_with_defaults<
36 T: TryFromWithBlock<ComponentWithState, BlockHeader>,
37 >(
38 snapshot: ComponentWithState,
39 ) -> Result<T, T::Error> {
40 T::try_from_with_header(
41 snapshot,
42 Default::default(),
43 &HashMap::default(),
44 &HashMap::default(),
45 &Default::default(),
46 )
47 .await
48 }
49}