Commit Graph
123 Commits
Author SHA1 Message Date
woodser ce86e0934a partial serialization of tx wallet and transfer 2019-06-07 14:39:37 -04:00
woodser a0001b92e4 fix pointers in wallet2ToIncomingTransfer();
ready to implement MoneroTxWallet.toPropertyTree()
2019-06-07 14:16:27 -04:00
woodser c4a0bfcb9c MoneroUtils toPropertyTree(vector<T> || vector<shared_pr<T>>) with
template restriction (duck typing?)
2019-06-07 13:28:57 -04:00
woodser c17c3f9f1e ready to serialize txs in block 2019-06-07 13:07:21 -04:00
woodser e5fb07e2fc compiling with toPropertyTree() overrides 2019-06-07 12:35:37 -04:00
woodser 628bcf330f migrate serialization from MoneroUtils to model impls 2019-06-07 12:23:59 -04:00
woodser 11640bdf96 update readme 2019-06-07 12:12:32 -04:00
woodser f5fd35be54 compiling with SerializedStruct and refactored dependencies 2019-06-07 11:51:56 -04:00
woodser 78eb67d4cb added SerializableStruct which defines serialize() and toPropertyTree() 2019-06-07 09:26:03 -04:00
woodser 1a0fd84872 ready to switch to OO serialization 2019-06-07 08:57:50 -04:00
woodser d60c3aa06d blocks returning from jni as array but without txs 2019-06-06 18:45:50 -04:00
woodser dcdfddf607 poc implementation of wallet2ToIncomingTransfer() supporting tx.id;
ready to implement getTransfers() isOut
2019-06-06 17:03:54 -04:00
woodser 485ef3832b vector<shared_ptr<MoneroTx>> txs to avoid slicing, same for outputs 2019-06-06 14:50:56 -04:00
woodser c54600c263 finished switching model to boost::optional 2019-06-06 13:13:14 -04:00
woodser 5471072d2e cpp project compiling with boost::optional 2019-06-06 12:50:44 -04:00
woodser 3ac7a7af50 compiling except missing height and isOutgoing fields which require
accessors
2019-06-06 11:50:25 -04:00
woodser 1fe9d6d252 wip getTransfers();
compiling except missing txReq.height and transferReq.isOutgoing fields;
use boost::optional for struct members and accessors/mutators?
2019-06-05 18:40:17 -04:00
woodser ec7d3415ca collecting parameters to wallet2->get_payments() 2019-06-05 15:13:56 -04:00
woodser f6b0e0072b fix compile error 2019-06-05 11:57:17 -04:00
woodser 46c67cc2b4 ready to implement getTxs() 2019-06-05 11:53:22 -04:00
woodser 7968671a6c cleanup 2019-06-05 11:48:54 -04:00
woodser 72089314d9 cleanup 2019-06-05 11:48:35 -04:00
woodser 74a465ec14 implemented basic field serialization for all tx request fields 2019-06-05 11:47:57 -04:00
woodser 036f13697a defined tx/WalletToPropertyTree() to re-serialize given tx request 2019-06-05 11:27:04 -04:00
woodser 2ac65b3e64 fix typo 2019-06-05 10:23:22 -04:00
woodser 12fa13d3c1 define MoneroTransferRequest MoneroOutputRequest
remove deserialization since jni is only use case currently
2019-06-05 10:19:05 -04:00
woodser 975278f7cf defined and wip toModel(ptree&, MoneroTxRequest& req) 2019-06-05 00:57:28 -04:00
woodser 59543576a7 implement toPropertyTree(subaddress) 2019-06-04 23:50:49 -04:00
woodser c2de4e7212 serializing accounts manually;
testGetAccountsWithoutSubaddresse passing
2019-06-04 23:44:46 -04:00
woodser 5751a1bf52 cleanup 2019-06-04 18:32:29 -04:00
woodser 9564393f95 defined MoneroOutputWallet;
MoneroUtils::deserialize() takes param to deserialize to
2019-06-04 12:06:57 -04:00
woodser b348092151 define MoneroUtils::deserializeTxRequest() 2019-06-04 11:49:25 -04:00
woodser 665b8a862b defined serialize utils 2019-06-04 11:42:20 -04:00
woodser 377d9b4eb5 MoneroSyncResult does not use pointers 2019-06-04 11:09:46 -04:00
woodser ce0179d1a9 switched structs to use shared_ptrs 2019-06-04 10:41:42 -04:00
woodser 7567609e05 temp add deserialize(txRequestStr) 2019-06-04 10:05:26 -04:00
woodser 6df3ac1a0a add MoneroUtils.serialize(vector<MoneroBlock>);
model unique_ptr -> shared_ptr;
2019-06-03 17:32:42 -04:00
woodser 25e0d2befd MoneroUtils.json_to_binary -> jsonToBinary(), etc;
MoneroTxRequest and MoneroTransferRequest do not extend struct;
use pointers in structs where appropriate, prep for custom
deserialization
2019-06-03 17:08:28 -04:00
woodser eb740de83a getTxs() prints received txRequest 2019-06-03 12:52:37 -04:00
woodser 7bafb952e8 MoneroDaemon.h imports wallet2.h so BEGIN_KV_SERIALIZE_MAP() works;
structs only use pointers pointing up the tree which are not serialized
2019-06-03 12:46:27 -04:00
woodser 64542cb201 extra is vector<uint32_t> 2019-06-03 12:07:58 -04:00
woodser d3badea0ff define MoneroTransferRequest, MoneroTxRequest, getTxs() 2019-06-03 12:05:17 -04:00
woodser b90d89d95e cleanup 2019-06-03 11:16:08 -04:00
woodser 3f498c56fa model structs compiling using pointers and forward declarations 2019-06-03 10:49:08 -04:00
woodser 8f903bdbc6 added structs: MoneroTx, MoneroOutput, MoneroKeyImage, MoneroBlock,
MoneroBlockHeader, MoneroDestination, MoneroTransfer,
MoneroIncomingTransfer, MoneroOutgoingTransfer, MoneroTxWallet;
not compiling due incomplete types / circular struct references
2019-06-03 10:42:33 -04:00
woodser 6850b64f79 implemented getAddressIndex() 2019-06-02 21:23:04 -04:00
woodser f3b51a9e4f implemented getAccount() 2019-06-02 19:04:17 -04:00
woodser 491f044f3a remove hardcoded absolute paths from cmakelists 2019-06-02 17:34:31 -04:00
woodser 9ce050bb11 add MoneroUtils .h/.cpp which includes binary utilities 2019-06-02 17:27:03 -04:00
woodser bea2eb9a8c re-order wallet api 2019-06-02 13:59:01 -04:00