Open alexlwn123 opened 1 month ago
@maan2003
this is not possible, because fedimint commits to the first json representation in the database :/
if we change it, fedimint client will become backwards incompatible
Could we just transform the shape before returning it to the caller?
If not, I'll just do that in the javascript
should do it in javascript, I don't want yet another RpcLnPayState(MaybeLoading) in rust.
Currently, the
subscribeLnReceive
andsubscribeLnPay
functions return a status with the following types:This makes pattern matching a bit ugly for the SDK because objects and strings are mixed.
Let's changes the types to have a consistent shape: