pub fn create_light<C, P, F>(deps: LightDeps<C, F, P>) -> jsonrpc_core::IoHandler<sc_rpc_api::Metadata>
    where
        C: ProvideRuntimeApi<Block>,
        C: HeaderBackend<Block>,
        C: Send + Sync + 'static,
        C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
        C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
        P: TransactionPool + Sync + Send + 'static,
        F: Fetcher<Block> + 'static,
{
    use substrate_frame_rpc_system::{LightSystem, SystemApi};

    let LightDeps {
        client,
        pool,
        remote_blockchain,
        fetcher,
    } = deps;
    let mut io = jsonrpc_core::IoHandler::default();
    io.extend_with(
        SystemApi::<Hash, AccountId, Index>::to_delegate(LightSystem::new(client, remote_blockchain, fetcher, pool))
    );
    io
}
/// Instantiate all RPC extensions for light node.
Instantiate all RPC extensions for light node.
Instantiate all RPC extensions for light node .
pub fn create_light<C, P, F>(deps: LightDeps<C, F, P>) -> jsonrpc_core::IoHandler<sc_rpc_api::Metadata>
    where
        C: ProvideRuntimeApi<Block>,
        C: HeaderBackend<Block>,
        C: Send + Sync + 'static,
        C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
        C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
        P: TransactionPool + Sync + Send + 'static,
        F: Fetcher<Block> + 'static,
{
    use substrate_frame_rpc_system::{LightSystem, SystemApi};
    let LightDeps {
        client,
        pool,
        remote_blockchain,
        fetcher,
    } = deps;
    let mut io = jsonrpc_core::IoHandler::default();
    io.extend_with(
        SystemApi::<Hash, AccountId, Index>::to_delegate(LightSystem::new(client, remote_blockchain, fetcher, pool))
    );
    io
}
pub fn create_light < C , P , F > ( deps : LightDeps < C , F , P > ) -> jsonrpc_core :: IoHandler < sc_rpc_api :: Metadata > where C : ProvideRuntimeApi < Block > , C : HeaderBackend < Block > , C : Send + Sync + ' static , C :: Api : substrate_frame_rpc_system :: AccountNonceApi < Block , AccountId , Index > , C :: Api : pallet_transaction_payment_rpc :: TransactionPaymentRuntimeApi < Block , Balance > , P : TransactionPool + Sync + Send + ' static , F : Fetcher < Block > + ' static , { use substrate_frame_rpc_system :: { LightSystem , SystemApi } ; let LightDeps { client , pool , remote_blockchain , fetcher , } = deps ; let mut io = jsonrpc_core :: IoHandler :: default ( ) ; io . extend_with ( SystemApi :: < Hash , AccountId , Index > :: to_delegate ( LightSystem :: new ( client , remote_blockchain , fetcher , pool ) ) ) ; io }
Instantiate all RPC extensions for light node.
Instantiate all RPC extensions for light node .
deps
LightDeps<C, F, P>
deps
LightDeps<C, F, P>