@@ -36,7 +36,6 @@ use jsonrpsee::core::{async_trait, RpcResult};
3636// Substrate
3737use sc_client_api:: backend:: { Backend , StorageProvider } ;
3838use sc_network_sync:: SyncingService ;
39- use sc_transaction_pool:: { ChainApi , Pool } ;
4039use sc_transaction_pool_api:: TransactionPool ;
4140use sp_api:: { CallApiAt , ProvideRuntimeApi } ;
4241use sp_block_builder:: BlockBuilder as BlockBuilderApi ;
@@ -71,9 +70,9 @@ impl<B: BlockT, C> EthConfig<B, C> for () {
7170}
7271
7372/// Eth API implementation.
74- pub struct Eth < B : BlockT , C , P , CT , BE , A : ChainApi , CIDP , EC > {
73+ pub struct Eth < B : BlockT , C , P , CT , BE , CIDP , EC > {
7574 pool : Arc < P > ,
76- graph : Arc < Pool < A > > ,
75+ graph : Arc < P > ,
7776 client : Arc < C > ,
7877 convert_transaction : Option < CT > ,
7978 sync : Arc < SyncingService < B > > ,
@@ -94,19 +93,18 @@ pub struct Eth<B: BlockT, C, P, CT, BE, A: ChainApi, CIDP, EC> {
9493 _marker : PhantomData < ( BE , EC ) > ,
9594}
9695
97- impl < B , C , P , CT , BE , A , CIDP , EC > Eth < B , C , P , CT , BE , A , CIDP , EC >
96+ impl < B , C , P , CT , BE , CIDP , EC > Eth < B , C , P , CT , BE , CIDP , EC >
9897where
9998 B : BlockT ,
10099 C : ProvideRuntimeApi < B > ,
101100 C :: Api : EthereumRuntimeRPCApi < B > ,
102101 C : HeaderBackend < B > + StorageProvider < B , BE > + ' static ,
103102 BE : Backend < B > + ' static ,
104- A : ChainApi < Block = B > ,
105103{
106104 pub fn new (
107105 client : Arc < C > ,
108106 pool : Arc < P > ,
109- graph : Arc < Pool < A > > ,
107+ graph : Arc < P > ,
110108 convert_transaction : Option < CT > ,
111109 sync : Arc < SyncingService < B > > ,
112110 signers : Vec < Box < dyn EthSigner > > ,
@@ -247,13 +245,12 @@ where
247245 }
248246}
249247
250- impl < B , C , P , CT , BE , A , CIDP , EC > Eth < B , C , P , CT , BE , A , CIDP , EC >
248+ impl < B , C , P , CT , BE , CIDP , EC > Eth < B , C , P , CT , BE , CIDP , EC >
251249where
252250 B : BlockT ,
253- A : ChainApi < Block = B > ,
254251 EC : EthConfig < B , C > ,
255252{
256- pub fn replace_config < EC2 : EthConfig < B , C > > ( self ) -> Eth < B , C , P , CT , BE , A , CIDP , EC2 > {
253+ pub fn replace_config < EC2 : EthConfig < B , C > > ( self ) -> Eth < B , C , P , CT , BE , CIDP , EC2 > {
257254 let Self {
258255 client,
259256 pool,
@@ -297,16 +294,15 @@ where
297294}
298295
299296#[ async_trait]
300- impl < B , C , P , CT , BE , A , CIDP , EC > EthApiServer for Eth < B , C , P , CT , BE , A , CIDP , EC >
297+ impl < B , C , P , CT , BE , CIDP , EC > EthApiServer for Eth < B , C , P , CT , BE , CIDP , EC >
301298where
302299 B : BlockT ,
303300 C : CallApiAt < B > + ProvideRuntimeApi < B > ,
304301 C :: Api : BlockBuilderApi < B > + ConvertTransactionRuntimeApi < B > + EthereumRuntimeRPCApi < B > ,
305302 C : HeaderBackend < B > + StorageProvider < B , BE > + ' static ,
306303 BE : Backend < B > + ' static ,
307- P : TransactionPool < Block = B > + ' static ,
304+ P : TransactionPool < Block = B , Hash = B :: Hash > + ' static ,
308305 CT : ConvertTransaction < <B as BlockT >:: Extrinsic > + Send + Sync + ' static ,
309- A : ChainApi < Block = B > + ' static ,
310306 CIDP : CreateInherentDataProviders < B , ( ) > + Send + ' static ,
311307 EC : EthConfig < B , C > ,
312308{
0 commit comments