diff --git a/CMakeLists.txt b/CMakeLists.txt index fd9cb7f..66a16d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ set(MONERO_SRC "${MONERO}/src") include_directories("$ENV{JAVA_HOME}") include_directories("$ENV{JAVA_HOME}/include") include_directories("$ENV{JAVA_HOME}/include/darwin") +include_directories(src/) include_directories(${MONERO}/contrib/epee/include) include_directories(${MONERO}/external/) include_directories(${MONERO}/external/easylogging++) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 264e616..86dcaf6 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1,3 +1,13 @@ +using namespace std; + +MoneroWallet::MoneroWallet() { + cout << "constructing" << endl; +} + +MoneroWallet::~MoneroWallet() { + cout << "deconstructing" << endl; +} + void MoneroWallet::getMnemonic(epee::wipeable_string& mnemonic) const { throw runtime_error("Not implemented"); } diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index fed6d09..0b1eba8 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -5,20 +5,20 @@ using namespace std; */ class MoneroWallet { - /** - * Construct the wallet. TODO - */ - MoneroWallet() - - /** - * Deconstructs the wallet. - */ - ~MoneroWallet(); - // --------------------------------- PUBLIC -------------------------------- public: + /** + * Construct the wallet. TODO + */ + MoneroWallet(); + + /** + * Deconstructs the wallet. + */ + ~MoneroWallet(); + // /** // * Get the wallet's seed. // * @@ -35,6 +35,4 @@ using namespace std; // --------------------------------- PRIVATE -------------------------------- - private: - }; diff --git a/test/Scratchpad.cpp b/test/Scratchpad.cpp index 94f28f7..e774b06 100644 --- a/test/Scratchpad.cpp +++ b/test/Scratchpad.cpp @@ -1,6 +1,8 @@ #include #include #include "wallet2.h" +#include "wallet/MoneroWallet.h" +#include "wallet/MoneroWallet.cpp" //#include using namespace std; @@ -51,5 +53,13 @@ int main(int argc, const char* argv[]) { cout << "Wallet exists: " << walletExists(path) << endl; // openWallet(path, password, networkType); - createWalletRandom(language, networkType); +// createWalletRandom(language, networkType); + + // create wallet + MoneroWallet* wallet = new MoneroWallet(); + + // get the mnemonic + epee::wipeable_string mnemonic; + wallet->getMnemonic(mnemonic); + cout << "Mnemonic: " << string(mnemonic.data(), mnemonic.size()) << endl; }