From 052cace7637acd85453822b4822b9061300b7da2 Mon Sep 17 00:00:00 2001 From: Gabriel Comte Date: Fri, 29 Nov 2024 21:02:57 +0100 Subject: [PATCH 1/4] Use newest wild version --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 14 +++++++------- mock/wild/chameleon/Cargo.toml | 4 ++-- mock/wild/crow/Cargo.toml | 4 ++-- mock/wild/honeybadger/Cargo.toml | 4 ++-- mock/wild/parrot/Cargo.toml | 4 ++-- mock/wild/pigeon/Cargo.toml | 2 +- mock/wild/squirrel/Cargo.toml | 4 ++-- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ff528809..509a4da9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -844,7 +844,7 @@ dependencies = [ [[package]] name = "chameleon" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "graphql", "honeybadger", @@ -1069,7 +1069,7 @@ dependencies = [ [[package]] name = "crow" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "graphql", "honeybadger", @@ -1766,7 +1766,7 @@ dependencies = [ [[package]] name = "graphql" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "chrono", "graphql_client", @@ -1976,7 +1976,7 @@ dependencies = [ [[package]] name = "honeybadger" version = "1.0.1" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "base64 0.22.1", "bdk", @@ -3138,7 +3138,7 @@ dependencies = [ [[package]] name = "parrot" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "graphql", "honeybadger", @@ -3357,7 +3357,7 @@ dependencies = [ [[package]] name = "pigeon" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "graphql", "honeybadger", @@ -4683,7 +4683,7 @@ dependencies = [ [[package]] name = "squirrel" version = "0.1.0" -source = "git+https://github.com/getlipa/wild?tag=v1.27.0#163d61d0be9ca73644389ec53014a2ec2ec474c1" +source = "git+https://github.com/getlipa/wild?tag=v1.28.0#8ad85fa3020046a042614c2da7d6f513661311da" dependencies = [ "bdk", "graphql", diff --git a/Cargo.toml b/Cargo.toml index 84957c69..df23e7e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,19 +19,19 @@ parser = { path = "parser" } pocketclient = { path = "pocketclient", optional = true } pocketclient-mock = { path = "mock/pocketclient", optional = true } -chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } chameleon-mock = { path = "mock/wild/chameleon", optional = true } -crow = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +crow = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } crow-mock = { path = "mock/wild/crow", optional = true } -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } -honeybadger = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } +honeybadger = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } honeybadger-mock = { path = "mock/wild/honeybadger", optional = true } -parrot = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +parrot = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } parrot-mock = { path = "mock/wild/parrot", optional = true } perro = { git = "https://github.com/getlipa/perro", tag = "v1.2.0" } -pigeon = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +pigeon = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } pigeon-mock = { path = "mock/wild/pigeon", optional = true } -squirrel = { git = "https://github.com/getlipa/wild", tag = "v1.27.0", optional = true } +squirrel = { git = "https://github.com/getlipa/wild", tag = "v1.28.0", optional = true } squirrel-mock = { path = "mock/wild/squirrel", optional = true } breez-sdk-core = { git = "https://github.com/breez/breez-sdk", tag = "0.6.4", optional = true } diff --git a/mock/wild/chameleon/Cargo.toml b/mock/wild/chameleon/Cargo.toml index 2860fb46..76c53e08 100644 --- a/mock/wild/chameleon/Cargo.toml +++ b/mock/wild/chameleon/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" name = "chameleon" [dependencies] -chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +chameleon = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } honeybadger-mock = { path = "../honeybadger" } lazy_static = "1.4.0" rand = "0.8.5" diff --git a/mock/wild/crow/Cargo.toml b/mock/wild/crow/Cargo.toml index 6f7b300b..aef9800d 100644 --- a/mock/wild/crow/Cargo.toml +++ b/mock/wild/crow/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" name = "crow" [dependencies] -crow = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +crow = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } honeybadger-mock = { path = "../honeybadger" } isocountry = { version = "0.3.2" } isolanguage-1 = { version = "0.2.2" } diff --git a/mock/wild/honeybadger/Cargo.toml b/mock/wild/honeybadger/Cargo.toml index d0538372..cf7e7400 100644 --- a/mock/wild/honeybadger/Cargo.toml +++ b/mock/wild/honeybadger/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" name = "honeybadger" [dependencies] -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } -honeybadger = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } +honeybadger = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } rand = "0.8.5" secp256k1 = { version = "0.27.0", features = ["global-context"] } tokio = "1.37.0" diff --git a/mock/wild/parrot/Cargo.toml b/mock/wild/parrot/Cargo.toml index 5ddd8ee3..07b340ec 100644 --- a/mock/wild/parrot/Cargo.toml +++ b/mock/wild/parrot/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" name = "parrot" [dependencies] -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } honeybadger-mock = { path = "../honeybadger" } -parrot = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +parrot = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } diff --git a/mock/wild/pigeon/Cargo.toml b/mock/wild/pigeon/Cargo.toml index fd1366dc..f78de1ca 100644 --- a/mock/wild/pigeon/Cargo.toml +++ b/mock/wild/pigeon/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" name = "pigeon" [dependencies] -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } honeybadger-mock = { path = "../honeybadger" } lazy_static = "1.4.0" diff --git a/mock/wild/squirrel/Cargo.toml b/mock/wild/squirrel/Cargo.toml index d16e696a..b5a00b6c 100644 --- a/mock/wild/squirrel/Cargo.toml +++ b/mock/wild/squirrel/Cargo.toml @@ -7,6 +7,6 @@ edition = "2021" name = "squirrel" [dependencies] -graphql = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +graphql = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } honeybadger-mock = { path = "../honeybadger" } -squirrel = { git = "https://github.com/getlipa/wild", tag = "v1.27.0" } +squirrel = { git = "https://github.com/getlipa/wild", tag = "v1.28.0" } From 42986f01e3277be9331fe24886588711b83a0821 Mon Sep 17 00:00:00 2001 From: Gabriel Comte Date: Mon, 2 Dec 2024 11:30:41 +0100 Subject: [PATCH 2/4] Add referreal code to topup registration --- examples/node/cli.rs | 11 ++++++----- mock/wild/crow/src/lib.rs | 7 ++++++- src/fiat_topup.rs | 13 +++++++++++-- src/lib.rs | 5 ++++- src/lipalightninglib.udl | 4 ++-- tests/topup_test.rs | 30 +++++++++++++++++++++++++++--- 6 files changed, 56 insertions(+), 14 deletions(-) diff --git a/examples/node/cli.rs b/examples/node/cli.rs index db491e6a..456e9e60 100644 --- a/examples/node/cli.rs +++ b/examples/node/cli.rs @@ -433,7 +433,7 @@ fn setup_editor(history_path: &Path) -> Editor { )); hints.insert(CommandHint::new( - "registertopup [email]", + "registertopup [email] [referral code]", "registertopup ", )); hints.insert(CommandHint::new("resettopup", "resettopup")); @@ -559,7 +559,7 @@ fn help() { println!(" getfailedswapresolvingfees "); println!(" refundfailedswap "); println!(); - println!(" registertopup [email]"); + println!(" registertopup [email] [referral code]"); println!(" resettopup"); println!(" getregisteredtopup"); println!(" listoffers"); @@ -1152,10 +1152,11 @@ fn register_topup(node: &LightningNode, words: &mut dyn Iterator) - let currency = words.next().ok_or(anyhow!("Currency is required"))?; let email = words.next().map(String::from); + let referral = words.next().map(String::from); - let topup_info = node - .fiat_topup() - .register(email, iban.to_string(), currency.to_string())?; + let topup_info = + node.fiat_topup() + .register(email, referral, iban.to_string(), currency.to_string())?; println!("{topup_info:?}"); Ok(()) diff --git a/mock/wild/crow/src/lib.rs b/mock/wild/crow/src/lib.rs index 5d7a08bd..1f1c3393 100644 --- a/mock/wild/crow/src/lib.rs +++ b/mock/wild/crow/src/lib.rs @@ -27,7 +27,12 @@ impl OfferManager { Self {} } - pub fn register_topup(&self, order_id: String, email: Option) -> graphql::Result<()> { + pub fn register_topup( + &self, + order_id: String, + email: Option, + _referral: Option, + ) -> graphql::Result<()> { let mut status = TopupStatus::READY; if let Some(email) = email { diff --git a/src/fiat_topup.rs b/src/fiat_topup.rs index d91c3b1f..59f1d7a5 100644 --- a/src/fiat_topup.rs +++ b/src/fiat_topup.rs @@ -75,10 +75,11 @@ impl FiatTopup { pub fn register( &self, email: Option, + referral: Option, user_iban: String, user_currency: String, ) -> Result { - debug!("fiat_topup().register() - called with - email: {email:?} - user_iban: {user_iban} - user_currency: {user_currency:?}"); + debug!("fiat_topup().register() - called with - email: {email:?} - referral code: {referral:?} - user_iban: {user_iban} - user_currency: {user_currency:?}"); user_iban .parse::() .map_to_invalid_input("Invalid user_iban")?; @@ -87,6 +88,14 @@ impl FiatTopup { EmailAddress::from_str(email).map_to_invalid_input("Invalid email")?; } + if let Some(referral) = referral.as_ref() { + let string_length = referral.len(); + // todo take valid length from remote config + if referral.len() > 30 { + invalid_input!("Invalid referral code [string length: {string_length}]"); + } + } + let sdk = Arc::clone(&self.support.sdk); let sign_message = |message| async move { sdk.sign_message(SignMessageRequest { message }) @@ -116,7 +125,7 @@ impl FiatTopup { self.support .offer_manager - .register_topup(topup_info.order_id.clone(), email) + .register_topup(topup_info.order_id.clone(), email, referral) .map_runtime_error_to(RuntimeErrorCode::OfferServiceUnavailable)?; Ok(topup_info) diff --git a/src/lib.rs b/src/lib.rs index 86f9d044..dda53d42 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1054,6 +1054,7 @@ impl LightningNode { /// /// Parameters: /// * `email` - this email will be used to send status information about different topups + /// * `referral` - the referral code of another user /// * `user_iban` - the user will send fiat from this iban /// * `user_currency` - the fiat currency (ISO 4217 currency code) that will be sent for /// exchange. Not all are supported. A consumer of this library should find out about available @@ -1064,10 +1065,12 @@ impl LightningNode { pub fn register_fiat_topup( &self, email: Option, + referral: Option, user_iban: String, user_currency: String, ) -> Result { - self.fiat_topup.register(email, user_iban, user_currency) + self.fiat_topup + .register(email, referral, user_iban, user_currency) } /// Resets a previous fiat topups registration. diff --git a/src/lipalightninglib.udl b/src/lipalightninglib.udl index ab7c8178..7965ea8e 100644 --- a/src/lipalightninglib.udl +++ b/src/lipalightninglib.udl @@ -85,7 +85,7 @@ interface LightningNode { TermsAndConditionsStatus get_terms_and_conditions_status(TermsAndConditions terms_and_conditions); [Throws=LnError] - FiatTopupInfo register_fiat_topup(string? email, string user_iban, string user_currency); + FiatTopupInfo register_fiat_topup(string? email, string? referral_code, string user_iban, string user_currency); [Throws=LnError] void reset_fiat_topup(); @@ -285,7 +285,7 @@ interface FiatTopup { TermsAndConditionsStatus query_tc_status(); [Throws=LnError] - FiatTopupInfo register(string? email, string user_iban, string user_currency); + FiatTopupInfo register(string? email, string? referral_code, string user_iban, string user_currency); [Throws=LnError] void reset(); diff --git a/tests/topup_test.rs b/tests/topup_test.rs index 537ff8b4..b2ef8e6d 100644 --- a/tests/topup_test.rs +++ b/tests/topup_test.rs @@ -14,20 +14,36 @@ fn test_topup() { let node = start_node().unwrap(); node.fiat_topup() - .register(None, "CH8689144834469929874".to_string(), "CHF".to_string()) + .register( + None, + Some("123456789".to_string()), + "CH8689144834469929874".to_string(), + "CHF".to_string(), + ) .expect("Couldn't register topup without email"); node.fiat_topup() .register( Some("alice-topup@integration.lipa.swiss".to_string()), + None, + "CH8689144834469929874".to_string(), + "CHF".to_string(), + ) + .expect("Couldn't register topup without referral code"); + + node.fiat_topup() + .register( + Some("alice-topup@integration.lipa.swiss".to_string()), + None, "CH0389144436836555818".to_string(), "chf".to_string(), ) - .expect("Couldn't register topup with email"); + .expect("Couldn't register topup with email and referral code"); node.fiat_topup() .register( Some("alice-topup@integration.lipa.swiss".to_string()), + Some("123456789".to_string()), "CH9289144414389576442".to_string(), "chf".to_string(), ) @@ -36,6 +52,7 @@ fn test_topup() { node.fiat_topup() .register( Some("alice-topup2@integration.lipa.swiss".to_string()), + None, "CH9289144414389576442".to_string(), "chf".to_string(), ) @@ -43,6 +60,7 @@ fn test_topup() { let result = node.fiat_topup().register( Some("alice-topup@integration.lipa.swiss".to_string()), + None, "INVALID_IBAN".to_string(), "chf".to_string(), ); @@ -55,7 +73,12 @@ fn test_topup() { // `DK1125112511251125` triggers a new topup ready to be collected node.fiat_topup() - .register(None, "DK1125112511251125".to_string(), "eur".to_string()) + .register( + None, + None, + "DK1125112511251125".to_string(), + "eur".to_string(), + ) .unwrap(); wait_for_condition!( @@ -85,6 +108,7 @@ fn test_topup() { node.fiat_topup() .register( Some("refund@top.up".to_string()), + None, "DK2225222522252225".to_string(), "eur".to_string(), ) From 9d32b509e03d094f43fb80147c824c14ed124370 Mon Sep 17 00:00:00 2001 From: Gabriel Comte Date: Mon, 2 Dec 2024 13:20:02 +0100 Subject: [PATCH 3/4] Make max referral code size configurable --- examples/node/main.rs | 1 + examples/notification_handler/main.rs | 1 + src/fiat_topup.rs | 3 +-- src/lipalightninglib.udl | 1 + src/node_config.rs | 1 + tests/register_node_test.rs | 1 + tests/setup/mod.rs | 2 ++ tests/topup_test.rs | 10 ++++++++++ 8 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/node/main.rs b/examples/node/main.rs index d8c71a72..33fb9760 100644 --- a/examples/node/main.rs +++ b/examples/node/main.rs @@ -86,6 +86,7 @@ fn main() { max_receive_amount_sat: 1_000_000, min_receive_channel_open_fee_multiplier: 2.0, }, + topup_referral_code_max_length: 40, }; let node = LightningNode::new(config, events).unwrap(); diff --git a/examples/notification_handler/main.rs b/examples/notification_handler/main.rs index c73b427c..7e3dff20 100644 --- a/examples/notification_handler/main.rs +++ b/examples/notification_handler/main.rs @@ -154,6 +154,7 @@ fn get_config() -> LightningNodeConfig { max_receive_amount_sat: 1_000_000, min_receive_channel_open_fee_multiplier: 2.0, }, + topup_referral_code_max_length: 40, } } diff --git a/src/fiat_topup.rs b/src/fiat_topup.rs index 59f1d7a5..cebed147 100644 --- a/src/fiat_topup.rs +++ b/src/fiat_topup.rs @@ -90,8 +90,7 @@ impl FiatTopup { if let Some(referral) = referral.as_ref() { let string_length = referral.len(); - // todo take valid length from remote config - if referral.len() > 30 { + if referral.len() > self.support.node_config.topup_referral_code_max_length as usize { invalid_input!("Invalid referral code [string length: {string_length}]"); } } diff --git a/src/lipalightninglib.udl b/src/lipalightninglib.udl index 7965ea8e..ccda936c 100644 --- a/src/lipalightninglib.udl +++ b/src/lipalightninglib.udl @@ -445,6 +445,7 @@ dictionary LightningNodeConfig { BreezSdkConfig breez_sdk_config; MaxRoutingFeeConfig max_routing_fee_config; ReceiveLimitsConfig receive_limits_config; + u32 topup_referral_code_max_length; }; dictionary RemoteServicesConfig { diff --git a/src/node_config.rs b/src/node_config.rs index 66cabe21..4c47e9ce 100644 --- a/src/node_config.rs +++ b/src/node_config.rs @@ -28,6 +28,7 @@ pub struct LightningNodeConfig { pub breez_sdk_config: BreezSdkConfig, pub max_routing_fee_config: MaxRoutingFeeConfig, pub receive_limits_config: ReceiveLimitsConfig, + pub topup_referral_code_max_length: u32, } #[derive(Debug, Clone)] diff --git a/tests/register_node_test.rs b/tests/register_node_test.rs index d48ce101..2d4a1231 100644 --- a/tests/register_node_test.rs +++ b/tests/register_node_test.rs @@ -63,6 +63,7 @@ fn test_register_node() { max_receive_amount_sat: 1_000_000, min_receive_channel_open_fee_multiplier: 2.0, }, + topup_referral_code_max_length: 40, }; let events_handler = PrintEventsHandler {}; diff --git a/tests/setup/mod.rs b/tests/setup/mod.rs index 5e5b3df5..b2812b4b 100644 --- a/tests/setup/mod.rs +++ b/tests/setup/mod.rs @@ -13,6 +13,7 @@ use std::string::ToString; type Result = std::result::Result>; const LOCAL_PERSISTENCE_PATH: &str = ".3l_local_test"; +pub const MAX_REFERRAL_CODE_LENGTH: u32 = 40; #[allow(dead_code)] #[derive(Debug, Clone)] @@ -144,6 +145,7 @@ pub fn start_specific_node( max_receive_amount_sat: 1_000_000, min_receive_channel_open_fee_multiplier: 2.0, }, + topup_referral_code_max_length: MAX_REFERRAL_CODE_LENGTH, }; let node = LightningNode::new(config, events_callback)?; diff --git a/tests/topup_test.rs b/tests/topup_test.rs index b2ef8e6d..525852dc 100644 --- a/tests/topup_test.rs +++ b/tests/topup_test.rs @@ -40,6 +40,16 @@ fn test_topup() { ) .expect("Couldn't register topup with email and referral code"); + let too_long_referral_code = "12345678901234567890123456789012345678901".to_string(); + assert!(too_long_referral_code.len() > setup::MAX_REFERRAL_CODE_LENGTH as usize); + let result = node.fiat_topup().register( + Some("alice-topup@integration.lipa.swiss".to_string()), + Some(too_long_referral_code), + "CH9289144414389576442".to_string(), + "chf".to_string(), + ); + assert!(matches!(result, Err(InvalidInput { .. }))); + node.fiat_topup() .register( Some("alice-topup@integration.lipa.swiss".to_string()), From c789ad434e630c0f84740af800a933701e41e633 Mon Sep 17 00:00:00 2001 From: Gabriel Comte Date: Mon, 2 Dec 2024 14:52:32 +0100 Subject: [PATCH 4/4] Don't parametrize referral code in deprecated method --- src/lib.rs | 3 +-- src/lipalightninglib.udl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dda53d42..a84c5c5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1065,12 +1065,11 @@ impl LightningNode { pub fn register_fiat_topup( &self, email: Option, - referral: Option, user_iban: String, user_currency: String, ) -> Result { self.fiat_topup - .register(email, referral, user_iban, user_currency) + .register(email, None, user_iban, user_currency) } /// Resets a previous fiat topups registration. diff --git a/src/lipalightninglib.udl b/src/lipalightninglib.udl index ccda936c..459ebe76 100644 --- a/src/lipalightninglib.udl +++ b/src/lipalightninglib.udl @@ -85,7 +85,7 @@ interface LightningNode { TermsAndConditionsStatus get_terms_and_conditions_status(TermsAndConditions terms_and_conditions); [Throws=LnError] - FiatTopupInfo register_fiat_topup(string? email, string? referral_code, string user_iban, string user_currency); + FiatTopupInfo register_fiat_topup(string? email, string user_iban, string user_currency); [Throws=LnError] void reset_fiat_topup();