sqlc

package
v0.7.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AllAssets = `` /* 249-byte string literal not displayed */
View Source
const AllInternalKeys = `-- name: AllInternalKeys :many
SELECT key_id, raw_key, key_family, key_index 
FROM internal_keys
`
View Source
const AllMintingBatches = `` /* 352-byte string literal not displayed */
View Source
const AnchorGenesisPoint = `` /* 258-byte string literal not displayed */
View Source
const AnchorPendingAssets = `` /* 415-byte string literal not displayed */
View Source
const ApplyPendingOutput = `` /* 828-byte string literal not displayed */
View Source
const AssetsByGenesisPoint = `` /* 616-byte string literal not displayed */
View Source
const AssetsDBSizePostgres = `-- name: AssetsDBSizePostgres :one
SELECT pg_catalog.pg_database_size(current_database()) AS size
`
View Source
const AssetsDBSizeSqlite = `` /* 126-byte string literal not displayed */
View Source
const AssetsInBatch = `` /* 528-byte string literal not displayed */
View Source
const BindMintingBatchWithTapSibling = `` /* 338-byte string literal not displayed */
View Source
const BindMintingBatchWithTx = `` /* 446-byte string literal not displayed */
View Source
const ConfirmChainAnchorTx = `-- name: ConfirmChainAnchorTx :exec
UPDATE chain_txns
SET block_height = $2, block_hash = $3, tx_index = $4
WHERE txid = $1
`
View Source
const ConfirmChainTx = `` /* 423-byte string literal not displayed */
View Source
const CountAuthMailboxMessages = `-- name: CountAuthMailboxMessages :one
SELECT COUNT(*) AS count
FROM authmailbox_messages m
`
View Source
const DeleteAllNodes = `-- name: DeleteAllNodes :execrows
DELETE FROM mssmt_nodes WHERE namespace = $1
`
View Source
const DeleteAssetWitnesses = `-- name: DeleteAssetWitnesses :exec
DELETE FROM asset_witnesses
WHERE asset_id = $1
`
View Source
const DeleteExpiredUTXOLeases = `` /* 197-byte string literal not displayed */
View Source
const DeleteFederationProofSyncLog = `` /* 515-byte string literal not displayed */
View Source
const DeleteManagedUTXO = `-- name: DeleteManagedUTXO :exec
DELETE FROM managed_utxos
WHERE outpoint = $1
`
View Source
const DeleteMultiverseLeaf = `-- name: DeleteMultiverseLeaf :exec
DELETE FROM multiverse_leaves
WHERE leaf_node_namespace = $1 AND leaf_node_key = $2
`
View Source
const DeleteNode = `-- name: DeleteNode :execrows
DELETE FROM mssmt_nodes WHERE hash_key = $1 AND namespace = $2
`
View Source
const DeleteRoot = `-- name: DeleteRoot :execrows
DELETE FROM mssmt_roots WHERE namespace = $1
`
View Source
const DeleteSupplyCommitTransition = `-- name: DeleteSupplyCommitTransition :exec
DELETE FROM supply_commit_transitions
WHERE transition_id = $1
`
View Source
const DeleteSupplyUpdateEvents = `-- name: DeleteSupplyUpdateEvents :exec
DELETE FROM supply_update_events
WHERE transition_id = $1
`
View Source
const DeleteTapscriptTreeEdges = `` /* 442-byte string literal not displayed */
View Source
const DeleteTapscriptTreeNodes = `` /* 262-byte string literal not displayed */
View Source
const DeleteTapscriptTreeRoot = `-- name: DeleteTapscriptTreeRoot :exec
DELETE FROM tapscript_roots
WHERE root_hash = $1
`
View Source
const DeleteUTXOLease = `-- name: DeleteUTXOLease :exec
UPDATE managed_utxos
SET lease_owner = NULL, lease_expiry = NULL
WHERE outpoint = $1
`
View Source
const DeleteUniverseEvents = `` /* 202-byte string literal not displayed */
View Source
const DeleteUniverseLeaves = `-- name: DeleteUniverseLeaves :exec
DELETE FROM universe_leaves
WHERE leaf_node_namespace = $1
`
View Source
const DeleteUniverseRoot = `-- name: DeleteUniverseRoot :exec
DELETE FROM universe_roots
WHERE namespace_root = $1
`
View Source
const DeleteUniverseServer = `-- name: DeleteUniverseServer :exec
DELETE FROM universe_servers
WHERE server_host = $1 OR id = $2
`
View Source
const DeleteUniverseSupplyLeaf = `` /* 129-byte string literal not displayed */
View Source
const DeleteUniverseSupplyLeaves = `` /* 171-byte string literal not displayed */
View Source
const DeleteUniverseSupplyRoot = `-- name: DeleteUniverseSupplyRoot :exec
DELETE FROM universe_supply_roots
WHERE namespace_root = $1
`
View Source
const FetchAddrEvent = `` /* 733-byte string literal not displayed */
View Source
const FetchAddrEventByAddrKeyAndOutpoint = `` /* 973-byte string literal not displayed */
View Source
const FetchAddrEventOutputs = `` /* 608-byte string literal not displayed */
View Source
const FetchAddrEventProofs = `` /* 257-byte string literal not displayed */
View Source
const FetchAddrs = `` /* 1051-byte string literal not displayed */
View Source
const FetchAllAssetMeta = `` /* 436-byte string literal not displayed */
View Source
const FetchAllNodes = `-- name: FetchAllNodes :many
SELECT hash_key, l_hash_key, r_hash_key, key, value, sum, namespace FROM mssmt_nodes
`
View Source
const FetchAssetID = `` /* 362-byte string literal not displayed */
View Source
const FetchAssetMeta = `` /* 320-byte string literal not displayed */
View Source
const FetchAssetMetaByHash = `` /* 333-byte string literal not displayed */
View Source
const FetchAssetMetaForAsset = `` /* 412-byte string literal not displayed */
View Source
const FetchAssetProof = `` /* 806-byte string literal not displayed */
View Source
const FetchAssetProofs = `` /* 372-byte string literal not displayed */
View Source
const FetchAssetProofsByAssetID = `` /* 485-byte string literal not displayed */
View Source
const FetchAssetProofsSizes = `` /* 301-byte string literal not displayed */
View Source
const FetchAssetWitnesses = `` /* 314-byte string literal not displayed */
View Source
const FetchAssetsByAnchorTx = `` /* 286-byte string literal not displayed */
View Source
const FetchAssetsForBatch = `` /* 3189-byte string literal not displayed */
View Source
const FetchAuthMailboxMessage = `` /* 287-byte string literal not displayed */
View Source
const FetchAuthMailboxMessageByOutpoint = `` /* 312-byte string literal not displayed */
View Source
const FetchChainTx = `` /* 135-byte string literal not displayed */
View Source
const FetchChainTxByID = `` /* 138-byte string literal not displayed */
View Source
const FetchChildren = `` /* 1034-byte string literal not displayed */
View Source
const FetchChildrenSelfJoin = `` /* 620-byte string literal not displayed */
View Source
const FetchGenesisByAssetID = `` /* 195-byte string literal not displayed */
View Source
const FetchGenesisByGroupKey = `` /* 315-byte string literal not displayed */
View Source
const FetchGenesisByID = `` /* 362-byte string literal not displayed */
View Source
const FetchGenesisID = `` /* 555-byte string literal not displayed */
View Source
const FetchGenesisIDByAssetID = `-- name: FetchGenesisIDByAssetID :one
SELECT gen_asset_id
FROM genesis_assets
WHERE asset_id = $1
`
View Source
const FetchGenesisPointByAnchorTx = `` /* 129-byte string literal not displayed */
View Source
const FetchGroupByGenesis = `` /* 549-byte string literal not displayed */
View Source
const FetchGroupByGroupKey = `` /* 593-byte string literal not displayed */
View Source
const FetchGroupedAssets = `` /* 556-byte string literal not displayed */
View Source
const FetchInternalKeyByID = `-- name: FetchInternalKeyByID :one
SELECT raw_key, key_family, key_index
FROM internal_keys
WHERE key_id = $1
`
View Source
const FetchInternalKeyLocator = `-- name: FetchInternalKeyLocator :one
SELECT key_family, key_index
FROM internal_keys
WHERE raw_key = $1
`
View Source
const FetchManagedUTXO = `` /* 402-byte string literal not displayed */
View Source
const FetchManagedUTXOs = `` /* 318-byte string literal not displayed */
View Source
const FetchMintSupplyPreCommits = `` /* 953-byte string literal not displayed */
View Source
const FetchMintingBatch = `` /* 854-byte string literal not displayed */
View Source
const FetchMintingBatchesByInverseState = `` /* 392-byte string literal not displayed */
View Source
const FetchMultiverseRoot = `` /* 313-byte string literal not displayed */
View Source
const FetchRootNode = `` /* 257-byte string literal not displayed */
View Source
const FetchScriptKeyByTweakedKey = `` /* 406-byte string literal not displayed */
View Source
const FetchScriptKeyIDByTweakedKey = `-- name: FetchScriptKeyIDByTweakedKey :one
SELECT script_key_id
FROM script_keys
WHERE tweaked_script_key = $1
`
View Source
const FetchSeedlingByID = `` /* 327-byte string literal not displayed */
View Source
const FetchSeedlingID = `` /* 568-byte string literal not displayed */
View Source
const FetchSeedlingsForBatch = `` /* 2111-byte string literal not displayed */
View Source
const FetchSupplyCommit = `` /* 555-byte string literal not displayed */
View Source
const FetchSupplySyncerPushLogs = `` /* 243-byte string literal not displayed */
View Source
const FetchTapscriptTree = `` /* 690-byte string literal not displayed */
View Source
const FetchTransferInputs = `` /* 170-byte string literal not displayed */
View Source
const FetchTransferOutputs = `` /* 1507-byte string literal not displayed */
View Source
const FetchUniverseKeys = `` /* 274-byte string literal not displayed */
View Source
const FetchUniverseRoot = `` /* 532-byte string literal not displayed */
View Source
const FetchUniverseSupplyRoot = `` /* 303-byte string literal not displayed */
View Source
const FetchUnknownTypeScriptKeys = `` /* 400-byte string literal not displayed */
View Source
const FetchUnspentMintSupplyPreCommits = `` /* 708-byte string literal not displayed */
View Source
const FetchUnspentSupplyPreCommits = `` /* 367-byte string literal not displayed */
View Source
const FinalizeSupplyCommitTransition = `-- name: FinalizeSupplyCommitTransition :exec
UPDATE supply_commit_transitions
SET finalized = TRUE
WHERE transition_id = $1
`
View Source
const FreezePendingTransition = `` /* 147-byte string literal not displayed */
View Source
const GenesisAssets = `` /* 149-byte string literal not displayed */
View Source
const GenesisPoints = `-- name: GenesisPoints :many
SELECT genesis_id, prev_out, anchor_tx_id
FROM genesis_points
`
View Source
const GetRootKey = `-- name: GetRootKey :one
SELECT id, root_key FROM macaroons 
WHERE id = $1
`
View Source
const HasAssetProof = `` /* 357-byte string literal not displayed */
View Source
const InsertAssetSeedling = `` /* 403-byte string literal not displayed */
View Source
const InsertAssetSeedlingIntoBatch = `` /* 916-byte string literal not displayed */
View Source
const InsertAssetTransfer = `` /* 323-byte string literal not displayed */
View Source
const InsertAssetTransferInput = `` /* 172-byte string literal not displayed */
View Source
const InsertAssetTransferOutput = `` /* 502-byte string literal not displayed */
View Source
const InsertAuthMailboxMessage = `` /* 192-byte string literal not displayed */
View Source
const InsertBranch = `` /* 161-byte string literal not displayed */
View Source
const InsertBurn = `` /* 165-byte string literal not displayed */
View Source
const InsertCompactedLeaf = `` /* 168-byte string literal not displayed */
View Source
const InsertLeaf = `` /* 161-byte string literal not displayed */
View Source
const InsertNewProofEvent = `` /* 795-byte string literal not displayed */
View Source
const InsertNewSyncEvent = `` /* 787-byte string literal not displayed */
View Source
const InsertPassiveAsset = `` /* 711-byte string literal not displayed */
View Source
const InsertRootKey = `-- name: InsertRootKey :exec
INSERT INTO macaroons (id, root_key) VALUES ($1, $2)
`
View Source
const InsertSupplyCommitTransition = `` /* 278-byte string literal not displayed */
View Source
const InsertSupplyCommitment = `` /* 396-byte string literal not displayed */
View Source
const InsertSupplySyncerPushLog = `` /* 244-byte string literal not displayed */
View Source
const InsertSupplyUpdateEvent = `` /* 163-byte string literal not displayed */
View Source
const InsertTxProof = `` /* 172-byte string literal not displayed */
View Source
const InsertUniverseServer = `-- name: InsertUniverseServer :exec
INSERT INTO universe_servers(
    server_host, last_sync_time
) VALUES (
    $1, $2
)
`
View Source
const LinkDanglingSupplyUpdateEvents = `` /* 144-byte string literal not displayed */
View Source
const LogProofTransferAttempt = `` /* 149-byte string literal not displayed */
View Source
const LogServerSync = `-- name: LogServerSync :exec
UPDATE universe_servers
SET last_sync_time = $1
WHERE server_host = $2
`
View Source
const MarkMintPreCommitSpentByOutpoint = `` /* 142-byte string literal not displayed */
View Source
const MarkPreCommitSpentByOutpoint = `` /* 131-byte string literal not displayed */
View Source
const NewMintingBatch = `` /* 177-byte string literal not displayed */
View Source
const QueryAddr = `` /* 1093-byte string literal not displayed */
View Source
const QueryAssetBalancesByAsset = `` /* 1528-byte string literal not displayed */
View Source
const QueryAssetBalancesByGroup = `` /* 1009-byte string literal not displayed */
View Source
const QueryAssetStatsPerDayPostgres = `` /* 406-byte string literal not displayed */
View Source
const QueryAssetStatsPerDaySqlite = `` /* 439-byte string literal not displayed */
View Source
const QueryAssetTransfers = `` /* 1450-byte string literal not displayed */
View Source
const QueryAssets = `` /* 3336-byte string literal not displayed */
View Source
const QueryAuthMailboxMessages = `` /* 647-byte string literal not displayed */
View Source
const QueryBurns = `` /* 583-byte string literal not displayed */
View Source
const QueryDanglingSupplyUpdateEvents = `` /* 343-byte string literal not displayed */
View Source
const QueryEventIDs = `` /* 425-byte string literal not displayed */
View Source
const QueryExistingPendingTransition = `` /* 170-byte string literal not displayed */
View Source
const QueryFederationGlobalSyncConfigs = `` /* 159-byte string literal not displayed */
View Source
const QueryFederationProofSyncLog = `` /* 1404-byte string literal not displayed */
View Source
const QueryFederationUniSyncConfigs = `` /* 228-byte string literal not displayed */
View Source
const QueryLastEventHeight = `` /* 274-byte string literal not displayed */
View Source
const QueryLatestSupplyCommitment = `` /* 424-byte string literal not displayed */
View Source
const QueryMultiverseLeaves = `` /* 491-byte string literal not displayed */
View Source
const QueryPassiveAssets = `` /* 535-byte string literal not displayed */
View Source
const QueryPendingSupplyCommitTransition = `` /* 485-byte string literal not displayed */
View Source
const QueryProofTransferAttempts = `` /* 164-byte string literal not displayed */
View Source
const QueryStartingSupplyCommitment = `` /* 424-byte string literal not displayed */
View Source
const QuerySupplyCommitStateMachine = `` /* 278-byte string literal not displayed */
View Source
const QuerySupplyCommitment = `` /* 373-byte string literal not displayed */
View Source
const QuerySupplyCommitmentByOutpoint = `` /* 436-byte string literal not displayed */
View Source
const QuerySupplyCommitmentBySpentOutpoint = `` /* 687-byte string literal not displayed */
View Source
const QuerySupplyCommitmentOutpoint = `` /* 191-byte string literal not displayed */
View Source
const QuerySupplyLeavesByHeight = `` /* 577-byte string literal not displayed */
View Source
const QuerySupplyUpdateEvents = `` /* 310-byte string literal not displayed */
View Source
const QueryUniverseAssetStats = `` /* 3955-byte string literal not displayed */
View Source
const QueryUniverseLeaves = `` /* 563-byte string literal not displayed */
View Source
const QueryUniverseServers = `` /* 181-byte string literal not displayed */
View Source
const QueryUniverseStats = `` /* 1300-byte string literal not displayed */
View Source
const QueryUniverseSupplyLeaves = `` /* 427-byte string literal not displayed */
View Source
const ReAnchorPassiveAssets = `` /* 320-byte string literal not displayed */
View Source
const SetAddrManaged = `` /* 212-byte string literal not displayed */
View Source
const SetAssetSpent = `` /* 604-byte string literal not displayed */
View Source
const SetTransferOutputProofDeliveryStatus = `` /* 398-byte string literal not displayed */
View Source
const UniverseLeaves = `` /* 180-byte string literal not displayed */
View Source
const UniverseRoots = `` /* 639-byte string literal not displayed */
View Source
const UpdateBatchGenesisTx = `` /* 326-byte string literal not displayed */
View Source
const UpdateMintingBatchState = `` /* 601-byte string literal not displayed */
View Source
const UpdateSupplyCommitTransitionCommitment = `` /* 171-byte string literal not displayed */
View Source
const UpdateSupplyCommitmentChainDetails = `` /* 211-byte string literal not displayed */
View Source
const UpdateSupplyCommitmentRoot = `` /* 141-byte string literal not displayed */
View Source
const UpdateUTXOLease = `-- name: UpdateUTXOLease :exec
UPDATE managed_utxos
SET lease_owner = $1, lease_expiry = $2
WHERE outpoint = $3
`
View Source
const UpsertAddr = `` /* 1430-byte string literal not displayed */
View Source
const UpsertAddrEvent = `` /* 580-byte string literal not displayed */
View Source
const UpsertAddrEventOutput = `` /* 347-byte string literal not displayed */
View Source
const UpsertAddrEventProof = `` /* 299-byte string literal not displayed */
View Source
const UpsertAsset = `` /* 553-byte string literal not displayed */
View Source
const UpsertAssetGroupKey = `` /* 416-byte string literal not displayed */
View Source
const UpsertAssetGroupWitness = `` /* 332-byte string literal not displayed */
View Source
const UpsertAssetMeta = `` /* 1183-byte string literal not displayed */
View Source
const UpsertAssetProofByID = `` /* 260-byte string literal not displayed */
View Source
const UpsertAssetWitness = `` /* 629-byte string literal not displayed */
View Source
const UpsertChainTx = `` /* 545-byte string literal not displayed */
View Source
const UpsertFederationGlobalSyncConfig = `` /* 264-byte string literal not displayed */
View Source
const UpsertFederationProofSyncLog = `` /* 1130-byte string literal not displayed */
View Source
const UpsertFederationUniSyncConfig = `` /* 307-byte string literal not displayed */
View Source
const UpsertGenesisAsset = `` /* 485-byte string literal not displayed */
View Source
const UpsertGenesisPoint = `` /* 262-byte string literal not displayed */
View Source
const UpsertInternalKey = `` /* 284-byte string literal not displayed */
View Source
const UpsertManagedUTXO = `` /* 589-byte string literal not displayed */
View Source
const UpsertMintSupplyPreCommit = `` /* 864-byte string literal not displayed */
View Source
const UpsertMultiverseLeaf = `` /* 426-byte string literal not displayed */
View Source
const UpsertMultiverseRoot = `` /* 260-byte string literal not displayed */
View Source
const UpsertRootNode = `` /* 231-byte string literal not displayed */
View Source
const UpsertScriptKey = `` /* 927-byte string literal not displayed */
View Source
const UpsertSupplyCommitStateMachine = `` /* 1018-byte string literal not displayed */
View Source
const UpsertSupplyPreCommit = `` /* 508-byte string literal not displayed */
View Source
const UpsertTapscriptTreeEdge = `` /* 456-byte string literal not displayed */
View Source
const UpsertTapscriptTreeNode = `` /* 266-byte string literal not displayed */
View Source
const UpsertTapscriptTreeRootHash = `` /* 410-byte string literal not displayed */
View Source
const UpsertUniverseLeaf = `` /* 717-byte string literal not displayed */
View Source
const UpsertUniverseRoot = `` /* 337-byte string literal not displayed */
View Source
const UpsertUniverseSupplyLeaf = `` /* 342-byte string literal not displayed */
View Source
const UpsertUniverseSupplyRoot = `` /* 268-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr struct {
	ID               int64
	Version          int16
	AssetVersion     int16
	GenesisAssetID   int64
	GroupKey         []byte
	ScriptKeyID      int64
	TaprootKeyID     int64
	TapscriptSibling []byte
	TaprootOutputKey []byte
	Amount           int64
	AssetType        int16
	CreationTime     time.Time
	ManagedFrom      sql.NullTime
	ProofCourierAddr []byte
}

type AddrEvent

type AddrEvent struct {
	ID                  int64
	CreationTime        time.Time
	AddrID              int64
	Status              int16
	ChainTxnID          int64
	ChainTxnOutputIndex int32
	ManagedUtxoID       int64
}

type AddrEventOutput

type AddrEventOutput struct {
	ID          int64
	AddrEventID int64
	Amount      int64
	AssetID     []byte
	ScriptKeyID int64
}

type AddrEventProof

type AddrEventProof struct {
	ID           int64
	AddrEventID  int64
	AssetProofID int64
	AssetIDFk    sql.NullInt64
}

type AllMintingBatchesRow

type AllMintingBatchesRow struct {
	BatchID             int64
	BatchState          int16
	MintingTxPsbt       []byte
	ChangeOutputIndex   sql.NullInt32
	GenesisID           sql.NullInt64
	HeightHint          int32
	CreationTimeUnix    time.Time
	TapscriptSibling    []byte
	AssetsOutputIndex   sql.NullInt32
	UniverseCommitments bool
	KeyID               int64
	RawKey              []byte
	KeyFamily           int32
	KeyIndex            int32
}

type AnchorGenesisPointParams

type AnchorGenesisPointParams struct {
	PrevOut    []byte
	AnchorTxID sql.NullInt64
}

type AnchorPendingAssetsParams

type AnchorPendingAssetsParams struct {
	PrevOut      []byte
	AnchorUtxoID sql.NullInt64
}

type ApplyPendingOutputParams

type ApplyPendingOutputParams struct {
	AssetVersion             int32
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	ScriptKeyID              int64
	AnchorUtxoID             sql.NullInt64
	Amount                   int64
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	Spent                    bool
	SpentAssetID             int64
}

type Asset

type Asset struct {
	AssetID                  int64
	GenesisID                int64
	Version                  int32
	ScriptKeyID              int64
	AssetGroupWitnessID      sql.NullInt64
	ScriptVersion            int32
	Amount                   int64
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	AnchorUtxoID             sql.NullInt64
	Spent                    bool
}

type AssetBurnTransfer added in v0.5.0

type AssetBurnTransfer struct {
	BurnID     int64
	TransferID int64
	Note       sql.NullString
	AssetID    []byte
	GroupKey   []byte
	Amount     int64
}

type AssetGroup

type AssetGroup struct {
	GroupID             int64
	TweakedGroupKey     []byte
	TapscriptRoot       []byte
	InternalKeyID       int64
	GenesisPointID      int64
	Version             int32
	CustomSubtreeRootID sql.NullInt32
}

type AssetGroupWitness added in v0.3.0

type AssetGroupWitness struct {
	WitnessID    int64
	WitnessStack []byte
	GenAssetID   int64
	GroupKeyID   int64
}

type AssetMintingBatch

type AssetMintingBatch struct {
	BatchID             int64
	BatchState          int16
	MintingTxPsbt       []byte
	ChangeOutputIndex   sql.NullInt32
	GenesisID           sql.NullInt64
	HeightHint          int32
	CreationTimeUnix    time.Time
	TapscriptSibling    []byte
	AssetsOutputIndex   sql.NullInt32
	UniverseCommitments bool
}

type AssetProof

type AssetProof struct {
	ProofID   int64
	AssetID   int64
	ProofFile []byte
}

type AssetSeedling

type AssetSeedling struct {
	SeedlingID          int64
	AssetName           string
	AssetVersion        int16
	AssetType           int16
	AssetSupply         int64
	AssetMetaID         int64
	EmissionEnabled     bool
	BatchID             int64
	GroupGenesisID      sql.NullInt64
	GroupAnchorID       sql.NullInt64
	ScriptKeyID         sql.NullInt64
	GroupInternalKeyID  sql.NullInt64
	GroupTapscriptRoot  []byte
	DelegationKeyID     sql.NullInt64
	UniverseCommitments bool
}

type AssetTransfer

type AssetTransfer struct {
	ID                    int64
	HeightHint            int32
	AnchorTxnID           int64
	TransferTimeUnix      time.Time
	Label                 sql.NullString
	SkipAnchorTxBroadcast bool
}

type AssetTransferInput

type AssetTransferInput struct {
	InputID     int64
	TransferID  int64
	AnchorPoint []byte
	AssetID     []byte
	ScriptKey   []byte
	Amount      int64
}

type AssetTransferOutput

type AssetTransferOutput struct {
	OutputID                 int64
	TransferID               int64
	AnchorUtxo               int64
	ScriptKey                int64
	ScriptKeyLocal           bool
	Amount                   int64
	AssetVersion             int32
	SerializedWitnesses      []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	ProofSuffix              []byte
	NumPassiveAssets         int32
	OutputType               int16
	ProofCourierAddr         []byte
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	ProofDeliveryComplete    sql.NullBool
	Position                 int32
	TapAddress               sql.NullString
}

type AssetWitness

type AssetWitness struct {
	WitnessID            int64
	AssetID              int64
	PrevOutPoint         []byte
	PrevAssetID          []byte
	PrevScriptKey        []byte
	WitnessStack         []byte
	SplitCommitmentProof []byte
	WitnessIndex         int32
}

type AssetsByGenesisPointRow

type AssetsByGenesisPointRow struct {
	AssetID                  int64
	GenesisID                int64
	Version                  int32
	ScriptKeyID              int64
	AssetGroupWitnessID      sql.NullInt64
	ScriptVersion            int32
	Amount                   int64
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	AnchorUtxoID             sql.NullInt64
	Spent                    bool
	GenAssetID               int64
	AssetID_2                []byte
	AssetTag                 string
	MetaDataID               sql.NullInt64
	OutputIndex              int32
	AssetType                int16
	GenesisPointID           int64
	GenesisID_2              int64
	PrevOut                  []byte
	AnchorTxID               sql.NullInt64
}

type AssetsInBatchRow

type AssetsInBatchRow struct {
	GenAssetID   int64
	AssetID      []byte
	AssetTag     string
	MetaDataHash []byte
	OutputIndex  int32
	AssetType    int16
	PrevOut      []byte
}

type AssetsMetum

type AssetsMetum struct {
	MetaID                  int64
	MetaDataHash            []byte
	MetaDataBlob            []byte
	MetaDataType            sql.NullInt16
	MetaDecimalDisplay      sql.NullInt32
	MetaUniverseCommitments sql.NullBool
	MetaCanonicalUniverses  []byte
	MetaDelegationKey       []byte
}

type AuthmailboxMessage

type AuthmailboxMessage struct {
	ID               int64
	ClaimedOutpoint  []byte
	ReceiverKey      []byte
	EncryptedPayload []byte
	ArrivalTimestamp int64
}

type BackendType added in v0.2.3

type BackendType uint8

BackendType is an enum that represents the type of database backend we're using.

const (
	// BackendTypeUnknown indicates we're using an unknown backend.
	BackendTypeUnknown BackendType = iota

	// BackendTypeSqlite indicates we're using a SQLite backend.
	BackendTypeSqlite

	// BackendTypePostgres indicates we're using a Postgres backend.
	BackendTypePostgres
)

type BindMintingBatchWithTapSiblingParams added in v0.4.0

type BindMintingBatchWithTapSiblingParams struct {
	RawKey           []byte
	TapscriptSibling []byte
}

type BindMintingBatchWithTxParams

type BindMintingBatchWithTxParams struct {
	RawKey              []byte
	MintingTxPsbt       []byte
	ChangeOutputIndex   sql.NullInt32
	AssetsOutputIndex   sql.NullInt32
	GenesisID           sql.NullInt64
	UniverseCommitments bool
}

type ChainTxn

type ChainTxn struct {
	TxnID       int64
	Txid        []byte
	ChainFees   int64
	RawTx       []byte
	BlockHeight sql.NullInt32
	BlockHash   []byte
	TxIndex     sql.NullInt32
}

type ConfirmChainAnchorTxParams

type ConfirmChainAnchorTxParams struct {
	Txid        []byte
	BlockHeight sql.NullInt32
	BlockHash   []byte
	TxIndex     sql.NullInt32
}

type ConfirmChainTxParams

type ConfirmChainTxParams struct {
	RawKey      []byte
	BlockHeight sql.NullInt32
	BlockHash   []byte
	TxIndex     sql.NullInt32
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DeleteFederationProofSyncLogParams added in v0.3.3

type DeleteFederationProofSyncLogParams struct {
	Status            sql.NullString
	MinTimestamp      sql.NullTime
	MinAttemptCounter sql.NullInt64
	ServerHost        sql.NullString
}

type DeleteMultiverseLeafParams added in v0.4.0

type DeleteMultiverseLeafParams struct {
	Namespace   string
	LeafNodeKey []byte
}

type DeleteNodeParams

type DeleteNodeParams struct {
	HashKey   []byte
	Namespace string
}

type DeleteUniverseServerParams

type DeleteUniverseServerParams struct {
	TargetServer string
	TargetID     int64
}

type DeleteUniverseSupplyLeafParams

type DeleteUniverseSupplyLeafParams struct {
	Namespace   string
	LeafNodeKey []byte
}

type FederationGlobalSyncConfig added in v0.3.0

type FederationGlobalSyncConfig struct {
	ProofType       string
	AllowSyncInsert bool
	AllowSyncExport bool
}

type FederationProofSyncLog added in v0.3.3

type FederationProofSyncLog struct {
	ID             int64
	Status         string
	Timestamp      time.Time
	AttemptCounter int64
	SyncDirection  string
	ProofLeafID    int64
	UniverseRootID int64
	ServersID      int64
}

type FederationUniSyncConfig added in v0.3.0

type FederationUniSyncConfig struct {
	Namespace       string
	AssetID         []byte
	GroupKey        []byte
	AllowSyncInsert bool
	AllowSyncExport bool
	ProofType       sql.NullString
}

type FetchAddrEventByAddrKeyAndOutpointParams added in v0.4.0

type FetchAddrEventByAddrKeyAndOutpointParams struct {
	TaprootOutputKey    []byte
	Txid                []byte
	ChainTxnOutputIndex int32
}

type FetchAddrEventByAddrKeyAndOutpointRow added in v0.4.0

type FetchAddrEventByAddrKeyAndOutpointRow struct {
	ID                 int64
	CreationTime       time.Time
	Status             int16
	Txid               []byte
	ConfirmationHeight sql.NullInt32
	OutputIndex        int32
	AmtSats            sql.NullInt64
	TapscriptSibling   []byte
	InternalKey        []byte
	NumProofs          int64
}

type FetchAddrEventOutputsRow

type FetchAddrEventOutputsRow struct {
	Amount      int64
	AssetID     []byte
	ScriptKeyID int64
	ScriptKey   ScriptKey
	InternalKey InternalKey
}

type FetchAddrEventProofsRow

type FetchAddrEventProofsRow struct {
	AssetProofID int64
	ProofFile    []byte
}

type FetchAddrEventRow

type FetchAddrEventRow struct {
	CreationTime       time.Time
	Status             int16
	Txid               []byte
	ConfirmationHeight sql.NullInt32
	OutputIndex        int32
	AmtSats            sql.NullInt64
	TapscriptSibling   []byte
	InternalKey        []byte
	NumProofs          int64
}

type FetchAddrsParams

type FetchAddrsParams struct {
	CreatedAfter  time.Time
	CreatedBefore time.Time
	UnmanagedOnly interface{}
	NumOffset     int32
	NumLimit      int32
}

type FetchAddrsRow

type FetchAddrsRow struct {
	Version          int16
	AssetVersion     int16
	GenesisAssetID   int64
	GroupKey         []byte
	TapscriptSibling []byte
	TaprootOutputKey []byte
	Amount           int64
	AssetType        int16
	CreationTime     time.Time
	ManagedFrom      sql.NullTime
	ProofCourierAddr []byte
	ScriptKey        ScriptKey
	InternalKey      InternalKey
	RawTaprootKey    []byte
	TaprootKeyFamily int32
	TaprootKeyIndex  int32
}

type FetchAllAssetMetaRow added in v0.6.1

type FetchAllAssetMetaRow struct {
	AssetsMetum AssetsMetum
	AssetID     []byte
}

type FetchAssetIDParams added in v0.4.0

type FetchAssetIDParams struct {
	TweakedScriptKey []byte
	Outpoint         []byte
}

type FetchAssetMetaByHashRow

type FetchAssetMetaByHashRow struct {
	AssetsMetum AssetsMetum
}

type FetchAssetMetaForAssetRow

type FetchAssetMetaForAssetRow struct {
	AssetsMetum AssetsMetum
}

type FetchAssetMetaRow

type FetchAssetMetaRow struct {
	AssetsMetum AssetsMetum
}

type FetchAssetProofParams added in v0.3.3

type FetchAssetProofParams struct {
	TweakedScriptKey []byte
	Outpoint         []byte
	AssetID          []byte
}

type FetchAssetProofRow

type FetchAssetProofRow struct {
	ScriptKey []byte
	ProofFile []byte
	AssetID   int64
	ProofID   int64
	Outpoint  []byte
}

type FetchAssetProofsByAssetIDRow added in v0.3.0

type FetchAssetProofsByAssetIDRow struct {
	ScriptKey []byte
	ProofFile []byte
}

type FetchAssetProofsRow

type FetchAssetProofsRow struct {
	ScriptKey []byte
	ProofFile []byte
}

type FetchAssetProofsSizesRow added in v0.5.0

type FetchAssetProofsSizesRow struct {
	ScriptKey       []byte
	ProofFileLength float64
}

type FetchAssetWitnessesRow

type FetchAssetWitnessesRow struct {
	AssetID              int64
	PrevOutPoint         []byte
	PrevAssetID          []byte
	PrevScriptKey        []byte
	WitnessStack         []byte
	SplitCommitmentProof []byte
}

type FetchAssetsForBatchRow

type FetchAssetsForBatchRow struct {
	Version            int32
	ScriptKey          ScriptKey
	InternalKey        InternalKey
	TapscriptRoot      []byte
	WitnessStack       []byte
	TweakedGroupKey    []byte
	GroupKeyRaw        []byte
	GroupKeyFamily     sql.NullInt32
	GroupKeyIndex      sql.NullInt32
	ScriptVersion      int32
	Amount             int64
	LockTime           sql.NullInt32
	RelativeLockTime   sql.NullInt32
	Spent              bool
	AssetID            []byte
	AssetTag           string
	AssetsMetum        AssetsMetum
	GenesisOutputIndex int32
	AssetType          int16
	GenesisPrevOut     []byte
}

type FetchAuthMailboxMessageByOutpointRow

type FetchAuthMailboxMessageByOutpointRow struct {
	ID               int64
	ClaimedOutpoint  []byte
	ReceiverKey      []byte
	EncryptedPayload []byte
	ArrivalTimestamp int64
	BlockHeight      int32
}

type FetchAuthMailboxMessageRow

type FetchAuthMailboxMessageRow struct {
	ID               int64
	ClaimedOutpoint  []byte
	ReceiverKey      []byte
	EncryptedPayload []byte
	ArrivalTimestamp int64
	BlockHeight      int32
}

type FetchChainTxByIDRow

type FetchChainTxByIDRow struct {
	RawTx       []byte
	BlockHeight sql.NullInt32
}

type FetchChildrenParams

type FetchChildrenParams struct {
	HashKey   []byte
	Namespace string
}

type FetchChildrenRow

type FetchChildrenRow struct {
	HashKey   []byte
	LHashKey  []byte
	RHashKey  []byte
	Key       []byte
	Value     []byte
	Sum       int64
	Namespace string
	Depth     int32
}

type FetchChildrenSelfJoinParams

type FetchChildrenSelfJoinParams struct {
	HashKey   []byte
	Namespace string
}

type FetchChildrenSelfJoinRow

type FetchChildrenSelfJoinRow struct {
	HashKey   []byte
	LHashKey  []byte
	RHashKey  []byte
	Key       []byte
	Value     []byte
	Sum       int64
	Namespace string
	Depth     int32
}

type FetchGenesisByIDRow

type FetchGenesisByIDRow struct {
	AssetID      []byte
	AssetTag     string
	MetaDataHash []byte
	OutputIndex  int32
	AssetType    int16
	PrevOut      []byte
}

type FetchGenesisIDParams

type FetchGenesisIDParams struct {
	AssetID     []byte
	AssetTag    string
	MetaHash    []byte
	OutputIndex int32
	AssetType   int16
	PrevOut     []byte
}

type FetchGroupByGenesisRow

type FetchGroupByGenesisRow struct {
	Version           int32
	TweakedGroupKey   []byte
	RawKey            []byte
	KeyIndex          int32
	KeyFamily         int32
	TapscriptRoot     []byte
	WitnessStack      []byte
	CustomSubtreeRoot []byte
}

type FetchGroupByGroupKeyRow

type FetchGroupByGroupKeyRow struct {
	Version           int32
	GenAssetID        int64
	RawKey            []byte
	KeyIndex          int32
	KeyFamily         int32
	TapscriptRoot     []byte
	WitnessStack      []byte
	CustomSubtreeRoot []byte
}

type FetchGroupedAssetsRow

type FetchGroupedAssetsRow struct {
	AssetPrimaryKey  int64
	Amount           int64
	LockTime         sql.NullInt32
	RelativeLockTime sql.NullInt32
	Spent            bool
	AssetID          []byte
	AssetTag         string
	MetaHash         []byte
	AssetType        int16
	TweakedGroupKey  []byte
	AssetVersion     int32
}

type FetchInternalKeyByIDRow

type FetchInternalKeyByIDRow struct {
	RawKey    []byte
	KeyFamily int32
	KeyIndex  int32
}

type FetchInternalKeyLocatorRow added in v0.4.0

type FetchInternalKeyLocatorRow struct {
	KeyFamily int32
	KeyIndex  int32
}

type FetchManagedUTXOParams

type FetchManagedUTXOParams struct {
	TxnID    sql.NullInt64
	Outpoint []byte
}

type FetchManagedUTXORow

type FetchManagedUTXORow struct {
	UtxoID           int64
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int64
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int64
	LeaseOwner       []byte
	LeaseExpiry      sql.NullTime
	RootVersion      sql.NullInt16
	KeyID            int64
	RawKey           []byte
	KeyFamily        int32
	KeyIndex         int32
}

type FetchManagedUTXOsRow

type FetchManagedUTXOsRow struct {
	UtxoID           int64
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int64
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int64
	LeaseOwner       []byte
	LeaseExpiry      sql.NullTime
	RootVersion      sql.NullInt16
	KeyID            int64
	RawKey           []byte
	KeyFamily        int32
	KeyIndex         int32
}

type FetchMintSupplyPreCommitsParams

type FetchMintSupplyPreCommitsParams struct {
	BatchKey              []byte
	GroupKey              []byte
	TaprootInternalKeyRaw []byte
}

type FetchMintSupplyPreCommitsRow

type FetchMintSupplyPreCommitsRow struct {
	ID                   int64
	BatchID              int32
	TxOutputIndex        int32
	GroupKey             []byte
	SpentBy              sql.NullInt64
	BatchKey             []byte
	TaprootInternalKeyID int64
	Outpoint             []byte
	InternalKey          InternalKey
}

type FetchMintingBatchRow

type FetchMintingBatchRow struct {
	BatchID             int64
	BatchState          int16
	MintingTxPsbt       []byte
	ChangeOutputIndex   sql.NullInt32
	GenesisID           sql.NullInt64
	HeightHint          int32
	CreationTimeUnix    time.Time
	TapscriptSibling    []byte
	AssetsOutputIndex   sql.NullInt32
	UniverseCommitments bool
	KeyID               int64
	RawKey              []byte
	KeyFamily           int32
	KeyIndex            int32
}

type FetchMintingBatchesByInverseStateRow

type FetchMintingBatchesByInverseStateRow struct {
	BatchID             int64
	BatchState          int16
	MintingTxPsbt       []byte
	ChangeOutputIndex   sql.NullInt32
	GenesisID           sql.NullInt64
	HeightHint          int32
	CreationTimeUnix    time.Time
	TapscriptSibling    []byte
	AssetsOutputIndex   sql.NullInt32
	UniverseCommitments bool
	KeyID               int64
	RawKey              []byte
	KeyFamily           int32
	KeyIndex            int32
}

type FetchMultiverseRootRow added in v0.4.0

type FetchMultiverseRootRow struct {
	ProofType          string
	MultiverseRootHash []byte
	MultiverseRootSum  int64
}

type FetchScriptKeyByTweakedKeyRow

type FetchScriptKeyByTweakedKeyRow struct {
	ScriptKey   ScriptKey
	InternalKey InternalKey
}

type FetchSeedlingIDParams

type FetchSeedlingIDParams struct {
	SeedlingName string
	BatchKey     []byte
}

type FetchSeedlingsForBatchRow

type FetchSeedlingsForBatchRow struct {
	SeedlingID          int64
	AssetName           string
	AssetType           int16
	AssetVersion        int16
	AssetSupply         int64
	AssetsMetum         AssetsMetum
	EmissionEnabled     bool
	BatchID             int64
	GroupGenesisID      sql.NullInt64
	GroupAnchorID       sql.NullInt64
	GroupTapscriptRoot  []byte
	ScriptKeyTweak      []byte
	TweakedScriptKey    []byte
	ScriptKeyType       sql.NullInt16
	ScriptKeyRaw        []byte
	ScriptKeyFam        sql.NullInt32
	ScriptKeyIndex      sql.NullInt32
	GroupKeyRaw         []byte
	GroupKeyFam         sql.NullInt32
	GroupKeyIndex       sql.NullInt32
	DelegationKeyRaw    []byte
	DelegationKeyFam    sql.NullInt32
	DelegationKeyIndex  sql.NullInt32
	UniverseCommitments bool
}

type FetchSupplyCommitRow

type FetchSupplyCommitRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type FetchTapscriptTreeRow added in v0.4.0

type FetchTapscriptTreeRow struct {
	BranchOnly bool
	RawNode    []byte
}

type FetchTransferInputsRow

type FetchTransferInputsRow struct {
	InputID     int64
	AnchorPoint []byte
	AssetID     []byte
	ScriptKey   []byte
	Amount      int64
}

type FetchTransferOutputsRow

type FetchTransferOutputsRow struct {
	OutputID                 int64
	ProofSuffix              []byte
	Amount                   int64
	SerializedWitnesses      []byte
	ScriptKeyLocal           bool
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	NumPassiveAssets         int32
	OutputType               int16
	ProofCourierAddr         []byte
	ProofDeliveryComplete    sql.NullBool
	Position                 int32
	AssetVersion             int32
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	TapAddress               sql.NullString
	AnchorUtxoID             int64
	AnchorOutpoint           []byte
	AnchorValue              int64
	AnchorMerkleRoot         []byte
	AnchorTaprootAssetRoot   []byte
	AnchorTapscriptSibling   []byte
	AnchorCommitmentVersion  sql.NullInt16
	InternalKeyRawKeyBytes   []byte
	InternalKeyFamily        int32
	InternalKeyIndex         int32
	ScriptKey                ScriptKey
	InternalKey              InternalKey
}

type FetchUniverseKeysParams added in v0.3.1

type FetchUniverseKeysParams struct {
	Namespace     string
	SortDirection interface{}
	NumOffset     int32
	NumLimit      int32
}

type FetchUniverseKeysRow

type FetchUniverseKeysRow struct {
	MintingPoint   []byte
	ScriptKeyBytes []byte
}

type FetchUniverseRootRow

type FetchUniverseRootRow struct {
	AssetID   []byte
	GroupKey  []byte
	ProofType sql.NullString
	RootHash  []byte
	RootSum   int64
	AssetName string
}

type FetchUniverseSupplyRootRow

type FetchUniverseSupplyRootRow struct {
	GroupKey []byte
	RootHash []byte
	RootSum  int64
}

type FetchUnknownTypeScriptKeysRow added in v0.6.0

type FetchUnknownTypeScriptKeysRow struct {
	ScriptKey   ScriptKey
	InternalKey InternalKey
}

type FetchUnspentMintSupplyPreCommitsRow

type FetchUnspentMintSupplyPreCommitsRow struct {
	TxOutputIndex int32
	InternalKey   InternalKey
	GroupKey      []byte
	BlockHeight   sql.NullInt32
	RawTx         []byte
}

type FetchUnspentSupplyPreCommitsRow

type FetchUnspentSupplyPreCommitsRow struct {
	BlockHeight        sql.NullInt32
	RawTx              []byte
	Outpoint           []byte
	TaprootInternalKey []byte
	GroupKey           []byte
}

type GenesisAsset

type GenesisAsset struct {
	GenAssetID     int64
	AssetID        []byte
	AssetTag       string
	MetaDataID     sql.NullInt64
	OutputIndex    int32
	AssetType      int16
	GenesisPointID int64
}

type GenesisInfoView

type GenesisInfoView struct {
	GenAssetID  int64
	AssetID     []byte
	AssetTag    string
	MetaHash    []byte
	OutputIndex int32
	AssetType   int16
	PrevOut     []byte
	AnchorTxid  []byte
	BlockHeight sql.NullInt32
}

type GenesisPoint

type GenesisPoint struct {
	GenesisID  int64
	PrevOut    []byte
	AnchorTxID sql.NullInt64
}

type InsertAssetSeedlingIntoBatchParams

type InsertAssetSeedlingIntoBatchParams struct {
	RawKey              []byte
	AssetName           string
	AssetType           int16
	AssetVersion        int16
	AssetSupply         int64
	AssetMetaID         int64
	EmissionEnabled     bool
	GroupGenesisID      sql.NullInt64
	GroupAnchorID       sql.NullInt64
	ScriptKeyID         sql.NullInt64
	GroupInternalKeyID  sql.NullInt64
	GroupTapscriptRoot  []byte
	DelegationKeyID     sql.NullInt64
	UniverseCommitments bool
}

type InsertAssetSeedlingParams

type InsertAssetSeedlingParams struct {
	AssetName           string
	AssetType           int16
	AssetVersion        int16
	AssetSupply         int64
	AssetMetaID         int64
	EmissionEnabled     bool
	BatchID             int64
	GroupGenesisID      sql.NullInt64
	GroupAnchorID       sql.NullInt64
	ScriptKeyID         sql.NullInt64
	GroupInternalKeyID  sql.NullInt64
	GroupTapscriptRoot  []byte
	DelegationKeyID     sql.NullInt64
	UniverseCommitments bool
}

type InsertAssetTransferInputParams

type InsertAssetTransferInputParams struct {
	TransferID  int64
	AnchorPoint []byte
	AssetID     []byte
	ScriptKey   []byte
	Amount      int64
}

type InsertAssetTransferOutputParams

type InsertAssetTransferOutputParams struct {
	TransferID               int64
	AnchorUtxo               int64
	ScriptKey                int64
	ScriptKeyLocal           bool
	Amount                   int64
	SerializedWitnesses      []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	ProofSuffix              []byte
	NumPassiveAssets         int32
	OutputType               int16
	ProofCourierAddr         []byte
	AssetVersion             int32
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	ProofDeliveryComplete    sql.NullBool
	Position                 int32
	TapAddress               sql.NullString
}

type InsertAssetTransferParams

type InsertAssetTransferParams struct {
	HeightHint            int32
	TransferTimeUnix      time.Time
	Label                 sql.NullString
	SkipAnchorTxBroadcast bool
	AnchorTxid            []byte
}

type InsertAuthMailboxMessageParams

type InsertAuthMailboxMessageParams struct {
	ClaimedOutpoint  []byte
	ReceiverKey      []byte
	EncryptedPayload []byte
	ArrivalTimestamp int64
}

type InsertBranchParams

type InsertBranchParams struct {
	HashKey   []byte
	LHashKey  []byte
	RHashKey  []byte
	Sum       int64
	Namespace string
}

type InsertBurnParams added in v0.5.0

type InsertBurnParams struct {
	TransferID int64
	Note       sql.NullString
	AssetID    []byte
	GroupKey   []byte
	Amount     int64
}

type InsertCompactedLeafParams

type InsertCompactedLeafParams struct {
	HashKey   []byte
	Key       []byte
	Value     []byte
	Sum       int64
	Namespace string
}

type InsertLeafParams

type InsertLeafParams struct {
	HashKey   []byte
	Value     []byte
	Sum       int64
	Namespace string
}

type InsertNewProofEventParams

type InsertNewProofEventParams struct {
	GroupKeyXOnly  interface{}
	EventTime      time.Time
	EventTimestamp int64
	ProofType      sql.NullString
	AssetID        []byte
}

type InsertNewSyncEventParams

type InsertNewSyncEventParams struct {
	GroupKeyXOnly  interface{}
	EventTime      time.Time
	EventTimestamp int64
	ProofType      sql.NullString
	AssetID        []byte
}

type InsertPassiveAssetParams

type InsertPassiveAssetParams struct {
	TransferID      int64
	NewAnchorUtxo   int64
	ScriptKey       []byte
	NewWitnessStack []byte
	NewProof        []byte
	AssetVersion    int32
	AssetGenesisID  []byte
	PrevOutpoint    []byte
}

type InsertRootKeyParams

type InsertRootKeyParams struct {
	ID      []byte
	RootKey []byte
}

type InsertSupplyCommitTransitionParams

type InsertSupplyCommitTransitionParams struct {
	StateMachineGroupKey []byte
	OldCommitmentID      sql.NullInt64
	NewCommitmentID      sql.NullInt64
	PendingCommitTxnID   sql.NullInt64
	Finalized            bool
	Frozen               bool
	CreationTime         int64
}

type InsertSupplyCommitmentParams

type InsertSupplyCommitmentParams struct {
	GroupKey        []byte
	ChainTxnID      int64
	OutputIndex     sql.NullInt32
	InternalKeyID   int64
	OutputKey       []byte
	SpentCommitment sql.NullInt64
	BlockHeight     sql.NullInt32
	BlockHeader     []byte
	MerkleProof     []byte
	SupplyRootHash  []byte
	SupplyRootSum   sql.NullInt64
}

type InsertSupplySyncerPushLogParams

type InsertSupplySyncerPushLogParams struct {
	GroupKey             []byte
	MaxPushedBlockHeight int32
	ServerAddress        string
	CommitTxid           []byte
	OutputIndex          int32
	NumLeavesPushed      int32
	CreatedAt            int64
}

type InsertSupplyUpdateEventParams

type InsertSupplyUpdateEventParams struct {
	GroupKey     []byte
	TransitionID sql.NullInt64
	UpdateTypeID int32
	EventData    []byte
}

type InsertTxProofParams

type InsertTxProofParams struct {
	Outpoint    []byte
	BlockHash   []byte
	BlockHeight int32
	InternalKey []byte
	MerkleRoot  []byte
}

type InsertUniverseServerParams

type InsertUniverseServerParams struct {
	ServerHost   string
	LastSyncTime time.Time
}

type InternalKey

type InternalKey struct {
	KeyID     int64
	RawKey    []byte
	KeyFamily int32
	KeyIndex  int32
}

type KeyGroupInfoView

type KeyGroupInfoView struct {
	Version           int32
	WitnessID         int64
	GenAssetID        int64
	WitnessStack      []byte
	TapscriptRoot     []byte
	TweakedGroupKey   []byte
	RawKey            []byte
	KeyIndex          int32
	KeyFamily         int32
	XOnlyGroupKey     []byte
	CustomSubtreeRoot []byte
}

type LinkDanglingSupplyUpdateEventsParams

type LinkDanglingSupplyUpdateEventsParams struct {
	TransitionID sql.NullInt64
	GroupKey     []byte
}

type LogProofTransferAttemptParams added in v0.3.1

type LogProofTransferAttemptParams struct {
	TransferType     string
	ProofLocatorHash []byte
	TimeUnix         time.Time
}

type LogServerSyncParams

type LogServerSyncParams struct {
	NewSyncTime  time.Time
	TargetServer string
}

type Macaroon

type Macaroon struct {
	ID      []byte
	RootKey []byte
}

type ManagedUtxo

type ManagedUtxo struct {
	UtxoID           int64
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int64
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int64
	LeaseOwner       []byte
	LeaseExpiry      sql.NullTime
	RootVersion      sql.NullInt16
}

type MarkMintPreCommitSpentByOutpointParams

type MarkMintPreCommitSpentByOutpointParams struct {
	SpentByCommitID sql.NullInt64
	Outpoint        []byte
}

type MarkPreCommitSpentByOutpointParams

type MarkPreCommitSpentByOutpointParams struct {
	SpentByCommitID sql.NullInt64
	Outpoint        []byte
}

type MintSupplyPreCommit

type MintSupplyPreCommit struct {
	ID                   int64
	BatchID              int32
	TxOutputIndex        int32
	GroupKey             []byte
	TaprootInternalKeyID int64
	SpentBy              sql.NullInt64
	Outpoint             []byte
}

type MssmtNode

type MssmtNode struct {
	HashKey   []byte
	LHashKey  []byte
	RHashKey  []byte
	Key       []byte
	Value     []byte
	Sum       int64
	Namespace string
}

type MssmtRoot

type MssmtRoot struct {
	Namespace string
	RootHash  []byte
}

type MultiverseLeafe added in v0.4.0

type MultiverseLeafe struct {
	ID                int64
	MultiverseRootID  int64
	AssetID           []byte
	GroupKey          []byte
	LeafNodeKey       []byte
	LeafNodeNamespace string
}

type MultiverseRoot added in v0.4.0

type MultiverseRoot struct {
	ID            int64
	NamespaceRoot string
	ProofType     string
}

type NewMintingBatchParams

type NewMintingBatchParams struct {
	BatchID             int64
	HeightHint          int32
	CreationTimeUnix    time.Time
	UniverseCommitments bool
}

type PassiveAsset

type PassiveAsset struct {
	PassiveID       int64
	TransferID      int64
	AssetID         int64
	NewAnchorUtxo   int64
	ScriptKey       []byte
	AssetVersion    int32
	NewWitnessStack []byte
	NewProof        []byte
}

type ProofTransferLog added in v0.3.1

type ProofTransferLog struct {
	TransferType     string
	ProofLocatorHash []byte
	TimeUnix         time.Time
}

type ProofType added in v0.6.0

type ProofType struct {
	ProofType string
}

type Querier

type Querier interface {
	AllAssets(ctx context.Context) ([]Asset, error)
	AllInternalKeys(ctx context.Context) ([]InternalKey, error)
	AllMintingBatches(ctx context.Context) ([]AllMintingBatchesRow, error)
	AnchorGenesisPoint(ctx context.Context, arg AnchorGenesisPointParams) error
	AnchorPendingAssets(ctx context.Context, arg AnchorPendingAssetsParams) error
	ApplyPendingOutput(ctx context.Context, arg ApplyPendingOutputParams) (int64, error)
	AssetsByGenesisPoint(ctx context.Context, prevOut []byte) ([]AssetsByGenesisPointRow, error)
	AssetsDBSizePostgres(ctx context.Context) (int64, error)
	AssetsDBSizeSqlite(ctx context.Context) (int32, error)
	AssetsInBatch(ctx context.Context, rawKey []byte) ([]AssetsInBatchRow, error)
	BindMintingBatchWithTapSibling(ctx context.Context, arg BindMintingBatchWithTapSiblingParams) error
	BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) (int64, error)
	ConfirmChainAnchorTx(ctx context.Context, arg ConfirmChainAnchorTxParams) error
	ConfirmChainTx(ctx context.Context, arg ConfirmChainTxParams) error
	CountAuthMailboxMessages(ctx context.Context) (int64, error)
	DeleteAllNodes(ctx context.Context, namespace string) (int64, error)
	DeleteAssetWitnesses(ctx context.Context, assetID int64) error
	DeleteExpiredUTXOLeases(ctx context.Context, now sql.NullTime) error
	DeleteFederationProofSyncLog(ctx context.Context, arg DeleteFederationProofSyncLogParams) error
	DeleteManagedUTXO(ctx context.Context, outpoint []byte) error
	DeleteMultiverseLeaf(ctx context.Context, arg DeleteMultiverseLeafParams) error
	DeleteNode(ctx context.Context, arg DeleteNodeParams) (int64, error)
	DeleteRoot(ctx context.Context, namespace string) (int64, error)
	DeleteSupplyCommitTransition(ctx context.Context, transitionID int64) error
	DeleteSupplyUpdateEvents(ctx context.Context, transitionID sql.NullInt64) error
	DeleteTapscriptTreeEdges(ctx context.Context, rootHash []byte) error
	DeleteTapscriptTreeNodes(ctx context.Context) error
	DeleteTapscriptTreeRoot(ctx context.Context, rootHash []byte) error
	DeleteUTXOLease(ctx context.Context, outpoint []byte) error
	DeleteUniverseEvents(ctx context.Context, namespaceRoot string) error
	DeleteUniverseLeaves(ctx context.Context, namespace string) error
	DeleteUniverseRoot(ctx context.Context, namespaceRoot string) error
	DeleteUniverseServer(ctx context.Context, arg DeleteUniverseServerParams) error
	DeleteUniverseSupplyLeaf(ctx context.Context, arg DeleteUniverseSupplyLeafParams) error
	DeleteUniverseSupplyLeaves(ctx context.Context, namespaceRoot string) error
	DeleteUniverseSupplyRoot(ctx context.Context, namespaceRoot string) error
	FetchAddrEvent(ctx context.Context, id int64) (FetchAddrEventRow, error)
	FetchAddrEventByAddrKeyAndOutpoint(ctx context.Context, arg FetchAddrEventByAddrKeyAndOutpointParams) (FetchAddrEventByAddrKeyAndOutpointRow, error)
	FetchAddrEventOutputs(ctx context.Context, addrEventID int64) ([]FetchAddrEventOutputsRow, error)
	FetchAddrEventProofs(ctx context.Context, addrEventID int64) ([]FetchAddrEventProofsRow, error)
	FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, error)
	FetchAllAssetMeta(ctx context.Context) ([]FetchAllAssetMetaRow, error)
	FetchAllNodes(ctx context.Context) ([]MssmtNode, error)
	FetchAssetID(ctx context.Context, arg FetchAssetIDParams) ([]int64, error)
	FetchAssetMeta(ctx context.Context, metaID int64) (FetchAssetMetaRow, error)
	FetchAssetMetaByHash(ctx context.Context, metaDataHash []byte) (FetchAssetMetaByHashRow, error)
	FetchAssetMetaForAsset(ctx context.Context, assetID []byte) (FetchAssetMetaForAssetRow, error)
	FetchAssetProof(ctx context.Context, arg FetchAssetProofParams) ([]FetchAssetProofRow, error)
	FetchAssetProofs(ctx context.Context) ([]FetchAssetProofsRow, error)
	FetchAssetProofsByAssetID(ctx context.Context, assetID []byte) ([]FetchAssetProofsByAssetIDRow, error)
	FetchAssetProofsSizes(ctx context.Context) ([]FetchAssetProofsSizesRow, error)
	FetchAssetWitnesses(ctx context.Context, assetID sql.NullInt64) ([]FetchAssetWitnessesRow, error)
	FetchAssetsByAnchorTx(ctx context.Context, anchorUtxoID sql.NullInt64) ([]Asset, error)
	// We use a LEFT JOIN here as not every asset has a meta data entry.
	// We use a LEFT JOIN here as not every asset has a group key, so this'll
	// generate rows that have NULL values for the group key fields if an asset
	// doesn't have a group key. See the comment in fetchAssetSprouts for a work
	// around that needs to be used with this query until a sqlc bug is fixed.
	FetchAssetsForBatch(ctx context.Context, rawKey []byte) ([]FetchAssetsForBatchRow, error)
	FetchAuthMailboxMessage(ctx context.Context, id int64) (FetchAuthMailboxMessageRow, error)
	FetchAuthMailboxMessageByOutpoint(ctx context.Context, claimedOutpoint []byte) (FetchAuthMailboxMessageByOutpointRow, error)
	FetchChainTx(ctx context.Context, txid []byte) (ChainTxn, error)
	FetchChainTxByID(ctx context.Context, txnID int64) (FetchChainTxByIDRow, error)
	FetchChildren(ctx context.Context, arg FetchChildrenParams) ([]FetchChildrenRow, error)
	FetchChildrenSelfJoin(ctx context.Context, arg FetchChildrenSelfJoinParams) ([]FetchChildrenSelfJoinRow, error)
	FetchGenesisByAssetID(ctx context.Context, assetID []byte) (GenesisInfoView, error)
	FetchGenesisByGroupKey(ctx context.Context, tweakedGroupKey []byte) (GenesisInfoView, error)
	FetchGenesisByID(ctx context.Context, genAssetID int64) (FetchGenesisByIDRow, error)
	FetchGenesisID(ctx context.Context, arg FetchGenesisIDParams) (int64, error)
	FetchGenesisIDByAssetID(ctx context.Context, assetID []byte) (int64, error)
	FetchGenesisPointByAnchorTx(ctx context.Context, anchorTxID sql.NullInt64) (GenesisPoint, error)
	FetchGroupByGenesis(ctx context.Context, genesisID int64) (FetchGroupByGenesisRow, error)
	// Sort and limit to return the genesis ID for initial genesis of the group.
	FetchGroupByGroupKey(ctx context.Context, groupKey []byte) (FetchGroupByGroupKeyRow, error)
	FetchGroupedAssets(ctx context.Context) ([]FetchGroupedAssetsRow, error)
	FetchInternalKeyByID(ctx context.Context, keyID int64) (FetchInternalKeyByIDRow, error)
	FetchInternalKeyLocator(ctx context.Context, rawKey []byte) (FetchInternalKeyLocatorRow, error)
	FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error)
	FetchManagedUTXOs(ctx context.Context) ([]FetchManagedUTXOsRow, error)
	// Fetch records from the supply_pre_commits table with optional
	// filtering.
	FetchMintSupplyPreCommits(ctx context.Context, arg FetchMintSupplyPreCommitsParams) ([]FetchMintSupplyPreCommitsRow, error)
	FetchMintingBatch(ctx context.Context, rawKey []byte) (FetchMintingBatchRow, error)
	FetchMintingBatchesByInverseState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByInverseStateRow, error)
	FetchMultiverseRoot(ctx context.Context, namespaceRoot string) (FetchMultiverseRootRow, error)
	FetchRootNode(ctx context.Context, namespace string) (MssmtNode, error)
	FetchScriptKeyByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (FetchScriptKeyByTweakedKeyRow, error)
	FetchScriptKeyIDByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (int64, error)
	FetchSeedlingByID(ctx context.Context, seedlingID int64) (AssetSeedling, error)
	FetchSeedlingID(ctx context.Context, arg FetchSeedlingIDParams) (int64, error)
	FetchSeedlingsForBatch(ctx context.Context, rawKey []byte) ([]FetchSeedlingsForBatchRow, error)
	FetchSupplyCommit(ctx context.Context, groupKey []byte) (FetchSupplyCommitRow, error)
	// Fetches all push log entries for a given asset group, ordered by
	// creation time with the most recent entries first.
	FetchSupplySyncerPushLogs(ctx context.Context, groupKey []byte) ([]SupplySyncerPushLog, error)
	// Sort the nodes by node_index here instead of returning the indices.
	FetchTapscriptTree(ctx context.Context, rootHash []byte) ([]FetchTapscriptTreeRow, error)
	FetchTransferInputs(ctx context.Context, transferID int64) ([]FetchTransferInputsRow, error)
	FetchTransferOutputs(ctx context.Context, transferID int64) ([]FetchTransferOutputsRow, error)
	FetchUniverseKeys(ctx context.Context, arg FetchUniverseKeysParams) ([]FetchUniverseKeysRow, error)
	FetchUniverseRoot(ctx context.Context, namespace string) (FetchUniverseRootRow, error)
	FetchUniverseSupplyRoot(ctx context.Context, namespaceRoot string) (FetchUniverseSupplyRootRow, error)
	FetchUnknownTypeScriptKeys(ctx context.Context) ([]FetchUnknownTypeScriptKeysRow, error)
	// Fetch unspent supply pre-commitment outputs. Each pre-commitment output
	// comes from a mint anchor transaction and relates to an asset issuance
	// where the local node acted as the issuer.
	FetchUnspentMintSupplyPreCommits(ctx context.Context, groupKey []byte) ([]FetchUnspentMintSupplyPreCommitsRow, error)
	// Fetch unspent supply pre-commitment outputs. Each pre-commitment output
	// comes from a mint anchor transaction and relates to an asset issuance
	// where a peer node acted as the issuer. Rows in this table do not relate to an
	// issuance where the local node acted as the issuer.
	FetchUnspentSupplyPreCommits(ctx context.Context, groupKey []byte) ([]FetchUnspentSupplyPreCommitsRow, error)
	FinalizeSupplyCommitTransition(ctx context.Context, transitionID int64) error
	FreezePendingTransition(ctx context.Context, groupKey []byte) error
	GenesisAssets(ctx context.Context) ([]GenesisAsset, error)
	GenesisPoints(ctx context.Context) ([]GenesisPoint, error)
	GetRootKey(ctx context.Context, id []byte) (Macaroon, error)
	HasAssetProof(ctx context.Context, tweakedScriptKey []byte) (bool, error)
	InsertAssetSeedling(ctx context.Context, arg InsertAssetSeedlingParams) error
	InsertAssetSeedlingIntoBatch(ctx context.Context, arg InsertAssetSeedlingIntoBatchParams) error
	InsertAssetTransfer(ctx context.Context, arg InsertAssetTransferParams) (int64, error)
	InsertAssetTransferInput(ctx context.Context, arg InsertAssetTransferInputParams) error
	InsertAssetTransferOutput(ctx context.Context, arg InsertAssetTransferOutputParams) error
	InsertAuthMailboxMessage(ctx context.Context, arg InsertAuthMailboxMessageParams) (int64, error)
	InsertBranch(ctx context.Context, arg InsertBranchParams) error
	InsertBurn(ctx context.Context, arg InsertBurnParams) (int64, error)
	InsertCompactedLeaf(ctx context.Context, arg InsertCompactedLeafParams) error
	InsertLeaf(ctx context.Context, arg InsertLeafParams) error
	InsertNewProofEvent(ctx context.Context, arg InsertNewProofEventParams) error
	InsertNewSyncEvent(ctx context.Context, arg InsertNewSyncEventParams) error
	InsertPassiveAsset(ctx context.Context, arg InsertPassiveAssetParams) error
	InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error
	InsertSupplyCommitTransition(ctx context.Context, arg InsertSupplyCommitTransitionParams) (int64, error)
	InsertSupplyCommitment(ctx context.Context, arg InsertSupplyCommitmentParams) (int64, error)
	// Inserts a new push log entry to track a successful supply commitment
	// push to a remote universe server. The commit_txid and output_index are
	// taken directly from the RootCommitment outpoint.
	InsertSupplySyncerPushLog(ctx context.Context, arg InsertSupplySyncerPushLogParams) error
	InsertSupplyUpdateEvent(ctx context.Context, arg InsertSupplyUpdateEventParams) error
	InsertTxProof(ctx context.Context, arg InsertTxProofParams) error
	InsertUniverseServer(ctx context.Context, arg InsertUniverseServerParams) error
	LinkDanglingSupplyUpdateEvents(ctx context.Context, arg LinkDanglingSupplyUpdateEventsParams) error
	LogProofTransferAttempt(ctx context.Context, arg LogProofTransferAttemptParams) error
	LogServerSync(ctx context.Context, arg LogServerSyncParams) error
	// Mark a supply pre-commitment output as spent by its outpoint. The
	// pre-commitment corresponds to an asset issuance where the local node acted as
	// the issuer.
	MarkMintPreCommitSpentByOutpoint(ctx context.Context, arg MarkMintPreCommitSpentByOutpointParams) error
	// Mark a supply pre-commitment output as spent by its outpoint. The
	// pre-commitment corresponds to an asset issuance where a remote node acted as
	// the issuer.
	MarkPreCommitSpentByOutpoint(ctx context.Context, arg MarkPreCommitSpentByOutpointParams) error
	NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) error
	QueryAddr(ctx context.Context, arg QueryAddrParams) (QueryAddrRow, error)
	// We use a LEFT JOIN here as not every asset has a group key, so this'll
	// generate rows that have NULL values for the group key fields if an asset
	// doesn't have a group key. See the comment in fetchAssetSprouts for a work
	// around that needs to be used with this query until a sqlc bug is fixed.
	QueryAssetBalancesByAsset(ctx context.Context, arg QueryAssetBalancesByAssetParams) ([]QueryAssetBalancesByAssetRow, error)
	QueryAssetBalancesByGroup(ctx context.Context, arg QueryAssetBalancesByGroupParams) ([]QueryAssetBalancesByGroupRow, error)
	// BETWEEN is inclusive for both start and end values.
	QueryAssetStatsPerDayPostgres(ctx context.Context, arg QueryAssetStatsPerDayPostgresParams) ([]QueryAssetStatsPerDayPostgresRow, error)
	QueryAssetStatsPerDaySqlite(ctx context.Context, arg QueryAssetStatsPerDaySqliteParams) ([]QueryAssetStatsPerDaySqliteRow, error)
	QueryAssetTransfers(ctx context.Context, arg QueryAssetTransfersParams) ([]QueryAssetTransfersRow, error)
	// We use a LEFT JOIN here as not every asset has a group key, so this'll
	// generate rows that have NULL values for the group key fields if an asset
	// doesn't have a group key. See the comment in fetchAssetSprouts for a work
	// around that needs to be used with this query until a sqlc bug is fixed.
	// This clause is used to select specific assets for a asset ID, general
	// channel balances, and also coin selection. We use the sqlc.narg feature to
	// make the entire statement evaluate to true, if none of these extra args are
	// specified.
	QueryAssets(ctx context.Context, arg QueryAssetsParams) ([]QueryAssetsRow, error)
	QueryAuthMailboxMessages(ctx context.Context, arg QueryAuthMailboxMessagesParams) ([]QueryAuthMailboxMessagesRow, error)
	QueryBurns(ctx context.Context, arg QueryBurnsParams) ([]QueryBurnsRow, error)
	QueryDanglingSupplyUpdateEvents(ctx context.Context, groupKey []byte) ([]QueryDanglingSupplyUpdateEventsRow, error)
	QueryEventIDs(ctx context.Context, arg QueryEventIDsParams) ([]QueryEventIDsRow, error)
	// Find the ID of an existing non-finalized transition for the group key
	QueryExistingPendingTransition(ctx context.Context, groupKey []byte) (int64, error)
	QueryFederationGlobalSyncConfigs(ctx context.Context) ([]FederationGlobalSyncConfig, error)
	// Join on mssmt_nodes to get leaf related fields.
	// Join on genesis_info_view to get leaf related fields.
	QueryFederationProofSyncLog(ctx context.Context, arg QueryFederationProofSyncLogParams) ([]QueryFederationProofSyncLogRow, error)
	QueryFederationUniSyncConfigs(ctx context.Context) ([]QueryFederationUniSyncConfigsRow, error)
	QueryLastEventHeight(ctx context.Context, version int16) (int64, error)
	QueryLatestSupplyCommitment(ctx context.Context, groupKey []byte) (QueryLatestSupplyCommitmentRow, error)
	QueryMultiverseLeaves(ctx context.Context, arg QueryMultiverseLeavesParams) ([]QueryMultiverseLeavesRow, error)
	QueryPassiveAssets(ctx context.Context, transferID int64) ([]QueryPassiveAssetsRow, error)
	QueryPendingSupplyCommitTransition(ctx context.Context, groupKey []byte) (QueryPendingSupplyCommitTransitionRow, error)
	QueryProofTransferAttempts(ctx context.Context, arg QueryProofTransferAttemptsParams) ([]time.Time, error)
	QueryStartingSupplyCommitment(ctx context.Context, groupKey []byte) (QueryStartingSupplyCommitmentRow, error)
	QuerySupplyCommitStateMachine(ctx context.Context, groupKey []byte) (QuerySupplyCommitStateMachineRow, error)
	QuerySupplyCommitment(ctx context.Context, commitID int64) (QuerySupplyCommitmentRow, error)
	QuerySupplyCommitmentByOutpoint(ctx context.Context, arg QuerySupplyCommitmentByOutpointParams) (QuerySupplyCommitmentByOutpointRow, error)
	QuerySupplyCommitmentBySpentOutpoint(ctx context.Context, arg QuerySupplyCommitmentBySpentOutpointParams) (QuerySupplyCommitmentBySpentOutpointRow, error)
	QuerySupplyCommitmentOutpoint(ctx context.Context, commitID int64) (QuerySupplyCommitmentOutpointRow, error)
	QuerySupplyLeavesByHeight(ctx context.Context, arg QuerySupplyLeavesByHeightParams) ([]QuerySupplyLeavesByHeightRow, error)
	QuerySupplyUpdateEvents(ctx context.Context, transitionID sql.NullInt64) ([]QuerySupplyUpdateEventsRow, error)
	// TODO(roasbeef): use the universe id instead for the grouping? so namespace
	// root, simplifies queries
	QueryUniverseAssetStats(ctx context.Context, arg QueryUniverseAssetStatsParams) ([]QueryUniverseAssetStatsRow, error)
	QueryUniverseLeaves(ctx context.Context, arg QueryUniverseLeavesParams) ([]QueryUniverseLeavesRow, error)
	QueryUniverseServers(ctx context.Context, arg QueryUniverseServersParams) ([]UniverseServer, error)
	QueryUniverseStats(ctx context.Context) (QueryUniverseStatsRow, error)
	QueryUniverseSupplyLeaves(ctx context.Context, arg QueryUniverseSupplyLeavesParams) ([]QueryUniverseSupplyLeavesRow, error)
	ReAnchorPassiveAssets(ctx context.Context, arg ReAnchorPassiveAssetsParams) error
	SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) error
	SetAssetSpent(ctx context.Context, arg SetAssetSpentParams) (int64, error)
	SetTransferOutputProofDeliveryStatus(ctx context.Context, arg SetTransferOutputProofDeliveryStatusParams) error
	UniverseLeaves(ctx context.Context) ([]UniverseLeafe, error)
	UniverseRoots(ctx context.Context, arg UniverseRootsParams) ([]UniverseRootsRow, error)
	UpdateBatchGenesisTx(ctx context.Context, arg UpdateBatchGenesisTxParams) error
	UpdateMintingBatchState(ctx context.Context, arg UpdateMintingBatchStateParams) error
	UpdateSupplyCommitTransitionCommitment(ctx context.Context, arg UpdateSupplyCommitTransitionCommitmentParams) error
	UpdateSupplyCommitmentChainDetails(ctx context.Context, arg UpdateSupplyCommitmentChainDetailsParams) error
	UpdateSupplyCommitmentRoot(ctx context.Context, arg UpdateSupplyCommitmentRootParams) error
	UpdateUTXOLease(ctx context.Context, arg UpdateUTXOLeaseParams) error
	UpsertAddr(ctx context.Context, arg UpsertAddrParams) (int64, error)
	UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (int64, error)
	UpsertAddrEventOutput(ctx context.Context, arg UpsertAddrEventOutputParams) (int64, error)
	UpsertAddrEventProof(ctx context.Context, arg UpsertAddrEventProofParams) (int64, error)
	UpsertAsset(ctx context.Context, arg UpsertAssetParams) (int64, error)
	UpsertAssetGroupKey(ctx context.Context, arg UpsertAssetGroupKeyParams) (int64, error)
	UpsertAssetGroupWitness(ctx context.Context, arg UpsertAssetGroupWitnessParams) (int64, error)
	UpsertAssetMeta(ctx context.Context, arg UpsertAssetMetaParams) (int64, error)
	UpsertAssetProofByID(ctx context.Context, arg UpsertAssetProofByIDParams) error
	UpsertAssetWitness(ctx context.Context, arg UpsertAssetWitnessParams) error
	UpsertChainTx(ctx context.Context, arg UpsertChainTxParams) (int64, error)
	UpsertFederationGlobalSyncConfig(ctx context.Context, arg UpsertFederationGlobalSyncConfigParams) error
	UpsertFederationProofSyncLog(ctx context.Context, arg UpsertFederationProofSyncLogParams) (int64, error)
	UpsertFederationUniSyncConfig(ctx context.Context, arg UpsertFederationUniSyncConfigParams) error
	UpsertGenesisAsset(ctx context.Context, arg UpsertGenesisAssetParams) (int64, error)
	UpsertGenesisPoint(ctx context.Context, prevOut []byte) (int64, error)
	UpsertInternalKey(ctx context.Context, arg UpsertInternalKeyParams) (int64, error)
	UpsertManagedUTXO(ctx context.Context, arg UpsertManagedUTXOParams) (int64, error)
	// Upsert a supply pre-commit that is tied to a minting batch.
	// The batch is resolved from @batch_key
	// (internal_keys -> asset_minting_batches).
	// The key is (batch_id, tx_output_index), where tx_output_index is the
	// pre-commit output index in the batch’s mint anchor transaction.
	// If a row exists for the same batch and index, update non-key fields only;
	// the batch association is not changed.
	UpsertMintSupplyPreCommit(ctx context.Context, arg UpsertMintSupplyPreCommitParams) (int64, error)
	UpsertMultiverseLeaf(ctx context.Context, arg UpsertMultiverseLeafParams) (int64, error)
	UpsertMultiverseRoot(ctx context.Context, arg UpsertMultiverseRootParams) (int64, error)
	UpsertRootNode(ctx context.Context, arg UpsertRootNodeParams) error
	UpsertScriptKey(ctx context.Context, arg UpsertScriptKeyParams) (int64, error)
	// Return the ID of the state that was actually set (either inserted or updated),
	// and the latest commitment ID that was set.
	UpsertSupplyCommitStateMachine(ctx context.Context, arg UpsertSupplyCommitStateMachineParams) (UpsertSupplyCommitStateMachineRow, error)
	// Upsert a supply pre-commit output that is not tied to a minting batch.
	UpsertSupplyPreCommit(ctx context.Context, arg UpsertSupplyPreCommitParams) (int64, error)
	UpsertTapscriptTreeEdge(ctx context.Context, arg UpsertTapscriptTreeEdgeParams) (int64, error)
	UpsertTapscriptTreeNode(ctx context.Context, rawNode []byte) (int64, error)
	UpsertTapscriptTreeRootHash(ctx context.Context, arg UpsertTapscriptTreeRootHashParams) (int64, error)
	UpsertUniverseLeaf(ctx context.Context, arg UpsertUniverseLeafParams) error
	UpsertUniverseRoot(ctx context.Context, arg UpsertUniverseRootParams) (int64, error)
	UpsertUniverseSupplyLeaf(ctx context.Context, arg UpsertUniverseSupplyLeafParams) (int64, error)
	UpsertUniverseSupplyRoot(ctx context.Context, arg UpsertUniverseSupplyRootParams) (int64, error)
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func NewPostgres added in v0.2.3

func NewPostgres(db DBTX) *Queries

NewPostgres creates a new Queries instance for a Postgres database.

func NewSqlite added in v0.2.3

func NewSqlite(db DBTX) *Queries

NewSqlite creates a new Queries instance for a SQLite database.

func (*Queries) AllAssets

func (q *Queries) AllAssets(ctx context.Context) ([]Asset, error)

func (*Queries) AllInternalKeys

func (q *Queries) AllInternalKeys(ctx context.Context) ([]InternalKey, error)

func (*Queries) AllMintingBatches

func (q *Queries) AllMintingBatches(ctx context.Context) ([]AllMintingBatchesRow, error)

func (*Queries) AnchorGenesisPoint

func (q *Queries) AnchorGenesisPoint(ctx context.Context, arg AnchorGenesisPointParams) error

func (*Queries) AnchorPendingAssets

func (q *Queries) AnchorPendingAssets(ctx context.Context, arg AnchorPendingAssetsParams) error

func (*Queries) ApplyPendingOutput

func (q *Queries) ApplyPendingOutput(ctx context.Context, arg ApplyPendingOutputParams) (int64, error)

func (*Queries) AssetsByGenesisPoint

func (q *Queries) AssetsByGenesisPoint(ctx context.Context, prevOut []byte) ([]AssetsByGenesisPointRow, error)

func (*Queries) AssetsDBSizePostgres added in v0.5.0

func (q *Queries) AssetsDBSizePostgres(ctx context.Context) (int64, error)

func (*Queries) AssetsDBSizeSqlite added in v0.5.0

func (q *Queries) AssetsDBSizeSqlite(ctx context.Context) (int32, error)

func (*Queries) AssetsInBatch

func (q *Queries) AssetsInBatch(ctx context.Context, rawKey []byte) ([]AssetsInBatchRow, error)

func (*Queries) Backend added in v0.2.3

func (q *Queries) Backend() BackendType

Backend returns the type of database backend we're using.

func (*Queries) BindMintingBatchWithTapSibling added in v0.4.0

func (q *Queries) BindMintingBatchWithTapSibling(ctx context.Context, arg BindMintingBatchWithTapSiblingParams) error

func (*Queries) BindMintingBatchWithTx

func (q *Queries) BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) (int64, error)

func (*Queries) ConfirmChainAnchorTx

func (q *Queries) ConfirmChainAnchorTx(ctx context.Context, arg ConfirmChainAnchorTxParams) error

func (*Queries) ConfirmChainTx

func (q *Queries) ConfirmChainTx(ctx context.Context, arg ConfirmChainTxParams) error

func (*Queries) CountAuthMailboxMessages

func (q *Queries) CountAuthMailboxMessages(ctx context.Context) (int64, error)

func (*Queries) DeleteAllNodes added in v0.2.1

func (q *Queries) DeleteAllNodes(ctx context.Context, namespace string) (int64, error)

func (*Queries) DeleteAssetWitnesses

func (q *Queries) DeleteAssetWitnesses(ctx context.Context, assetID int64) error

func (*Queries) DeleteExpiredUTXOLeases added in v0.3.0

func (q *Queries) DeleteExpiredUTXOLeases(ctx context.Context, now sql.NullTime) error

func (*Queries) DeleteFederationProofSyncLog added in v0.3.3

func (q *Queries) DeleteFederationProofSyncLog(ctx context.Context, arg DeleteFederationProofSyncLogParams) error

func (*Queries) DeleteManagedUTXO

func (q *Queries) DeleteManagedUTXO(ctx context.Context, outpoint []byte) error

func (*Queries) DeleteMultiverseLeaf added in v0.4.0

func (q *Queries) DeleteMultiverseLeaf(ctx context.Context, arg DeleteMultiverseLeafParams) error

func (*Queries) DeleteNode

func (q *Queries) DeleteNode(ctx context.Context, arg DeleteNodeParams) (int64, error)

func (*Queries) DeleteRoot added in v0.2.1

func (q *Queries) DeleteRoot(ctx context.Context, namespace string) (int64, error)

func (*Queries) DeleteSupplyCommitTransition

func (q *Queries) DeleteSupplyCommitTransition(ctx context.Context, transitionID int64) error

func (*Queries) DeleteSupplyUpdateEvents

func (q *Queries) DeleteSupplyUpdateEvents(ctx context.Context, transitionID sql.NullInt64) error

func (*Queries) DeleteTapscriptTreeEdges added in v0.4.0

func (q *Queries) DeleteTapscriptTreeEdges(ctx context.Context, rootHash []byte) error

func (*Queries) DeleteTapscriptTreeNodes added in v0.4.0

func (q *Queries) DeleteTapscriptTreeNodes(ctx context.Context) error

func (*Queries) DeleteTapscriptTreeRoot added in v0.4.0

func (q *Queries) DeleteTapscriptTreeRoot(ctx context.Context, rootHash []byte) error

func (*Queries) DeleteUTXOLease added in v0.3.0

func (q *Queries) DeleteUTXOLease(ctx context.Context, outpoint []byte) error

func (*Queries) DeleteUniverseEvents added in v0.2.1

func (q *Queries) DeleteUniverseEvents(ctx context.Context, namespaceRoot string) error

func (*Queries) DeleteUniverseLeaves added in v0.2.1

func (q *Queries) DeleteUniverseLeaves(ctx context.Context, namespace string) error

func (*Queries) DeleteUniverseRoot added in v0.2.1

func (q *Queries) DeleteUniverseRoot(ctx context.Context, namespaceRoot string) error

func (*Queries) DeleteUniverseServer

func (q *Queries) DeleteUniverseServer(ctx context.Context, arg DeleteUniverseServerParams) error

func (*Queries) DeleteUniverseSupplyLeaf

func (q *Queries) DeleteUniverseSupplyLeaf(ctx context.Context, arg DeleteUniverseSupplyLeafParams) error

func (*Queries) DeleteUniverseSupplyLeaves

func (q *Queries) DeleteUniverseSupplyLeaves(ctx context.Context, namespaceRoot string) error

func (*Queries) DeleteUniverseSupplyRoot

func (q *Queries) DeleteUniverseSupplyRoot(ctx context.Context, namespaceRoot string) error

func (*Queries) FetchAddrEvent

func (q *Queries) FetchAddrEvent(ctx context.Context, id int64) (FetchAddrEventRow, error)

func (*Queries) FetchAddrEventByAddrKeyAndOutpoint added in v0.4.0

func (*Queries) FetchAddrEventOutputs

func (q *Queries) FetchAddrEventOutputs(ctx context.Context, addrEventID int64) ([]FetchAddrEventOutputsRow, error)

func (*Queries) FetchAddrEventProofs

func (q *Queries) FetchAddrEventProofs(ctx context.Context, addrEventID int64) ([]FetchAddrEventProofsRow, error)

func (*Queries) FetchAddrs

func (q *Queries) FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, error)

func (*Queries) FetchAllAssetMeta added in v0.6.1

func (q *Queries) FetchAllAssetMeta(ctx context.Context) ([]FetchAllAssetMetaRow, error)

func (*Queries) FetchAllNodes

func (q *Queries) FetchAllNodes(ctx context.Context) ([]MssmtNode, error)

func (*Queries) FetchAssetID added in v0.4.0

func (q *Queries) FetchAssetID(ctx context.Context, arg FetchAssetIDParams) ([]int64, error)

func (*Queries) FetchAssetMeta

func (q *Queries) FetchAssetMeta(ctx context.Context, metaID int64) (FetchAssetMetaRow, error)

func (*Queries) FetchAssetMetaByHash

func (q *Queries) FetchAssetMetaByHash(ctx context.Context, metaDataHash []byte) (FetchAssetMetaByHashRow, error)

func (*Queries) FetchAssetMetaForAsset

func (q *Queries) FetchAssetMetaForAsset(ctx context.Context, assetID []byte) (FetchAssetMetaForAssetRow, error)

func (*Queries) FetchAssetProof

func (q *Queries) FetchAssetProof(ctx context.Context, arg FetchAssetProofParams) ([]FetchAssetProofRow, error)

func (*Queries) FetchAssetProofs

func (q *Queries) FetchAssetProofs(ctx context.Context) ([]FetchAssetProofsRow, error)

func (*Queries) FetchAssetProofsByAssetID added in v0.3.0

func (q *Queries) FetchAssetProofsByAssetID(ctx context.Context, assetID []byte) ([]FetchAssetProofsByAssetIDRow, error)

func (*Queries) FetchAssetProofsSizes added in v0.5.0

func (q *Queries) FetchAssetProofsSizes(ctx context.Context) ([]FetchAssetProofsSizesRow, error)

func (*Queries) FetchAssetWitnesses

func (q *Queries) FetchAssetWitnesses(ctx context.Context, assetID sql.NullInt64) ([]FetchAssetWitnessesRow, error)

func (*Queries) FetchAssetsByAnchorTx

func (q *Queries) FetchAssetsByAnchorTx(ctx context.Context, anchorUtxoID sql.NullInt64) ([]Asset, error)

func (*Queries) FetchAssetsForBatch

func (q *Queries) FetchAssetsForBatch(ctx context.Context, rawKey []byte) ([]FetchAssetsForBatchRow, error)

We use a LEFT JOIN here as not every asset has a meta data entry. We use a LEFT JOIN here as not every asset has a group key, so this'll generate rows that have NULL values for the group key fields if an asset doesn't have a group key. See the comment in fetchAssetSprouts for a work around that needs to be used with this query until a sqlc bug is fixed.

func (*Queries) FetchAuthMailboxMessage

func (q *Queries) FetchAuthMailboxMessage(ctx context.Context, id int64) (FetchAuthMailboxMessageRow, error)

func (*Queries) FetchAuthMailboxMessageByOutpoint

func (q *Queries) FetchAuthMailboxMessageByOutpoint(ctx context.Context, claimedOutpoint []byte) (FetchAuthMailboxMessageByOutpointRow, error)

func (*Queries) FetchChainTx

func (q *Queries) FetchChainTx(ctx context.Context, txid []byte) (ChainTxn, error)

func (*Queries) FetchChainTxByID

func (q *Queries) FetchChainTxByID(ctx context.Context, txnID int64) (FetchChainTxByIDRow, error)

func (*Queries) FetchChildren

func (q *Queries) FetchChildren(ctx context.Context, arg FetchChildrenParams) ([]FetchChildrenRow, error)

func (*Queries) FetchChildrenSelfJoin

func (q *Queries) FetchChildrenSelfJoin(ctx context.Context, arg FetchChildrenSelfJoinParams) ([]FetchChildrenSelfJoinRow, error)

func (*Queries) FetchGenesisByAssetID

func (q *Queries) FetchGenesisByAssetID(ctx context.Context, assetID []byte) (GenesisInfoView, error)

func (*Queries) FetchGenesisByGroupKey

func (q *Queries) FetchGenesisByGroupKey(ctx context.Context, tweakedGroupKey []byte) (GenesisInfoView, error)

func (*Queries) FetchGenesisByID

func (q *Queries) FetchGenesisByID(ctx context.Context, genAssetID int64) (FetchGenesisByIDRow, error)

func (*Queries) FetchGenesisID

func (q *Queries) FetchGenesisID(ctx context.Context, arg FetchGenesisIDParams) (int64, error)

func (*Queries) FetchGenesisIDByAssetID added in v0.6.0

func (q *Queries) FetchGenesisIDByAssetID(ctx context.Context, assetID []byte) (int64, error)

func (*Queries) FetchGenesisPointByAnchorTx

func (q *Queries) FetchGenesisPointByAnchorTx(ctx context.Context, anchorTxID sql.NullInt64) (GenesisPoint, error)

func (*Queries) FetchGroupByGenesis

func (q *Queries) FetchGroupByGenesis(ctx context.Context, genesisID int64) (FetchGroupByGenesisRow, error)

func (*Queries) FetchGroupByGroupKey

func (q *Queries) FetchGroupByGroupKey(ctx context.Context, groupKey []byte) (FetchGroupByGroupKeyRow, error)

Sort and limit to return the genesis ID for initial genesis of the group.

func (*Queries) FetchGroupedAssets

func (q *Queries) FetchGroupedAssets(ctx context.Context) ([]FetchGroupedAssetsRow, error)

func (*Queries) FetchInternalKeyByID

func (q *Queries) FetchInternalKeyByID(ctx context.Context, keyID int64) (FetchInternalKeyByIDRow, error)

func (*Queries) FetchInternalKeyLocator added in v0.4.0

func (q *Queries) FetchInternalKeyLocator(ctx context.Context, rawKey []byte) (FetchInternalKeyLocatorRow, error)

func (*Queries) FetchManagedUTXO

func (q *Queries) FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error)

func (*Queries) FetchManagedUTXOs

func (q *Queries) FetchManagedUTXOs(ctx context.Context) ([]FetchManagedUTXOsRow, error)

func (*Queries) FetchMintSupplyPreCommits

func (q *Queries) FetchMintSupplyPreCommits(ctx context.Context, arg FetchMintSupplyPreCommitsParams) ([]FetchMintSupplyPreCommitsRow, error)

Fetch records from the supply_pre_commits table with optional filtering.

func (*Queries) FetchMintingBatch

func (q *Queries) FetchMintingBatch(ctx context.Context, rawKey []byte) (FetchMintingBatchRow, error)

func (*Queries) FetchMintingBatchesByInverseState

func (q *Queries) FetchMintingBatchesByInverseState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByInverseStateRow, error)

func (*Queries) FetchMultiverseRoot added in v0.4.0

func (q *Queries) FetchMultiverseRoot(ctx context.Context, namespaceRoot string) (FetchMultiverseRootRow, error)

func (*Queries) FetchRootNode

func (q *Queries) FetchRootNode(ctx context.Context, namespace string) (MssmtNode, error)

func (*Queries) FetchScriptKeyByTweakedKey

func (q *Queries) FetchScriptKeyByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (FetchScriptKeyByTweakedKeyRow, error)

func (*Queries) FetchScriptKeyIDByTweakedKey

func (q *Queries) FetchScriptKeyIDByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (int64, error)

func (*Queries) FetchSeedlingByID

func (q *Queries) FetchSeedlingByID(ctx context.Context, seedlingID int64) (AssetSeedling, error)

func (*Queries) FetchSeedlingID

func (q *Queries) FetchSeedlingID(ctx context.Context, arg FetchSeedlingIDParams) (int64, error)

func (*Queries) FetchSeedlingsForBatch

func (q *Queries) FetchSeedlingsForBatch(ctx context.Context, rawKey []byte) ([]FetchSeedlingsForBatchRow, error)

func (*Queries) FetchSupplyCommit

func (q *Queries) FetchSupplyCommit(ctx context.Context, groupKey []byte) (FetchSupplyCommitRow, error)

func (*Queries) FetchSupplySyncerPushLogs

func (q *Queries) FetchSupplySyncerPushLogs(ctx context.Context, groupKey []byte) ([]SupplySyncerPushLog, error)

Fetches all push log entries for a given asset group, ordered by creation time with the most recent entries first.

func (*Queries) FetchTapscriptTree added in v0.4.0

func (q *Queries) FetchTapscriptTree(ctx context.Context, rootHash []byte) ([]FetchTapscriptTreeRow, error)

Sort the nodes by node_index here instead of returning the indices.

func (*Queries) FetchTransferInputs

func (q *Queries) FetchTransferInputs(ctx context.Context, transferID int64) ([]FetchTransferInputsRow, error)

func (*Queries) FetchTransferOutputs

func (q *Queries) FetchTransferOutputs(ctx context.Context, transferID int64) ([]FetchTransferOutputsRow, error)

func (*Queries) FetchUniverseKeys

func (q *Queries) FetchUniverseKeys(ctx context.Context, arg FetchUniverseKeysParams) ([]FetchUniverseKeysRow, error)

func (*Queries) FetchUniverseRoot

func (q *Queries) FetchUniverseRoot(ctx context.Context, namespace string) (FetchUniverseRootRow, error)

func (*Queries) FetchUniverseSupplyRoot

func (q *Queries) FetchUniverseSupplyRoot(ctx context.Context, namespaceRoot string) (FetchUniverseSupplyRootRow, error)

func (*Queries) FetchUnknownTypeScriptKeys added in v0.6.0

func (q *Queries) FetchUnknownTypeScriptKeys(ctx context.Context) ([]FetchUnknownTypeScriptKeysRow, error)

func (*Queries) FetchUnspentMintSupplyPreCommits

func (q *Queries) FetchUnspentMintSupplyPreCommits(ctx context.Context, groupKey []byte) ([]FetchUnspentMintSupplyPreCommitsRow, error)

Fetch unspent supply pre-commitment outputs. Each pre-commitment output comes from a mint anchor transaction and relates to an asset issuance where the local node acted as the issuer.

func (*Queries) FetchUnspentSupplyPreCommits

func (q *Queries) FetchUnspentSupplyPreCommits(ctx context.Context, groupKey []byte) ([]FetchUnspentSupplyPreCommitsRow, error)

Fetch unspent supply pre-commitment outputs. Each pre-commitment output comes from a mint anchor transaction and relates to an asset issuance where a peer node acted as the issuer. Rows in this table do not relate to an issuance where the local node acted as the issuer.

func (*Queries) FinalizeSupplyCommitTransition

func (q *Queries) FinalizeSupplyCommitTransition(ctx context.Context, transitionID int64) error

func (*Queries) FreezePendingTransition

func (q *Queries) FreezePendingTransition(ctx context.Context, groupKey []byte) error

func (*Queries) GenesisAssets

func (q *Queries) GenesisAssets(ctx context.Context) ([]GenesisAsset, error)

func (*Queries) GenesisPoints

func (q *Queries) GenesisPoints(ctx context.Context) ([]GenesisPoint, error)

func (*Queries) GetRootKey

func (q *Queries) GetRootKey(ctx context.Context, id []byte) (Macaroon, error)

func (*Queries) HasAssetProof added in v0.3.3

func (q *Queries) HasAssetProof(ctx context.Context, tweakedScriptKey []byte) (bool, error)

func (*Queries) InsertAssetSeedling

func (q *Queries) InsertAssetSeedling(ctx context.Context, arg InsertAssetSeedlingParams) error

func (*Queries) InsertAssetSeedlingIntoBatch

func (q *Queries) InsertAssetSeedlingIntoBatch(ctx context.Context, arg InsertAssetSeedlingIntoBatchParams) error

func (*Queries) InsertAssetTransfer

func (q *Queries) InsertAssetTransfer(ctx context.Context, arg InsertAssetTransferParams) (int64, error)

func (*Queries) InsertAssetTransferInput

func (q *Queries) InsertAssetTransferInput(ctx context.Context, arg InsertAssetTransferInputParams) error

func (*Queries) InsertAssetTransferOutput

func (q *Queries) InsertAssetTransferOutput(ctx context.Context, arg InsertAssetTransferOutputParams) error

func (*Queries) InsertAuthMailboxMessage

func (q *Queries) InsertAuthMailboxMessage(ctx context.Context, arg InsertAuthMailboxMessageParams) (int64, error)

func (*Queries) InsertBranch

func (q *Queries) InsertBranch(ctx context.Context, arg InsertBranchParams) error

func (*Queries) InsertBurn added in v0.5.0

func (q *Queries) InsertBurn(ctx context.Context, arg InsertBurnParams) (int64, error)

func (*Queries) InsertCompactedLeaf

func (q *Queries) InsertCompactedLeaf(ctx context.Context, arg InsertCompactedLeafParams) error

func (*Queries) InsertLeaf

func (q *Queries) InsertLeaf(ctx context.Context, arg InsertLeafParams) error

func (*Queries) InsertNewProofEvent

func (q *Queries) InsertNewProofEvent(ctx context.Context, arg InsertNewProofEventParams) error

func (*Queries) InsertNewSyncEvent

func (q *Queries) InsertNewSyncEvent(ctx context.Context, arg InsertNewSyncEventParams) error

func (*Queries) InsertPassiveAsset

func (q *Queries) InsertPassiveAsset(ctx context.Context, arg InsertPassiveAssetParams) error

func (*Queries) InsertRootKey

func (q *Queries) InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error

func (*Queries) InsertSupplyCommitTransition

func (q *Queries) InsertSupplyCommitTransition(ctx context.Context, arg InsertSupplyCommitTransitionParams) (int64, error)

func (*Queries) InsertSupplyCommitment

func (q *Queries) InsertSupplyCommitment(ctx context.Context, arg InsertSupplyCommitmentParams) (int64, error)

func (*Queries) InsertSupplySyncerPushLog

func (q *Queries) InsertSupplySyncerPushLog(ctx context.Context, arg InsertSupplySyncerPushLogParams) error

Inserts a new push log entry to track a successful supply commitment push to a remote universe server. The commit_txid and output_index are taken directly from the RootCommitment outpoint.

func (*Queries) InsertSupplyUpdateEvent

func (q *Queries) InsertSupplyUpdateEvent(ctx context.Context, arg InsertSupplyUpdateEventParams) error

func (*Queries) InsertTxProof

func (q *Queries) InsertTxProof(ctx context.Context, arg InsertTxProofParams) error

func (*Queries) InsertUniverseServer

func (q *Queries) InsertUniverseServer(ctx context.Context, arg InsertUniverseServerParams) error

func (*Queries) LinkDanglingSupplyUpdateEvents

func (q *Queries) LinkDanglingSupplyUpdateEvents(ctx context.Context, arg LinkDanglingSupplyUpdateEventsParams) error

func (*Queries) LogProofTransferAttempt added in v0.3.1

func (q *Queries) LogProofTransferAttempt(ctx context.Context, arg LogProofTransferAttemptParams) error

func (*Queries) LogServerSync

func (q *Queries) LogServerSync(ctx context.Context, arg LogServerSyncParams) error

func (*Queries) MarkMintPreCommitSpentByOutpoint

func (q *Queries) MarkMintPreCommitSpentByOutpoint(ctx context.Context, arg MarkMintPreCommitSpentByOutpointParams) error

Mark a supply pre-commitment output as spent by its outpoint. The pre-commitment corresponds to an asset issuance where the local node acted as the issuer.

func (*Queries) MarkPreCommitSpentByOutpoint

func (q *Queries) MarkPreCommitSpentByOutpoint(ctx context.Context, arg MarkPreCommitSpentByOutpointParams) error

Mark a supply pre-commitment output as spent by its outpoint. The pre-commitment corresponds to an asset issuance where a remote node acted as the issuer.

func (*Queries) NewMintingBatch

func (q *Queries) NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) error

func (*Queries) QueryAddr

func (q *Queries) QueryAddr(ctx context.Context, arg QueryAddrParams) (QueryAddrRow, error)

func (*Queries) QueryAssetBalancesByAsset

func (q *Queries) QueryAssetBalancesByAsset(ctx context.Context, arg QueryAssetBalancesByAssetParams) ([]QueryAssetBalancesByAssetRow, error)

We use a LEFT JOIN here as not every asset has a group key, so this'll generate rows that have NULL values for the group key fields if an asset doesn't have a group key. See the comment in fetchAssetSprouts for a work around that needs to be used with this query until a sqlc bug is fixed.

func (*Queries) QueryAssetBalancesByGroup

func (q *Queries) QueryAssetBalancesByGroup(ctx context.Context, arg QueryAssetBalancesByGroupParams) ([]QueryAssetBalancesByGroupRow, error)

func (*Queries) QueryAssetStatsPerDayPostgres added in v0.2.3

func (q *Queries) QueryAssetStatsPerDayPostgres(ctx context.Context, arg QueryAssetStatsPerDayPostgresParams) ([]QueryAssetStatsPerDayPostgresRow, error)

BETWEEN is inclusive for both start and end values.

func (*Queries) QueryAssetStatsPerDaySqlite added in v0.2.3

func (q *Queries) QueryAssetStatsPerDaySqlite(ctx context.Context, arg QueryAssetStatsPerDaySqliteParams) ([]QueryAssetStatsPerDaySqliteRow, error)

func (*Queries) QueryAssetTransfers

func (q *Queries) QueryAssetTransfers(ctx context.Context, arg QueryAssetTransfersParams) ([]QueryAssetTransfersRow, error)

func (*Queries) QueryAssets

func (q *Queries) QueryAssets(ctx context.Context, arg QueryAssetsParams) ([]QueryAssetsRow, error)

We use a LEFT JOIN here as not every asset has a group key, so this'll generate rows that have NULL values for the group key fields if an asset doesn't have a group key. See the comment in fetchAssetSprouts for a work around that needs to be used with this query until a sqlc bug is fixed. This clause is used to select specific assets for a asset ID, general channel balances, and also coin selection. We use the sqlc.narg feature to make the entire statement evaluate to true, if none of these extra args are specified.

func (*Queries) QueryAuthMailboxMessages

func (q *Queries) QueryAuthMailboxMessages(ctx context.Context, arg QueryAuthMailboxMessagesParams) ([]QueryAuthMailboxMessagesRow, error)

func (*Queries) QueryBurns added in v0.5.0

func (q *Queries) QueryBurns(ctx context.Context, arg QueryBurnsParams) ([]QueryBurnsRow, error)

func (*Queries) QueryDanglingSupplyUpdateEvents

func (q *Queries) QueryDanglingSupplyUpdateEvents(ctx context.Context, groupKey []byte) ([]QueryDanglingSupplyUpdateEventsRow, error)

func (*Queries) QueryEventIDs

func (q *Queries) QueryEventIDs(ctx context.Context, arg QueryEventIDsParams) ([]QueryEventIDsRow, error)

func (*Queries) QueryExistingPendingTransition

func (q *Queries) QueryExistingPendingTransition(ctx context.Context, groupKey []byte) (int64, error)

Find the ID of an existing non-finalized transition for the group key

func (*Queries) QueryFederationGlobalSyncConfigs added in v0.3.0

func (q *Queries) QueryFederationGlobalSyncConfigs(ctx context.Context) ([]FederationGlobalSyncConfig, error)

func (*Queries) QueryFederationProofSyncLog added in v0.3.3

func (q *Queries) QueryFederationProofSyncLog(ctx context.Context, arg QueryFederationProofSyncLogParams) ([]QueryFederationProofSyncLogRow, error)

Join on mssmt_nodes to get leaf related fields. Join on genesis_info_view to get leaf related fields.

func (*Queries) QueryFederationUniSyncConfigs added in v0.3.0

func (q *Queries) QueryFederationUniSyncConfigs(ctx context.Context) ([]QueryFederationUniSyncConfigsRow, error)

func (*Queries) QueryLastEventHeight

func (q *Queries) QueryLastEventHeight(ctx context.Context, version int16) (int64, error)

func (*Queries) QueryLatestSupplyCommitment

func (q *Queries) QueryLatestSupplyCommitment(ctx context.Context, groupKey []byte) (QueryLatestSupplyCommitmentRow, error)

func (*Queries) QueryMultiverseLeaves added in v0.4.0

func (q *Queries) QueryMultiverseLeaves(ctx context.Context, arg QueryMultiverseLeavesParams) ([]QueryMultiverseLeavesRow, error)

func (*Queries) QueryPassiveAssets

func (q *Queries) QueryPassiveAssets(ctx context.Context, transferID int64) ([]QueryPassiveAssetsRow, error)

func (*Queries) QueryPendingSupplyCommitTransition

func (q *Queries) QueryPendingSupplyCommitTransition(ctx context.Context, groupKey []byte) (QueryPendingSupplyCommitTransitionRow, error)

func (*Queries) QueryProofTransferAttempts added in v0.3.1

func (q *Queries) QueryProofTransferAttempts(ctx context.Context, arg QueryProofTransferAttemptsParams) ([]time.Time, error)

func (*Queries) QueryStartingSupplyCommitment

func (q *Queries) QueryStartingSupplyCommitment(ctx context.Context, groupKey []byte) (QueryStartingSupplyCommitmentRow, error)

func (*Queries) QuerySupplyCommitStateMachine

func (q *Queries) QuerySupplyCommitStateMachine(ctx context.Context, groupKey []byte) (QuerySupplyCommitStateMachineRow, error)

func (*Queries) QuerySupplyCommitment

func (q *Queries) QuerySupplyCommitment(ctx context.Context, commitID int64) (QuerySupplyCommitmentRow, error)

func (*Queries) QuerySupplyCommitmentOutpoint

func (q *Queries) QuerySupplyCommitmentOutpoint(ctx context.Context, commitID int64) (QuerySupplyCommitmentOutpointRow, error)

func (*Queries) QuerySupplyLeavesByHeight

func (q *Queries) QuerySupplyLeavesByHeight(ctx context.Context, arg QuerySupplyLeavesByHeightParams) ([]QuerySupplyLeavesByHeightRow, error)

func (*Queries) QuerySupplyUpdateEvents

func (q *Queries) QuerySupplyUpdateEvents(ctx context.Context, transitionID sql.NullInt64) ([]QuerySupplyUpdateEventsRow, error)

func (*Queries) QueryUniverseAssetStats

func (q *Queries) QueryUniverseAssetStats(ctx context.Context, arg QueryUniverseAssetStatsParams) ([]QueryUniverseAssetStatsRow, error)

TODO(roasbeef): use the universe id instead for the grouping? so namespace root, simplifies queries

func (*Queries) QueryUniverseLeaves

func (q *Queries) QueryUniverseLeaves(ctx context.Context, arg QueryUniverseLeavesParams) ([]QueryUniverseLeavesRow, error)

func (*Queries) QueryUniverseServers added in v0.3.3

func (q *Queries) QueryUniverseServers(ctx context.Context, arg QueryUniverseServersParams) ([]UniverseServer, error)

func (*Queries) QueryUniverseStats

func (q *Queries) QueryUniverseStats(ctx context.Context) (QueryUniverseStatsRow, error)

func (*Queries) QueryUniverseSupplyLeaves

func (q *Queries) QueryUniverseSupplyLeaves(ctx context.Context, arg QueryUniverseSupplyLeavesParams) ([]QueryUniverseSupplyLeavesRow, error)

func (*Queries) ReAnchorPassiveAssets

func (q *Queries) ReAnchorPassiveAssets(ctx context.Context, arg ReAnchorPassiveAssetsParams) error

func (*Queries) SetAddrManaged

func (q *Queries) SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) error

func (*Queries) SetAssetSpent

func (q *Queries) SetAssetSpent(ctx context.Context, arg SetAssetSpentParams) (int64, error)

func (*Queries) SetTransferOutputProofDeliveryStatus added in v0.5.0

func (q *Queries) SetTransferOutputProofDeliveryStatus(ctx context.Context, arg SetTransferOutputProofDeliveryStatusParams) error

func (*Queries) UniverseLeaves

func (q *Queries) UniverseLeaves(ctx context.Context) ([]UniverseLeafe, error)

func (*Queries) UniverseRoots

func (q *Queries) UniverseRoots(ctx context.Context, arg UniverseRootsParams) ([]UniverseRootsRow, error)

func (*Queries) UpdateBatchGenesisTx

func (q *Queries) UpdateBatchGenesisTx(ctx context.Context, arg UpdateBatchGenesisTxParams) error

func (*Queries) UpdateMintingBatchState

func (q *Queries) UpdateMintingBatchState(ctx context.Context, arg UpdateMintingBatchStateParams) error

func (*Queries) UpdateSupplyCommitTransitionCommitment

func (q *Queries) UpdateSupplyCommitTransitionCommitment(ctx context.Context, arg UpdateSupplyCommitTransitionCommitmentParams) error

func (*Queries) UpdateSupplyCommitmentChainDetails

func (q *Queries) UpdateSupplyCommitmentChainDetails(ctx context.Context, arg UpdateSupplyCommitmentChainDetailsParams) error

func (*Queries) UpdateSupplyCommitmentRoot

func (q *Queries) UpdateSupplyCommitmentRoot(ctx context.Context, arg UpdateSupplyCommitmentRootParams) error

func (*Queries) UpdateUTXOLease added in v0.3.0

func (q *Queries) UpdateUTXOLease(ctx context.Context, arg UpdateUTXOLeaseParams) error

func (*Queries) UpsertAddr added in v0.6.0

func (q *Queries) UpsertAddr(ctx context.Context, arg UpsertAddrParams) (int64, error)

func (*Queries) UpsertAddrEvent

func (q *Queries) UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (int64, error)

func (*Queries) UpsertAddrEventOutput

func (q *Queries) UpsertAddrEventOutput(ctx context.Context, arg UpsertAddrEventOutputParams) (int64, error)

func (*Queries) UpsertAddrEventProof

func (q *Queries) UpsertAddrEventProof(ctx context.Context, arg UpsertAddrEventProofParams) (int64, error)

func (*Queries) UpsertAsset added in v0.4.0

func (q *Queries) UpsertAsset(ctx context.Context, arg UpsertAssetParams) (int64, error)

func (*Queries) UpsertAssetGroupKey

func (q *Queries) UpsertAssetGroupKey(ctx context.Context, arg UpsertAssetGroupKeyParams) (int64, error)

func (*Queries) UpsertAssetGroupWitness added in v0.3.0

func (q *Queries) UpsertAssetGroupWitness(ctx context.Context, arg UpsertAssetGroupWitnessParams) (int64, error)

func (*Queries) UpsertAssetMeta

func (q *Queries) UpsertAssetMeta(ctx context.Context, arg UpsertAssetMetaParams) (int64, error)

func (*Queries) UpsertAssetProofByID added in v0.3.3

func (q *Queries) UpsertAssetProofByID(ctx context.Context, arg UpsertAssetProofByIDParams) error

func (*Queries) UpsertAssetWitness added in v0.3.3

func (q *Queries) UpsertAssetWitness(ctx context.Context, arg UpsertAssetWitnessParams) error

func (*Queries) UpsertChainTx

func (q *Queries) UpsertChainTx(ctx context.Context, arg UpsertChainTxParams) (int64, error)

func (*Queries) UpsertFederationGlobalSyncConfig added in v0.3.0

func (q *Queries) UpsertFederationGlobalSyncConfig(ctx context.Context, arg UpsertFederationGlobalSyncConfigParams) error

func (*Queries) UpsertFederationProofSyncLog added in v0.3.3

func (q *Queries) UpsertFederationProofSyncLog(ctx context.Context, arg UpsertFederationProofSyncLogParams) (int64, error)

func (*Queries) UpsertFederationUniSyncConfig added in v0.3.0

func (q *Queries) UpsertFederationUniSyncConfig(ctx context.Context, arg UpsertFederationUniSyncConfigParams) error

func (*Queries) UpsertGenesisAsset

func (q *Queries) UpsertGenesisAsset(ctx context.Context, arg UpsertGenesisAssetParams) (int64, error)

func (*Queries) UpsertGenesisPoint

func (q *Queries) UpsertGenesisPoint(ctx context.Context, prevOut []byte) (int64, error)

func (*Queries) UpsertInternalKey

func (q *Queries) UpsertInternalKey(ctx context.Context, arg UpsertInternalKeyParams) (int64, error)

func (*Queries) UpsertManagedUTXO

func (q *Queries) UpsertManagedUTXO(ctx context.Context, arg UpsertManagedUTXOParams) (int64, error)

func (*Queries) UpsertMintSupplyPreCommit

func (q *Queries) UpsertMintSupplyPreCommit(ctx context.Context, arg UpsertMintSupplyPreCommitParams) (int64, error)

Upsert a supply pre-commit that is tied to a minting batch. The batch is resolved from @batch_key (internal_keys -> asset_minting_batches). The key is (batch_id, tx_output_index), where tx_output_index is the pre-commit output index in the batch’s mint anchor transaction. If a row exists for the same batch and index, update non-key fields only; the batch association is not changed.

func (*Queries) UpsertMultiverseLeaf added in v0.4.0

func (q *Queries) UpsertMultiverseLeaf(ctx context.Context, arg UpsertMultiverseLeafParams) (int64, error)

func (*Queries) UpsertMultiverseRoot added in v0.4.0

func (q *Queries) UpsertMultiverseRoot(ctx context.Context, arg UpsertMultiverseRootParams) (int64, error)

func (*Queries) UpsertRootNode

func (q *Queries) UpsertRootNode(ctx context.Context, arg UpsertRootNodeParams) error

func (*Queries) UpsertScriptKey

func (q *Queries) UpsertScriptKey(ctx context.Context, arg UpsertScriptKeyParams) (int64, error)

func (*Queries) UpsertSupplyCommitStateMachine

Return the ID of the state that was actually set (either inserted or updated), and the latest commitment ID that was set.

func (*Queries) UpsertSupplyPreCommit

func (q *Queries) UpsertSupplyPreCommit(ctx context.Context, arg UpsertSupplyPreCommitParams) (int64, error)

Upsert a supply pre-commit output that is not tied to a minting batch.

func (*Queries) UpsertTapscriptTreeEdge added in v0.4.0

func (q *Queries) UpsertTapscriptTreeEdge(ctx context.Context, arg UpsertTapscriptTreeEdgeParams) (int64, error)

func (*Queries) UpsertTapscriptTreeNode added in v0.4.0

func (q *Queries) UpsertTapscriptTreeNode(ctx context.Context, rawNode []byte) (int64, error)

func (*Queries) UpsertTapscriptTreeRootHash added in v0.4.0

func (q *Queries) UpsertTapscriptTreeRootHash(ctx context.Context, arg UpsertTapscriptTreeRootHashParams) (int64, error)

func (*Queries) UpsertUniverseLeaf added in v0.3.0

func (q *Queries) UpsertUniverseLeaf(ctx context.Context, arg UpsertUniverseLeafParams) error

func (*Queries) UpsertUniverseRoot

func (q *Queries) UpsertUniverseRoot(ctx context.Context, arg UpsertUniverseRootParams) (int64, error)

func (*Queries) UpsertUniverseSupplyLeaf

func (q *Queries) UpsertUniverseSupplyLeaf(ctx context.Context, arg UpsertUniverseSupplyLeafParams) (int64, error)

func (*Queries) UpsertUniverseSupplyRoot

func (q *Queries) UpsertUniverseSupplyRoot(ctx context.Context, arg UpsertUniverseSupplyRootParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type QueryAddrParams

type QueryAddrParams struct {
	TaprootOutputKey []byte
	Version          sql.NullInt16
	XOnlyScriptKey   []byte
}

type QueryAddrRow

type QueryAddrRow struct {
	Addr          Addr
	ScriptKey     ScriptKey
	InternalKey   InternalKey
	InternalKey_2 InternalKey
}

type QueryAssetBalancesByAssetParams added in v0.5.0

type QueryAssetBalancesByAssetParams struct {
	AssetIDFilter []byte
	Leased        interface{}
	Now           sql.NullTime
	ScriptKeyType []sql.NullInt16
}

type QueryAssetBalancesByAssetRow

type QueryAssetBalancesByAssetRow struct {
	AssetID      []byte
	Balance      int64
	AssetTag     string
	MetaHash     []byte
	AssetType    int16
	OutputIndex  int32
	GenesisPoint []byte
	GroupKey     []byte
}

type QueryAssetBalancesByGroupParams added in v0.5.0

type QueryAssetBalancesByGroupParams struct {
	KeyGroupFilter []byte
	Leased         interface{}
	Now            sql.NullTime
	ScriptKeyType  []sql.NullInt16
}

type QueryAssetBalancesByGroupRow

type QueryAssetBalancesByGroupRow struct {
	TweakedGroupKey []byte
	Balance         int64
}

type QueryAssetStatsPerDayPostgresParams added in v0.2.3

type QueryAssetStatsPerDayPostgresParams struct {
	StartTime int64
	EndTime   int64
}

type QueryAssetStatsPerDayPostgresRow added in v0.2.3

type QueryAssetStatsPerDayPostgresRow struct {
	Day            string
	SyncEvents     int64
	NewProofEvents int64
}

type QueryAssetStatsPerDaySqliteParams added in v0.2.3

type QueryAssetStatsPerDaySqliteParams struct {
	StartTime int64
	EndTime   int64
}

type QueryAssetStatsPerDaySqliteRow added in v0.2.3

type QueryAssetStatsPerDaySqliteRow struct {
	Day            string
	SyncEvents     int64
	NewProofEvents int64
}

type QueryAssetTransfersParams

type QueryAssetTransfersParams struct {
	AnchorTxHash         []byte
	PendingTransfersOnly interface{}
	StartTime            sql.NullTime
	FilterLabel          sql.NullString
	FilterScriptKey      []byte
}

type QueryAssetTransfersRow

type QueryAssetTransfersRow struct {
	ID                    int64
	HeightHint            int32
	Txid                  []byte
	AnchorTxBlockHash     []byte
	TransferTimeUnix      time.Time
	Label                 sql.NullString
	SkipAnchorTxBroadcast bool
}

type QueryAssetsParams

type QueryAssetsParams struct {
	AssetIDFilter    []byte
	TweakedScriptKey []byte
	AnchorPoint      []byte
	Leased           interface{}
	Now              sql.NullTime
	MinAnchorHeight  sql.NullInt32
	MinAmt           sql.NullInt64
	MaxAmt           sql.NullInt64
	Spent            sql.NullBool
	KeyGroupFilter   []byte
	AnchorUtxoID     sql.NullInt64
	GenesisID        sql.NullInt64
	ScriptKeyID      sql.NullInt64
	ScriptKeyType    []sql.NullInt16
}

type QueryAssetsRow

type QueryAssetsRow struct {
	AssetPrimaryKey          int64
	GenesisID                int64
	Version                  int32
	Spent                    bool
	ScriptKey                ScriptKey
	InternalKey              InternalKey
	TapscriptRoot            []byte
	WitnessStack             []byte
	TweakedGroupKey          []byte
	GroupKeyRaw              []byte
	GroupKeyFamily           sql.NullInt32
	GroupKeyIndex            sql.NullInt32
	ScriptVersion            int32
	Amount                   int64
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	AssetID                  []byte
	AssetTag                 string
	MetaHash                 []byte
	GenesisOutputIndex       int32
	AssetType                int16
	GenesisPrevOut           []byte
	AnchorTx                 []byte
	AnchorTxid               []byte
	AnchorBlockHash          []byte
	AnchorBlockHeight        sql.NullInt32
	AnchorOutpoint           []byte
	AnchorTapscriptSibling   []byte
	AnchorMerkleRoot         []byte
	AnchorTaprootAssetRoot   []byte
	AnchorCommitmentVersion  sql.NullInt16
	AnchorLeaseOwner         []byte
	AnchorLeaseExpiry        sql.NullTime
	AnchorInternalKey        []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
}

type QueryAuthMailboxMessagesParams

type QueryAuthMailboxMessagesParams struct {
	ReceiverKey []byte
	AfterTime   sql.NullInt64
	AfterID     sql.NullInt64
	StartBlock  sql.NullInt32
}

type QueryAuthMailboxMessagesRow

type QueryAuthMailboxMessagesRow struct {
	ID               int64
	ClaimedOutpoint  []byte
	ReceiverKey      []byte
	EncryptedPayload []byte
	ArrivalTimestamp int64
	BlockHeight      int32
}

type QueryBurnsParams added in v0.5.0

type QueryBurnsParams struct {
	AssetID    []byte
	GroupKey   []byte
	AnchorTxid []byte
}

type QueryBurnsRow added in v0.5.0

type QueryBurnsRow struct {
	Note       sql.NullString
	AssetID    []byte
	GroupKey   []byte
	Amount     int64
	AnchorTxid []byte
}

type QueryDanglingSupplyUpdateEventsRow

type QueryDanglingSupplyUpdateEventsRow struct {
	EventID        int64
	TransitionID   sql.NullInt64
	UpdateTypeID   int32
	UpdateTypeName string
	EventData      []byte
}

type QueryEventIDsParams

type QueryEventIDsParams struct {
	StatusFrom     int16
	StatusTo       int16
	AddrTaprootKey []byte
	CreatedAfter   time.Time
	CreatedBefore  time.Time
}

type QueryEventIDsRow

type QueryEventIDsRow struct {
	EventID          int64
	TaprootOutputKey []byte
}

type QueryFederationProofSyncLogParams added in v0.3.3

type QueryFederationProofSyncLogParams struct {
	SyncDirection         sql.NullString
	Status                sql.NullString
	LeafNamespace         sql.NullString
	LeafMintingPointBytes []byte
	LeafScriptKeyBytes    []byte
}

type QueryFederationProofSyncLogRow added in v0.3.3

type QueryFederationProofSyncLogRow struct {
	ID                    int64
	Status                string
	Timestamp             time.Time
	SyncDirection         string
	AttemptCounter        int64
	ServerID              int64
	ServerHost            string
	LeafMintingPointBytes []byte
	LeafScriptKeyBytes    []byte
	LeafGenesisProof      []byte
	LeafGenAssetID        int64
	LeafAssetID           []byte
	UniAssetID            []byte
	UniGroupKey           []byte
	UniProofType          sql.NullString
}

type QueryFederationUniSyncConfigsRow added in v0.6.0

type QueryFederationUniSyncConfigsRow struct {
	Namespace       string
	AssetID         []byte
	GroupKey        []byte
	ProofType       sql.NullString
	AllowSyncInsert bool
	AllowSyncExport bool
}

type QueryLatestSupplyCommitmentRow

type QueryLatestSupplyCommitmentRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type QueryMultiverseLeavesParams added in v0.4.0

type QueryMultiverseLeavesParams struct {
	ProofType string
	AssetID   []byte
	GroupKey  []byte
}

type QueryMultiverseLeavesRow added in v0.4.0

type QueryMultiverseLeavesRow struct {
	NamespaceRoot    string
	ProofType        string
	AssetID          []byte
	GroupKey         []byte
	UniverseRootHash []byte
	UniverseRootSum  int64
}

type QueryPassiveAssetsRow

type QueryPassiveAssetsRow struct {
	AssetID         int64
	NewAnchorUtxo   int64
	ScriptKey       []byte
	NewWitnessStack []byte
	NewProof        []byte
	GenesisID       []byte
	AssetVersion    int32
	Outpoint        []byte
}

type QueryPendingSupplyCommitTransitionRow

type QueryPendingSupplyCommitTransitionRow struct {
	SupplyCommitTransition SupplyCommitTransition
}

type QueryProofTransferAttemptsParams added in v0.3.1

type QueryProofTransferAttemptsParams struct {
	ProofLocatorHash []byte
	TransferType     string
}

type QueryStartingSupplyCommitmentRow

type QueryStartingSupplyCommitmentRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type QuerySupplyCommitStateMachineRow

type QuerySupplyCommitStateMachineRow struct {
	GroupKey           []byte
	CurrentStateID     int32
	StateName          string
	LatestCommitmentID sql.NullInt64
}

type QuerySupplyCommitmentByOutpointParams

type QuerySupplyCommitmentByOutpointParams struct {
	GroupKey    []byte
	OutputIndex sql.NullInt32
	Txid        []byte
}

type QuerySupplyCommitmentByOutpointRow

type QuerySupplyCommitmentByOutpointRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type QuerySupplyCommitmentBySpentOutpointParams

type QuerySupplyCommitmentBySpentOutpointParams struct {
	GroupKey    []byte
	OutputIndex sql.NullInt32
	Txid        []byte
}

type QuerySupplyCommitmentBySpentOutpointRow

type QuerySupplyCommitmentBySpentOutpointRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type QuerySupplyCommitmentOutpointRow

type QuerySupplyCommitmentOutpointRow struct {
	Txid        []byte
	OutputIndex sql.NullInt32
}

type QuerySupplyCommitmentRow

type QuerySupplyCommitmentRow struct {
	SupplyCommitment SupplyCommitment
	TxIndex          sql.NullInt32
}

type QuerySupplyLeavesByHeightParams

type QuerySupplyLeavesByHeightParams struct {
	Namespace   string
	StartHeight sql.NullInt32
	EndHeight   sql.NullInt32
}

type QuerySupplyLeavesByHeightRow

type QuerySupplyLeavesByHeightRow struct {
	ScriptKeyBytes  []byte
	GenAssetID      int64
	SupplyLeafBytes []byte
	SumAmt          int64
	AssetID         []byte
	BlockHeight     sql.NullInt32
}

type QuerySupplyUpdateEventsRow

type QuerySupplyUpdateEventsRow struct {
	EventID        int64
	TransitionID   sql.NullInt64
	UpdateTypeID   int32
	UpdateTypeName string
	EventData      []byte
}

type QueryUniverseAssetStatsParams

type QueryUniverseAssetStatsParams struct {
	SortBy        interface{}
	SortDirection interface{}
	NumOffset     int32
	NumLimit      int32
	AssetName     sql.NullString
	AssetType     sql.NullInt16
	AssetID       []byte
}

type QueryUniverseAssetStatsRow

type QueryUniverseAssetStatsRow struct {
	AssetSupply    int64
	GroupSupply    sql.NullInt64
	AssetName      string
	AssetType      int16
	AssetID        []byte
	GenesisHeight  sql.NullInt32
	GenesisPrevOut []byte
	GroupKey       []byte
	AnchorIndex    int32
	AnchorTxid     []byte
	TotalSyncs     int64
	TotalProofs    int64
}

type QueryUniverseLeavesParams

type QueryUniverseLeavesParams struct {
	Namespace         string
	MintingPointBytes []byte
	ScriptKeyBytes    []byte
}

type QueryUniverseLeavesRow

type QueryUniverseLeavesRow struct {
	ScriptKeyBytes []byte
	GenAssetID     int64
	GenesisProof   []byte
	SumAmt         int64
	AssetID        []byte
}

type QueryUniverseServersParams added in v0.3.3

type QueryUniverseServersParams struct {
	ID         sql.NullInt64
	ServerHost sql.NullString
}

type QueryUniverseStatsRow

type QueryUniverseStatsRow struct {
	TotalSyncs     int64
	TotalProofs    int64
	TotalNumGroups int64
	TotalNumAssets int64
}

type QueryUniverseSupplyLeavesParams

type QueryUniverseSupplyLeavesParams struct {
	SupplyRootID int64
	SubTreeType  sql.NullString
}

type QueryUniverseSupplyLeavesRow

type QueryUniverseSupplyLeavesRow struct {
	GroupKey        []byte
	SubTreeType     string
	SubTreeRootHash []byte
	SubTreeRootSum  int64
}

type ReAnchorPassiveAssetsParams

type ReAnchorPassiveAssetsParams struct {
	NewAnchorUtxoID sql.NullInt64
	AssetID         int64
}

type ScriptKey

type ScriptKey struct {
	ScriptKeyID      int64
	InternalKeyID    int64
	TweakedScriptKey []byte
	Tweak            []byte
	KeyType          sql.NullInt16
}

type SetAddrManagedParams

type SetAddrManagedParams struct {
	TaprootOutputKey []byte
	ManagedFrom      sql.NullTime
}

type SetAssetSpentParams

type SetAssetSpentParams struct {
	AnchorPoint []byte
	ScriptKey   []byte
	GenAssetID  []byte
}

type SetTransferOutputProofDeliveryStatusParams added in v0.5.0

type SetTransferOutputProofDeliveryStatusParams struct {
	DeliveryComplete         sql.NullBool
	SerializedAnchorOutpoint []byte
	Position                 int32
}

type SupplyCommitState

type SupplyCommitState struct {
	ID        int64
	StateName string
}

type SupplyCommitStateMachine

type SupplyCommitStateMachine struct {
	GroupKey           []byte
	CurrentStateID     int32
	LatestCommitmentID sql.NullInt64
}

type SupplyCommitTransition

type SupplyCommitTransition struct {
	TransitionID         int64
	StateMachineGroupKey []byte
	OldCommitmentID      sql.NullInt64
	NewCommitmentID      sql.NullInt64
	PendingCommitTxnID   sql.NullInt64
	Frozen               bool
	Finalized            bool
	CreationTime         int64
}

type SupplyCommitUpdateType

type SupplyCommitUpdateType struct {
	ID             int64
	UpdateTypeName string
}

type SupplyCommitment

type SupplyCommitment struct {
	CommitID        int64
	GroupKey        []byte
	ChainTxnID      int64
	OutputIndex     sql.NullInt32
	InternalKeyID   int64
	OutputKey       []byte
	BlockHeader     []byte
	BlockHeight     sql.NullInt32
	MerkleProof     []byte
	SupplyRootHash  []byte
	SupplyRootSum   sql.NullInt64
	SpentCommitment sql.NullInt64
}

type SupplyPreCommit

type SupplyPreCommit struct {
	ID                 int64
	GroupKey           []byte
	TaprootInternalKey []byte
	Outpoint           []byte
	ChainTxnDbID       int64
	SpentBy            sql.NullInt64
}

type SupplySyncerPushLog

type SupplySyncerPushLog struct {
	ID                   int64
	GroupKey             []byte
	MaxPushedBlockHeight int32
	ServerAddress        string
	CommitTxid           []byte
	OutputIndex          int32
	NumLeavesPushed      int32
	CreatedAt            int64
}

type SupplyUpdateEvent

type SupplyUpdateEvent struct {
	EventID      int64
	GroupKey     []byte
	TransitionID sql.NullInt64
	UpdateTypeID int32
	EventData    []byte
}

type TapscriptEdge added in v0.4.0

type TapscriptEdge struct {
	EdgeID     int64
	RootHashID int64
	NodeIndex  int64
	RawNodeID  int64
}

type TapscriptNode added in v0.4.0

type TapscriptNode struct {
	NodeID  int64
	RawNode []byte
}

type TapscriptRoot added in v0.4.0

type TapscriptRoot struct {
	RootID     int64
	RootHash   []byte
	BranchOnly bool
}

type TxProofClaimedOutpoint

type TxProofClaimedOutpoint struct {
	Outpoint    []byte
	BlockHash   []byte
	BlockHeight int32
	InternalKey []byte
	MerkleRoot  []byte
}

type UniverseEvent

type UniverseEvent struct {
	EventID        int64
	EventType      string
	UniverseRootID int64
	EventTime      time.Time
	EventTimestamp int64
}

type UniverseLeafe

type UniverseLeafe struct {
	ID                int64
	AssetGenesisID    int64
	MintingPoint      []byte
	ScriptKeyBytes    []byte
	UniverseRootID    int64
	LeafNodeKey       []byte
	LeafNodeNamespace string
	BlockHeight       sql.NullInt32
}

type UniverseRoot

type UniverseRoot struct {
	ID            int64
	NamespaceRoot string
	AssetID       []byte
	GroupKey      []byte
	ProofType     sql.NullString
}

type UniverseRootsParams added in v0.3.1

type UniverseRootsParams struct {
	SortDirection interface{}
	NumOffset     int32
	NumLimit      int32
}

type UniverseRootsRow

type UniverseRootsRow struct {
	AssetID   []byte
	GroupKey  []byte
	ProofType sql.NullString
	RootHash  []byte
	RootSum   int64
	AssetName string
}

type UniverseServer

type UniverseServer struct {
	ID           int64
	ServerHost   string
	LastSyncTime time.Time
}

type UniverseStat

type UniverseStat struct {
	TotalAssetSyncs  int64
	TotalAssetProofs int64
	AssetID          []byte
	GroupKey         []byte
	ProofType        sql.NullString
}

type UniverseSupplyLeafe

type UniverseSupplyLeafe struct {
	ID                int64
	SupplyRootID      int64
	SubTreeType       string
	LeafNodeKey       []byte
	LeafNodeNamespace string
}

type UniverseSupplyRoot

type UniverseSupplyRoot struct {
	ID            int64
	NamespaceRoot string
	GroupKey      []byte
}

type UpdateBatchGenesisTxParams

type UpdateBatchGenesisTxParams struct {
	RawKey        []byte
	MintingTxPsbt []byte
}

type UpdateMintingBatchStateParams

type UpdateMintingBatchStateParams struct {
	RawKey     []byte
	BatchState int16
}

type UpdateSupplyCommitTransitionCommitmentParams

type UpdateSupplyCommitTransitionCommitmentParams struct {
	NewCommitmentID    sql.NullInt64
	PendingCommitTxnID sql.NullInt64
	TransitionID       int64
}

type UpdateSupplyCommitmentChainDetailsParams

type UpdateSupplyCommitmentChainDetailsParams struct {
	MerkleProof []byte
	OutputIndex sql.NullInt32
	BlockHeader []byte
	ChainTxnID  int64
	BlockHeight sql.NullInt32
	CommitID    int64
}

type UpdateSupplyCommitmentRootParams

type UpdateSupplyCommitmentRootParams struct {
	SupplyRootHash []byte
	SupplyRootSum  sql.NullInt64
	CommitID       int64
}

type UpdateUTXOLeaseParams added in v0.3.0

type UpdateUTXOLeaseParams struct {
	LeaseOwner  []byte
	LeaseExpiry sql.NullTime
	Outpoint    []byte
}

type UpsertAddrEventOutputParams

type UpsertAddrEventOutputParams struct {
	AddrEventID int64
	Amount      int64
	AssetID     []byte
	ScriptKeyID int64
}

type UpsertAddrEventParams

type UpsertAddrEventParams struct {
	TaprootOutputKey    []byte
	Txid                []byte
	CreationTime        time.Time
	Status              int16
	ChainTxnOutputIndex int32
	ManagedUtxoID       int64
}

type UpsertAddrEventProofParams

type UpsertAddrEventProofParams struct {
	AddrEventID  int64
	AssetProofID int64
	AssetIDFk    sql.NullInt64
}

type UpsertAddrParams added in v0.6.0

type UpsertAddrParams struct {
	Version          int16
	AssetVersion     int16
	GenesisAssetID   int64
	GroupKey         []byte
	ScriptKeyID      int64
	TaprootKeyID     int64
	TapscriptSibling []byte
	TaprootOutputKey []byte
	Amount           int64
	AssetType        int16
	CreationTime     time.Time
	ProofCourierAddr []byte
}

type UpsertAssetGroupKeyParams

type UpsertAssetGroupKeyParams struct {
	Version             int32
	TweakedGroupKey     []byte
	TapscriptRoot       []byte
	InternalKeyID       int64
	GenesisPointID      int64
	CustomSubtreeRootID sql.NullInt32
}

type UpsertAssetGroupWitnessParams added in v0.3.0

type UpsertAssetGroupWitnessParams struct {
	WitnessStack []byte
	GenAssetID   int64
	GroupKeyID   int64
}

type UpsertAssetMetaParams

type UpsertAssetMetaParams struct {
	MetaDataHash            []byte
	MetaDataBlob            []byte
	MetaDataType            sql.NullInt16
	MetaDecimalDisplay      sql.NullInt32
	MetaUniverseCommitments sql.NullBool
	MetaCanonicalUniverses  []byte
	MetaDelegationKey       []byte
}

type UpsertAssetParams added in v0.4.0

type UpsertAssetParams struct {
	GenesisID                int64
	Version                  int32
	ScriptKeyID              int64
	AssetGroupWitnessID      sql.NullInt64
	ScriptVersion            int32
	Amount                   int64
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	AnchorUtxoID             sql.NullInt64
	Spent                    bool
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
}

type UpsertAssetProofByIDParams added in v0.3.3

type UpsertAssetProofByIDParams struct {
	AssetID   int64
	ProofFile []byte
}

type UpsertAssetWitnessParams added in v0.3.3

type UpsertAssetWitnessParams struct {
	AssetID              int64
	PrevOutPoint         []byte
	PrevAssetID          []byte
	PrevScriptKey        []byte
	WitnessStack         []byte
	SplitCommitmentProof []byte
	WitnessIndex         int32
}

type UpsertChainTxParams

type UpsertChainTxParams struct {
	Txid        []byte
	RawTx       []byte
	ChainFees   int64
	BlockHeight sql.NullInt32
	BlockHash   []byte
	TxIndex     sql.NullInt32
}

type UpsertFederationGlobalSyncConfigParams added in v0.3.0

type UpsertFederationGlobalSyncConfigParams struct {
	ProofType       string
	AllowSyncInsert bool
	AllowSyncExport bool
}

type UpsertFederationProofSyncLogParams added in v0.3.3

type UpsertFederationProofSyncLogParams struct {
	Status                 string
	Timestamp              time.Time
	SyncDirection          string
	LeafNamespace          string
	LeafMintingPointBytes  []byte
	LeafScriptKeyBytes     []byte
	UniverseIDNamespace    string
	ServerHost             string
	BumpSyncAttemptCounter interface{}
}

type UpsertFederationUniSyncConfigParams added in v0.3.0

type UpsertFederationUniSyncConfigParams struct {
	Namespace       string
	AssetID         []byte
	GroupKey        []byte
	ProofType       sql.NullString
	AllowSyncInsert bool
	AllowSyncExport bool
}

type UpsertGenesisAssetParams

type UpsertGenesisAssetParams struct {
	MetaDataHash   []byte
	AssetID        []byte
	AssetTag       string
	OutputIndex    int32
	AssetType      int16
	GenesisPointID int64
}

type UpsertInternalKeyParams

type UpsertInternalKeyParams struct {
	RawKey    []byte
	KeyFamily int32
	KeyIndex  int32
}

type UpsertManagedUTXOParams

type UpsertManagedUTXOParams struct {
	RawKey           []byte
	Outpoint         []byte
	AmtSats          int64
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int64
	TaprootAssetRoot []byte
	RootVersion      sql.NullInt16
}

type UpsertMintSupplyPreCommitParams

type UpsertMintSupplyPreCommitParams struct {
	TxOutputIndex        int32
	TaprootInternalKeyID int64
	GroupKey             []byte
	SpentBy              sql.NullInt64
	Outpoint             []byte
	BatchKey             []byte
}

type UpsertMultiverseLeafParams added in v0.4.0

type UpsertMultiverseLeafParams struct {
	MultiverseRootID  int64
	AssetID           []byte
	GroupKey          []byte
	LeafNodeKey       []byte
	LeafNodeNamespace string
}

type UpsertMultiverseRootParams added in v0.4.0

type UpsertMultiverseRootParams struct {
	NamespaceRoot string
	ProofType     string
}

type UpsertRootNodeParams

type UpsertRootNodeParams struct {
	RootHash  []byte
	Namespace string
}

type UpsertScriptKeyParams

type UpsertScriptKeyParams struct {
	InternalKeyID    int64
	TweakedScriptKey []byte
	Tweak            []byte
	KeyType          sql.NullInt16
}

type UpsertSupplyCommitStateMachineParams

type UpsertSupplyCommitStateMachineParams struct {
	GroupKey           []byte
	LatestCommitmentID sql.NullInt64
	StateName          sql.NullString
}

type UpsertSupplyCommitStateMachineRow

type UpsertSupplyCommitStateMachineRow struct {
	CurrentStateID     int32
	LatestCommitmentID sql.NullInt64
}

type UpsertSupplyPreCommitParams

type UpsertSupplyPreCommitParams struct {
	GroupKey           []byte
	TaprootInternalKey []byte
	Outpoint           []byte
	ChainTxnDbID       int64
	SpentBy            sql.NullInt64
}

type UpsertTapscriptTreeEdgeParams added in v0.4.0

type UpsertTapscriptTreeEdgeParams struct {
	RootHashID int64
	NodeIndex  int64
	RawNodeID  int64
}

type UpsertTapscriptTreeRootHashParams added in v0.4.0

type UpsertTapscriptTreeRootHashParams struct {
	RootHash   []byte
	BranchOnly bool
}

type UpsertUniverseLeafParams added in v0.3.0

type UpsertUniverseLeafParams struct {
	AssetGenesisID    int64
	ScriptKeyBytes    []byte
	UniverseRootID    int64
	LeafNodeKey       []byte
	LeafNodeNamespace string
	MintingPoint      []byte
	BlockHeight       sql.NullInt32
}

type UpsertUniverseRootParams

type UpsertUniverseRootParams struct {
	NamespaceRoot string
	AssetID       []byte
	GroupKey      []byte
	ProofType     sql.NullString
}

type UpsertUniverseSupplyLeafParams

type UpsertUniverseSupplyLeafParams struct {
	SupplyRootID      int64
	SubTreeType       string
	LeafNodeKey       []byte
	LeafNodeNamespace string
}

type UpsertUniverseSupplyRootParams

type UpsertUniverseSupplyRootParams struct {
	NamespaceRoot string
	GroupKey      []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL