sqlc: loop-in tables and queries

We add CRU procedures for static address swaps.
This commit is contained in:
Slyghtning 2024-07-30 12:22:04 +02:00
parent b9e5875f4e
commit 494d0915b0
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
6 changed files with 533 additions and 0 deletions

View file

@ -124,6 +124,26 @@ type StaticAddress struct {
ProtocolVersion int32
}
type StaticAddressSwap struct {
ID int32
SwapHash []byte
SwapInvoice string
LastHop []byte
PaymentTimeoutSeconds int32
QuotedSwapFeeSatoshis int64
DepositOutpoints string
HtlcTxFeeRateSatKw int64
HtlcTimeoutSweepTxID sql.NullString
HtlcTimeoutSweepAddress string
}
type StaticAddressSwapUpdate struct {
ID int32
SwapHash []byte
UpdateState string
UpdateTimestamp time.Time
}
type Swap struct {
ID int32
SwapHash []byte