mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-20 13:27:50 +02:00
staticaddr: method to fetch deposits by outpoints
This commit is contained in:
parent
bce9b5d45d
commit
e948c94b95
8 changed files with 135 additions and 0 deletions
|
|
@ -49,6 +49,16 @@ FROM
|
|||
WHERE
|
||||
deposit_id = $1;
|
||||
|
||||
-- name: DepositForOutpoint :one
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
deposits
|
||||
WHERE
|
||||
tx_hash = $1
|
||||
AND
|
||||
out_index = $2;
|
||||
|
||||
-- name: AllDeposits :many
|
||||
SELECT
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue