Documentation ¶
Index ¶
- type CreateReservationParams
- type DBTX
- type GetBatchSweepsRow
- type GetInstantOutSwapRow
- type GetInstantOutSwapsRow
- type GetLoopInSwapRow
- type GetLoopInSwapsRow
- type GetLoopOutSwapRow
- type GetLoopOutSwapsRow
- type HtlcKey
- type InsertBatchParams
- type InsertHtlcKeysParams
- type InsertInstantOutParams
- type InsertInstantOutUpdateParams
- type InsertLoopInParams
- type InsertLoopOutParams
- type InsertReservationUpdateParams
- type InsertSwapParams
- type InsertSwapUpdateParams
- type InstantoutSwap
- type InstantoutUpdate
- type LiquidityParam
- type LoopinSwap
- type LoopoutSwap
- type Querier
- type Queries
- func (q *Queries) ConfirmBatch(ctx context.Context, id int32) error
- func (q *Queries) CreateReservation(ctx context.Context, arg CreateReservationParams) error
- func (q *Queries) FetchLiquidityParams(ctx context.Context) ([]byte, error)
- func (q *Queries) GetBatchSweeps(ctx context.Context, batchID int32) ([]GetBatchSweepsRow, error)
- func (q *Queries) GetInstantOutSwap(ctx context.Context, swapHash []byte) (GetInstantOutSwapRow, error)
- func (q *Queries) GetInstantOutSwapUpdates(ctx context.Context, swapHash []byte) ([]InstantoutUpdate, error)
- func (q *Queries) GetInstantOutSwaps(ctx context.Context) ([]GetInstantOutSwapsRow, error)
- func (q *Queries) GetLoopInSwap(ctx context.Context, swapHash []byte) (GetLoopInSwapRow, error)
- func (q *Queries) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error)
- func (q *Queries) GetLoopOutSwap(ctx context.Context, swapHash []byte) (GetLoopOutSwapRow, error)
- func (q *Queries) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error)
- func (q *Queries) GetReservation(ctx context.Context, reservationID []byte) (Reservation, error)
- func (q *Queries) GetReservationUpdates(ctx context.Context, reservationID []byte) ([]ReservationUpdate, error)
- func (q *Queries) GetReservations(ctx context.Context) ([]Reservation, error)
- func (q *Queries) GetSwapUpdates(ctx context.Context, swapHash []byte) ([]SwapUpdate, error)
- func (q *Queries) GetSweepStatus(ctx context.Context, swapHash []byte) (bool, error)
- func (q *Queries) GetUnconfirmedBatches(ctx context.Context) ([]SweepBatch, error)
- func (q *Queries) InsertBatch(ctx context.Context, arg InsertBatchParams) (int32, error)
- func (q *Queries) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error
- func (q *Queries) InsertInstantOut(ctx context.Context, arg InsertInstantOutParams) error
- func (q *Queries) InsertInstantOutUpdate(ctx context.Context, arg InsertInstantOutUpdateParams) error
- func (q *Queries) InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error
- func (q *Queries) InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error
- func (q *Queries) InsertReservationUpdate(ctx context.Context, arg InsertReservationUpdateParams) error
- func (q *Queries) InsertSwap(ctx context.Context, arg InsertSwapParams) error
- func (q *Queries) InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error
- func (q *Queries) UpdateBatch(ctx context.Context, arg UpdateBatchParams) error
- func (q *Queries) UpdateInstantOut(ctx context.Context, arg UpdateInstantOutParams) error
- func (q *Queries) UpdateReservation(ctx context.Context, arg UpdateReservationParams) error
- func (q *Queries) UpsertLiquidityParams(ctx context.Context, params []byte) error
- func (q *Queries) UpsertSweep(ctx context.Context, arg UpsertSweepParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Reservation
- type ReservationUpdate
- type Swap
- type SwapUpdate
- type Sweep
- type SweepBatch
- type UpdateBatchParams
- type UpdateInstantOutParams
- type UpdateReservationParams
- type UpsertSweepParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReservationParams ¶
type GetBatchSweepsRow ¶
type GetBatchSweepsRow struct { ID int32 SwapHash []byte BatchID int32 OutpointTxid []byte OutpointIndex int32 Amt int64 Completed bool ID_2 int32 SwapHash_2 []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_3 []byte DestAddress string SwapInvoice string MaxSwapRoutingFee int64 SweepConfTarget int32 HtlcConfirmations int32 OutgoingChanSet string PrepayInvoice string MaxPrepayRoutingFee int64 PublicationDeadline time.Time SingleSweep bool SwapHash_4 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetInstantOutSwapRow ¶
type GetInstantOutSwapRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte Preimage_2 []byte SweepAddress string OutgoingChanSet string HtlcFeeRate int64 ReservationIds []byte SwapInvoice string FinalizedHtlcTx []byte SweepTxHash []byte FinalizedSweeplessSweepTx []byte SweepConfirmationHeight sql.NullInt32 SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetInstantOutSwapsRow ¶
type GetInstantOutSwapsRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte Preimage_2 []byte SweepAddress string OutgoingChanSet string HtlcFeeRate int64 ReservationIds []byte SwapInvoice string FinalizedHtlcTx []byte SweepTxHash []byte FinalizedSweeplessSweepTx []byte SweepConfirmationHeight sql.NullInt32 SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopInSwapRow ¶
type GetLoopInSwapRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte HtlcConfTarget int32 LastHop []byte ExternalHtlc bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopInSwapsRow ¶
type GetLoopInSwapsRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte HtlcConfTarget int32 LastHop []byte ExternalHtlc bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopOutSwapRow ¶
type GetLoopOutSwapRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte DestAddress string SwapInvoice string MaxSwapRoutingFee int64 SweepConfTarget int32 HtlcConfirmations int32 OutgoingChanSet string PrepayInvoice string MaxPrepayRoutingFee int64 PublicationDeadline time.Time SingleSweep bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type GetLoopOutSwapsRow ¶
type GetLoopOutSwapsRow struct { ID int32 SwapHash []byte Preimage []byte InitiationTime time.Time AmountRequested int64 CltvExpiry int32 MaxMinerFee int64 MaxSwapFee int64 InitiationHeight int32 ProtocolVersion int32 Label string SwapHash_2 []byte DestAddress string SwapInvoice string MaxSwapRoutingFee int64 SweepConfTarget int32 HtlcConfirmations int32 OutgoingChanSet string PrepayInvoice string MaxPrepayRoutingFee int64 PublicationDeadline time.Time SingleSweep bool SwapHash_3 []byte SenderScriptPubkey []byte ReceiverScriptPubkey []byte SenderInternalPubkey []byte ReceiverInternalPubkey []byte ClientKeyFamily int32 ClientKeyIndex int32 }
type InsertBatchParams ¶
type InsertHtlcKeysParams ¶
type InsertInstantOutParams ¶
type InsertLoopInParams ¶
type InsertLoopOutParams ¶
type InsertSwapParams ¶
type InsertSwapUpdateParams ¶
type InstantoutSwap ¶
type InstantoutUpdate ¶
type LiquidityParam ¶
type LoopinSwap ¶
type LoopoutSwap ¶
type Querier ¶
type Querier interface { ConfirmBatch(ctx context.Context, id int32) error CreateReservation(ctx context.Context, arg CreateReservationParams) error FetchLiquidityParams(ctx context.Context) ([]byte, error) GetBatchSweeps(ctx context.Context, batchID int32) ([]GetBatchSweepsRow, error) GetInstantOutSwap(ctx context.Context, swapHash []byte) (GetInstantOutSwapRow, error) GetInstantOutSwapUpdates(ctx context.Context, swapHash []byte) ([]InstantoutUpdate, error) GetInstantOutSwaps(ctx context.Context) ([]GetInstantOutSwapsRow, error) GetLoopInSwap(ctx context.Context, swapHash []byte) (GetLoopInSwapRow, error) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error) GetLoopOutSwap(ctx context.Context, swapHash []byte) (GetLoopOutSwapRow, error) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error) GetReservation(ctx context.Context, reservationID []byte) (Reservation, error) GetReservationUpdates(ctx context.Context, reservationID []byte) ([]ReservationUpdate, error) GetReservations(ctx context.Context) ([]Reservation, error) GetSwapUpdates(ctx context.Context, swapHash []byte) ([]SwapUpdate, error) GetSweepStatus(ctx context.Context, swapHash []byte) (bool, error) GetUnconfirmedBatches(ctx context.Context) ([]SweepBatch, error) InsertBatch(ctx context.Context, arg InsertBatchParams) (int32, error) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error InsertInstantOut(ctx context.Context, arg InsertInstantOutParams) error InsertInstantOutUpdate(ctx context.Context, arg InsertInstantOutUpdateParams) error InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error InsertReservationUpdate(ctx context.Context, arg InsertReservationUpdateParams) error InsertSwap(ctx context.Context, arg InsertSwapParams) error InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error UpdateBatch(ctx context.Context, arg UpdateBatchParams) error UpdateInstantOut(ctx context.Context, arg UpdateInstantOutParams) error UpdateReservation(ctx context.Context, arg UpdateReservationParams) error UpsertLiquidityParams(ctx context.Context, params []byte) error UpsertSweep(ctx context.Context, arg UpsertSweepParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateReservation ¶
func (q *Queries) CreateReservation(ctx context.Context, arg CreateReservationParams) error
func (*Queries) FetchLiquidityParams ¶
func (*Queries) GetBatchSweeps ¶
func (*Queries) GetInstantOutSwap ¶
func (*Queries) GetInstantOutSwapUpdates ¶
func (*Queries) GetInstantOutSwaps ¶
func (q *Queries) GetInstantOutSwaps(ctx context.Context) ([]GetInstantOutSwapsRow, error)
func (*Queries) GetLoopInSwap ¶
func (*Queries) GetLoopInSwaps ¶
func (q *Queries) GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error)
func (*Queries) GetLoopOutSwap ¶
func (*Queries) GetLoopOutSwaps ¶
func (q *Queries) GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error)
func (*Queries) GetReservation ¶
func (*Queries) GetReservationUpdates ¶
func (*Queries) GetReservations ¶
func (q *Queries) GetReservations(ctx context.Context) ([]Reservation, error)
func (*Queries) GetSwapUpdates ¶
func (*Queries) GetSweepStatus ¶
func (*Queries) GetUnconfirmedBatches ¶
func (q *Queries) GetUnconfirmedBatches(ctx context.Context) ([]SweepBatch, error)
func (*Queries) InsertBatch ¶
func (*Queries) InsertHtlcKeys ¶
func (q *Queries) InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error
func (*Queries) InsertInstantOut ¶
func (q *Queries) InsertInstantOut(ctx context.Context, arg InsertInstantOutParams) error
func (*Queries) InsertInstantOutUpdate ¶
func (q *Queries) InsertInstantOutUpdate(ctx context.Context, arg InsertInstantOutUpdateParams) error
func (*Queries) InsertLoopIn ¶
func (q *Queries) InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error
func (*Queries) InsertLoopOut ¶
func (q *Queries) InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error
func (*Queries) InsertReservationUpdate ¶
func (q *Queries) InsertReservationUpdate(ctx context.Context, arg InsertReservationUpdateParams) error
func (*Queries) InsertSwap ¶
func (q *Queries) InsertSwap(ctx context.Context, arg InsertSwapParams) error
func (*Queries) InsertSwapUpdate ¶
func (q *Queries) InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error
func (*Queries) UpdateBatch ¶
func (q *Queries) UpdateBatch(ctx context.Context, arg UpdateBatchParams) error
func (*Queries) UpdateInstantOut ¶
func (q *Queries) UpdateInstantOut(ctx context.Context, arg UpdateInstantOutParams) error
func (*Queries) UpdateReservation ¶
func (q *Queries) UpdateReservation(ctx context.Context, arg UpdateReservationParams) error
func (*Queries) UpsertLiquidityParams ¶
func (*Queries) UpsertSweep ¶
func (q *Queries) UpsertSweep(ctx context.Context, arg UpsertSweepParams) error
type Reservation ¶
type ReservationUpdate ¶
type SwapUpdate ¶
type SweepBatch ¶
type UpdateBatchParams ¶
type UpdateInstantOutParams ¶
type UpdateReservationParams ¶
Click to show internal directories.
Click to hide internal directories.