v0.62.0-beta
danielgranhao
released this
20 Aug 16:03
·
358 commits
to main
since this release
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