aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.h
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2015-04-22 04:10:55 +0800
committerwinsvega <winsvega@mail.ru>2015-04-24 21:03:14 +0800
commitbd08a2bbe23238edb3a25b0f345e8a38f3283e3a (patch)
tree8e5b382d7866f6d212b19106c42cafd739c83b3d /TestHelper.h
parent393fc81deabfd8cb9511f8be5d63005b6b98ed97 (diff)
downloaddexon-solidity-bd08a2bbe23238edb3a25b0f345e8a38f3283e3a.tar.gz
dexon-solidity-bd08a2bbe23238edb3a25b0f345e8a38f3283e3a.tar.zst
dexon-solidity-bd08a2bbe23238edb3a25b0f345e8a38f3283e3a.zip
BlockWeight: tests refactoring
Diffstat (limited to 'TestHelper.h')
-rw-r--r--TestHelper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/TestHelper.h b/TestHelper.h
index bf4cdc16..1e09cf69 100644
--- a/TestHelper.h
+++ b/TestHelper.h
@@ -161,6 +161,14 @@ void userDefinedTest(std::string testTypeFlag, std::function<void(json_spirit::m
RLPStream createRLPStreamFromTransactionFields(json_spirit::mObject& _tObj);
eth::LastHashes lastHashes(u256 _currentBlockNumber);
json_spirit::mObject fillJsonWithState(eth::State _state);
+json_spirit::mObject fillJsonWithTransaction(eth::Transaction _txn);
+std::string jsonHash(dev::eth::LogBloom const& _value);
+std::string jsonHash(Address const& _value);
+std::string jsonHash(dev::eth::Nonce const& _value);
+std::string jsonHash(h256 const& _value);
+std::string jsonHex(u256 const& _value, bool _nonempty = true);
+std::string jsonHex(bytesConstRef _code);
+std::string jsonHex(bytes const& _code);
template<typename mapType>
void checkAddresses(mapType& _expectedAddrs, mapType& _resultAddrs)