Commit Graph

18 Commits

Author SHA1 Message Date
Honza ef248c9dc5 Throw exception instead of custom error
- This step unify our approach to validation on client side across all server calls
2023-01-31 09:32:34 +01:00
Carter Jernigan b8be2a234f Hide private variables 2023-01-30 14:47:10 -05:00
Carter Jernigan f089fb5424 Remove private field from public documentation 2023-01-30 14:18:51 -05:00
Honza e2d1d93ac2 Unify new clients instances name 2023-01-29 18:37:44 +01:00
Honza f569677fec Update proto files
- Plus related api changes adoption
2023-01-29 18:19:34 +01:00
Honza c55d7ef96a Switch from empty response to exception
- Our server calls now rather throw IllegalArgumentException than return an empty response
- Removed commented out log message
- Updated javadocs
2023-01-25 12:55:42 +01:00
Honza 2abc7ae2e6 Address several minor change requests 2023-01-24 16:14:44 +01:00
Honza 2b834013cb fetchUtxos returns flow
- Switched fetchUtxos() to return Flow of Service.GetAddressUtxosReply
- Internally it calls getAddressUtxosStream() instead of getAddressUtxos() from GRPC layer
2023-01-24 13:33:28 +01:00
Honza 0f1663f02c Unify return type of collection returning methods
- Switched fetchUtxos() to return Sequence instead of List
- Added a check on empty tAddress input
2023-01-24 11:41:20 +01:00
Honza 51d061ef1f Remove commented out log 2023-01-24 11:28:57 +01:00
Honza 703d4034af Refactor fetchTransaction() to work with Response
- Refactored this server call to adopt our new Response mechanism
- GrpsStatusResolver.resolveFailureFromStatus() now accepts Throwable input
- Added Response.Failure.toThrowable() to satisfy subsequent server calls results processing
- A few other minor refactoring changes
2023-01-23 17:18:20 +01:00
Honza 72f3790e22 Add simple fixture test 2023-01-23 11:53:39 +01:00
Honza 115ede75e8 Enhance Connection failure type 2023-01-23 11:16:32 +01:00
Honza 64e5a5cfa5 Adopt enhanced GRPC response model
- Adopted in a few endpoints
2023-01-16 17:50:36 +01:00
Honza 785817ce3d Enhance GRPC Response model 2023-01-16 17:41:44 +01:00
Honza b1b474af5b Repackage cash.z.wallet.sdk.rpc to cash.z.wallet.sdk.internal.rpc 2023-01-11 16:18:33 +01:00
Honza e7e0424d1f Fix benchmarking for networking module
- Moved to fixture and build type check components to the new networking module, so it's accessible from all needed parts of the projects
- Changed fixture return type to fit to all needed usages
2023-01-10 15:25:01 +01:00
Carter Jernigan b58ffec5ba [#615] Refactor lightwalletd client
This moves the lightwalletd client code to a separate Gradle module, but does not yet do much clean up the public API (e.g. hiding generated GRPC objects).  That will be a followon change via #673

I’ve prototyped a safer version of the API that would be implemented for #673 for two specific calls: obtaining the current block height and obtaining the light wallet info.  These were the easiest endpoints to update and they provide a useful exploration for the future changes needed.
2022-09-14 15:33:36 -04:00