Commit Graph

55 Commits (master)

Author SHA1 Message Date
Nelson R. Perez 9b27bced03 Fixed problem with AuthorityTest & LatencyNodeProviderTest 2019-09-25 20:08:52 -05:00
Nelson R. Perez 2cd989eade Fixed RedeemHtlcOperation JSON and byte serialization and introduced a serialization test case 2019-08-01 13:03:10 -05:00
Nelson R. Perez 6ba8379b92 Introducing the HTLC object instance 2019-07-30 17:05:21 -05:00
Nelson R. Perez 9057121146 Properly implemented the JsonSerializable interface methods of the CreateHtlcOperation class & included that in tests
- This is required in order to communicate the operation to the full node.
2019-07-26 17:16:16 -05:00
Nelson R. Perez ca30338af6 Implemented a serialization test for a tx containing a CreateHtlcOperation 2019-07-12 00:00:46 -05:00
Nelson R. Perez bb4fd5ce5d Implementing test of the CreateHtlcOperation class byte serialization 2019-07-11 16:42:37 -05:00
Nelson R. Perez bf346f25bf Introducing the CreateHtlcOperation & supporting classes
- HtlcHashType class enumerates all supported HTLC hash functions.
- The HtlcHash class is used to represent all possible HTLC hash results.
- The CreateHtlcOperation class itself is used to represent the operation that creates an HTLC
- A simple test class was introduced in order to test hash functions and subsequently also test the HTLC operation serialization
2019-07-11 13:25:38 -05:00
Nelson R. Perez 8b7b3deafe Added a few more test cases for the memo decoding 2019-02-23 21:33:09 -05:00
Nelson R. Perez 4c7c7b29b2 Fixed bug with the memo's nonce serialization format 2019-01-15 11:16:02 -05:00
Nelson R. Perez 84515d5296 Adding the getHash() public method to the Transaction class 2018-12-06 15:55:44 -05:00
Nelson R. Perez 878bc52d78 Fixed problem with the comparation function between two FullNode instances 2018-10-23 15:30:37 -05:00
Nelson R. Perez a6e5910144 Fixing issues with the LatencyNodeProvider#getSortedNodes() method 2018-10-22 13:53:47 -05:00
Nelson R. Perez 25222e5ea9 Introducing the NodeProvider interface and its implementation LatencyNodeProvider 2018-09-18 11:15:07 -05:00
Nelson R. Perez 83ce2de14d Introducing the FullNode class, which keeps track of the delay to each full node it represents 2018-09-17 17:48:49 -05:00
Nelson R. Perez 9329d59ce7 Moved the Memo class 2018-09-17 12:19:22 -05:00
Nelson R. Perez 6abd71252e Added support for the 'get_full_accounts' API call in the single connecton mode 2018-09-06 18:09:18 -05:00
Nelson R. Perez 229590457b - Added support for the 'get_account_history_by_operations' API call
- Introduced a test case for the de-serialization of the HistoryOperationDetail object instance
- Making the sample app use the newly introduced 'get_account_history_by_operations' API call
2018-09-05 21:04:46 -05:00
Nelson R. Perez 7e2ef7b705 Added support for message subscriptions on the single connection mode 2018-08-30 22:32:50 -05:00
Nelson R. Perez 415e41ae11 Added support for the get_account_history API call 2018-06-20 17:23:15 -05:00
Nelson R. Perez 7abf7343a1 Added 'isLifetime' property to UserAccount class 2018-06-01 21:45:07 -05:00
Nelson R. Perez 915b446d1d Extended the BrainKeyTest in order to cover OpenLedger's accounts 2018-05-31 15:52:26 -05:00
Nelson R. Perez 0b79231a3a Detecting and deserializing operation history objects 2018-05-31 15:52:26 -05:00
Nelson R. Perez 5dea8a6eb4 Renamed HistoricalTransfer to OperationHistory 2018-05-31 15:52:26 -05:00
Nelson R. Perez 4fdfed07b0 Added tests for the account upgrade operation 2018-05-30 22:26:09 -05:00
Nelson R. Perez d0f9ddbbb9 Fixed a remaining issue with the deserialization of the BitAssetData 'get_object' response 2018-02-22 17:38:20 -05:00
Nelson R. Perez 857d861e4b Fixed a problem with the deserialization of the get_objects api call that ocurred when the requested objects were of type impl_asset_bitasset_data_type 2018-02-20 23:38:47 -05:00
Kostya Shpachenko b60fffdc3b Added test of custom operation deserialization 2017-12-18 15:41:21 +02:00
Kostya Shpachenko be9a16a48b Added tests for custom operation 2017-12-13 23:56:41 +02:00
Kostya Shpachenko a849fae997 Added test for GetBlock API call 2017-12-12 16:37:50 +02:00
Nelson R. Perez ff856e7e2c Fixing small issue with the OrderBook#calculateObtainedQuote() method 2017-11-29 00:24:13 -05:00
Nelson R. Perez 2e4bd213c7 Changing method's name 2017-11-23 23:39:29 -05:00
Nelson R. Perez fb80fe3c02 Introducing some copy constructors and making sure #multiplyBy and #divideBy return different instances 2017-11-23 23:38:53 -05:00
Nelson R. Perez 9a1808d127 Modified AssetAmount#multiply() and AssetAmount#divide() to not cast its value to a long primitive and thus preventing some overflow scenarios that the idea of using the UnsignedLong class is suposed to prevent 2017-11-23 23:03:41 -05:00
Nelson R. Perez 3796ed5f81 Updating the OrderBook class, adding #calculateObtainedQuote and #calculateRequiredBase methods 2017-11-17 16:46:26 -05:00
Nelson R. Perez 394ed4b3b0 Adding support for optional decimal or hex representations of the memo's nonce value in the newly introduced toJson method. Also introducing a Serializer 2017-11-09 23:52:50 -05:00
Nelson R. Perez 70b251a665 Adding support for a string-based query when using the LookupAssetSymbols API 2017-11-09 18:21:41 -05:00
Nelson R. Perez 3406fcdd68 Fixing the test for the GetAccountBalances API handler when used with the NodeConnection class 2017-11-09 17:53:28 -05:00
Nelson R. Perez c8fe1ec9c4 Increasing the message ids of the SubscriptionMessagesHub increase monotonically 2017-11-09 15:08:35 -05:00
Nelson R. Perez e5ce587f68 Added test to non-existing node 2017-11-08 19:01:42 -05:00
Nelson R. Perez b1c93a97e1 Replacing last argument of the NodeConnection#connect method for a NodeErrorListener instance 2017-11-03 00:28:25 -05:00
Nelson R. Perez 3d4b2719bb Fixing memo toJsonObject test and deserializing memo's nonce only as a decimal number 2017-11-02 17:57:15 -05:00
Nelson R. Perez cf647a65ba Adding the memo in both test transfer operations 2017-11-02 17:49:03 -05:00
Nelson R. Perez fc91f7366c Experimentally changing the nonce type to BigInteger 2017-11-02 17:49:03 -05:00
Nelson R. Perez 33a330f44a Fixing test case for the transfer operation transaction broadcast 2017-11-02 17:45:08 -05:00
Nelson R. Perez 62b0a7501b Adding correct binary sequence that corresponds to the test memo #toBytes desired output 2017-11-02 17:44:14 -05:00
Nelson R. Perez 3ae4ca10bf Small change to the setup of the memo test 2017-11-02 16:15:22 -05:00
Nelson R. Perez 3449e97b5b Hardcoding additional account information and thus making the tx test self-contained 2017-11-02 16:09:15 -05:00
Nelson R. Perez 2e92805234 Removing dependency on environment variables from the memo testing suite 2017-11-02 15:25:54 -05:00
Nelson R. Perez f74f2cefc2 Adjusting argument order in order to match expected & actual 2017-11-02 11:47:59 -05:00
Nelson R. Perez e34596d0b4 Adding a simple key to address derivation test 2017-11-02 11:38:39 -05:00