#include <boost/optional/optional.hpp>
#include <boost/range/adaptor/indexed.hpp>
#include <gtest/gtest.h>
#include <rapidjson/document.h>
#include <vector>
#include "crypto/hash.h"
#include "cryptonote_basic/account.h"
#include "cryptonote_basic/cryptonote_basic.h"
#include "cryptonote_basic/cryptonote_format_utils.h"
#include "cryptonote_core/cryptonote_tx_utils.h"
#include "serialization/json_object.h"
Go to the source code of this file.
|
| | TEST (JsonSerialization, MinerTransaction) |
| |
| | TEST (JsonSerialization, RegularTransaction) |
| |
| | TEST (JsonSerialization, RingctTransaction) |
| |
| | TEST (JsonSerialization, BulletproofTransaction) |
| |
◆ TEST() [1/4]
| TEST |
( |
JsonSerialization |
, |
|
|
MinerTransaction |
|
|
) |
| |
Definition at line 85 of file json_serialization.cpp.
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
const account_keys & get_keys() const
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
bool t_serializable_object_to_blob(const t_object &to, blobdata &b_blob)
void toJsonValue(rapidjson::Document &doc, const std::string &i, rapidjson::Value &val)
account_public_address m_account_address
void fromJsonValue(const rapidjson::Value &val, std::string &str)
#define ASSERT_TRUE(condition)
crypto::hash get_transaction_hash(const transaction &t)
#define EXPECT_EQ(val1, val2)
◆ TEST() [2/4]
| TEST |
( |
JsonSerialization |
, |
|
|
RegularTransaction |
|
|
) |
| |
Definition at line 113 of file json_serialization.cpp.
122 const auto tx = make_transaction(
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
const account_keys & get_keys() const
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
bool t_serializable_object_to_blob(const t_object &to, blobdata &b_blob)
void toJsonValue(rapidjson::Document &doc, const std::string &i, rapidjson::Value &val)
account_public_address m_account_address
void fromJsonValue(const rapidjson::Value &val, std::string &str)
#define ASSERT_TRUE(condition)
crypto::hash get_transaction_hash(const transaction &t)
#define EXPECT_EQ(val1, val2)
◆ TEST() [3/4]
| TEST |
( |
JsonSerialization |
, |
|
|
RingctTransaction |
|
|
) |
| |
Definition at line 148 of file json_serialization.cpp.
157 const auto tx = make_transaction(
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
const account_keys & get_keys() const
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
bool t_serializable_object_to_blob(const t_object &to, blobdata &b_blob)
void toJsonValue(rapidjson::Document &doc, const std::string &i, rapidjson::Value &val)
account_public_address m_account_address
void fromJsonValue(const rapidjson::Value &val, std::string &str)
#define ASSERT_TRUE(condition)
crypto::hash get_transaction_hash(const transaction &t)
#define EXPECT_EQ(val1, val2)
◆ TEST() [4/4]
| TEST |
( |
JsonSerialization |
, |
|
|
BulletproofTransaction |
|
|
) |
| |
Definition at line 183 of file json_serialization.cpp.
192 const auto tx = make_transaction(
crypto::secret_key generate(const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false, bool two_random=false)
const account_keys & get_keys() const
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
bool t_serializable_object_to_blob(const t_object &to, blobdata &b_blob)
void toJsonValue(rapidjson::Document &doc, const std::string &i, rapidjson::Value &val)
account_public_address m_account_address
void fromJsonValue(const rapidjson::Value &val, std::string &str)
#define ASSERT_TRUE(condition)
crypto::hash get_transaction_hash(const transaction &t)
#define EXPECT_EQ(val1, val2)