Documentation
¶
Index ¶
- type CheckpointTx
- type DBTX
- type InsertVtxoCommitmentTxidParams
- type Intent
- type IntentWithInputsVw
- type IntentWithReceiversVw
- type MarketHour
- type OffchainTx
- type OffchainTxVw
- type Queries
- func (q *Queries) InsertVtxoCommitmentTxid(ctx context.Context, arg InsertVtxoCommitmentTxidParams) error
- func (q *Queries) SelectAllRoundIds(ctx context.Context) ([]string, error)
- func (q *Queries) SelectAllVtxos(ctx context.Context) ([]SelectAllVtxosRow, error)
- func (q *Queries) SelectLatestMarketHour(ctx context.Context) (MarketHour, 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) 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) 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, dollar_1 []string) ([]string, error)
- func (q *Queries) SelectSweepableRounds(ctx context.Context) ([]string, error)
- func (q *Queries) SelectSweepableVtxos(ctx context.Context) ([]SelectSweepableVtxosRow, 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) SelectVtxosWithCommitmentTxid(ctx context.Context, commitmentTxid string) ([]SelectVtxosWithCommitmentTxidRow, error)
- func (q *Queries) SelectVtxosWithPubkeys(ctx context.Context, dollar_1 []string) ([]SelectVtxosWithPubkeysRow, 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) UpdateVtxoSwept(ctx context.Context, arg UpdateVtxoSweptParams) error
- func (q *Queries) UpdateVtxoUnrolled(ctx context.Context, arg UpdateVtxoUnrolledParams) error
- func (q *Queries) UpsertCheckpointTx(ctx context.Context, arg UpsertCheckpointTxParams) error
- func (q *Queries) UpsertIntent(ctx context.Context, arg UpsertIntentParams) error
- func (q *Queries) UpsertMarketHour(ctx context.Context, arg UpsertMarketHourParams) 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) 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 SelectAllVtxosRow
- type SelectNotUnrolledVtxosRow
- type SelectNotUnrolledVtxosWithPubkeyRow
- type SelectOffchainTxRow
- type SelectRoundIdsInTimeRangeParams
- type SelectRoundStatsRow
- type SelectRoundVtxoTreeLeavesRow
- type SelectRoundWithIdRow
- type SelectRoundWithTxidRow
- type SelectSweepableVtxosRow
- type SelectTxsRow
- type SelectVtxoParams
- type SelectVtxoRow
- type SelectVtxosWithCommitmentTxidRow
- type SelectVtxosWithPubkeysRow
- type Tx
- type UpdateVtxoExpirationParams
- type UpdateVtxoIntentIdParams
- type UpdateVtxoSettledParams
- type UpdateVtxoSpentParams
- type UpdateVtxoSweptParams
- type UpdateVtxoUnrolledParams
- type UpsertCheckpointTxParams
- type UpsertIntentParams
- type UpsertMarketHourParams
- type UpsertOffchainTxParams
- type UpsertReceiverParams
- type UpsertRoundParams
- 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 CheckpointTx ¶
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.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
Commitments []byte
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 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) InsertVtxoCommitmentTxid ¶
func (q *Queries) InsertVtxoCommitmentTxid(ctx context.Context, arg InsertVtxoCommitmentTxidParams) error
func (*Queries) SelectAllRoundIds ¶
func (*Queries) SelectAllVtxos ¶
func (q *Queries) SelectAllVtxos(ctx context.Context) ([]SelectAllVtxosRow, error)
func (*Queries) SelectLatestMarketHour ¶
func (q *Queries) SelectLatestMarketHour(ctx context.Context) (MarketHour, error)
func (*Queries) SelectNotUnrolledVtxos ¶
func (q *Queries) SelectNotUnrolledVtxos(ctx context.Context) ([]SelectNotUnrolledVtxosRow, error)
func (*Queries) SelectNotUnrolledVtxosWithPubkey ¶
func (*Queries) SelectOffchainTx ¶
func (*Queries) SelectRoundConnectors ¶
func (*Queries) SelectRoundForfeitTxs ¶
func (*Queries) SelectRoundIdsInTimeRange ¶
func (*Queries) SelectRoundStats ¶
func (*Queries) SelectRoundVtxoTree ¶
func (*Queries) SelectRoundVtxoTreeLeaves ¶
func (*Queries) SelectRoundWithId ¶
func (*Queries) SelectRoundWithTxid ¶
func (*Queries) SelectRoundsWithTxids ¶
func (*Queries) SelectSweepableRounds ¶
func (*Queries) SelectSweepableVtxos ¶
func (q *Queries) SelectSweepableVtxos(ctx context.Context) ([]SelectSweepableVtxosRow, error)
func (*Queries) SelectSweptRoundsConnectorAddress ¶
func (*Queries) SelectVtxo ¶
func (q *Queries) SelectVtxo(ctx context.Context, arg SelectVtxoParams) (SelectVtxoRow, error)
func (*Queries) SelectVtxosWithCommitmentTxid ¶
func (*Queries) SelectVtxosWithPubkeys ¶
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) UpdateVtxoSwept ¶
func (q *Queries) UpdateVtxoSwept(ctx context.Context, arg UpdateVtxoSweptParams) error
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) UpsertIntent ¶
func (q *Queries) UpsertIntent(ctx context.Context, arg UpsertIntentParams) error
func (*Queries) UpsertMarketHour ¶
func (q *Queries) UpsertMarketHour(ctx context.Context, arg UpsertMarketHourParams) 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) 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
}
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 SelectAllVtxosRow ¶
type SelectAllVtxosRow struct {
VtxoVw VtxoVw
}
type SelectNotUnrolledVtxosRow ¶
type SelectNotUnrolledVtxosRow struct {
VtxoVw VtxoVw
}
type SelectNotUnrolledVtxosWithPubkeyRow ¶
type SelectNotUnrolledVtxosWithPubkeyRow struct {
VtxoVw VtxoVw
}
type SelectOffchainTxRow ¶
type SelectOffchainTxRow struct {
OffchainTxVw OffchainTxVw
}
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 SelectSweepableVtxosRow ¶
type SelectSweepableVtxosRow struct {
VtxoVw VtxoVw
}
type SelectTxsRow ¶
type SelectVtxoParams ¶
type SelectVtxoRow ¶
type SelectVtxoRow struct {
VtxoVw VtxoVw
}
type SelectVtxosWithCommitmentTxidRow ¶
type SelectVtxosWithCommitmentTxidRow struct {
VtxoVw VtxoVw
}
type SelectVtxosWithPubkeysRow ¶
type SelectVtxosWithPubkeysRow struct {
VtxoVw VtxoVw
}
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 UpdateVtxoSweptParams ¶
type UpsertIntentParams ¶
type UpsertIntentParams struct {
ID sql.NullString
RoundID sql.NullString
Proof sql.NullString
Message sql.NullString
}
type UpsertMarketHourParams ¶
type UpsertOffchainTxParams ¶
type UpsertReceiverParams ¶
type UpsertRoundParams ¶
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
}
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
Commitments []byte
}
Click to show internal directories.
Click to hide internal directories.