v0.66.0-beta
danielgranhao
released this
10 Oct 14:32
·
209 commits
to main
since this release
What's Changed
- Fix exchange rate monitor test by @danielgranhao in #1212
- Improve mocking by @gcomte in #1214
- Mock different key pair per node instance by @gcomte in #1216
- Bump uniffi from 0.28.1 to 0.28.2 by @dependabot in #1218
- Bump bip39 from 2.0.0 to 2.1.0 by @dependabot in #1213
- Make tests work with mocked interfaces by @gcomte in #1219
- Implement failed swap handling improvements by @danielgranhao in #1215
- Expose swap txid by @danielgranhao in #1220
- Fix missing method in UDL file by @danielgranhao in #1222
UDL Changes:
index c047fd5..1154f91 100644
--- a/src/lipalightninglib.udl
+++ b/src/lipalightninglib.udl
@@ -91,6 +91,9 @@ interface LightningNode {
[Throws=LnError]
void hide_channel_closes_funds_available_action_required_item();
+
+ [Throws=LnError]
+ void hide_unresolved_failed_swap_action_required_item(FailedSwapInfo failed_swap_info);
[Throws=LnError]
sequence<OfferInfo> query_uncompleted_offers();
@@ -114,28 +117,34 @@ interface LightningNode {
u32 query_onchain_fee_rate();
[Throws=SweepError]
- SweepInfo prepare_sweep(string address, u32 onchain_fee_rate);
+ SweepInfo prepare_sweep_funds_from_channel_closes(string address, u32 onchain_fee_rate);
[Throws=LnError]
- string sweep(SweepInfo sweep_info);
+ string sweep_funds_from_channel_closes(SweepInfo sweep_info);
[Throws=SwapError]
SwapAddressInfo generate_swap_address(OpeningFeeParams? lsp_fee_params);
[Throws=LnError]
sequence<FailedSwapInfo> get_unresolved_failed_swaps();
+
+ [Throws=LnError]
+ OnchainResolvingFees? get_failed_swap_resolving_fees(FailedSwapInfo failed_swap_info);
[Throws=LnError]
ResolveFailedSwapInfo prepare_resolve_failed_swap(FailedSwapInfo failed_swap_info, string to_address, u32 onchain_fee_rate);
+ [Throws=LnError]
+ string swap_failed_swap_funds_to_lightning(FailedSwapInfo failed_swap_info, u32 sat_per_vbyte, OpeningFeeParams? lsp_fee_param);
+
[Throws=LnError]
string resolve_failed_swap(ResolveFailedSwapInfo resolve_failed_swap_info);
[Throws=LnError]
- ChannelCloseResolvingFees? get_channel_close_resolving_fees();
+ OnchainResolvingFees? get_channel_close_resolving_fees();
[Throws=SweepError]
- string swap_onchain_to_lightning(u32 sats_per_vbyte, OpeningFeeParams? lsp_fee_params);
+ string swap_channel_close_funds_to_lightning(u32 sats_per_vbyte, OpeningFeeParams? lsp_fee_params);
[Throws=LnError]
void hide_topup(string id);
@@ -575,6 +584,7 @@ dictionary SwapInfo {
string bitcoin_address;
TzTime created_at;
Amount paid_amount;
+ string txid;
};
dictionary ReverseSwapInfo {
@@ -649,7 +659,7 @@ dictionary ClearWalletInfo {
PrepareOnchainPaymentResponse prepare_response;
};
-dictionary ChannelCloseResolvingFees {
+dictionary OnchainResolvingFees {
SwapToLightningFees? swap_fees;
Amount sweep_onchain_fee_estimate;
u32 sat_per_vbyte;
Full Changelog: v0.65.2-beta...v0.66.0-beta