Releases: getlipa/lipa-lightning-lib
Releases · getlipa/lipa-lightning-lib
v0.65.2-beta
What's Changed
- Check the length of the vector before splitting off by @andrei-21 in #1210
- Fix warning about filename collision when building pocket mock by @andrei-21 in #1211
Full Changelog: v0.65.1-beta...v0.65.2-beta
v0.65.1-beta
What's Changed
- Return the same pending activities by @andrei-21 in #1209
Full Changelog: v0.65.0-beta...v0.65.1-beta
v0.65.0-beta
What's Changed
- Stop using tee and just cat test.json by @danielgranhao in #1201
- Fix asserting receiver has enough inbound by @gcomte in #1203
- Add leeway to exchange rate monitoring test by @danielgranhao in #1202
- Refactor monitortest by @gcomte in #1204
- Bump regex from 1.10.6 to 1.11.0 by @dependabot in #1206
- Remove LDK funds migration code by @andrei-21 in #1208
UDL Changes
@@ -767,7 +767,6 @@ enum RuntimeErrorCode {
"BackupServiceUnavailable",
"BackupNotFound",
"NodeUnavailable",
- "FailedFundMigration",
};
Full Changelog: v0.64.0-beta...v0.65.0-beta
v0.64.0-beta
What's Changed
- Fix monitor test exit code getting lost due to use of tee by @danielgranhao in #1199
- Expose reverse swap onchain fees by @danielgranhao in #1200
UDL Changes
index 6f56078..5c23c1b 100644
--- a/src/lipalightninglib.udl
+++ b/src/lipalightninglib.udl
@@ -579,6 +579,7 @@ dictionary SwapInfo {
dictionary ReverseSwapInfo {
Amount paid_onchain_amount;
+ Amount swap_fees_amount;
string? claim_txid;
ReverseSwapStatus status;
};
Full Changelog: v0.63.0-beta...v0.64.0-beta
v0.63.0-beta
What's Changed
- Mock lnurlp comment by @gcomte in #1065
- Implement mocking of channels by @danielgranhao in #1067
- Update Breez SDK version in Breez SDK mock by @gcomte in #1071
- Remove mock syncs as part of other methods by @danielgranhao in #1074
- Mock all remaining Lipa backend calls by @gcomte in #1075
- Improve LSP fee mocking by @danielgranhao in #1081
- Enable case insensitive mock commands by @gcomte in #1097
- Trim mock commands by @gcomte in #1098
- Update breez-sdk mock to the new pay on-chain API by @andrei-21 in #1111
- Fix mocked lipa LN address suffix by @gcomte in #1101
- Bump serde_json from 1.0.122 to 1.0.124 by @dependabot in #1163
- Bump serde from 1.0.204 to 1.0.206 by @dependabot in #1164
- Bump serde from 1.0.206 to 1.0.207 by @dependabot in #1165
- bump serde from 1.0.207 to 1.0.208 by @dependabot in #1170
- Bump camino from 1.1.7 to 1.1.8 by @dependabot in #1169
- Bump serde_json from 1.0.124 to 1.0.125 by @dependabot in #1168
- Bump camino from 1.1.8 to 1.1.9 by @dependabot in #1172
- Bump tokio from 1.39.2 to 1.39.3 by @dependabot in #1171
- Use Config for all parameters by @danielgranhao in #1167
- Use accept terms and conditions v2 by @danielgranhao in #1166
- Fix out of date info.plist and stop use of letter chars in version by @danielgranhao in #1174
- Remove no onchain funds runtime error by @danielgranhao in #1177
- Bump serde_json from 1.0.125 to 1.0.127 by @dependabot in #1176
- Bump tokio from 1.39.3 to 1.40.0 by @dependabot in #1178
- Bump serde from 1.0.208 to 1.0.209 by @dependabot in #1175
- Replace BACKEND_URL_LOCAL by @andrei-21 in #1179
- Decrypt phone number ln addresses in lnurl recipient field by @gcomte in #1180
- Bump serde_json from 1.0.127 to 1.0.128 by @dependabot in #1181
- Store t&c version number in mock by @gcomte in #1182
- Revert "Merge pull request #1180 from getlipa/fix/decrypt-phone-numbe… by @gcomte in #1183
- Bump anyhow from 1.0.86 to 1.0.87 by @dependabot in #1184
- Stop reporting analytics data from tests by @gcomte in #1187
- Bump serde from 1.0.209 to 1.0.210 by @dependabot in #1185
- Bump anyhow from 1.0.87 to 1.0.88 by @dependabot in #1186
- Bump anyhow from 1.0.88 to 1.0.89 by @dependabot in #1189
- Bump unicode-segmentation from 1.11.0 to 1.12.0 by @dependabot in #1188
- Add E2E tests to periodically test GL/Breez/Backend-integration by @gcomte in #1190
- Merge mock by @danielgranhao in #1191
- Report monitoring results to slack by @danielgranhao in #1194
- Use tee on monitor test run and report workflow URL by @danielgranhao in #1196
- Upgrade Breez SDK to 0.6.1 by @danielgranhao in #1198
UDL Changes
index 910cc76..6f56078 100644
--- a/src/lipalightninglib.udl
+++ b/src/lipalightninglib.udl
@@ -259,7 +259,8 @@ dictionary NodeInfo {
dictionary ChannelsInfo {
Amount local_balance;
- Amount inbound_capacity;
+ Amount max_receivable_single_payment;
+ Amount total_inbound_capacity;
Amount outbound_capacity;
};
Full Changelog: v0.61.0-beta...v0.63.0-beta
v0.62.3-beta
What's Changed
- Bump serde_json from 1.0.127 to 1.0.128 by @dependabot in #1181
- Revert "Merge pull request #1180 from getlipa/fix/decrypt-phone-numbe… by @gcomte in #1183
Full Changelog: v0.62.2-beta...v0.62.3-beta
v0.62.2-beta
What's Changed
- Remove no onchain funds runtime error by @danielgranhao in #1177
- Bump serde_json from 1.0.125 to 1.0.127 by @dependabot in #1176
- Bump tokio from 1.39.3 to 1.40.0 by @dependabot in #1178
- Bump serde from 1.0.208 to 1.0.209 by @dependabot in #1175
- Replace BACKEND_URL_LOCAL by @andrei-21 in #1179
- Decrypt phone number ln addresses in lnurl recipient field by @gcomte in #1180
Full Changelog: v0.62.1-beta...v0.62.2-beta
v0.62.1-beta
What's Changed
- Fix out of date info.plist and stop use of letter chars in version by @danielgranhao in #1174
Full Changelog: v0.62.0-beta...v0.62.1-beta
v0.62.0-beta
What's Changed
- Bump serde_json from 1.0.122 to 1.0.124 by @dependabot in #1163
- Bump serde from 1.0.204 to 1.0.206 by @dependabot in #1164
- Bump serde from 1.0.206 to 1.0.207 by @dependabot in #1165
- bump serde from 1.0.207 to 1.0.208 by @dependabot in #1170
- Bump camino from 1.1.7 to 1.1.8 by @dependabot in #1169
- Bump serde_json from 1.0.124 to 1.0.125 by @dependabot in #1168
- Bump camino from 1.1.8 to 1.1.9 by @dependabot in #1172
- Bump tokio from 1.39.2 to 1.39.3 by @dependabot in #1171
- Use Config for all parameters by @danielgranhao in #1167
- Use accept terms and conditions v2 by @danielgranhao in #1166
UDL Changes
index 6181cdf..9f8f92e 100644
--- a/src/lipalightninglib.udl
+++ b/src/lipalightninglib.udl
@@ -75,7 +75,7 @@ interface LightningNode {
void change_timezone_config(TzConfig timezone_config);
[Throws=LnError]
- void accept_pocket_terms_and_conditions(i64 version);
+ void accept_pocket_terms_and_conditions(i64 version, string fingerprint);
[Throws=LnError]
TermsAndConditionsStatus get_terms_and_conditions_status(TermsAndConditions terms_and_conditions);
@@ -184,20 +184,40 @@ interface LightningNode {
};
dictionary Config {
- EnvironmentCode environment;
bytes seed;
string fiat_currency;
string local_persistence_path;
TzConfig timezone_config;
Level? file_logging_level;
sequence<string> phone_number_allowed_countries_iso_3166_1_alpha_2;
+ RemoteServicesConfig remote_services_config;
+ BreezSdkConfig breez_sdk_config;
+ MaxRoutingFeeConfig max_routing_fee_config;
+ ReceiveLimitsConfig receive_limits_config;
};
-enum EnvironmentCode {
- "Local",
- "Dev",
- "Stage",
- "Prod",
+dictionary RemoteServicesConfig {
+ string backend_url;
+ string pocket_url;
+ string notification_webhook_base_url;
+ string notification_webhook_secret_hex;
+ string lipa_lightning_domain;
+};
+
+dictionary BreezSdkConfig {
+ string breez_sdk_api_key;
+ string breez_sdk_partner_certificate;
+ string breez_sdk_partner_key;
+};
+
+dictionary MaxRoutingFeeConfig {
+ u16 max_routing_fee_permyriad;
+ u64 max_routing_fee_exempt_fee_sats;
+};
+
+dictionary ReceiveLimitsConfig {
+ u64 max_receive_amount_sat;
+ f64 min_receive_channel_open_fee_multiplier;
};
dictionary TzConfig {
@@ -673,13 +693,13 @@ namespace lipalightninglib {
sequence<string> words_by_prefix(string prefix);
[Throws=LnError]
- void accept_terms_and_conditions(EnvironmentCode environment, bytes seed, i64 version);
+ void accept_terms_and_conditions(string backend_url, bytes seed, i64 version, string fingerprint);
[Throws=LnError]
- TermsAndConditionsStatus get_terms_and_conditions_status(EnvironmentCode environment, bytes seed, TermsAndConditions terms_and_conditions);
+ TermsAndConditionsStatus get_terms_and_conditions_status(string backend_url, bytes seed, TermsAndConditions terms_and_conditions);
[Throws=LnError]
- void recover_lightning_node(EnvironmentCode environment, bytes seed, string local_persistence_path, Level? file_logging_level);
+ void recover_lightning_node(string backend_url, bytes seed, string local_persistence_path, Level? file_logging_level);
[Throws=ParseError]
void parse_lightning_address([ByRef] string address);
Full Changelog: v0.61.0-beta...v0.62.0-beta
v0.61.0-beta
What's Changed
- Bump email_address from 0.2.7 to 0.2.9 by @dependabot in #1155
- Bump serde_json from 1.0.121 to 1.0.122 by @dependabot in #1157
- Bump crossterm from 0.27.0 to 0.28.1 by @dependabot in #1158
- Bump regex from 1.10.5 to 1.10.6 by @dependabot in #1159
- Bump Breez SDK to 0.5.2 by @danielgranhao in #1160
UDL Changes
index 8fa9534..6181cdf 100644
--- a/src/lipalightninglib.udl
+++ b/src/lipalightninglib.udl
@@ -113,7 +113,7 @@ interface LightningNode {
[Throws=LnError]
u32 query_onchain_fee_rate();
- [Throws=LnError]
+ [Throws=SweepError]
SweepInfo prepare_sweep(string address, u32 onchain_fee_rate);
[Throws=LnError]
@@ -134,7 +134,7 @@ interface LightningNode {
[Throws=LnError]
ChannelCloseResolvingFees? get_channel_close_resolving_fees();
- [Throws=SwapError]
+ [Throws=SweepError]
string swap_onchain_to_lightning(u32 sats_per_vbyte, OpeningFeeParams? lsp_fee_params);
[Throws=LnError]
@@ -838,6 +838,13 @@ interface SwapError {
SwapInProgress(string err);
};
+[Error]
+interface SweepError {
+ Generic(string err);
+ ServiceConnectivity(string err);
+ InsufficientFunds(string err);
+};
+
[Error]
interface NotificationHandlingError {
InvalidInput(string msg);
Full Changelog: v0.60.1-beta...v0.61.0-beta