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 (
|
|
|
|
|
"context"
|
2024-07-30 12:22:04 +02:00
|
|
|
"database/sql"
|
2023-05-17 19:03:51 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Querier interface {
|
2024-03-07 17:25:07 +01:00
|
|
|
AllDeposits(ctx context.Context) ([]Deposit, error)
|
2023-11-09 19:04:59 +01:00
|
|
|
AllStaticAddresses(ctx context.Context) ([]StaticAddress, error)
|
2025-06-17 14:01:59 -03:00
|
|
|
CancelBatch(ctx context.Context, id int32) error
|
2024-03-07 17:25:07 +01:00
|
|
|
CreateDeposit(ctx context.Context, arg CreateDepositParams) error
|
2023-10-18 09:25:23 +02:00
|
|
|
CreateReservation(ctx context.Context, arg CreateReservationParams) error
|
2023-11-09 19:04:59 +01:00
|
|
|
CreateStaticAddress(ctx context.Context, arg CreateStaticAddressParams) error
|
2025-05-13 11:30:18 +02:00
|
|
|
CreateWithdrawal(ctx context.Context, arg CreateWithdrawalParams) error
|
|
|
|
|
CreateWithdrawalDeposit(ctx context.Context, arg CreateWithdrawalDepositParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
FetchLiquidityParams(ctx context.Context) ([]byte, error)
|
2025-05-13 11:30:18 +02:00
|
|
|
GetAllWithdrawals(ctx context.Context) ([]Withdrawal, error)
|
2024-05-30 13:22:47 -03:00
|
|
|
GetBatchSweeps(ctx context.Context, batchID int32) ([]Sweep, error)
|
2024-02-02 22:07:40 +01:00
|
|
|
GetBatchSweptAmount(ctx context.Context, batchID int32) (int64, error)
|
2024-03-07 17:25:07 +01:00
|
|
|
GetDeposit(ctx context.Context, depositID []byte) (Deposit, error)
|
2023-11-21 15:50:21 +01:00
|
|
|
GetInstantOutSwap(ctx context.Context, swapHash []byte) (GetInstantOutSwapRow, error)
|
|
|
|
|
GetInstantOutSwapUpdates(ctx context.Context, swapHash []byte) ([]InstantoutUpdate, error)
|
|
|
|
|
GetInstantOutSwaps(ctx context.Context) ([]GetInstantOutSwapsRow, error)
|
2024-05-30 22:37:45 +02:00
|
|
|
GetLastUpdateID(ctx context.Context, swapHash []byte) (int32, error)
|
2024-03-07 17:25:07 +01:00
|
|
|
GetLatestDepositUpdate(ctx context.Context, depositID []byte) (DepositUpdate, error)
|
2023-05-17 19:03:51 +02:00
|
|
|
GetLoopInSwap(ctx context.Context, swapHash []byte) (GetLoopInSwapRow, error)
|
2024-07-30 12:22:04 +02:00
|
|
|
GetLoopInSwapUpdates(ctx context.Context, swapHash []byte) ([]StaticAddressSwapUpdate, error)
|
2023-05-17 19:03:51 +02:00
|
|
|
GetLoopInSwaps(ctx context.Context) ([]GetLoopInSwapsRow, error)
|
|
|
|
|
GetLoopOutSwap(ctx context.Context, swapHash []byte) (GetLoopOutSwapRow, error)
|
|
|
|
|
GetLoopOutSwaps(ctx context.Context) ([]GetLoopOutSwapsRow, error)
|
2024-05-31 08:45:34 +02:00
|
|
|
GetMigration(ctx context.Context, migrationID string) (MigrationTracker, error)
|
2025-03-25 14:30:52 -03:00
|
|
|
GetParentBatch(ctx context.Context, outpoint string) (SweepBatch, error)
|
2023-10-18 09:25:23 +02:00
|
|
|
GetReservation(ctx context.Context, reservationID []byte) (Reservation, error)
|
|
|
|
|
GetReservationUpdates(ctx context.Context, reservationID []byte) ([]ReservationUpdate, error)
|
|
|
|
|
GetReservations(ctx context.Context) ([]Reservation, error)
|
2023-11-09 19:04:59 +01:00
|
|
|
GetStaticAddress(ctx context.Context, pkscript []byte) (StaticAddress, error)
|
2024-07-30 12:22:04 +02:00
|
|
|
GetStaticAddressLoopInSwap(ctx context.Context, swapHash []byte) (GetStaticAddressLoopInSwapRow, error)
|
|
|
|
|
GetStaticAddressLoopInSwapsByStates(ctx context.Context, dollar_1 sql.NullString) ([]GetStaticAddressLoopInSwapsByStatesRow, error)
|
2023-05-17 19:03:51 +02:00
|
|
|
GetSwapUpdates(ctx context.Context, swapHash []byte) ([]SwapUpdate, error)
|
2025-03-25 14:30:52 -03:00
|
|
|
GetSweepStatus(ctx context.Context, outpoint string) (bool, error)
|
2023-09-05 13:48:25 -04:00
|
|
|
GetUnconfirmedBatches(ctx context.Context) ([]SweepBatch, error)
|
2025-05-13 11:30:18 +02:00
|
|
|
GetWithdrawalDeposits(ctx context.Context, withdrawalID []byte) ([][]byte, error)
|
|
|
|
|
GetWithdrawalIDByDepositID(ctx context.Context, depositID []byte) ([]byte, error)
|
2023-09-05 13:48:25 -04:00
|
|
|
InsertBatch(ctx context.Context, arg InsertBatchParams) (int32, error)
|
2024-03-07 17:25:07 +01:00
|
|
|
InsertDepositUpdate(ctx context.Context, arg InsertDepositUpdateParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
InsertHtlcKeys(ctx context.Context, arg InsertHtlcKeysParams) error
|
2023-11-21 15:50:21 +01:00
|
|
|
InsertInstantOut(ctx context.Context, arg InsertInstantOutParams) error
|
|
|
|
|
InsertInstantOutUpdate(ctx context.Context, arg InsertInstantOutUpdateParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
InsertLoopIn(ctx context.Context, arg InsertLoopInParams) error
|
|
|
|
|
InsertLoopOut(ctx context.Context, arg InsertLoopOutParams) error
|
2025-01-09 16:32:59 +01:00
|
|
|
InsertLoopOutAsset(ctx context.Context, arg InsertLoopOutAssetParams) error
|
2024-05-31 08:45:34 +02:00
|
|
|
InsertMigration(ctx context.Context, arg InsertMigrationParams) error
|
2023-10-18 09:25:23 +02:00
|
|
|
InsertReservationUpdate(ctx context.Context, arg InsertReservationUpdateParams) error
|
2024-07-30 12:22:04 +02:00
|
|
|
InsertStaticAddressLoopIn(ctx context.Context, arg InsertStaticAddressLoopInParams) error
|
|
|
|
|
InsertStaticAddressMetaUpdate(ctx context.Context, arg InsertStaticAddressMetaUpdateParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
InsertSwap(ctx context.Context, arg InsertSwapParams) error
|
|
|
|
|
InsertSwapUpdate(ctx context.Context, arg InsertSwapUpdateParams) error
|
2024-07-30 12:22:04 +02:00
|
|
|
IsStored(ctx context.Context, swapHash []byte) (bool, error)
|
2024-05-30 22:37:45 +02:00
|
|
|
OverrideSwapCosts(ctx context.Context, arg OverrideSwapCostsParams) error
|
2023-09-05 13:48:25 -04:00
|
|
|
UpdateBatch(ctx context.Context, arg UpdateBatchParams) error
|
2024-03-07 17:25:07 +01:00
|
|
|
UpdateDeposit(ctx context.Context, arg UpdateDepositParams) error
|
2023-11-21 15:50:21 +01:00
|
|
|
UpdateInstantOut(ctx context.Context, arg UpdateInstantOutParams) error
|
2025-01-09 16:32:59 +01:00
|
|
|
UpdateLoopOutAssetOffchainPayments(ctx context.Context, arg UpdateLoopOutAssetOffchainPaymentsParams) error
|
2023-10-18 09:25:23 +02:00
|
|
|
UpdateReservation(ctx context.Context, arg UpdateReservationParams) error
|
2024-07-30 12:22:04 +02:00
|
|
|
UpdateStaticAddressLoopIn(ctx context.Context, arg UpdateStaticAddressLoopInParams) error
|
2025-05-13 11:30:18 +02:00
|
|
|
UpdateWithdrawal(ctx context.Context, arg UpdateWithdrawalParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
UpsertLiquidityParams(ctx context.Context, params []byte) error
|
2023-09-05 13:48:25 -04:00
|
|
|
UpsertSweep(ctx context.Context, arg UpsertSweepParams) error
|
2023-05-17 19:03:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ Querier = (*Queries)(nil)
|