 |
Ethereum
PoC-8
The C++ Implementation of Ethereum
|
Go to the documentation of this file.
34 s <<
" " << (uint64_t)_n <<
" (0x" << std::hex << (uint64_t)_n <<
")";
35 else if (!~(_n >> 64))
36 s <<
" " << (int64_t)_n <<
" (0x" << std::hex << (int64_t)_n <<
")";
37 else if ((_n >> 160) == 0)
50 s << _n <<
"(0x" << n <<
")";
53 return "\"" + raw +
"\"";
66 else if (_js ==
"earliest")
68 else if (_js ==
"pending")
string fromRaw(h256 _n)
Convert h256 into user-readable string (by directly using std::string constructor)....
std::string prettyU256(u256 _n, bool _abridged)
Convert u256 into user-readable string. Returns int/hex value of 64 bits int, hex of 160 bits FixedHa...
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< N *8, N *8, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void > > jsToInt(std::string const &_s)
h160 right160(h256 const &_t)
Convert the given value into h160 (160-bit unsigned integer) using the right 20 bytes.
BlockNumber jsToBlockNumber(std::string const &_js)
Convert to a block number, a bit like jsToInt, except that it correctly recognises "pending" and "lat...
std::string abridged() const
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void > > u256
std::string toHex(Iterator _it, Iterator _end, std::string const &_prefix)