@@ -10,7 +10,6 @@ use alloy::{
1010 rpc:: types:: eth:: { Filter , Log } ,
1111 sol,
1212 sol_types:: SolEvent ,
13- transports:: Transport ,
1413} ;
1514use alloy_chains:: NamedChain ;
1615use async_trait:: async_trait;
@@ -91,11 +90,10 @@ impl AutomatedMarketMakerFactory for CamelotV3Factory {
9190 ICamelotV3Factory :: Pool :: SIGNATURE_HASH
9291 }
9392
94- async fn new_amm_from_log < T , N , P > ( & self , log : Log , provider : Arc < P > ) -> Result < AMM , AMMError >
93+ async fn new_amm_from_log < N , P > ( & self , log : Log , provider : Arc < P > ) -> Result < AMM , AMMError >
9594 where
96- T : Transport + Clone ,
9795 N : Network ,
98- P : Provider < T , N > ,
96+ P : Provider < N > ,
9997 {
10098 if let Some ( block_number) = log. block_number {
10199 let pool_created_filter = ICamelotV3Factory :: Pool :: decode_log ( & log. inner , true ) ?;
@@ -108,16 +106,15 @@ impl AutomatedMarketMakerFactory for CamelotV3Factory {
108106 }
109107 }
110108
111- async fn get_all_amms < T , N , P > (
109+ async fn get_all_amms < N , P > (
112110 & self ,
113111 to_block : Option < u64 > ,
114112 provider : Arc < P > ,
115113 step : u64 ,
116114 ) -> Result < Vec < AMM > , AMMError >
117115 where
118- T : Transport + Clone ,
119116 N : Network ,
120- P : Provider < T , N > ,
117+ P : Provider < N > ,
121118 {
122119 if let Some ( block) = to_block {
123120 self . get_all_pools_from_logs ( block, step, provider) . await
@@ -127,16 +124,15 @@ impl AutomatedMarketMakerFactory for CamelotV3Factory {
127124 }
128125
129126 #[ instrument( skip( self , amms, provider) level = "debug" ) ]
130- async fn populate_amm_data < T , N , P > (
127+ async fn populate_amm_data < N , P > (
131128 & self ,
132129 amms : & mut [ AMM ] ,
133130 block_number : Option < u64 > ,
134131 provider : Arc < P > ,
135132 ) -> Result < ( ) , AMMError >
136133 where
137- T : Transport + Clone ,
138134 N : Network ,
139- P : Provider < T , N > ,
135+ P : Provider < N > ,
140136 {
141137 if let Some ( block_number) = block_number {
142138 // Max batch size for call
@@ -189,16 +185,15 @@ impl CamelotV3Factory {
189185 }
190186 }
191187
192- pub async fn get_all_pools_from_logs < T , N , P > (
188+ pub async fn get_all_pools_from_logs < N , P > (
193189 self ,
194190 to_block : u64 ,
195191 step : u64 ,
196192 provider : Arc < P > ,
197193 ) -> Result < Vec < AMM > , AMMError >
198194 where
199- T : Transport + Clone ,
200195 N : Network ,
201- P : Provider < T , N > ,
196+ P : Provider < N > ,
202197 {
203198 // Unwrap can be used here because the creation block was verified within `Dex::new()`
204199 let mut from_block = self . creation_block ;
@@ -280,17 +275,16 @@ impl CamelotV3Factory {
280275 }
281276
282277 // Function to get all pair created events for a given Dex factory address and sync pool data
283- pub async fn get_pools_from_logs < T , N , P > (
278+ pub async fn get_pools_from_logs < N , P > (
284279 self ,
285280 start_block : u64 ,
286281 to_block : u64 ,
287282 step : u64 ,
288283 provider : Arc < P > ,
289284 ) -> Result < Vec < AMM > , AMMError >
290285 where
291- T : Transport + Clone ,
292286 N : Network ,
293- P : Provider < T , N > ,
287+ P : Provider < N > ,
294288 {
295289 // Unwrap can be used here because the creation block was verified within `Dex::new()`
296290 let mut aggregated_amms: HashMap < Address , AMM > = HashMap :: new ( ) ;
0 commit comments