Commit Graph

8 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
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 b3f908b613 Remove code parameter
- Removed from the locally triggered failures with default codes.
2023-01-25 10:35:25 +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 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
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