Commit Graph

301 Commits (master)

Author SHA1 Message Date
Nelson R. Perez a36f9811f9 Added javadocs and sources compilation tasks 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 0a4c0c0c9d Added an order book getter to the OrderBook class 2018-05-31 15:52:26 -05:00
Nelson R. Perez 42d5cb68eb Removed the result attribute from the BaseResponse class 2018-05-31 15:52:26 -05:00
Nelson R. Perez 6bda451f72 Increasing the current id after sending the message and moved the shared preferences setup to the SampleApplication class 2018-05-31 15:52:26 -05:00
Nelson R. Perez 1848c82a46 Fixed a couple of crashes caused by accessing invalid data 2018-05-31 15:52:26 -05:00
Nelson R. Perez 593d3fc0d8 - Moved the NetworkService management logic to the newly introduced NetworkServiceManager class 2018-05-31 15:52:26 -05:00
Nelson R. Perez 94986a4786 Introduced the GetRequiredFees API call 2018-05-31 15:52:26 -05:00
Nelson R. Perez e9c920d469 Moved the NetworkService to the graphenej library 2018-05-31 15:52:26 -05:00
Nelson R. Perez 628faf6109 Handling only credentials and API access messages locally, deferring all other messages to the bus 2018-05-31 15:52:26 -05:00
Nelson R. Perez 69a0a64d30 Initial tests in order to introduce a centralized broker architecture 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
hvarona fd70cb63dc implement Account Upgrade Operation 2018-05-23 11:20:28 -05:00
Nelson R. Perez 3e92673c7b Fixed typo 2018-03-01 11:07:02 -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
Nelson R. Perez dd87ea1df8 Version bump 2018-02-15 23:25:36 -05:00
Nelson R. Perez 2da04adfea Enabling and disabling log printing in the SubscriptionMessagesHub 2018-02-01 12:02:03 -05:00
Nelson R. Perez f186bbe7b9 Adding a getter to the Transaction's blockData attribute 2018-01-25 18:04:26 -05:00
Nelson R. Perez 9af682f0cb Version bump 2018-01-25 17:58:20 -05:00
Nelson R. Perez 3c6d96f48a Using the Bitshares mainnet chain id as default, but allowing the user to set it up manually either via constructor or setter method 2018-01-23 12:03:20 -05:00
Kostya Shpachenko b60fffdc3b Added test of custom operation deserialization 2017-12-18 15:41:21 +02:00
Kostya Shpachenko a2886ea0a5 Fixed deserialization of "seller" field of limit_order_create_operation 2017-12-18 15:40:38 +02:00
Kostya Shpachenko d0629eab85 Implemented deserialization of custom operation 2017-12-18 15:39:37 +02:00
Kostya Shpachenko be9a16a48b Added tests for custom operation 2017-12-13 23:56:41 +02:00
Kostya Shpachenko 16d3ff6721 Implemented support of custom operation 2017-12-13 23:55:00 +02:00
Kostya Shpachenko a849fae997 Added test for GetBlock API call 2017-12-12 16:37:50 +02:00
Kostya Shpachenko 74767f2d1d Implemented GetBlock API call 2017-12-12 16:36: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 50bd0aa05c Version 0.4.6-alpha5 2017-11-29 00:17:47 -05:00
Nelson R. Perez 2520099762 Serializing the memo only when the message bytes is not null 2017-11-27 23:05:42 -05:00
Nelson R. Perez de11203ef8 Version 0.4.6-alpha4 2017-11-27 22:55:15 -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 805903bed4 Version 0.4.6-alpha3 2017-11-23 19:20:45 -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 ab7f88d17c Version 0.4.6-alpha2 2017-11-16 10:38:49 -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 c2287f5410 v0.4.6-alpha1 2017-11-09 23:34:48 -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 2ea1fa9cc7 Using a long data type for the sequenceId variable 2017-11-09 17:51:29 -05:00
Nelson R. Perez 2d81979c08 Only subscribing to events if the clearFilter variable is true, and also adding support for handlers added before the connection was established 2017-11-09 17:50:49 -05:00
Nelson R. Perez 1e18382451 Avoiding a NullPointerException and using a sequential requestId in order to use this class with the NodeConnection 2017-11-09 17:49:18 -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 da378506d9 v0.4.6-alpha0 2017-11-03 00:18:06 -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 0192728bd5 Using hexlify in order to obtain the bytes from the BigInteger nonce 2017-11-02 17:49:03 -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
Nelson R. Perez 3e96bbc9b3 Adding node hopping capabilities to the NodeConnection class along with some tests 2017-11-01 21:18:36 -05:00
Nelson R. Perez 69ccbe8cd9 - Reverted the Memo#nonce attribute to the original long type
- Properly fixed the deserialization problem and added a specific test case at MemoTest#shouldDeserializeFromString
2017-10-17 23:19:55 -05:00
Nelson R. Perez b305faa662 Fixing a bug with memo deserialization 2017-10-12 23:34:22 -05:00
Nelson R. Perez 61dc72724e Fixed a bug in the OrderBook.calculateRequiredBase method that made the calculation of the required asset amount to fail some times 2017-10-12 18:22:29 -05:00
Nelson R. Perez 6ac84f9a52 Decreasing count when removing subscription listener 2017-10-04 23:05:14 -05:00
Nelson R. Perez 5e88c209e3 Package rename 2017-10-02 14:34:50 -05:00
Nelson R. Perez 5d3e38a740 Version bump in AndroidManifest 2017-10-02 14:26:10 -05:00
Nelson R. Perez f279c5526b Version bump 2017-09-28 22:58:24 -05:00
Nelson R. Perez f643edf36e Merging Kencode's repo with NodeConnection improvements, tests and some documentation fixes 2017-09-27 23:51:37 -05:00
Nelson R. Perez 040a53f408 Adding memo deserialization 2017-09-25 22:53:30 -05:00
Nelson R. Perez 302194539e Version bump 2017-09-25 22:11:41 -05:00
Vinícius 9b292d220e Fix memo deserialization 2017-07-31 15:24:13 -03:00
Vinícius eab6990d73 Fix memo 2017-07-31 12:52:20 -03:00
Vinícius 5de20a7fc8 Improve memo test 2017-07-29 02:27:21 -03:00
Vinícius c66ed99681 Add LookupAssetSymbols and TransactionBroadcastSequence API tests 2017-07-25 20:52:15 -03:00
Vinícius 7c05b8d3db Add ListAsset and GetLookupAccount API tests 2017-07-25 15:41:33 -03:00
Vinícius 7b7fd6e74a Update Memo unit test 2017-07-24 21:49:43 -03:00
Vinícius 99769713eb Update project to minSdkVersion 9 because of usage of Arrays.copyOfRange at Address.java, Memo.java and Util.java 2017-07-24 19:46:33 -03:00
Vinícius cadcca0230 Add GetMarketHistory, GetObjects and GetRelativeAccountHistory API tests 2017-07-21 18:56:17 -03:00
Vinícius 158c9604b8 Fix GetLimitOrders listener and add GetLimitOrders and GetTradeHistory API tests 2017-07-21 13:27:51 -03:00
Vinícius a824d8fc40 Finishing base docs for all API handler classes 2017-07-20 23:47:24 -03:00
Vinícius 240cff9c7c Fix conflicts between NodeErrorListener and WitnessResponseListener 2017-07-20 19:35:37 -03:00
Vinícius e364fe678f Adding docs and some tests for a few API handler classes (GetRequiredFees, ListAssets, LookupAccounts, LookupAssetSymbols and SubscriptionMessagesHub 2017-07-20 16:37:16 -03:00
Vinícius ad2e414548 Implementating node hop at NodeConnection and tests 2017-07-20 01:23:56 -03:00
Vinícius f367eb0021 Adding docs and tests for some API handler classes (GetAccountBalances and GetAccountByName) 2017-07-19 13:48:47 -03:00
Vinícius c29830da9b Implementing add list of urls to NodeConnect 2017-07-19 12:03:15 -03:00
Vinícius 5a58cf5579 Introducing node hop feature to some blockchain API handler classes (GetRequiredFees, GetTradeHistory, ListAssets, LookupAccounts, LookupAssetSymbols and TransactionBroadcastSequence) 2017-07-19 02:39:15 -03:00
Vinícius 7313279f95 Introducing node hop feature to some blockchain API handler classes (GetBlockHeader, GetKeyReferences, GetLimitOrders, GetMarketHistory, GetObjects, GetRelativeAccountHistory) 2017-07-18 22:07:07 -03:00
Vinícius 5369976f08 Introducing node hop feature to some blockchain API handler classes (GetAccountBalances, GetAccountByName, GetAccounts and GetAllAssetHolders) 2017-07-18 15:30:22 -03:00
Nelson R. Perez f5288afde9 Introduced the AuthorityType enum class 2017-07-11 23:05:40 -05:00
Nelson R. Perez 184bbfafa3 Fixing uses of the UserAccount.toJsonString() and replacing them by the correct UserAccount.getObjectId() instead 2017-07-04 16:45:30 -05:00
Nelson R. Perez 83ffdd70f7 Fixing bug that made the GetRelativeAccountHistory class fail 2017-07-04 12:54:46 -05:00
Nelson R. Perez 50fc2d805e Introducing a couple of private variables in order to keep track of the subscription status 2017-07-03 20:05:59 -05:00
Nelson R. Perez ec19b62ba7 Renaming SUBSCRIPTION_ID to MANUAL_SUBSCRIPTION_ID to better reflect its purpose and using it as the base for subscription ids in the NodeConnection class 2017-07-03 13:50:23 -05:00
Nelson R. Perez 105d4e6d10 Exposing the 'resubscribe' method, which allows to re-establish a subscription after it was cancelled 2017-07-03 13:23:32 -05:00
Nelson R. Perez d08afaa7c0 Removing log 2017-06-28 18:19:59 -05:00
Nelson R. Perez 9ae1762fe2 Implementing a call to the 'cancel_all_subscriptions' method and its test 2017-06-28 18:19:41 -05:00
Nelson R. Perez 1f705f1a4e Make sure we have a registered handler before trying to try to call its 'onTextFrame' method 2017-06-28 17:50:28 -05:00
Nelson R. Perez 52f46da573 Adding multiplexing capabilities to the SubscriptionMessagesHub class and adapted the GetAccounts to work with it 2017-06-27 16:52:02 -05:00
Nelson R. Perez c19e618ded Applying the version bump to the manifest and other gradle files 2017-06-26 14:12:31 -05:00
Nelson R. Perez 67f3e05b5c Added the @Expose annotation to the GrapheneObject#id field 2017-06-26 14:05:33 -05:00
Nelson R. Perez 3d74a612f6 Making the PublicKey class implement the Serializable interface 2017-06-26 14:03:39 -05:00
Nelson R. Perez f59cf1afa0 Adding getter/setter to the weight_threshold field 2017-06-26 14:02:25 -05:00
Nelson R. Perez ea0bab5179 Simple renaming of a variable for semantic purposes 2017-06-26 14:01:17 -05:00
Nelson R. Perez 7b9b694a71 Implementing the UserAccount#toJsonString method 2017-06-26 13:59:43 -05:00
Nelson R. Perez 5a1c9d5834 Version bump 2017-05-20 16:31:08 -05:00
Nelson R. Perez ee78d48947 Using a long data type for the authorities weight 2017-05-20 16:18:50 -05:00
Nelson R. Perez d21fea7cb6 Adding support for account and asset deserialization to the GetObjects API call wrapper 2017-05-11 18:55:16 -05:00
Nelson R. Perez 5ff6f29ebd Adding support for selective subscription with the SubscriptionMessagesHub and related 2017-05-09 11:21:53 -05:00
Nelson R. Perez df5271ef05 Setting UTC as the time zone for the the deserialized time field in the dynamic global properties object 2017-05-03 13:20:48 -05:00
Nelson R. Perez 457164b002 Telling the Deserializing LimitOrderCreateOperation objects in the stream coming in the SubscriptionMessagesHub 2017-04-27 18:00:24 -05:00
Nelson R. Perez 37f52283a9 Introduced the DynamicGlobalPropertiesDeserializer 2017-04-27 15:16:33 -05:00
Nelson R. Perez 1c5d382891 Adding a WitnessResponseListener as a parameter for the SubscriptionMessagesHub class 2017-04-24 16:30:08 -05:00
Nelson R. Perez 88ca47c378 Fixing a problem caused by the lack of extension byte in the serialization of the AccountOption class 2017-04-19 22:22:57 -05:00
Nelson R. Perez a848c66fb9 Introducing the BaseApiTest class and making some test classes extend it 2017-04-17 16:07:05 -05:00
Nelson R. Perez c9c33566fa Reintroducing the GetKeyReferences single argument constructor in order to maintain backwards compatibility 2017-04-17 16:05:57 -05:00
Nelson R. Perez 85430b8b46 Introducing default sequence number as a constant 2017-04-14 17:41:50 -05:00
Nelson R. Perez 9b15a0b5da Making both the GetBlockHeader and GetKeyReferences extend the BaseGrapheneHandler class 2017-04-13 11:15:48 -05:00
Nelson R. Perez fb82ce660e Adding the 'retry' method to both the GetMarketHistory and GetRelativeAccountHistory API call wrappers 2017-04-13 11:14:57 -05:00
Nelson R. Perez 9addf3b77f Renamed GetAccountsByAddress to GetKeyReferences 2017-04-13 11:12:28 -05:00
Nelson R. Perez a23d059d16 Making other API classes extend the BaseGrapheneHandler 2017-04-10 16:27:56 -05:00
Nelson R. Perez eceb096607 Adding a memo getter inside the TransferOperation class 2017-04-10 12:09:17 -05:00
Nelson R. Perez 66a5ba497d Making the GetLimitOrders and TransactionBroadcastSequence implement the BaseGrapheneHandler interface 2017-04-10 12:08:51 -05:00
Nelson R. Perez 716dee58d5 Removing some autogenerated files from the repo 2017-04-06 15:39:43 -05:00
Nelson R. Perez 80358bc086 Fixed a rounding error in the OrderBook class' exchange method 2017-04-06 15:34:23 -05:00
Nelson R. Perez aa35925718 Added multiplication and division methods for the AssetAmount class 2017-04-06 12:22:57 -05:00
Nelson R. Perez 55bc4fb256 Using the LimitOrder.getForSale() method 2017-04-05 14:32:59 -05:00
Nelson R. Perez 5f08eafa4c Adjustments in the OrderBook class and adding getters & setters to the LimitOrderCreateOperation class 2017-03-29 22:22:35 -05:00
Nelson R. Perez 8bd9f293a4 Added the OrderBook class 2017-03-27 15:33:00 -05:00
Nelson R. Perez cb30d27c35 Fixing small issue that prevented the correct deserialization of the 'price' field in the LimitOrder class 2017-03-24 16:28:00 -05:00
Nelson R. Perez 207d43ddf1 Fixing test and small changes to .gitignore 2017-03-23 21:52:32 -05:00
Nelson R. Perez be494a81ee Adjusting minSdkVersion 2017-03-23 21:07:59 -05:00
Nelson R. Perez 425cb663b1 Introducing some updates required in order to make this library public via maven central 2017-03-23 16:34:11 -05:00
Nelson R. Perez c6e4b9ea5b Small changes introduced in order to publish the library to the Maven Central Repository 2017-03-22 22:54:16 -05:00
Nelson R. Perez d7019a3689 Adjusting tests 2017-03-22 16:59:11 -05:00
Nelson R. Perez aa642edce9 Added support for the limit_order_cancel_operation 2017-03-22 16:25:55 -05:00
Nelson R. Perez a9a550491b limit_order_create_operation-bearing tx is successfully being created and accepted by the network 2017-03-20 19:21:04 -05:00
Nelson R. Perez 5ee4ef77f2 Added limit_order_create_operation and implemented its toBytes and toJsonObject serialization, and a test class 2017-03-06 17:04:20 -05:00
Nelson R. Perez 867cd8d4b3 Fixing bin backups, making them completely compatible with the web wallet now 2017-03-03 22:12:33 -05:00
Nelson R. Perez 37b783ad89 Retrieving the LICENSE file and expanding the README.md 2017-03-02 00:13:44 -05:00
Nelson R. Perez 2bab1fab4f Adding support for multiple operation-tx and applying the factory pattern to every specific operation 2017-03-01 23:26:40 -05:00
Nelson R. Perez b51f21bbc5 Fixing bug in the encryption step of the wallet backup 2017-03-01 21:06:24 -05:00
Nelson R. Perez 60dabfef31 Added the subtract method to the AssetAmount class 2017-02-23 19:53:02 -05:00
Nelson R. Perez 93dd6ef1b2 Adding setters to TransferOperation 2017-02-22 23:05:14 -05:00
Nelson R. Perez f7283e26e1 Removing .class files 2017-02-19 16:27:03 -05:00
Nelson R. Perez 639bd65e78 Fixing lack of description issue 2017-02-17 19:17:49 -05:00
Nelson R. Perez d02f7092a4 Merge branch 'master' of https://github.com/kenCode-de/graphenej 2017-02-16 21:54:34 -05:00
Nelson R. Perez b5d83717a1 Returning null if either the decryption or the decompression step fails 2017-02-16 21:54:19 -05:00
Nelson R. Perez b543a1c36d Fixing potential serialization bug for the TransferOperation when no fee is specified 2017-02-16 21:53:43 -05:00
Nelson R. Perez 89a7a1423c Major structural changes to separate the library from the test app 2017-02-16 15:05:27 -05:00