mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
101 lines
2.9 KiB
C++
101 lines
2.9 KiB
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
/** Add this to get the @ref ripple_data module.
|
|
|
|
@file ripple_data.cpp
|
|
@ingroup ripple_data
|
|
*/
|
|
|
|
#include <limits.h>
|
|
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <cmath>
|
|
#include <iomanip>
|
|
#include <iostream>
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <boost/algorithm/string/predicate.hpp>
|
|
#include <boost/algorithm/string/split.hpp>
|
|
#include <boost/algorithm/string/trim.hpp>
|
|
#include <boost/algorithm/string/classification.hpp>
|
|
#include <boost/format.hpp>
|
|
#include <boost/foreach.hpp>
|
|
#include <boost/functional/hash.hpp>
|
|
#include <boost/lexical_cast.hpp>
|
|
#include <boost/range/adaptor/copied.hpp>
|
|
#include <boost/regex.hpp>
|
|
#include <boost/unordered_map.hpp>
|
|
#include <boost/test/unit_test.hpp>
|
|
#include <boost/thread/mutex.hpp>
|
|
|
|
#include <openssl/ec.h>
|
|
#include <openssl/bn.h>
|
|
#include <openssl/ecdsa.h>
|
|
#include <openssl/pem.h>
|
|
#include <openssl/hmac.h>
|
|
#include <openssl/rand.h>
|
|
#include <openssl/err.h>
|
|
|
|
// VFALCO TODO fix these warnings!
|
|
#ifdef _MSC_VER
|
|
//#pragma warning (push) // Causes spurious C4503 "decorated name exceeds maximum length"
|
|
#pragma warning (disable: 4018) // signed/unsigned mismatch
|
|
//#pragma warning (disable: 4244) // conversion, possible loss of data
|
|
#endif
|
|
|
|
#include "ripple_data.h"
|
|
|
|
#ifdef min
|
|
#undef min
|
|
#endif
|
|
|
|
#include "crypto/ripple_Base58.h" // for RippleAddress
|
|
#include "crypto/ripple_CKey.h" // needs RippleAddress VFALCO TODO remove this dependency cycle
|
|
#include "crypto/ripple_RFC1751.h"
|
|
|
|
#include "crypto/ripple_CBigNum.cpp"
|
|
#include "crypto/ripple_CKey.cpp"
|
|
#include "crypto/ripple_CKeyDeterministic.cpp"
|
|
#include "crypto/ripple_CKeyECIES.cpp"
|
|
#include "crypto/ripple_Base58.cpp"
|
|
#include "crypto/ripple_Base58Data.cpp"
|
|
#include "crypto/ripple_RFC1751.cpp"
|
|
|
|
#include "protocol/ripple_FieldNames.cpp"
|
|
#include "protocol/ripple_LedgerFormat.cpp"
|
|
#include "protocol/ripple_PackedMessage.cpp"
|
|
#include "protocol/ripple_RippleAddress.cpp"
|
|
#include "protocol/ripple_SerializedTypes.cpp"
|
|
#include "protocol/ripple_Serializer.cpp"
|
|
#include "protocol/ripple_SerializedObjectTemplate.cpp"
|
|
#include "protocol/ripple_SerializedObject.cpp"
|
|
#include "protocol/ripple_TER.cpp"
|
|
#include "protocol/ripple_TxFormat.cpp"
|
|
#include "protocol/ripple_TxFormats.cpp"
|
|
|
|
// These are for STAmount
|
|
static const uint64 tenTo14 = 100000000000000ull;
|
|
static const uint64 tenTo14m1 = tenTo14 - 1;
|
|
static const uint64 tenTo17 = tenTo14 * 1000;
|
|
static const uint64 tenTo17m1 = tenTo17 - 1;
|
|
#include "protocol/ripple_STAmount.cpp"
|
|
#include "protocol/ripple_STAmountRound.cpp"
|
|
|
|
#include "utility/ripple_JSONCache.cpp"
|
|
|
|
// VFALCO TODO Fix this for SConstruct
|
|
#ifdef _MSC_VER
|
|
#include "ripple.pb.cc" // BROKEN because of SConstruct
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
//#pragma warning (pop)
|
|
#endif
|