Kagome
Polkadot Runtime Engine in C++17
author_jrpc_processor.cpp
Go to the documentation of this file.
1 
7 
17 
19 
20  AuthorJRpcProcessor::AuthorJRpcProcessor(std::shared_ptr<JRpcServer> server,
21  std::shared_ptr<AuthorApi> api)
22  : api_{std::move(api)}, server_{std::move(server)} {
23  BOOST_ASSERT(api_ != nullptr);
24  BOOST_ASSERT(server_ != nullptr);
25  }
26 
27  template <typename Request>
29 
31  server_->registerHandler("author_submitExtrinsic",
33 
34  server_->registerHandler("author_insertKey",
36 
37  server_->registerHandler("author_hasSessionKeys",
39 
40  server_->registerHandler("author_hasKey", Handler<request::HasKey>(api_));
41 
42  server_->registerHandler("author_rotateKeys",
44 
45  server_->registerHandler("author_submitAndWatchExtrinsic",
47 
48  server_->registerHandler("author_unwatchExtrinsic",
50 
51  server_->registerHandler("author_pendingExtrinsics",
53  }
54 
55 } // namespace kagome::api::author
void registerHandlers() override
registers callbacks for jrpc request
AuthorJRpcProcessor(std::shared_ptr< JRpcServer > server, std::shared_ptr< AuthorApi > api)