Persist and expose BIP353 addresses (#718)

* Persist and expose BIP353 addresses

* Increment schema minor version

* Move bip353 address from LNURL context to SendDestination

* Update after sdk-common merge

* Address review

* Only try to insert bip353 address when available
This commit is contained in:
Daniel Granhão
2025-02-11 15:29:16 +00:00
committed by GitHub
parent b5e1f2963d
commit fc03572588
27 changed files with 526 additions and 124 deletions

View File

@@ -692,7 +692,10 @@ pub(crate) async fn handle_command(
} => {
let input = sdk.parse(&lnurl).await?;
let res = match input {
InputType::LnUrlPay { data: pd } => {
InputType::LnUrlPay {
data: pd,
bip353_address,
} => {
let amount = match drain.unwrap_or(false) {
true => PayAmount::Drain,
false => {
@@ -713,6 +716,7 @@ pub(crate) async fn handle_command(
.prepare_lnurl_pay(PrepareLnUrlPayRequest {
data: pd,
amount,
bip353_address,
comment: None,
validate_success_action_url: validate_success_url,
})