Kagome
Polkadot Runtime Engine in C++17
payment_jrpc_processor.cpp
Go to the documentation of this file.
1 
7 
8 #include <boost/assert.hpp>
9 
10 #include "api/jrpc/jrpc_method.hpp"
11 #include "api/jrpc/jrpc_server.hpp"
12 
14 
16 
17  PaymentJRpcProcessor::PaymentJRpcProcessor(std::shared_ptr<JRpcServer> server,
18  std::shared_ptr<PaymentApi> api)
19  : api_{std::move(api)}, server_{std::move(server)} {
20  BOOST_ASSERT(api_ != nullptr);
21  BOOST_ASSERT(server_ != nullptr);
22  }
23 
24  template <typename Request>
26 
28  server_->registerHandler("payment_queryInfo",
30  }
31 
32 } // namespace kagome::api::payment
void registerHandlers() override
registers callbacks for jrpc request
PaymentJRpcProcessor(std::shared_ptr< JRpcServer > server, std::shared_ptr< PaymentApi > api)