Ethereum  PoC-8
The C++ Implementation of Ethereum
CommonJS.cpp File Reference
#include "CommonJS.h"

Go to the source code of this file.

Namespaces

 dev
 
 dev::eth
 

Functions

std::string dev::prettyU256 (u256 _n, bool _abridged=true)
 Convert u256 into user-readable string. Returns int/hex value of 64 bits int, hex of 160 bits FixedHash. As a fallback try to handle input as h256. More...
 
BlockNumber dev::eth::jsToBlockNumber (std::string const &_js)
 Convert to a block number, a bit like jsToInt, except that it correctly recognises "pending" and "latest". More...
 

Detailed Description

Authors
: Gav Wood i@gav.nosp@m.wood.nosp@m..com Marek Kotewicz marek.nosp@m.@eth.nosp@m.dev.c.nosp@m.om
Date
2014

Definition in file CommonJS.cpp.