Kagome
Polkadot Runtime Engine in C++17
payment_jrpc_processor.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_PAYMENT_JRPC_PROCESSOR_HPP
7 #define KAGOME_PAYMENT_JRPC_PROCESSOR_HPP
8 
10 
11 #include <memory>
12 
13 namespace kagome::api {
14  class JRpcServer;
15  class PaymentApi;
16 } // namespace kagome::api
17 
18 namespace kagome::api::payment {
19 
21  public:
22  PaymentJRpcProcessor(std::shared_ptr<JRpcServer> server,
23  std::shared_ptr<PaymentApi> api);
24 
25  private:
26  void registerHandlers() override;
27 
28  std::shared_ptr<PaymentApi> api_;
29  std::shared_ptr<JRpcServer> server_;
30  };
31 
32 } // namespace kagome::api::payment
33 
34 #endif // KAGOME_PAYMENT_JRPC_PROCESSOR_HPP
void registerHandlers() override
registers callbacks for jrpc request
PaymentJRpcProcessor(std::shared_ptr< JRpcServer > server, std::shared_ptr< PaymentApi > api)