Skip to content
Snippets Groups Projects

Distance Oracle

Merged Pascal Engélibert requested to merge distance into master
19 files
+ 803
10
Compare changes
  • Side-by-side
  • Inline
Files
19
+ 4
0
@@ -56,6 +56,7 @@ where
C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
C::Api: BlockBuilder<Block>,
//C::Api: pallet_distance_runtime_api::DistanceApi<Block>,
P: TransactionPool + 'static,
{
use manual_seal::rpc::{ManualSeal, ManualSealApiServer};
@@ -83,6 +84,9 @@ where
// `YourRpcStruct` should have a reference to a client, which is needed
// to call into the runtime.
// `module.merge(YourRpcTrait::into_rpc(YourRpcStruct::new(ReferenceToClient, ...)))?;`
/*module.merge(pallet_distance_rpc::DistanceApi::into_rpc(
pallet_distance_rpc::Distance::new(client),
))?;*/
Ok(module)
}
Loading