compiling with SerializedStruct and refactored dependencies

This commit is contained in:
woodser
2019-06-07 11:51:56 -04:00
parent 78eb67d4cb
commit f5fd35be54
5 changed files with 39 additions and 20 deletions
+12 -1
View File
@@ -1,5 +1,6 @@
#include "utils/MoneroUtils.h"
#include "wallet/MoneroWallet.h"
#include "utils/MoneroUtils.h"
#include <stdio.h>
#include <iostream>
#include "mnemonics/electrum-words.h"
@@ -13,6 +14,16 @@ using namespace epee;
*/
namespace monero {
// -------------------------- MODEL SERIALIZATION ---------------------------
void MoneroTxWallet::toPropertyTree(boost::property_tree::ptree& node) const {
throw runtime_error("Not implemented");
}
void MoneroTxRequest::toPropertyTree(boost::property_tree::ptree& node) const {
throw runtime_error("Not implemented");
}
// ---------------------------- PRIVATE HELPERS -----------------------------
bool boolEquals(bool val, const boost::optional<bool>& optVal) {
+7 -1
View File
@@ -1,8 +1,11 @@
#pragma once
#include "daemon/MoneroDaemon.h"
#include "wallet/wallet2.h"
using namespace std;
using namespace monero;
using namespace crypto;
using namespace monero;
/**
* Public interface for libmonero-cpp library.
@@ -129,6 +132,8 @@ namespace monero {
boost::optional<MoneroOutgoingTransfer> outgoingTransfer;
boost::optional<uint32_t> numSuggestedConfirmations;
boost::optional<string> note;
virtual void toPropertyTree(boost::property_tree::ptree& node) const;
};
/**
@@ -169,6 +174,7 @@ namespace monero {
boost::optional<MoneroTransferRequest> transferRequest;
boost::optional<uint64_t> getHeight() { return block == boost::none ? boost::none : (*block)->height; }
virtual void toPropertyTree(boost::property_tree::ptree& node) const;
};
/**