staticaddr: method to fetch deposits by outpoints

This commit is contained in:
Slyghtning 2025-04-02 14:29:48 +02:00
parent bce9b5d45d
commit e948c94b95
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
8 changed files with 135 additions and 0 deletions

View file

@ -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
*