Documentation
¶
Index ¶
- type CreateSwapParams
- type DBTX
- type DelegateTask
- type DelegateTaskInput
- type FailDelegateTasksParams
- type GetDelegateTaskRow
- type GetPendingTaskByIntentTxIDRow
- type GetSwapRow
- type InsertDelegateTaskInputParams
- type InsertDelegateTaskParams
- type InsertVHTLCParams
- type ListDelegateTaskPendingRow
- type ListDelegateTasksParams
- type ListDelegateTasksRow
- type ListSwapsRow
- type Queries
- func (q *Queries) CancelDelegateTasks(ctx context.Context, ids []string) error
- func (q *Queries) CreateSwap(ctx context.Context, arg CreateSwapParams) error
- func (q *Queries) DeleteSettings(ctx context.Context) error
- func (q *Queries) DeleteSubscribedScript(ctx context.Context, script string) error
- func (q *Queries) DeleteVtxoRollover(ctx context.Context, address string) error
- func (q *Queries) FailDelegateTasks(ctx context.Context, arg FailDelegateTasksParams) error
- func (q *Queries) GetDelegateTask(ctx context.Context, id string) ([]GetDelegateTaskRow, error)
- func (q *Queries) GetDelegateTaskInputs(ctx context.Context, taskID string) ([]string, error)
- func (q *Queries) GetPendingTaskByIntentTxID(ctx context.Context, intentTxid string) (GetPendingTaskByIntentTxIDRow, error)
- func (q *Queries) GetPendingTaskIDsByInputs(ctx context.Context, outpoints []string) ([]string, error)
- func (q *Queries) GetSettings(ctx context.Context) (Setting, error)
- func (q *Queries) GetSubscribedScript(ctx context.Context, script string) (string, error)
- func (q *Queries) GetSwap(ctx context.Context, id string) (GetSwapRow, error)
- func (q *Queries) GetVHTLC(ctx context.Context, id string) (Vhtlc, error)
- func (q *Queries) GetVtxoRollover(ctx context.Context, address string) (VtxoRollover, error)
- func (q *Queries) InsertDelegateTask(ctx context.Context, arg InsertDelegateTaskParams) error
- func (q *Queries) InsertDelegateTaskInput(ctx context.Context, arg InsertDelegateTaskInputParams) error
- func (q *Queries) InsertSubscribedScript(ctx context.Context, script string) error
- func (q *Queries) InsertVHTLC(ctx context.Context, arg InsertVHTLCParams) error
- func (q *Queries) ListDelegateTaskPending(ctx context.Context) ([]ListDelegateTaskPendingRow, error)
- func (q *Queries) ListDelegateTasks(ctx context.Context, arg ListDelegateTasksParams) ([]ListDelegateTasksRow, error)
- func (q *Queries) ListSubscribedScript(ctx context.Context) ([]string, error)
- func (q *Queries) ListSwaps(ctx context.Context) ([]ListSwapsRow, error)
- func (q *Queries) ListVHTLC(ctx context.Context) ([]Vhtlc, error)
- func (q *Queries) ListVtxoRollover(ctx context.Context) ([]VtxoRollover, error)
- func (q *Queries) SuccessDelegateTasks(ctx context.Context, arg SuccessDelegateTasksParams) error
- func (q *Queries) UpdateSwap(ctx context.Context, arg UpdateSwapParams) error
- func (q *Queries) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) error
- func (q *Queries) UpsertVtxoRollover(ctx context.Context, arg UpsertVtxoRolloverParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Setting
- type SubscribedScript
- type SuccessDelegateTasksParams
- type Swap
- type UpdateSwapParams
- type UpsertSettingsParams
- type UpsertVtxoRolloverParams
- type Vhtlc
- type VtxoRollover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateSwapParams ¶ added in v0.1.12
type DelegateTask ¶ added in v0.3.14
type DelegateTaskInput ¶ added in v0.3.14
type DelegateTaskInput struct {
TaskID string
Outpoint string
ForfeitTx sql.NullString
}
type FailDelegateTasksParams ¶ added in v0.3.14
type FailDelegateTasksParams struct {
FailReason sql.NullString
Ids []string
}
type GetDelegateTaskRow ¶ added in v0.3.14
type GetDelegateTaskRow struct {
ID string
IntentTxid string
IntentMessage string
IntentProof string
Fee int64
DelegatorPublicKey string
ScheduledAt int64
Status int64
FailReason sql.NullString
CommitmentTxid sql.NullString
Outpoint sql.NullString
ForfeitTx sql.NullString
}
type GetPendingTaskByIntentTxIDRow ¶ added in v0.3.14
type GetSwapRow ¶ added in v0.1.12
type InsertDelegateTaskInputParams ¶ added in v0.3.14
type InsertDelegateTaskInputParams struct {
TaskID string
Outpoint string
ForfeitTx sql.NullString
}
type InsertDelegateTaskParams ¶ added in v0.3.14
type InsertVHTLCParams ¶
type InsertVHTLCParams struct {
ID string
PreimageHash string
Sender string
Receiver string
Server string
RefundLocktime int64
UnilateralClaimDelayType int64
UnilateralClaimDelayValue int64
UnilateralRefundDelayType int64
UnilateralRefundDelayValue int64
UnilateralRefundWithoutReceiverDelayType int64
UnilateralRefundWithoutReceiverDelayValue int64
}
type ListDelegateTaskPendingRow ¶ added in v0.3.14
type ListDelegateTasksParams ¶ added in v0.3.14
type ListDelegateTasksRow ¶ added in v0.3.14
type ListDelegateTasksRow struct {
ID string
IntentTxid string
IntentMessage string
IntentProof string
Fee int64
DelegatorPublicKey string
ScheduledAt int64
Status int64
FailReason sql.NullString
CommitmentTxid sql.NullString
Outpoint sql.NullString
ForfeitTx sql.NullString
}
type ListSwapsRow ¶ added in v0.1.12
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CancelDelegateTasks ¶ added in v0.3.14
func (*Queries) CreateSwap ¶ added in v0.1.12
func (q *Queries) CreateSwap(ctx context.Context, arg CreateSwapParams) error
Swap queries
func (*Queries) DeleteSubscribedScript ¶ added in v0.1.13
func (*Queries) DeleteVtxoRollover ¶
func (*Queries) FailDelegateTasks ¶ added in v0.3.14
func (q *Queries) FailDelegateTasks(ctx context.Context, arg FailDelegateTasksParams) error
func (*Queries) GetDelegateTask ¶ added in v0.3.14
func (*Queries) GetDelegateTaskInputs ¶ added in v0.3.14
func (*Queries) GetPendingTaskByIntentTxID ¶ added in v0.3.14
func (*Queries) GetPendingTaskIDsByInputs ¶ added in v0.3.14
func (*Queries) GetSubscribedScript ¶ added in v0.1.13
func (*Queries) GetVtxoRollover ¶
func (*Queries) InsertDelegateTask ¶ added in v0.3.14
func (q *Queries) InsertDelegateTask(ctx context.Context, arg InsertDelegateTaskParams) error
func (*Queries) InsertDelegateTaskInput ¶ added in v0.3.14
func (q *Queries) InsertDelegateTaskInput(ctx context.Context, arg InsertDelegateTaskInputParams) error
func (*Queries) InsertSubscribedScript ¶ added in v0.1.13
SubscribedScript queries
func (*Queries) InsertVHTLC ¶
func (q *Queries) InsertVHTLC(ctx context.Context, arg InsertVHTLCParams) error
VHTLC queries
func (*Queries) ListDelegateTaskPending ¶ added in v0.3.14
func (q *Queries) ListDelegateTaskPending(ctx context.Context) ([]ListDelegateTaskPendingRow, error)
func (*Queries) ListDelegateTasks ¶ added in v0.3.14
func (q *Queries) ListDelegateTasks(ctx context.Context, arg ListDelegateTasksParams) ([]ListDelegateTasksRow, error)
func (*Queries) ListSubscribedScript ¶ added in v0.1.13
func (*Queries) ListSwaps ¶ added in v0.1.12
func (q *Queries) ListSwaps(ctx context.Context) ([]ListSwapsRow, error)
func (*Queries) ListVtxoRollover ¶
func (q *Queries) ListVtxoRollover(ctx context.Context) ([]VtxoRollover, error)
func (*Queries) SuccessDelegateTasks ¶ added in v0.3.14
func (q *Queries) SuccessDelegateTasks(ctx context.Context, arg SuccessDelegateTasksParams) error
func (*Queries) UpdateSwap ¶ added in v0.3.0
func (q *Queries) UpdateSwap(ctx context.Context, arg UpdateSwapParams) error
func (*Queries) UpsertSettings ¶
func (q *Queries) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) error
Settings queries
func (*Queries) UpsertVtxoRollover ¶
func (q *Queries) UpsertVtxoRollover(ctx context.Context, arg UpsertVtxoRolloverParams) error
VtxoRollover queries
type Setting ¶
type Setting struct {
ID int64
ApiRoot string
ServerUrl string
EsploraUrl sql.NullString
Currency string
EventServer string
FullNode string
LnUrl sql.NullString
Unit string
LnDatadir sql.NullString
LnType sql.NullInt64
}
type SubscribedScript ¶ added in v0.1.13
type SubscribedScript struct {
Script string
}
type SuccessDelegateTasksParams ¶ added in v0.3.14
type SuccessDelegateTasksParams struct {
CommitmentTxid sql.NullString
Ids []string
}
type UpdateSwapParams ¶ added in v0.3.0
type UpsertSettingsParams ¶
type UpsertSettingsParams struct {
ApiRoot string
ServerUrl string
EsploraUrl sql.NullString
Currency string
EventServer string
FullNode string
Unit string
LnUrl sql.NullString
LnDatadir sql.NullString
LnType sql.NullInt64
}
type Vhtlc ¶
type Vhtlc struct {
ID string
PreimageHash string
Sender string
Receiver string
Server string
RefundLocktime int64
UnilateralClaimDelayType int64
UnilateralClaimDelayValue int64
UnilateralRefundDelayType int64
UnilateralRefundDelayValue int64
UnilateralRefundWithoutReceiverDelayType int64
UnilateralRefundWithoutReceiverDelayValue int64
}
type VtxoRollover ¶
Click to show internal directories.
Click to hide internal directories.