|
22 | 22 |
|
23 | 23 | use primitives::{AccountId, Balance, Block, CurrencyId, DataProviderId, Hash, Nonce}; |
24 | 24 | use sc_consensus_manual_seal::rpc::{EngineCommand, ManualSeal, ManualSealApi}; |
25 | | -pub use sc_rpc_api::DenyUnsafe; |
| 25 | +pub use sc_rpc::dev::Dev; |
| 26 | +pub use sc_rpc_api::{dev::DevApi, DenyUnsafe}; |
26 | 27 | use sc_transaction_pool_api::TransactionPool; |
27 | 28 | use sp_api::ProvideRuntimeApi; |
28 | 29 | use sp_block_builder::BlockBuilder; |
@@ -51,7 +52,7 @@ pub struct FullDeps<C, P> { |
51 | 52 | /// Instantiate all Full RPC extensions. |
52 | 53 | pub fn create_full<C, P>(deps: FullDeps<C, P>) -> RpcExtension |
53 | 54 | where |
54 | | - C: ProvideRuntimeApi<Block>, |
| 55 | + C: ProvideRuntimeApi<Block> + sc_client_api::BlockBackend<Block>, |
55 | 56 | C: HeaderBackend<Block> + HeaderMetadata<Block, Error = BlockChainError>, |
56 | 57 | C: Send + Sync + 'static, |
57 | 58 | C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Nonce>, |
|
88 | 89 | // These RPCs should use an asynchronous caller instead. |
89 | 90 | io.extend_with(OracleApi::to_delegate(Oracle::new(client.clone()))); |
90 | 91 | io.extend_with(TokensApi::to_delegate(Tokens::new(client.clone()))); |
91 | | - io.extend_with(EVMApiServer::to_delegate(EVMApi::new(client, deny_unsafe))); |
| 92 | + io.extend_with(EVMApiServer::to_delegate(EVMApi::new(client.clone(), deny_unsafe))); |
| 93 | + io.extend_with(DevApi::to_delegate(Dev::new(client, deny_unsafe))); |
92 | 94 |
|
93 | 95 | if let Some(command_sink) = command_sink { |
94 | 96 | io.extend_with( |
|
0 commit comments