mirror of
https://github.com/lightninglabs/loop
synced 2024-11-11 13:11:12 +00:00
70 lines
1.3 KiB
Go
70 lines
1.3 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.17.2
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type HtlcKey struct {
|
|
SwapHash []byte
|
|
SenderScriptPubkey []byte
|
|
ReceiverScriptPubkey []byte
|
|
SenderInternalPubkey []byte
|
|
ReceiverInternalPubkey []byte
|
|
ClientKeyFamily int32
|
|
ClientKeyIndex int32
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|