Documentation
¶
Index ¶
- type Asset
- type AssetProjection
- type CheckpointTx
- type Conviction
- type DBTX
- type InsertAssetParams
- type InsertVtxoAssetProjectionParams
- type InsertVtxoCommitmentTxidParams
- type Intent
- type IntentFee
- type IntentWithInputsVw
- type IntentWithReceiversVw
- type MarketHour
- type OffchainTx
- type OffchainTxVw
- type Queries
- func (q *Queries) InsertAsset(ctx context.Context, arg InsertAssetParams) error
- func (q *Queries) InsertSettingsHistory(ctx context.Context, changedFields []string) error
- func (q *Queries) InsertVtxoAssetProjection(ctx context.Context, arg InsertVtxoAssetProjectionParams) 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) SelectAssetExists(ctx context.Context, id string) (int32, error)
- func (q *Queries) SelectAssetSupply(ctx context.Context, assetID string) (string, error)
- func (q *Queries) SelectAssetsByIds(ctx context.Context, dollar_1 []string) ([]Asset, error)
- func (q *Queries) SelectAssetsWithUnspentAmountsByIds(ctx context.Context, dollar_1 []string) ([]SelectAssetsWithUnspentAmountsByIdsRow, error)
- func (q *Queries) SelectControlAssetByID(ctx context.Context, id string) (sql.NullString, 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) SelectExpiredRounds(ctx context.Context, now int64) ([]SelectExpiredRoundsRow, error)
- func (q *Queries) SelectExpiringLiquidityAmount(ctx context.Context, arg SelectExpiringLiquidityAmountParams) (int64, error)
- func (q *Queries) SelectIntentByTxid(ctx context.Context, txid sql.NullString) (SelectIntentByTxidRow, 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, arg SelectPendingSpentVtxosWithPubkeysParams) ([]VtxoVw, error)
- func (q *Queries) SelectRecoverableLiquidityAmount(ctx context.Context) (int64, 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) SelectRoundSweepTxs(ctx context.Context, txid string) ([]SelectRoundSweepTxsRow, 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, dollar_1 []string) ([]string, error)
- func (q *Queries) SelectSettings(ctx context.Context) (Setting, 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, dollar_1 []string) ([]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) SelectVtxoPubKeysByCommitmentTxids(ctx context.Context, arg SelectVtxoPubKeysByCommitmentTxidsParams) ([]string, error)
- func (q *Queries) SelectVtxosOutpointsByArkTxidRecursive(ctx context.Context, txid string) ([]SelectVtxosOutpointsByArkTxidRecursiveRow, error)
- func (q *Queries) SelectVtxosWithPubkeys(ctx context.Context, arg SelectVtxosWithPubkeysParams) ([]SelectVtxosWithPubkeysRow, error)
- func (q *Queries) UpdateConvictionPardoned(ctx context.Context, id string) error
- func (q *Queries) UpdateRoundCollectedFees(ctx context.Context, arg UpdateRoundCollectedFeesParams) 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) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) 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 SelectAssetsWithUnspentAmountsByIdsRow
- type SelectConvictionsInTimeRangeParams
- type SelectExpiredRoundsRow
- type SelectExpiringLiquidityAmountParams
- type SelectIntentByTxidRow
- type SelectNotUnrolledVtxosRow
- type SelectNotUnrolledVtxosWithPubkeyRow
- type SelectOffchainTxRow
- type SelectPendingSpentVtxoParams
- type SelectPendingSpentVtxosWithPubkeysParams
- type SelectRoundIdsInTimeRangeParams
- type SelectRoundIdsInTimeRangeWithFiltersParams
- type SelectRoundIdsWithFiltersParams
- type SelectRoundStatsRow
- type SelectRoundSweepTxsRow
- type SelectRoundVtxoTreeLeavesRow
- type SelectRoundWithIdRow
- type SelectRoundWithTxidRow
- type SelectSweepableUnrolledVtxosRow
- type SelectSweepableVtxoOutpointsByCommitmentTxidRow
- type SelectTxsRow
- type SelectVtxoParams
- type SelectVtxoPubKeysByCommitmentTxidParams
- type SelectVtxoPubKeysByCommitmentTxidsParams
- type SelectVtxoRow
- type SelectVtxosOutpointsByArkTxidRecursiveRow
- type SelectVtxosWithPubkeysParams
- type SelectVtxosWithPubkeysRow
- type Setting
- type SettingsHistory
- type Tx
- type UpdateRoundCollectedFeesParams
- 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 UpsertSettingsParams
- 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 Asset ¶ added in v0.9.0
type Asset struct {
ID string
IsImmutable bool
MetadataHash sql.NullString
Metadata sql.NullString
ControlAssetID sql.NullString
}
type AssetProjection ¶ added in v0.9.0
type CheckpointTx ¶
type Conviction ¶ added in v0.8.0
type InsertAssetParams ¶ added in v0.9.0
type InsertAssetParams struct {
ID string
IsImmutable bool
MetadataHash sql.NullString
Metadata sql.NullString
ControlAssetID sql.NullString
}
type InsertVtxoAssetProjectionParams ¶ added in v0.9.0
type Intent ¶
type Intent struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
Txid sql.NullString
}
type IntentWithInputsVw ¶
type IntentWithInputsVw struct {
Txid sql.NullString
Vout sql.NullInt32
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
UpdatedAt sql.NullInt64
Commitments []byte
AssetID sql.NullString
AssetAmount sql.NullString
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
IntentTxid 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
Txid sql.NullString
}
type MarketHour ¶
type OffchainTx ¶
type OffchainTxVw ¶
type OffchainTxVw struct {
Txid string
Tx string
StartingTimestamp int64
EndingTimestamp int64
ExpiryTimestamp int64
FailReason sql.NullString
StageCode int32
CheckpointTxid sql.NullString
CheckpointTx sql.NullString
CommitmentTxid sql.NullString
IsRootCommitmentTxid sql.NullBool
OffchainTxid sql.NullString
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) InsertAsset ¶ added in v0.9.0
func (q *Queries) InsertAsset(ctx context.Context, arg InsertAssetParams) error
func (*Queries) InsertSettingsHistory ¶ added in v0.9.9
func (*Queries) InsertVtxoAssetProjection ¶ added in v0.9.0
func (q *Queries) InsertVtxoAssetProjection(ctx context.Context, arg InsertVtxoAssetProjectionParams) error
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) SelectAssetExists ¶ added in v0.9.0
func (*Queries) SelectAssetSupply ¶ added in v0.9.0
func (*Queries) SelectAssetsByIds ¶ added in v0.9.0
func (*Queries) SelectAssetsWithUnspentAmountsByIds ¶ added in v0.9.9
func (*Queries) SelectControlAssetByID ¶ added in v0.9.0
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) SelectExpiredRounds ¶ added in v0.9.8
func (*Queries) SelectExpiringLiquidityAmount ¶ added in v0.8.11
func (*Queries) SelectIntentByTxid ¶ added in v0.9.0
func (q *Queries) SelectIntentByTxid(ctx context.Context, txid sql.NullString) (SelectIntentByTxidRow, 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) SelectRoundSweepTxs ¶ added in v0.9.4
func (*Queries) SelectRoundVtxoTree ¶
func (*Queries) SelectRoundVtxoTreeLeaves ¶
func (*Queries) SelectRoundWithId ¶
func (*Queries) SelectRoundWithTxid ¶
func (*Queries) SelectRoundsWithTxids ¶
func (*Queries) SelectSettings ¶ added in v0.9.9
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) SelectVtxo ¶
func (q *Queries) SelectVtxo(ctx context.Context, arg SelectVtxoParams) ([]SelectVtxoRow, error)
func (*Queries) SelectVtxoPubKeysByCommitmentTxid ¶ added in v0.8.7
func (*Queries) SelectVtxoPubKeysByCommitmentTxids ¶ added in v0.9.7
func (q *Queries) SelectVtxoPubKeysByCommitmentTxids(ctx context.Context, arg SelectVtxoPubKeysByCommitmentTxidsParams) ([]string, error)
Bulk variant of SelectVtxoPubKeysByCommitmentTxid: returns the deduplicated set of vtxo pubkeys for any of the given commitment_txids. Used at startup by restoreWatchingVtxos to collapse what was an N+1 per-round loop into a single SQL call. The named parameter is reused in both IN/ANY clauses; postgres binds it once.
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 (q *Queries) SelectVtxosWithPubkeys(ctx context.Context, arg SelectVtxosWithPubkeysParams) ([]SelectVtxosWithPubkeysRow, error)
func (*Queries) UpdateConvictionPardoned ¶ added in v0.8.0
func (*Queries) UpdateRoundCollectedFees ¶ added in v0.9.7
func (q *Queries) UpdateRoundCollectedFees(ctx context.Context, arg UpdateRoundCollectedFeesParams) error
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) UpsertSettings ¶ added in v0.9.9
func (q *Queries) UpsertSettings(ctx context.Context, arg UpsertSettingsParams) 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 RoundIntentsVw ¶
type RoundIntentsVw struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
Txid sql.NullString
}
type RoundTxsVw ¶
type RoundTxsVw struct {
Txid sql.NullString
Tx sql.NullString
RoundID sql.NullString
Type sql.NullString
Position sql.NullInt32
Children pqtype.NullRawMessage
}
type RoundWithCommitmentTxVw ¶
type RoundWithCommitmentTxVw struct {
ID string
StartingTimestamp int64
EndingTimestamp int64
Ended bool
Failed bool
StageCode int32
ConnectorAddress string
Version int32
Swept bool
VtxoTreeExpiration int64
FailReason sql.NullString
Txid string
Tx string
RoundID string
Type string
Position int32
Children pqtype.NullRawMessage
}
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 SelectAssetsWithUnspentAmountsByIdsRow ¶ added in v0.9.9
type SelectAssetsWithUnspentAmountsByIdsRow struct {
ID string
IsImmutable bool
MetadataHash sql.NullString
Metadata sql.NullString
ControlAssetID sql.NullString
AssetAmount string
}
type SelectConvictionsInTimeRangeParams ¶ added in v0.8.0
type SelectExpiredRoundsRow ¶ added in v0.9.8
type SelectExpiringLiquidityAmountParams ¶ added in v0.8.11
type SelectExpiringLiquidityAmountParams struct {
After int64
Before interface{}
}
type SelectIntentByTxidRow ¶ added in v0.9.0
type SelectIntentByTxidRow struct {
ID sql.NullString
Txid sql.NullString
Proof sql.NullString
Message sql.NullString
}
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 SelectPendingSpentVtxosWithPubkeysParams ¶ added in v0.9.0
type SelectRoundIdsInTimeRangeWithFiltersParams ¶ added in v0.8.0
type SelectRoundIdsWithFiltersParams ¶ added in v0.8.0
type SelectRoundStatsRow ¶
type SelectRoundSweepTxsRow ¶ added in v0.9.4
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 SelectTxsRow ¶
type SelectVtxoParams ¶
type SelectVtxoPubKeysByCommitmentTxidParams ¶ added in v0.8.7
type SelectVtxoPubKeysByCommitmentTxidsParams ¶ added in v0.9.7
type SelectVtxoRow ¶
type SelectVtxoRow struct {
VtxoVw VtxoVw
}
type SelectVtxosOutpointsByArkTxidRecursiveRow ¶ added in v0.8.7
type SelectVtxosWithPubkeysParams ¶ added in v0.9.0
type SelectVtxosWithPubkeysRow ¶
type SelectVtxosWithPubkeysRow struct {
VtxoVw VtxoVw
}
type Setting ¶ added in v0.9.9
type Setting struct {
ID int64
SessionDuration int64
UnrolledVtxoMinExpiryMargin int64
BanThreshold int64
BanDuration int64
UnilateralExitDelay int64
PublicUnilateralExitDelay int64
CheckpointExitDelay int64
BoardingExitDelay int64
VtxoTreeExpiry int64
RoundMinParticipantsCount int64
RoundMaxParticipantsCount int64
VtxoMinAmount int64
VtxoMaxAmount int64
UtxoMinAmount int64
UtxoMaxAmount int64
SettlementMinExpiryGap int64
VtxoNoCsvValidationCutoffDate int64
MaxTxWeight int64
MaxOpReturnOutputs int64
AssetTxMaxWeightRatio float32
NoteUriPrefix string
ScheduledSessionStartTime int64
ScheduledSessionEndTime int64
ScheduledSessionPeriod int64
ScheduledSessionDuration int64
ScheduledSessionRoundMinParticipantsCount int64
ScheduledSessionRoundMaxParticipantsCount int64
BatchOnchainInputFee string
BatchOffchainInputFee string
BatchOnchainOutputFee string
BatchOffchainOutputFee string
BuildVersionHeader string
BuildVersionHeaderRequired bool
DigestHeaderRequired bool
UpdatedAt int64
}
type SettingsHistory ¶ added in v0.9.9
type SettingsHistory struct {
ID int64
ChangedAt int64
ChangedFields []string
Settings json.RawMessage
}
type UpdateRoundCollectedFeesParams ¶ added in v0.9.7
type UpdateVtxoIntentIdParams ¶
type UpdateVtxoIntentIdParams struct {
IntentID sql.NullString
Txid string
Vout int32
}
type UpdateVtxoSettledParams ¶
type UpdateVtxoSettledParams struct {
SpentBy sql.NullString
SettledBy sql.NullString
Txid string
Vout int32
}
type UpdateVtxoSpentParams ¶
type UpdateVtxoSpentParams struct {
SpentBy sql.NullString
ArkTxid sql.NullString
Txid string
Vout int32
}
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
Txid sql.NullString
}
type UpsertOffchainTxParams ¶
type UpsertReceiverParams ¶
type UpsertRoundParams ¶
type UpsertSettingsParams ¶ added in v0.9.9
type UpsertSettingsParams struct {
SessionDuration int64
UnrolledVtxoMinExpiryMargin int64
BanThreshold int64
BanDuration int64
UnilateralExitDelay int64
PublicUnilateralExitDelay int64
CheckpointExitDelay int64
BoardingExitDelay int64
VtxoTreeExpiry int64
RoundMinParticipantsCount int64
RoundMaxParticipantsCount int64
VtxoMinAmount int64
VtxoMaxAmount int64
UtxoMinAmount int64
UtxoMaxAmount int64
SettlementMinExpiryGap int64
VtxoNoCsvValidationCutoffDate int64
MaxTxWeight int64
MaxOpReturnOutputs int64
AssetTxMaxWeightRatio float32
NoteUriPrefix string
ScheduledSessionStartTime int64
ScheduledSessionEndTime int64
ScheduledSessionPeriod int64
ScheduledSessionDuration int64
ScheduledSessionRoundMinParticipantsCount int64
ScheduledSessionRoundMaxParticipantsCount int64
BatchOnchainInputFee string
BatchOffchainInputFee string
BatchOnchainOutputFee string
BatchOffchainOutputFee string
BuildVersionHeader string
BuildVersionHeaderRequired bool
DigestHeaderRequired bool
UpdatedAt int64
}
type UpsertTxParams ¶
type UpsertVtxoParams ¶
type Vtxo ¶
type Vtxo struct {
Txid string
Vout int32
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
UpdatedAt int64
}
type VtxoCommitmentTxid ¶
type VtxoVw ¶
type VtxoVw struct {
Txid string
Vout int32
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
UpdatedAt int64
Commitments []byte
AssetID string
AssetAmount string
}
Click to show internal directories.
Click to hide internal directories.