2023-05-17 19:03:51 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
// versions:
|
2024-03-20 13:57:11 +01:00
|
|
|
// sqlc v1.25.0
|
2023-05-17 19:03:51 +02:00
|
|
|
|
|
|
|
|
package sqlc
|
|
|
|
|
|
|
|
|
|
import (
|
2023-10-18 09:25:23 +02:00
|
|
|
"database/sql"
|
2023-05-17 19:03:51 +02:00
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
2024-03-07 17:25:07 +01:00
|
|
|
type Deposit struct {
|
2024-05-06 14:07:36 +02:00
|
|
|
ID int32
|
|
|
|
|
DepositID []byte
|
|
|
|
|
TxHash []byte
|
|
|
|
|
OutIndex int32
|
|
|
|
|
Amount int64
|
|
|
|
|
ConfirmationHeight int64
|
|
|
|
|
TimeoutSweepPkScript []byte
|
|
|
|
|
ExpirySweepTxid []byte
|
|
|
|
|
FinalizedWithdrawalTx sql.NullString
|
2024-03-07 17:25:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DepositUpdate struct {
|
|
|
|
|
ID int32
|
|
|
|
|
DepositID []byte
|
|
|
|
|
UpdateState string
|
|
|
|
|
UpdateTimestamp time.Time
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-17 19:03:51 +02:00
|
|
|
type HtlcKey struct {
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
SenderScriptPubkey []byte
|
|
|
|
|
ReceiverScriptPubkey []byte
|
|
|
|
|
SenderInternalPubkey []byte
|
|
|
|
|
ReceiverInternalPubkey []byte
|
|
|
|
|
ClientKeyFamily int32
|
|
|
|
|
ClientKeyIndex int32
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-21 15:50:21 +01:00
|
|
|
type InstantoutSwap struct {
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
Preimage []byte
|
|
|
|
|
SweepAddress string
|
|
|
|
|
OutgoingChanSet string
|
|
|
|
|
HtlcFeeRate int64
|
|
|
|
|
ReservationIds []byte
|
|
|
|
|
SwapInvoice string
|
|
|
|
|
FinalizedHtlcTx []byte
|
|
|
|
|
SweepTxHash []byte
|
|
|
|
|
FinalizedSweeplessSweepTx []byte
|
|
|
|
|
SweepConfirmationHeight sql.NullInt32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type InstantoutUpdate struct {
|
|
|
|
|
ID int32
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
UpdateState string
|
|
|
|
|
UpdateTimestamp time.Time
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-17 19:03:51 +02:00
|
|
|
type LiquidityParam struct {
|
|
|
|
|
ID int32
|
|
|
|
|
Params []byte
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LoopinSwap struct {
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
HtlcConfTarget int32
|
|
|
|
|
LastHop []byte
|
|
|
|
|
ExternalHtlc bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type LoopoutSwap struct {
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
DestAddress string
|
|
|
|
|
SwapInvoice string
|
|
|
|
|
MaxSwapRoutingFee int64
|
|
|
|
|
SweepConfTarget int32
|
|
|
|
|
HtlcConfirmations int32
|
|
|
|
|
OutgoingChanSet string
|
|
|
|
|
PrepayInvoice string
|
|
|
|
|
MaxPrepayRoutingFee int64
|
|
|
|
|
PublicationDeadline time.Time
|
2023-09-05 13:48:25 -04:00
|
|
|
SingleSweep bool
|
2024-05-09 16:36:10 +02:00
|
|
|
PaymentTimeout int32
|
2023-05-17 19:03:51 +02:00
|
|
|
}
|
|
|
|
|
|
2025-01-09 16:32:59 +01:00
|
|
|
type LoopoutSwapsAssetInfo struct {
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
AssetID []byte
|
|
|
|
|
SwapRfqID []byte
|
|
|
|
|
PrepayRfqID []byte
|
|
|
|
|
AssetAmtPaidSwap int64
|
|
|
|
|
AssetAmtPaidPrepay int64
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-31 08:45:34 +02:00
|
|
|
type MigrationTracker struct {
|
|
|
|
|
MigrationID string
|
|
|
|
|
MigrationTs sql.NullTime
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-18 09:25:23 +02:00
|
|
|
type Reservation struct {
|
|
|
|
|
ID int32
|
|
|
|
|
ReservationID []byte
|
|
|
|
|
ClientPubkey []byte
|
|
|
|
|
ServerPubkey []byte
|
|
|
|
|
Expiry int32
|
|
|
|
|
Value int64
|
|
|
|
|
ClientKeyFamily int32
|
|
|
|
|
ClientKeyIndex int32
|
|
|
|
|
InitiationHeight int32
|
|
|
|
|
TxHash []byte
|
|
|
|
|
OutIndex sql.NullInt32
|
|
|
|
|
ConfirmationHeight sql.NullInt32
|
2025-02-03 14:00:10 +01:00
|
|
|
ProtocolVersion int32
|
2023-10-18 09:25:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReservationUpdate struct {
|
|
|
|
|
ID int32
|
|
|
|
|
ReservationID []byte
|
|
|
|
|
UpdateState string
|
|
|
|
|
UpdateTimestamp time.Time
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-09 19:04:59 +01:00
|
|
|
type StaticAddress struct {
|
2024-12-09 13:55:29 +01:00
|
|
|
ID int32
|
|
|
|
|
ClientPubkey []byte
|
|
|
|
|
ServerPubkey []byte
|
|
|
|
|
Expiry int32
|
|
|
|
|
ClientKeyFamily int32
|
|
|
|
|
ClientKeyIndex int32
|
|
|
|
|
Pkscript []byte
|
|
|
|
|
ProtocolVersion int32
|
|
|
|
|
InitiationHeight int32
|
2023-11-09 19:04:59 +01:00
|
|
|
}
|
|
|
|
|
|
2024-07-30 12:22:04 +02:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-17 19:03:51 +02:00
|
|
|
type Swap struct {
|
|
|
|
|
ID int32
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
Preimage []byte
|
|
|
|
|
InitiationTime time.Time
|
|
|
|
|
AmountRequested int64
|
|
|
|
|
CltvExpiry int32
|
|
|
|
|
MaxMinerFee int64
|
|
|
|
|
MaxSwapFee int64
|
|
|
|
|
InitiationHeight int32
|
|
|
|
|
ProtocolVersion int32
|
|
|
|
|
Label string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SwapUpdate struct {
|
|
|
|
|
ID int32
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
UpdateTimestamp time.Time
|
|
|
|
|
UpdateState int32
|
|
|
|
|
HtlcTxhash string
|
|
|
|
|
ServerCost int64
|
|
|
|
|
OnchainCost int64
|
|
|
|
|
OffchainCost int64
|
|
|
|
|
}
|
2023-09-05 13:48:25 -04:00
|
|
|
|
|
|
|
|
type Sweep struct {
|
2025-03-25 14:30:52 -03:00
|
|
|
ID int32
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
BatchID int32
|
|
|
|
|
Outpoint string
|
|
|
|
|
Amt int64
|
|
|
|
|
Completed bool
|
2023-09-05 13:48:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SweepBatch struct {
|
|
|
|
|
ID int32
|
|
|
|
|
Confirmed bool
|
|
|
|
|
BatchTxID sql.NullString
|
|
|
|
|
BatchPkScript []byte
|
|
|
|
|
LastRbfHeight sql.NullInt32
|
|
|
|
|
LastRbfSatPerKw sql.NullInt32
|
|
|
|
|
MaxTimeoutDistance int32
|
2025-06-17 14:01:59 -03:00
|
|
|
Cancelled bool
|
2023-09-05 13:48:25 -04:00
|
|
|
}
|
2025-03-25 14:30:52 -03:00
|
|
|
|
|
|
|
|
type SweepsOld struct {
|
|
|
|
|
ID int32
|
|
|
|
|
SwapHash []byte
|
|
|
|
|
BatchID int32
|
|
|
|
|
OutpointTxid []byte
|
|
|
|
|
OutpointIndex int32
|
|
|
|
|
Amt int64
|
|
|
|
|
Completed bool
|
|
|
|
|
}
|
2025-05-13 11:30:18 +02:00
|
|
|
|
|
|
|
|
type Withdrawal struct {
|
|
|
|
|
ID int32
|
|
|
|
|
WithdrawalID []byte
|
|
|
|
|
WithdrawalTxID sql.NullString
|
|
|
|
|
TotalDepositAmount int64
|
|
|
|
|
WithdrawnAmount sql.NullInt64
|
|
|
|
|
ChangeAmount sql.NullInt64
|
|
|
|
|
InitiationTime time.Time
|
|
|
|
|
ConfirmationHeight sql.NullInt64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WithdrawalDeposit struct {
|
|
|
|
|
ID int32
|
|
|
|
|
WithdrawalID []byte
|
|
|
|
|
DepositID []byte
|
|
|
|
|
}
|