From 02a373b8128c1544711d14ecd6ed19e20c7e3b0b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 27 Dec 2023 23:22:27 -0800 Subject: liquid wip --- lib/invoices.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/invoices.js') diff --git a/lib/invoices.js b/lib/invoices.js index 23af1aa4..b5718e23 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -6,6 +6,7 @@ import { getUser, bip21, fail, SATS } from "$lib/utils"; import { types } from "$lib/payments"; import { v4 } from "uuid"; +import lq from "$lib/liquid"; import bc from "$lib/bitcoin"; import ln from "$lib/ln"; @@ -54,6 +55,9 @@ export let generate = async ({ invoice, user, sender, memo }) => { } else if (type === types.bitcoin) { hash = await bc.getNewAddress(); text = bip21(hash, invoice); + } else if (type === types.liquid) { + hash = await lq.getNewAddress(); + text = bip21(hash, invoice); } else if (type === types.internal) { hash = id; } else { -- cgit v1.2.3