Fabcoin Core  0.16.2
P2P Digital Currency
Web3.h
Go to the documentation of this file.
1 #pragma once
2 #include "Web3Face.h"
3 
4 namespace dev
5 {
6 namespace rpc
7 {
8 
9 class Web3: public Web3Face
10 {
11 public:
12  Web3(std::string _clientVersion = "C++ (ethereum-cpp)"): m_clientVersion(_clientVersion) {}
13  virtual RPCModules implementedModules() const override
14  {
15  return RPCModules{RPCModule{"web3", "1.0"}};
16  }
17  virtual std::string web3_sha3(std::string const& _param1) override;
18  virtual std::string web3_clientVersion() override { return m_clientVersion; }
19 
20 private:
21  std::string m_clientVersion;
22 };
23 
24 }
25 }
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
std::vector< RPCModule > RPCModules
Definition: ModularServer.h:50
std::string m_clientVersion
Definition: Web3.h:21
virtual std::string web3_clientVersion() override
Definition: Web3.h:18
virtual std::string web3_sha3(std::string const &_param1) override
Definition: Web3.cpp:8
Web3(std::string _clientVersion="C++ (ethereum-cpp)")
Definition: Web3.h:12
virtual RPCModules implementedModules() const override
Definition: Web3.h:13