@@ -256,17 +256,17 @@ impl BundleProcessor<EthCallBundle, EthCallBundleResponse> {
256
256
}
257
257
}
258
258
259
- impl < Insp > BundleDriver < Insp > for BundleProcessor < EthCallBundle , EthCallBundleResponse > {
260
- type Error < Db : Database + DatabaseCommit > = BundleError < Db > ;
259
+ impl < Db , Insp > BundleDriver < Db , Insp > for BundleProcessor < EthCallBundle , EthCallBundleResponse >
260
+ where
261
+ Db : Database + DatabaseCommit ,
262
+ Insp : Inspector < Ctx < Db > > ,
263
+ {
264
+ type Error = BundleError < Db > ;
261
265
262
- fn run_bundle < Db > (
266
+ fn run_bundle (
263
267
& mut self ,
264
268
trevm : crate :: EvmNeedsTx < Db , Insp > ,
265
- ) -> DriveBundleResult < Db , Insp , Self >
266
- where
267
- Db : Database + DatabaseCommit ,
268
- Insp : Inspector < Ctx < Db > > ,
269
- {
269
+ ) -> DriveBundleResult < Db , Insp , Self > {
270
270
// Check if the block we're in is valid for this bundle. Both must match
271
271
trevm_ensure ! (
272
272
trevm. inner( ) . block. number == self . bundle. block_number,
@@ -388,29 +388,22 @@ impl<Insp> BundleDriver<Insp> for BundleProcessor<EthCallBundle, EthCallBundleRe
388
388
}
389
389
}
390
390
391
- fn post_bundle < Db > (
392
- & mut self ,
393
- _trevm : & crate :: EvmNeedsTx < Db , Insp > ,
394
- ) -> Result < ( ) , Self :: Error < Db > >
395
- where
396
- Db : Database + DatabaseCommit ,
397
- Insp : Inspector < Ctx < Db > > ,
398
- {
391
+ fn post_bundle ( & mut self , _trevm : & crate :: EvmNeedsTx < Db , Insp > ) -> Result < ( ) , Self :: Error > {
399
392
Ok ( ( ) )
400
393
}
401
394
}
402
395
403
- impl < Insp > BundleDriver < Insp > for BundleProcessor < EthSendBundle , EthBundleHash > {
404
- type Error < Db : Database + DatabaseCommit > = BundleError < Db > ;
396
+ impl < Db , Insp > BundleDriver < Db , Insp > for BundleProcessor < EthSendBundle , EthBundleHash >
397
+ where
398
+ Db : Database + DatabaseCommit ,
399
+ Insp : Inspector < Ctx < Db > > ,
400
+ {
401
+ type Error = BundleError < Db > ;
405
402
406
- fn run_bundle < Db > (
403
+ fn run_bundle (
407
404
& mut self ,
408
405
trevm : crate :: EvmNeedsTx < Db , Insp > ,
409
- ) -> DriveBundleResult < Db , Insp , Self >
410
- where
411
- Db : Database + DatabaseCommit ,
412
- Insp : Inspector < Ctx < Db > > ,
413
- {
406
+ ) -> DriveBundleResult < Db , Insp , Self > {
414
407
{
415
408
// Check if the block we're in is valid for this bundle. Both must match
416
409
trevm_ensure ! (
@@ -483,14 +476,7 @@ impl<Insp> BundleDriver<Insp> for BundleProcessor<EthSendBundle, EthBundleHash>
483
476
}
484
477
}
485
478
486
- fn post_bundle < Db > (
487
- & mut self ,
488
- _trevm : & crate :: EvmNeedsTx < Db , Insp > ,
489
- ) -> Result < ( ) , Self :: Error < Db > >
490
- where
491
- Db : Database + DatabaseCommit ,
492
- Insp : Inspector < Ctx < Db > > ,
493
- {
479
+ fn post_bundle ( & mut self , _trevm : & crate :: EvmNeedsTx < Db , Insp > ) -> Result < ( ) , Self :: Error > {
494
480
Ok ( ( ) )
495
481
}
496
482
}
@@ -551,17 +537,17 @@ impl From<EthCallBundle> for BundleBlockFiller {
551
537
}
552
538
}
553
539
554
- impl < Insp > BundleDriver < Insp > for EthCallBundle {
555
- type Error < Db : Database + DatabaseCommit > = BundleError < Db > ;
540
+ impl < Db , Insp > BundleDriver < Db , Insp > for EthCallBundle
541
+ where
542
+ Db : Database + DatabaseCommit ,
543
+ Insp : Inspector < Ctx < Db > > ,
544
+ {
545
+ type Error = BundleError < Db > ;
556
546
557
- fn run_bundle < Db > (
547
+ fn run_bundle (
558
548
& mut self ,
559
549
trevm : crate :: EvmNeedsTx < Db , Insp > ,
560
- ) -> DriveBundleResult < Db , Insp , Self >
561
- where
562
- Db : Database + DatabaseCommit ,
563
- Insp : Inspector < Ctx < Db > > ,
564
- {
550
+ ) -> DriveBundleResult < Db , Insp , Self > {
565
551
// Check if the block we're in is valid for this bundle. Both must match
566
552
trevm_ensure ! (
567
553
trevm. inner( ) . block. number == self . block_number,
@@ -634,32 +620,25 @@ impl<Insp> BundleDriver<Insp> for EthCallBundle {
634
620
}
635
621
}
636
622
637
- fn post_bundle < Db > (
638
- & mut self ,
639
- _trevm : & crate :: EvmNeedsTx < Db , Insp > ,
640
- ) -> Result < ( ) , Self :: Error < Db > >
641
- where
642
- Db : Database + DatabaseCommit ,
643
- Insp : Inspector < Ctx < Db > > ,
644
- {
623
+ fn post_bundle ( & mut self , _trevm : & crate :: EvmNeedsTx < Db , Insp > ) -> Result < ( ) , Self :: Error > {
645
624
Ok ( ( ) )
646
625
}
647
626
}
648
627
649
628
/// An implementation of [BundleDriver] for [EthSendBundle].
650
629
/// This allows us to drive a bundle of transactions and accumulate the resulting state in the EVM.
651
630
/// Allows to simply take an [EthSendBundle] and get the resulting EVM state.
652
- impl < Insp > BundleDriver < Insp > for EthSendBundle {
653
- type Error < Db : Database + DatabaseCommit > = BundleError < Db > ;
631
+ impl < Db , Insp > BundleDriver < Db , Insp > for EthSendBundle
632
+ where
633
+ Db : Database + DatabaseCommit ,
634
+ Insp : Inspector < Ctx < Db > > ,
635
+ {
636
+ type Error = BundleError < Db > ;
654
637
655
- fn run_bundle < Db > (
638
+ fn run_bundle (
656
639
& mut self ,
657
640
trevm : crate :: EvmNeedsTx < Db , Insp > ,
658
- ) -> DriveBundleResult < Db , Insp , Self >
659
- where
660
- Db : Database + DatabaseCommit ,
661
- Insp : Inspector < Ctx < Db > > ,
662
- {
641
+ ) -> DriveBundleResult < Db , Insp , Self > {
663
642
// Check if the block we're in is valid for this bundle. Both must match
664
643
trevm_ensure ! (
665
644
trevm. inner( ) . block. number == self . block_number,
@@ -747,14 +726,7 @@ impl<Insp> BundleDriver<Insp> for EthSendBundle {
747
726
Ok ( t)
748
727
}
749
728
750
- fn post_bundle < Db > (
751
- & mut self ,
752
- _trevm : & crate :: EvmNeedsTx < Db , Insp > ,
753
- ) -> Result < ( ) , Self :: Error < Db > >
754
- where
755
- Db : Database + DatabaseCommit ,
756
- Insp : Inspector < Ctx < Db > > ,
757
- {
729
+ fn post_bundle ( & mut self , _trevm : & crate :: EvmNeedsTx < Db , Insp > ) -> Result < ( ) , Self :: Error > {
758
730
Ok ( ( ) )
759
731
}
760
732
}
0 commit comments