peerswap
peerswap copied to clipboard
Use the peerswaprpc proto file for shared serialization
This is for https://github.com/ElementsProject/peerswap/issues/134. This change is the serialization part for peerswapd and the cln-plugin. I use the peerswaprpc proto file for shared serialization.
The following changes will be made.
- differences in the struct's json tags.
short channel idandstatefor PeerSwapPeerChannel is converted tochannel idandactive.
I didn't expect anyone to work on this ticket. This is very late right before a release. Are you sure this change has no impact on how things currently behave?
No, this change may affect cln plugin behavior.
- We want to do a stable release soon so we don't want to change anything big in the short-term.
- This will result in API changes.
- The premium feature will require API changes.
- So it's best to merge this along with other API changes so other applications don't need to change more than once.
All of that being said, as we are close to a release, we might want to wait postpone merging this PR until the transition to the peerswaprc messages is fully completed. I do not expect the API to change that much, if at all in the meantime.
I understand the above.
I will keep the PR in draft status until merge is available.
Please let me know if there is a proper way to operate it.