mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Project refactor. Introduce the Serpent library.
This commit is contained in:
parent
d737f6df42
commit
b62f71c699
@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
#include "MemTrie.h"
|
#include "MemTrie.h"
|
||||||
|
|
||||||
#include <libethsupport/TrieCommon.h>
|
#include <libethcore/TrieCommon.h>
|
||||||
|
#include <libethcore/SHA3.h>
|
||||||
#include <libethcore/CommonEth.h>
|
#include <libethcore/CommonEth.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace eth;
|
using namespace eth;
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <libethsupport/Common.h>
|
#include <libethential/Common.h>
|
||||||
#include <libethsupport/FixedHash.h>
|
#include <libethential/FixedHash.h>
|
||||||
|
|
||||||
namespace eth
|
namespace eth
|
||||||
{
|
{
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
#include "TrieHash.h"
|
#include "TrieHash.h"
|
||||||
|
|
||||||
#include <libethsupport/TrieCommon.h>
|
#include <libethcore/TrieCommon.h>
|
||||||
|
#include <libethcore/SHA3.h>
|
||||||
#include <libethcore/CommonEth.h>
|
#include <libethcore/CommonEth.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace eth;
|
using namespace eth;
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <libethsupport/Common.h>
|
#include <libethential/Common.h>
|
||||||
#include <libethsupport/FixedHash.h>
|
#include <libethential/FixedHash.h>
|
||||||
|
|
||||||
namespace eth
|
namespace eth
|
||||||
{
|
{
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <secp256k1/secp256k1.h>
|
#include <secp256k1/secp256k1.h>
|
||||||
#include <libethsupport/Common.h>
|
#include <libethential/Common.h>
|
||||||
#include <libethsupport/RLP.h>
|
#include <libethential/RLP.h>
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <libethereum/Transaction.h>
|
#include <libethereum/Transaction.h>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <libethcore/Dagger.h>
|
#include <libethcore/Dagger.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include "JsonSpiritHeaders.h"
|
#include "JsonSpiritHeaders.h"
|
||||||
#include <libethsupport/TrieCommon.h>
|
#include <libethcore/TrieCommon.h>
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
4
main.cpp
4
main.cpp
@ -20,7 +20,7 @@
|
|||||||
* Main test functions.
|
* Main test functions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libethsupport/TrieDB.h>
|
#include <libethcore/TrieDB.h>
|
||||||
#include "TrieHash.h"
|
#include "TrieHash.h"
|
||||||
#include "MemTrie.h"
|
#include "MemTrie.h"
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ int vmTest();
|
|||||||
int hexPrefixTest();
|
int hexPrefixTest();
|
||||||
int peerTest(int argc, char** argv);
|
int peerTest(int argc, char** argv);
|
||||||
|
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <libethcore/BlockInfo.h>
|
#include <libethcore/BlockInfo.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace eth;
|
using namespace eth;
|
||||||
|
6
rlp.cpp
6
rlp.cpp
@ -23,9 +23,9 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "JsonSpiritHeaders.h"
|
#include "JsonSpiritHeaders.h"
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <libethsupport/RLP.h>
|
#include <libethential/RLP.h>
|
||||||
#include <libethsupport/Common.h>
|
#include <libethential/Common.h>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
2
trie.cpp
2
trie.cpp
@ -23,7 +23,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include "JsonSpiritHeaders.h"
|
#include "JsonSpiritHeaders.h"
|
||||||
#include <libethsupport/TrieDB.h>
|
#include <libethcore/TrieDB.h>
|
||||||
#include "TrieHash.h"
|
#include "TrieHash.h"
|
||||||
#include "MemTrie.h"
|
#include "MemTrie.h"
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
8
vm.cpp
8
vm.cpp
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <libethsupport/Log.h>
|
#include <libethential/Log.h>
|
||||||
#include <libethcore/Instruction.h>
|
#include <libevmface/Instruction.h>
|
||||||
#include <libevm/ExtVMFace.h>
|
#include <libevm/ExtVMFace.h>
|
||||||
#include <libevm/VM.h>
|
#include <libevm/VM.h>
|
||||||
#include <liblll/Compiler.h>
|
#include <liblll/Compiler.h>
|
||||||
@ -470,7 +470,7 @@ void doTests(json_spirit::mValue& v, bool _fillin)
|
|||||||
BOOST_AUTO_TEST_CASE(vm_tests)
|
BOOST_AUTO_TEST_CASE(vm_tests)
|
||||||
{
|
{
|
||||||
// Populate tests first:
|
// Populate tests first:
|
||||||
try
|
/*try
|
||||||
{
|
{
|
||||||
cnote << "Populating VM tests...";
|
cnote << "Populating VM tests...";
|
||||||
json_spirit::mValue v;
|
json_spirit::mValue v;
|
||||||
@ -483,7 +483,7 @@ BOOST_AUTO_TEST_CASE(vm_tests)
|
|||||||
catch (std::exception const& e)
|
catch (std::exception const& e)
|
||||||
{
|
{
|
||||||
BOOST_ERROR("Failed VM Test with Exception: " << e.what());
|
BOOST_ERROR("Failed VM Test with Exception: " << e.what());
|
||||||
}
|
}*/
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user