Documentation
¶
Index ¶
- type AddIntentFeesParams
- type CheckpointTx
- type Conviction
- type DBTX
- type InsertVtxoCommitmentTxidParams
- type Intent
- type IntentFee
- type IntentWithInputsVw
- type IntentWithReceiversVw
- type OffchainTx
- type OffchainTxVw
- type Queries
- func (q *Queries) AddIntentFees(ctx context.Context, arg AddIntentFeesParams) error
- func (q *Queries) ClearIntentFees(ctx context.Context) error
- func (q *Queries) ClearScheduledSession(ctx context.Context) error
- func (q *Queries) InsertVtxoCommitmentTxid(ctx context.Context, arg InsertVtxoCommitmentTxidParams) error
- func (q *Queries) SelectActiveScriptConvictions(ctx context.Context, arg SelectActiveScriptConvictionsParams) ([]Conviction, error)
- func (q *Queries) SelectAllRoundIds(ctx context.Context) ([]string, error)
- func (q *Queries) SelectAllVtxos(ctx context.Context) ([]SelectAllVtxosRow, error)
- func (q *Queries) SelectConviction(ctx context.Context, id string) (Conviction, error)
- func (q *Queries) SelectConvictionsByRoundID(ctx context.Context, roundID string) ([]Conviction, error)
- func (q *Queries) SelectConvictionsInTimeRange(ctx context.Context, arg SelectConvictionsInTimeRangeParams) ([]Conviction, error)
- func (q *Queries) SelectExpiringLiquidityAmount(ctx context.Context, arg SelectExpiringLiquidityAmountParams) (interface{}, error)
- func (q *Queries) SelectLatestIntentFees(ctx context.Context) (IntentFee, error)
- func (q *Queries) SelectLatestScheduledSession(ctx context.Context) (ScheduledSession, error)
- func (q *Queries) SelectNotUnrolledVtxos(ctx context.Context) ([]SelectNotUnrolledVtxosRow, error)
- func (q *Queries) SelectNotUnrolledVtxosWithPubkey(ctx context.Context, pubkey string) ([]SelectNotUnrolledVtxosWithPubkeyRow, error)
- func (q *Queries) SelectOffchainTx(ctx context.Context, txid string) ([]SelectOffchainTxRow, error)
- func (q *Queries) SelectPendingSpentVtxo(ctx context.Context, arg SelectPendingSpentVtxoParams) (VtxoVw, error)
- func (q *Queries) SelectPendingSpentVtxosWithPubkeys(ctx context.Context, pubkeys []string) ([]VtxoVw, error)
- func (q *Queries) SelectRecoverableLiquidityAmount(ctx context.Context) (interface{}, error)
- func (q *Queries) SelectRoundConnectors(ctx context.Context, txid string) ([]Tx, error)
- func (q *Queries) SelectRoundForfeitTxs(ctx context.Context, txid string) ([]Tx, error)
- func (q *Queries) SelectRoundIdsInTimeRange(ctx context.Context, arg SelectRoundIdsInTimeRangeParams) ([]string, error)
- func (q *Queries) SelectRoundIdsInTimeRangeWithFilters(ctx context.Context, arg SelectRoundIdsInTimeRangeWithFiltersParams) ([]string, error)
- func (q *Queries) SelectRoundIdsWithFilters(ctx context.Context, arg SelectRoundIdsWithFiltersParams) ([]string, error)
- func (q *Queries) SelectRoundStats(ctx context.Context, txid string) (SelectRoundStatsRow, error)
- func (q *Queries) SelectRoundVtxoTree(ctx context.Context, txid string) ([]Tx, error)
- func (q *Queries) SelectRoundVtxoTreeLeaves(ctx context.Context, commitmentTxid string) ([]SelectRoundVtxoTreeLeavesRow, error)
- func (q *Queries) SelectRoundWithId(ctx context.Context, id string) ([]SelectRoundWithIdRow, error)
- func (q *Queries) SelectRoundWithTxid(ctx context.Context, txid string) ([]SelectRoundWithTxidRow, error)
- func (q *Queries) SelectRoundsWithTxids(ctx context.Context, txids []string) ([]string, error)
- func (q *Queries) SelectSweepableRounds(ctx context.Context) ([]string, error)
- func (q *Queries) SelectSweepableUnrolledVtxos(ctx context.Context) ([]SelectSweepableUnrolledVtxosRow, error)
- func (q *Queries) SelectSweepableVtxoOutpointsByCommitmentTxid(ctx context.Context, commitmentTxid string) ([]SelectSweepableVtxoOutpointsByCommitmentTxidRow, error)
- func (q *Queries) SelectSweptRoundsConnectorAddress(ctx context.Context) ([]string, error)
- func (q *Queries) SelectTxs(ctx context.Context, arg SelectTxsParams) ([]SelectTxsRow, error)
- func (q *Queries) SelectVtxo(ctx context.Context, arg SelectVtxoParams) (SelectVtxoRow, error)
- func (q *Queries) SelectVtxoPubKeysByCommitmentTxid(ctx context.Context, arg SelectVtxoPubKeysByCommitmentTxidParams) ([]string, error)
- func (q *Queries) SelectVtxosOutpointsByArkTxidRecursive(ctx context.Context, txid string) ([]SelectVtxosOutpointsByArkTxidRecursiveRow, error)
- func (q *Queries) SelectVtxosWithPubkeys(ctx context.Context, pubkeys []string) ([]SelectVtxosWithPubkeysRow, error)
- func (q *Queries) UpdateConvictionPardoned(ctx context.Context, id string) error
- func (q *Queries) UpdateVtxoExpiration(ctx context.Context, arg UpdateVtxoExpirationParams) error
- func (q *Queries) UpdateVtxoIntentId(ctx context.Context, arg UpdateVtxoIntentIdParams) error
- func (q *Queries) UpdateVtxoSettled(ctx context.Context, arg UpdateVtxoSettledParams) error
- func (q *Queries) UpdateVtxoSpent(ctx context.Context, arg UpdateVtxoSpentParams) error
- func (q *Queries) UpdateVtxoSweptIfNotSwept(ctx context.Context, arg UpdateVtxoSweptIfNotSweptParams) (int64, error)
- func (q *Queries) UpdateVtxoUnrolled(ctx context.Context, arg UpdateVtxoUnrolledParams) error
- func (q *Queries) UpsertCheckpointTx(ctx context.Context, arg UpsertCheckpointTxParams) error
- func (q *Queries) UpsertConviction(ctx context.Context, arg UpsertConvictionParams) error
- func (q *Queries) UpsertIntent(ctx context.Context, arg UpsertIntentParams) error
- func (q *Queries) UpsertOffchainTx(ctx context.Context, arg UpsertOffchainTxParams) error
- func (q *Queries) UpsertReceiver(ctx context.Context, arg UpsertReceiverParams) error
- func (q *Queries) UpsertRound(ctx context.Context, arg UpsertRoundParams) error
- func (q *Queries) UpsertScheduledSession(ctx context.Context, arg UpsertScheduledSessionParams) error
- func (q *Queries) UpsertTx(ctx context.Context, arg UpsertTxParams) error
- func (q *Queries) UpsertVtxo(ctx context.Context, arg UpsertVtxoParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Receiver
- type Round
- type RoundIntentsVw
- type RoundTxsVw
- type RoundWithCommitmentTxVw
- type ScheduledSession
- type SelectActiveScriptConvictionsParams
- type SelectAllVtxosRow
- type SelectConvictionsInTimeRangeParams
- type SelectExpiringLiquidityAmountParams
- type SelectNotUnrolledVtxosRow
- type SelectNotUnrolledVtxosWithPubkeyRow
- type SelectOffchainTxRow
- type SelectPendingSpentVtxoParams
- type SelectRoundIdsInTimeRangeParams
- type SelectRoundIdsInTimeRangeWithFiltersParams
- type SelectRoundIdsWithFiltersParams
- type SelectRoundStatsRow
- type SelectRoundVtxoTreeLeavesRow
- type SelectRoundWithIdRow
- type SelectRoundWithTxidRow
- type SelectSweepableUnrolledVtxosRow
- type SelectSweepableVtxoOutpointsByCommitmentTxidRow
- type SelectTxsParams
- type SelectTxsRow
- type SelectVtxoParams
- type SelectVtxoPubKeysByCommitmentTxidParams
- type SelectVtxoRow
- type SelectVtxosOutpointsByArkTxidRecursiveRow
- type SelectVtxosWithPubkeysRow
- type Tx
- type UpdateVtxoExpirationParams
- type UpdateVtxoIntentIdParams
- type UpdateVtxoSettledParams
- type UpdateVtxoSpentParams
- type UpdateVtxoSweptIfNotSweptParams
- type UpdateVtxoUnrolledParams
- type UpsertCheckpointTxParams
- type UpsertConvictionParams
- type UpsertIntentParams
- type UpsertOffchainTxParams
- type UpsertReceiverParams
- type UpsertRoundParams
- type UpsertScheduledSessionParams
- type UpsertTxParams
- type UpsertVtxoParams
- type Vtxo
- type VtxoCommitmentTxid
- type VtxoVw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddIntentFeesParams ¶ added in v0.8.11
type AddIntentFeesParams struct {
OffchainInputFeeProgram interface{}
OnchainInputFeeProgram interface{}
OffchainOutputFeeProgram interface{}
OnchainOutputFeeProgram interface{}
}
type CheckpointTx ¶
type Conviction ¶ added in v0.8.0
type Intent ¶
type Intent struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type IntentWithInputsVw ¶
type IntentWithInputsVw struct {
Txid sql.NullString
Vout sql.NullInt64
Pubkey sql.NullString
Amount sql.NullInt64
ExpiresAt sql.NullInt64
CreatedAt sql.NullInt64
CommitmentTxid sql.NullString
SpentBy sql.NullString
Spent sql.NullBool
Unrolled sql.NullBool
Swept sql.NullBool
Preconfirmed sql.NullBool
SettledBy sql.NullString
ArkTxid sql.NullString
IntentID sql.NullString
Commitments interface{}
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type IntentWithReceiversVw ¶
type IntentWithReceiversVw struct {
IntentID sql.NullString
Pubkey sql.NullString
OnchainAddress sql.NullString
Amount sql.NullInt64
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type OffchainTx ¶
type OffchainTxVw ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddIntentFees ¶ added in v0.8.11
func (q *Queries) AddIntentFees(ctx context.Context, arg AddIntentFeesParams) error
func (*Queries) ClearIntentFees ¶ added in v0.8.11
func (*Queries) ClearScheduledSession ¶ added in v0.8.4
func (*Queries) InsertVtxoCommitmentTxid ¶
func (q *Queries) InsertVtxoCommitmentTxid(ctx context.Context, arg InsertVtxoCommitmentTxidParams) error
func (*Queries) SelectActiveScriptConvictions ¶ added in v0.8.0
func (q *Queries) SelectActiveScriptConvictions(ctx context.Context, arg SelectActiveScriptConvictionsParams) ([]Conviction, error)
func (*Queries) SelectAllRoundIds ¶
func (*Queries) SelectAllVtxos ¶
func (q *Queries) SelectAllVtxos(ctx context.Context) ([]SelectAllVtxosRow, error)
func (*Queries) SelectConviction ¶ added in v0.8.0
func (*Queries) SelectConvictionsByRoundID ¶ added in v0.8.0
func (*Queries) SelectConvictionsInTimeRange ¶ added in v0.8.0
func (q *Queries) SelectConvictionsInTimeRange(ctx context.Context, arg SelectConvictionsInTimeRangeParams) ([]Conviction, error)
func (*Queries) SelectExpiringLiquidityAmount ¶ added in v0.8.11
func (q *Queries) SelectExpiringLiquidityAmount(ctx context.Context, arg SelectExpiringLiquidityAmountParams) (interface{}, error)
func (*Queries) SelectLatestIntentFees ¶ added in v0.8.11
func (*Queries) SelectLatestScheduledSession ¶ added in v0.8.0
func (q *Queries) SelectLatestScheduledSession(ctx context.Context) (ScheduledSession, error)
func (*Queries) SelectNotUnrolledVtxos ¶
func (q *Queries) SelectNotUnrolledVtxos(ctx context.Context) ([]SelectNotUnrolledVtxosRow, error)
func (*Queries) SelectNotUnrolledVtxosWithPubkey ¶
func (*Queries) SelectOffchainTx ¶
func (*Queries) SelectPendingSpentVtxo ¶ added in v0.8.9
func (*Queries) SelectPendingSpentVtxosWithPubkeys ¶ added in v0.8.9
func (*Queries) SelectRecoverableLiquidityAmount ¶ added in v0.8.11
func (*Queries) SelectRoundConnectors ¶
func (*Queries) SelectRoundForfeitTxs ¶
func (*Queries) SelectRoundIdsInTimeRange ¶
func (*Queries) SelectRoundIdsInTimeRangeWithFilters ¶ added in v0.8.0
func (*Queries) SelectRoundIdsWithFilters ¶ added in v0.8.0
func (*Queries) SelectRoundStats ¶
func (*Queries) SelectRoundVtxoTree ¶
func (*Queries) SelectRoundVtxoTreeLeaves ¶
func (*Queries) SelectRoundWithId ¶
func (*Queries) SelectRoundWithTxid ¶
func (*Queries) SelectRoundsWithTxids ¶
func (*Queries) SelectSweepableRounds ¶
func (*Queries) SelectSweepableUnrolledVtxos ¶ added in v0.8.0
func (q *Queries) SelectSweepableUnrolledVtxos(ctx context.Context) ([]SelectSweepableUnrolledVtxosRow, error)
func (*Queries) SelectSweepableVtxoOutpointsByCommitmentTxid ¶ added in v0.8.7
func (*Queries) SelectSweptRoundsConnectorAddress ¶
func (*Queries) SelectTxs ¶
func (q *Queries) SelectTxs(ctx context.Context, arg SelectTxsParams) ([]SelectTxsRow, error)
func (*Queries) SelectVtxo ¶
func (q *Queries) SelectVtxo(ctx context.Context, arg SelectVtxoParams) (SelectVtxoRow, error)
func (*Queries) SelectVtxoPubKeysByCommitmentTxid ¶ added in v0.8.7
func (*Queries) SelectVtxosOutpointsByArkTxidRecursive ¶ added in v0.8.7
func (q *Queries) SelectVtxosOutpointsByArkTxidRecursive(ctx context.Context, txid string) ([]SelectVtxosOutpointsByArkTxidRecursiveRow, error)
keep one row per node at its MIN depth (layers)
func (*Queries) SelectVtxosWithPubkeys ¶
func (*Queries) UpdateConvictionPardoned ¶ added in v0.8.0
func (*Queries) UpdateVtxoExpiration ¶
func (q *Queries) UpdateVtxoExpiration(ctx context.Context, arg UpdateVtxoExpirationParams) error
func (*Queries) UpdateVtxoIntentId ¶
func (q *Queries) UpdateVtxoIntentId(ctx context.Context, arg UpdateVtxoIntentIdParams) error
func (*Queries) UpdateVtxoSettled ¶
func (q *Queries) UpdateVtxoSettled(ctx context.Context, arg UpdateVtxoSettledParams) error
func (*Queries) UpdateVtxoSpent ¶
func (q *Queries) UpdateVtxoSpent(ctx context.Context, arg UpdateVtxoSpentParams) error
func (*Queries) UpdateVtxoSweptIfNotSwept ¶ added in v0.8.0
func (*Queries) UpdateVtxoUnrolled ¶
func (q *Queries) UpdateVtxoUnrolled(ctx context.Context, arg UpdateVtxoUnrolledParams) error
func (*Queries) UpsertCheckpointTx ¶
func (q *Queries) UpsertCheckpointTx(ctx context.Context, arg UpsertCheckpointTxParams) error
func (*Queries) UpsertConviction ¶ added in v0.8.0
func (q *Queries) UpsertConviction(ctx context.Context, arg UpsertConvictionParams) error
func (*Queries) UpsertIntent ¶
func (q *Queries) UpsertIntent(ctx context.Context, arg UpsertIntentParams) error
func (*Queries) UpsertOffchainTx ¶
func (q *Queries) UpsertOffchainTx(ctx context.Context, arg UpsertOffchainTxParams) error
func (*Queries) UpsertReceiver ¶
func (q *Queries) UpsertReceiver(ctx context.Context, arg UpsertReceiverParams) error
func (*Queries) UpsertRound ¶
func (q *Queries) UpsertRound(ctx context.Context, arg UpsertRoundParams) error
func (*Queries) UpsertScheduledSession ¶ added in v0.8.0
func (q *Queries) UpsertScheduledSession(ctx context.Context, arg UpsertScheduledSessionParams) error
func (*Queries) UpsertTx ¶
func (q *Queries) UpsertTx(ctx context.Context, arg UpsertTxParams) error
func (*Queries) UpsertVtxo ¶
func (q *Queries) UpsertVtxo(ctx context.Context, arg UpsertVtxoParams) error
type Receiver ¶
type Receiver struct {
IntentID string
Pubkey sql.NullString
OnchainAddress string
Amount int64
}
type RoundIntentsVw ¶
type RoundIntentsVw struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type RoundTxsVw ¶
type RoundTxsVw struct {
Txid sql.NullString
Tx sql.NullString
RoundID sql.NullString
Type sql.NullString
Position sql.NullInt64
Children sql.NullString
}
type RoundWithCommitmentTxVw ¶
type RoundWithCommitmentTxVw struct {
ID string
StartingTimestamp int64
EndingTimestamp int64
Ended bool
Failed bool
StageCode int64
ConnectorAddress string
Version int64
Swept bool
VtxoTreeExpiration int64
FailReason sql.NullString
Txid string
Tx string
RoundID string
Type string
Position int64
Children sql.NullString
}
type ScheduledSession ¶ added in v0.8.0
type SelectActiveScriptConvictionsParams ¶ added in v0.8.0
type SelectActiveScriptConvictionsParams struct {
Script sql.NullString
ExpiresAt sql.NullInt64
}
type SelectAllVtxosRow ¶
type SelectAllVtxosRow struct {
VtxoVw VtxoVw
}
type SelectConvictionsInTimeRangeParams ¶ added in v0.8.0
type SelectExpiringLiquidityAmountParams ¶ added in v0.8.11
type SelectExpiringLiquidityAmountParams struct {
After int64
Before interface{}
}
type SelectNotUnrolledVtxosRow ¶
type SelectNotUnrolledVtxosRow struct {
VtxoVw VtxoVw
}
type SelectNotUnrolledVtxosWithPubkeyRow ¶
type SelectNotUnrolledVtxosWithPubkeyRow struct {
VtxoVw VtxoVw
}
type SelectOffchainTxRow ¶
type SelectOffchainTxRow struct {
OffchainTxVw OffchainTxVw
}
type SelectPendingSpentVtxoParams ¶ added in v0.8.9
type SelectRoundIdsInTimeRangeWithFiltersParams ¶ added in v0.8.0
type SelectRoundIdsWithFiltersParams ¶ added in v0.8.0
type SelectRoundIdsWithFiltersParams struct {
WithFailed interface{}
WithCompleted interface{}
}
type SelectRoundStatsRow ¶
type SelectRoundVtxoTreeLeavesRow ¶
type SelectRoundVtxoTreeLeavesRow struct {
VtxoVw VtxoVw
}
type SelectRoundWithIdRow ¶
type SelectRoundWithIdRow struct {
Round Round
RoundIntentsVw RoundIntentsVw
RoundTxsVw RoundTxsVw
IntentWithReceiversVw IntentWithReceiversVw
IntentWithInputsVw IntentWithInputsVw
}
type SelectRoundWithTxidRow ¶
type SelectRoundWithTxidRow struct {
Round Round
RoundIntentsVw RoundIntentsVw
RoundTxsVw RoundTxsVw
IntentWithReceiversVw IntentWithReceiversVw
IntentWithInputsVw IntentWithInputsVw
}
type SelectSweepableUnrolledVtxosRow ¶ added in v0.8.0
type SelectSweepableUnrolledVtxosRow struct {
VtxoVw VtxoVw
}
type SelectSweepableVtxoOutpointsByCommitmentTxidRow ¶ added in v0.8.7
type SelectTxsParams ¶
type SelectTxsRow ¶
type SelectVtxoParams ¶
type SelectVtxoPubKeysByCommitmentTxidParams ¶ added in v0.8.7
type SelectVtxoRow ¶
type SelectVtxoRow struct {
VtxoVw VtxoVw
}
type SelectVtxosOutpointsByArkTxidRecursiveRow ¶ added in v0.8.7
type SelectVtxosWithPubkeysRow ¶
type SelectVtxosWithPubkeysRow struct {
VtxoVw VtxoVw
}
type UpdateVtxoIntentIdParams ¶
type UpdateVtxoIntentIdParams struct {
IntentID sql.NullString
Txid string
Vout int64
}
type UpdateVtxoSettledParams ¶
type UpdateVtxoSettledParams struct {
SpentBy sql.NullString
SettledBy sql.NullString
Txid string
Vout int64
}
type UpdateVtxoSpentParams ¶
type UpdateVtxoSpentParams struct {
SpentBy sql.NullString
ArkTxid sql.NullString
Txid string
Vout int64
}
type UpdateVtxoSweptIfNotSweptParams ¶ added in v0.8.0
type UpsertConvictionParams ¶ added in v0.8.0
type UpsertIntentParams ¶
type UpsertIntentParams struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type UpsertOffchainTxParams ¶
type UpsertReceiverParams ¶
type UpsertReceiverParams struct {
IntentID string
Pubkey sql.NullString
OnchainAddress string
Amount int64
}
type UpsertRoundParams ¶
type UpsertScheduledSessionParams ¶ added in v0.8.0
type UpsertTxParams ¶
type UpsertVtxoParams ¶
type Vtxo ¶
type Vtxo struct {
Txid string
Vout int64
Pubkey string
Amount int64
ExpiresAt int64
CreatedAt int64
CommitmentTxid string
SpentBy sql.NullString
Spent bool
Unrolled bool
Swept bool
Preconfirmed bool
SettledBy sql.NullString
ArkTxid sql.NullString
IntentID sql.NullString
}
type VtxoCommitmentTxid ¶
type VtxoVw ¶
type VtxoVw struct {
Txid string
Vout int64
Pubkey string
Amount int64
ExpiresAt int64
CreatedAt int64
CommitmentTxid string
SpentBy sql.NullString
Spent bool
Unrolled bool
Swept bool
Preconfirmed bool
SettledBy sql.NullString
ArkTxid sql.NullString
IntentID sql.NullString
Commitments interface{}
}
Click to show internal directories.
Click to hide internal directories.