Kagome
Polkadot Runtime Engine in C++17
rpc_api_impl.cpp
Go to the documentation of this file.
1 
7 
8 #include <utility>
9 
10 namespace kagome::api {
11 
12  RpcApiImpl::RpcApiImpl(std::shared_ptr<JRpcServer> server)
13  : server_{std::move(server)} {
14  BOOST_ASSERT(server_ != nullptr);
15  }
16 
17  outcome::result<std::vector<std::string>> RpcApiImpl::methods() const {
18  return server_->getHandlerNames();
19  }
20 
21 } // namespace kagome::api
outcome::result< std::vector< std::string > > methods() const override
std::shared_ptr< JRpcServer > server_
RpcApiImpl(std::shared_ptr< JRpcServer > server)