mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-20 13:27:50 +02:00
sqlc: loop-in tables and queries
We add CRU procedures for static address swaps.
This commit is contained in:
parent
b9e5875f4e
commit
494d0915b0
6 changed files with 533 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue