diff options
| author | Adam Soltys <[email protected]> | 2023-12-27 23:22:27 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-28 22:51:02 -0800 |
| commit | 02a373b8128c1544711d14ecd6ed19e20c7e3b0b (patch) | |
| tree | 51327752718eac827273ada093fe6060d7184f56 /lib/invoices.js | |
| parent | aaf8dd49b07066e534408a2d41d84c518a45c2b6 (diff) | |
| download | coinos-server-02a373b8128c1544711d14ecd6ed19e20c7e3b0b.tar.gz coinos-server-02a373b8128c1544711d14ecd6ed19e20c7e3b0b.zip | |
liquid wip
Diffstat (limited to 'lib/invoices.js')
| -rw-r--r-- | lib/invoices.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
