@@ -20,12 +20,11 @@ use graph::futures03::future::try_join_all;
20
20
use graph:: futures03:: {
21
21
self , compat:: Future01CompatExt , FutureExt , StreamExt , TryFutureExt , TryStreamExt ,
22
22
} ;
23
- use graph:: prelude:: alloy:: primitives:: Address ;
24
23
use graph:: prelude:: {
25
24
alloy:: {
26
25
self ,
27
26
network:: { AnyNetwork , TransactionResponse } ,
28
- primitives:: B256 ,
27
+ primitives:: { Address , B256 } ,
29
28
providers:: {
30
29
ext:: TraceApi ,
31
30
fillers:: {
@@ -182,7 +181,7 @@ impl EthereumAdapter {
182
181
subgraph_metrics : Arc < SubgraphEthRpcMetrics > ,
183
182
from : BlockNumber ,
184
183
to : BlockNumber ,
185
- addresses : Vec < alloy :: primitives :: Address > ,
184
+ addresses : Vec < Address > ,
186
185
) -> Result < Vec < LocalizedTransactionTrace > , Error > {
187
186
assert ! ( !self . call_only) ;
188
187
@@ -223,7 +222,7 @@ impl EthereumAdapter {
223
222
subgraph_metrics : Arc < SubgraphEthRpcMetrics > ,
224
223
from : BlockNumber ,
225
224
to : BlockNumber ,
226
- addresses : Vec < alloy :: primitives :: Address > ,
225
+ addresses : Vec < Address > ,
227
226
) -> Result < Vec < LocalizedTransactionTrace > , Error > {
228
227
let alloy_trace_filter = Self :: build_trace_filter ( from, to, & addresses) ;
229
228
let start = Instant :: now ( ) ;
@@ -249,7 +248,7 @@ impl EthereumAdapter {
249
248
fn build_trace_filter (
250
249
from : BlockNumber ,
251
250
to : BlockNumber ,
252
- addresses : & [ alloy :: primitives :: Address ] ,
251
+ addresses : & [ Address ] ,
253
252
) -> AlloyTraceFilter {
254
253
let filter = AlloyTraceFilter :: default ( )
255
254
. from_block ( from as u64 )
@@ -420,7 +419,7 @@ impl EthereumAdapter {
420
419
subgraph_metrics : Arc < SubgraphEthRpcMetrics > ,
421
420
from : BlockNumber ,
422
421
to : BlockNumber ,
423
- addresses : Vec < alloy :: primitives :: Address > ,
422
+ addresses : Vec < Address > ,
424
423
) -> impl futures03:: Stream < Item = Result < LocalizedTransactionTrace , Error > > + Send {
425
424
if from > to {
426
425
panic ! (
@@ -575,7 +574,7 @@ impl EthereumAdapter {
575
574
async fn code (
576
575
& self ,
577
576
logger : & Logger ,
578
- address : alloy :: primitives :: Address ,
577
+ address : Address ,
579
578
block_ptr : BlockPtr ,
580
579
) -> Result < alloy:: primitives:: Bytes , EthereumRpcError > {
581
580
let alloy = self . alloy . clone ( ) ;
@@ -609,7 +608,7 @@ impl EthereumAdapter {
609
608
async fn balance (
610
609
& self ,
611
610
logger : & Logger ,
612
- address : alloy :: primitives :: Address ,
611
+ address : Address ,
613
612
block_ptr : BlockPtr ,
614
613
) -> Result < alloy:: primitives:: U256 , EthereumRpcError > {
615
614
let alloy = self . alloy . clone ( ) ;
@@ -1372,7 +1371,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
1372
1371
async fn get_balance (
1373
1372
& self ,
1374
1373
logger : & Logger ,
1375
- address : alloy :: primitives :: Address ,
1374
+ address : Address ,
1376
1375
block_ptr : BlockPtr ,
1377
1376
) -> Result < alloy:: primitives:: U256 , EthereumRpcError > {
1378
1377
debug ! (
@@ -1386,7 +1385,7 @@ impl EthereumAdapterTrait for EthereumAdapter {
1386
1385
async fn get_code (
1387
1386
& self ,
1388
1387
logger : & Logger ,
1389
- address : alloy :: primitives :: Address ,
1388
+ address : Address ,
1390
1389
block_ptr : BlockPtr ,
1391
1390
) -> Result < alloy:: primitives:: Bytes , EthereumRpcError > {
1392
1391
debug ! (
0 commit comments