mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-25 10:09:51 +01:00
compiling with SerializedStruct and refactored dependencies
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user