mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
* Drop unused ComputeOutputScript & use ParseTaprootScript internally * Add pending field to vtxo domain * Add check to handle async change as claimed vtxo & Move check to prevent spending penidng vtxos to app level * Rename utils.go to parser.go & Fixes * Ignore sent-and-reversible vtxos in ListVtxos * Fixes Co-authored-by: Louis Singer <louisinger@users.noreply.github.com> * Fix e2e test Co-authored-by: Louis Singer <louisinger@users.noreply.github.com> Co-authored-by: João Bordalo <bordalix@users.noreply.github.com> * Fix * Add PendingChange field to vtxo * Add PendingChange field to Transaction * Fixes * Remove logs --------- Co-authored-by: Louis Singer <louisinger@users.noreply.github.com> Co-authored-by: João Bordalo <bordalix@users.noreply.github.com>
121 lines
2.3 KiB
Go
121 lines
2.3 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.27.0
|
|
|
|
package queries
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
type Payment struct {
|
|
ID string
|
|
RoundID string
|
|
}
|
|
|
|
type PaymentReceiverVw struct {
|
|
PaymentID sql.NullString
|
|
Descriptor sql.NullString
|
|
Amount sql.NullInt64
|
|
OnchainAddress sql.NullString
|
|
}
|
|
|
|
type PaymentVtxoVw struct {
|
|
Txid sql.NullString
|
|
Vout sql.NullInt64
|
|
Amount sql.NullInt64
|
|
PoolTx sql.NullString
|
|
SpentBy sql.NullString
|
|
Spent sql.NullBool
|
|
Redeemed sql.NullBool
|
|
Swept sql.NullBool
|
|
ExpireAt sql.NullInt64
|
|
PaymentID sql.NullString
|
|
RedeemTx sql.NullString
|
|
Descriptor sql.NullString
|
|
PendingChange sql.NullBool
|
|
}
|
|
|
|
type Receiver struct {
|
|
PaymentID string
|
|
Descriptor string
|
|
Amount int64
|
|
OnchainAddress string
|
|
}
|
|
|
|
type Round struct {
|
|
ID string
|
|
StartingTimestamp int64
|
|
EndingTimestamp int64
|
|
Ended bool
|
|
Failed bool
|
|
StageCode int64
|
|
Txid string
|
|
UnsignedTx string
|
|
ConnectorAddress string
|
|
DustAmount int64
|
|
Version int64
|
|
Swept bool
|
|
}
|
|
|
|
type RoundPaymentVw struct {
|
|
ID sql.NullString
|
|
RoundID sql.NullString
|
|
}
|
|
|
|
type RoundTxVw struct {
|
|
ID sql.NullInt64
|
|
Tx sql.NullString
|
|
RoundID sql.NullString
|
|
Type sql.NullString
|
|
Position sql.NullInt64
|
|
Txid sql.NullString
|
|
TreeLevel sql.NullInt64
|
|
ParentTxid sql.NullString
|
|
IsLeaf sql.NullBool
|
|
}
|
|
|
|
type Tx struct {
|
|
ID int64
|
|
Tx string
|
|
RoundID string
|
|
Type string
|
|
Position int64
|
|
Txid sql.NullString
|
|
TreeLevel sql.NullInt64
|
|
ParentTxid sql.NullString
|
|
IsLeaf sql.NullBool
|
|
}
|
|
|
|
type UncondForfeitTx struct {
|
|
ID int64
|
|
Tx string
|
|
VtxoTxid string
|
|
VtxoVout int64
|
|
Position int64
|
|
}
|
|
|
|
type UncondForfeitTxVw struct {
|
|
ID sql.NullInt64
|
|
Tx sql.NullString
|
|
VtxoTxid sql.NullString
|
|
VtxoVout sql.NullInt64
|
|
Position sql.NullInt64
|
|
}
|
|
|
|
type Vtxo struct {
|
|
Txid string
|
|
Vout int64
|
|
Amount int64
|
|
PoolTx string
|
|
SpentBy string
|
|
Spent bool
|
|
Redeemed bool
|
|
Swept bool
|
|
ExpireAt int64
|
|
PaymentID sql.NullString
|
|
RedeemTx sql.NullString
|
|
Descriptor sql.NullString
|
|
PendingChange sql.NullBool
|
|
}
|