sqlc

package
v0.2.0-lit-0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

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

type AddrEvent

type AddrEvent struct {
	ID                  int32
	CreationTime        time.Time
	AddrID              int32
	Status              int16
	ChainTxnID          int32
	ChainTxnOutputIndex int32
	ManagedUtxoID       int32
	AssetProofID        sql.NullInt32
	AssetID             sql.NullInt32
}

type AllMintingBatchesRow

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

type AnchorGenesisPointParams

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

type AnchorPendingAssetsParams

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

type ApplyPendingOutputParams

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

type Asset

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

type AssetGroup

type AssetGroup struct {
	GroupID         int32
	TweakedGroupKey []byte
	InternalKeyID   int32
	GenesisPointID  int32
}

type AssetGroupSig

type AssetGroupSig struct {
	SigID      int32
	GenesisSig []byte
	GenAssetID int32
	GroupKeyID int32
}

type AssetMintingBatch

type AssetMintingBatch struct {
	BatchID           int32
	BatchState        int16
	MintingTxPsbt     []byte
	ChangeOutputIndex sql.NullInt32
	GenesisID         sql.NullInt32
	HeightHint        int32
	CreationTimeUnix  time.Time
}

type AssetProof

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

type AssetSeedling

type AssetSeedling struct {
	SeedlingID      int32
	AssetName       string
	AssetType       int16
	AssetSupply     int64
	AssetMetaID     int32
	EmissionEnabled bool
	BatchID         int32
	GroupGenesisID  sql.NullInt32
	GroupAnchorID   sql.NullInt32
}

type AssetTransfer

type AssetTransfer struct {
	ID               int32
	HeightHint       int32
	AnchorTxnID      int32
	TransferTimeUnix time.Time
}

type AssetTransferInput

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

type AssetTransferOutput

type AssetTransferOutput struct {
	OutputID                 int32
	TransferID               int32
	AnchorUtxo               int32
	ScriptKey                int32
	ScriptKeyLocal           bool
	Amount                   int64
	SerializedWitnesses      []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	ProofSuffix              []byte
	NumPassiveAssets         int32
	OutputType               int16
}

type AssetWitness

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

type AssetsByGenesisPointRow

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

type AssetsInBatchRow

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

type AssetsMetum

type AssetsMetum struct {
	MetaID       int32
	MetaDataHash []byte
	MetaDataBlob []byte
	MetaDataType sql.NullInt16
}

type BindMintingBatchWithTxParams

type BindMintingBatchWithTxParams struct {
	RawKey            []byte
	MintingTxPsbt     []byte
	ChangeOutputIndex sql.NullInt32
	GenesisID         sql.NullInt32
}

type ChainTxn

type ChainTxn struct {
	TxnID       int32
	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 DeleteNodeParams

type DeleteNodeParams struct {
	HashKey   []byte
	Namespace string
}

type DeleteUniverseServerParams

type DeleteUniverseServerParams struct {
	TargetServer string
	TargetID     int32
}

type FetchAddrByTaprootOutputKeyRow

type FetchAddrByTaprootOutputKeyRow struct {
	Version          int16
	GenesisAssetID   int32
	GroupKey         []byte
	TapscriptSibling []byte
	TaprootOutputKey []byte
	Amount           int64
	AssetType        int16
	CreationTime     time.Time
	ManagedFrom      sql.NullTime
	TweakedScriptKey []byte
	ScriptKeyTweak   []byte
	RawScriptKey     []byte
	ScriptKeyFamily  int32
	ScriptKeyIndex   int32
	RawTaprootKey    []byte
	TaprootKeyFamily int32
	TaprootKeyIndex  int32
}

type FetchAddrEventRow

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

type FetchAddrsParams

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

type FetchAddrsRow

type FetchAddrsRow struct {
	Version          int16
	GenesisAssetID   int32
	GroupKey         []byte
	TapscriptSibling []byte
	TaprootOutputKey []byte
	Amount           int64
	AssetType        int16
	CreationTime     time.Time
	ManagedFrom      sql.NullTime
	TweakedScriptKey []byte
	ScriptKeyTweak   []byte
	RawScriptKey     []byte
	ScriptKeyFamily  int32
	ScriptKeyIndex   int32
	RawTaprootKey    []byte
	TaprootKeyFamily int32
	TaprootKeyIndex  int32
}

type FetchAssetMetaByHashRow

type FetchAssetMetaByHashRow struct {
	MetaDataHash []byte
	MetaDataBlob []byte
	MetaDataType sql.NullInt16
}

type FetchAssetMetaForAssetRow

type FetchAssetMetaForAssetRow struct {
	MetaDataHash []byte
	MetaDataBlob []byte
	MetaDataType sql.NullInt16
}

type FetchAssetMetaRow

type FetchAssetMetaRow struct {
	MetaDataHash []byte
	MetaDataBlob []byte
	MetaDataType sql.NullInt16
}

type FetchAssetProofRow

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

type FetchAssetProofsRow

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

type FetchAssetWitnessesRow

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

type FetchAssetsForBatchRow

type FetchAssetsForBatchRow struct {
	Version            int32
	Tweak              []byte
	TweakedScriptKey   []byte
	ScriptKeyRaw       []byte
	ScriptKeyFam       int32
	ScriptKeyIndex     int32
	GenesisSig         []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
	MetaHash           []byte
	MetaType           sql.NullInt16
	MetaBlob           []byte
	GenesisOutputIndex int32
	AssetType          int16
	GenesisPrevOut     []byte
}

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     interface{}
}

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     interface{}
}

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 {
	TweakedGroupKey []byte
	RawKey          []byte
	KeyIndex        int32
	KeyFamily       int32
	GenesisSig      []byte
}

type FetchGroupByGroupKeyRow

type FetchGroupByGroupKeyRow struct {
	GenAssetID int32
	RawKey     []byte
	KeyIndex   int32
	KeyFamily  int32
	GenesisSig []byte
}

type FetchGroupedAssetsRow

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

type FetchManagedUTXOParams

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

type FetchManagedUTXORow

type FetchManagedUTXORow struct {
	UtxoID           int32
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int32
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int32
	KeyID            int32
	RawKey           []byte
	KeyFamily        int32
	KeyIndex         int32
}

type FetchManagedUTXOsRow

type FetchManagedUTXOsRow struct {
	UtxoID           int32
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int32
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int32
	KeyID            int32
	RawKey           []byte
	KeyFamily        int32
	KeyIndex         int32
}

type FetchMintingBatchRow

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

type FetchMintingBatchesByInverseStateRow

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

type FetchScriptKeyByTweakedKeyRow

type FetchScriptKeyByTweakedKeyRow struct {
	Tweak     []byte
	RawKey    []byte
	KeyFamily int32
	KeyIndex  int32
}

type FetchSeedlingIDParams

type FetchSeedlingIDParams struct {
	SeedlingName string
	BatchKey     []byte
}

type FetchSeedlingsForBatchRow

type FetchSeedlingsForBatchRow struct {
	SeedlingID      int32
	AssetName       string
	AssetType       int16
	AssetSupply     int64
	MetaDataHash    []byte
	MetaDataType    sql.NullInt16
	MetaDataBlob    []byte
	EmissionEnabled bool
	BatchID         int32
	GroupGenesisID  sql.NullInt32
	GroupAnchorID   sql.NullInt32
}

type FetchTransferInputsRow

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

type FetchTransferOutputsRow

type FetchTransferOutputsRow struct {
	OutputID                 int32
	ProofSuffix              []byte
	Amount                   int64
	SerializedWitnesses      []byte
	ScriptKeyLocal           bool
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	NumPassiveAssets         int32
	OutputType               int16
	AnchorUtxoID             int32
	AnchorOutpoint           []byte
	AnchorValue              int64
	AnchorMerkleRoot         []byte
	AnchorTaprootAssetRoot   []byte
	AnchorTapscriptSibling   []byte
	InternalKeyRawKeyBytes   []byte
	InternalKeyFamily        int32
	InternalKeyIndex         int32
	ScriptKeyBytes           []byte
	ScriptKeyTweak           []byte
	ScriptKeyID              int32
	ScriptKeyRawKeyBytes     []byte
	ScriptKeyFamily          int32
	ScriptKeyIndex           int32
}

type FetchUniverseKeysRow

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

type FetchUniverseRootRow

type FetchUniverseRootRow struct {
	AssetID   []byte
	GroupKey  []byte
	RootHash  []byte
	RootSum   int64
	AssetName string
}

type GenesisAsset

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

type GenesisInfoView

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

type GenesisPoint

type GenesisPoint struct {
	GenesisID  int32
	PrevOut    []byte
	AnchorTxID sql.NullInt32
}

type InsertAddrParams

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

type InsertAssetSeedlingIntoBatchParams

type InsertAssetSeedlingIntoBatchParams struct {
	RawKey          []byte
	AssetName       string
	AssetType       int16
	AssetSupply     int64
	AssetMetaID     int32
	EmissionEnabled bool
	GroupGenesisID  sql.NullInt32
	GroupAnchorID   sql.NullInt32
}

type InsertAssetSeedlingParams

type InsertAssetSeedlingParams struct {
	AssetName       string
	AssetType       int16
	AssetSupply     int64
	AssetMetaID     int32
	EmissionEnabled bool
	BatchID         int32
	GroupGenesisID  sql.NullInt32
	GroupAnchorID   sql.NullInt32
}

type InsertAssetTransferInputParams

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

type InsertAssetTransferOutputParams

type InsertAssetTransferOutputParams struct {
	TransferID               int32
	AnchorUtxo               int32
	ScriptKey                int32
	ScriptKeyLocal           bool
	Amount                   int64
	SerializedWitnesses      []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
	ProofSuffix              []byte
	NumPassiveAssets         int32
	OutputType               int16
}

type InsertAssetTransferParams

type InsertAssetTransferParams struct {
	HeightHint       int32
	TransferTimeUnix time.Time
	AnchorTxid       []byte
}

type InsertAssetWitnessParams

type InsertAssetWitnessParams struct {
	AssetID              int32
	PrevOutPoint         []byte
	PrevAssetID          []byte
	PrevScriptKey        []byte
	WitnessStack         []byte
	SplitCommitmentProof []byte
}

type InsertBranchParams

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

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 InsertNewAssetParams

type InsertNewAssetParams struct {
	GenesisID        int32
	Version          int32
	ScriptKeyID      int32
	AssetGroupSigID  sql.NullInt32
	ScriptVersion    int32
	Amount           int64
	LockTime         sql.NullInt32
	RelativeLockTime sql.NullInt32
	AnchorUtxoID     sql.NullInt32
	Spent            bool
}

type InsertNewProofEventParams

type InsertNewProofEventParams struct {
	EventTime time.Time
	AssetID   []byte
}

type InsertNewSyncEventParams

type InsertNewSyncEventParams struct {
	EventTime time.Time
	AssetID   []byte
}

type InsertPassiveAssetParams

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

type InsertReceiverProofTransferAttemptParams

type InsertReceiverProofTransferAttemptParams struct {
	ProofLocatorHash []byte
	TimeUnix         time.Time
}

type InsertRootKeyParams

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

type InsertUniverseLeafParams

type InsertUniverseLeafParams struct {
	AssetGenesisID    int32
	ScriptKeyBytes    []byte
	UniverseRootID    int32
	LeafNodeKey       []byte
	LeafNodeNamespace string
	MintingPoint      []byte
}

type InsertUniverseServerParams

type InsertUniverseServerParams struct {
	ServerHost   string
	LastSyncTime time.Time
}

type InternalKey

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

type KeyGroupInfoView

type KeyGroupInfoView struct {
	SigID           int32
	GenAssetID      int32
	GenesisSig      []byte
	TweakedGroupKey []byte
	RawKey          []byte
	KeyIndex        int32
	KeyFamily       int32
}

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           int32
	Outpoint         []byte
	AmtSats          int64
	InternalKeyID    int32
	TaprootAssetRoot []byte
	TapscriptSibling []byte
	MerkleRoot       []byte
	TxnID            int32
}

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 NewMintingBatchParams

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

type PassiveAsset

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

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) (int32, error)
	AssetsByGenesisPoint(ctx context.Context, prevOut []byte) ([]AssetsByGenesisPointRow, error)
	AssetsInBatch(ctx context.Context, rawKey []byte) ([]AssetsInBatchRow, error)
	BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) error
	ConfirmChainAnchorTx(ctx context.Context, arg ConfirmChainAnchorTxParams) error
	ConfirmChainTx(ctx context.Context, arg ConfirmChainTxParams) error
	DeleteAssetWitnesses(ctx context.Context, assetID int32) error
	DeleteManagedUTXO(ctx context.Context, outpoint []byte) error
	DeleteNode(ctx context.Context, arg DeleteNodeParams) (int64, error)
	DeleteUniverseServer(ctx context.Context, arg DeleteUniverseServerParams) error
	FetchAddrByTaprootOutputKey(ctx context.Context, taprootOutputKey []byte) (FetchAddrByTaprootOutputKeyRow, error)
	FetchAddrEvent(ctx context.Context, id int32) (FetchAddrEventRow, error)
	FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, error)
	FetchAllNodes(ctx context.Context) ([]MssmtNode, error)
	FetchAssetMeta(ctx context.Context, metaID int32) (FetchAssetMetaRow, error)
	FetchAssetMetaByHash(ctx context.Context, metaDataHash []byte) (FetchAssetMetaByHashRow, error)
	FetchAssetMetaForAsset(ctx context.Context, assetID []byte) (FetchAssetMetaForAssetRow, error)
	FetchAssetProof(ctx context.Context, tweakedScriptKey []byte) (FetchAssetProofRow, error)
	FetchAssetProofs(ctx context.Context) ([]FetchAssetProofsRow, error)
	FetchAssetWitnesses(ctx context.Context, assetID sql.NullInt32) ([]FetchAssetWitnessesRow, error)
	FetchAssetsByAnchorTx(ctx context.Context, anchorUtxoID sql.NullInt32) ([]Asset, 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 faily 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)
	FetchChainTx(ctx context.Context, txid []byte) (ChainTxn, 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)
	FetchGenesisByID(ctx context.Context, genAssetID int32) (FetchGenesisByIDRow, error)
	FetchGenesisID(ctx context.Context, arg FetchGenesisIDParams) (int32, error)
	FetchGenesisPointByAnchorTx(ctx context.Context, anchorTxID sql.NullInt32) (GenesisPoint, error)
	FetchGroupByGenesis(ctx context.Context, genesisID int32) (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)
	FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error)
	FetchManagedUTXOs(ctx context.Context) ([]FetchManagedUTXOsRow, error)
	FetchMintingBatch(ctx context.Context, rawKey []byte) (FetchMintingBatchRow, error)
	FetchMintingBatchesByInverseState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByInverseStateRow, error)
	FetchRootNode(ctx context.Context, namespace string) (MssmtNode, error)
	FetchScriptKeyByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (FetchScriptKeyByTweakedKeyRow, error)
	FetchScriptKeyIDByTweakedKey(ctx context.Context, tweakedScriptKey []byte) (int32, error)
	FetchSeedlingByID(ctx context.Context, seedlingID int32) (AssetSeedling, error)
	FetchSeedlingID(ctx context.Context, arg FetchSeedlingIDParams) (int32, error)
	FetchSeedlingsForBatch(ctx context.Context, rawKey []byte) ([]FetchSeedlingsForBatchRow, error)
	FetchTransferInputs(ctx context.Context, transferID int32) ([]FetchTransferInputsRow, error)
	FetchTransferOutputs(ctx context.Context, transferID int32) ([]FetchTransferOutputsRow, error)
	FetchUniverseKeys(ctx context.Context, namespace string) ([]FetchUniverseKeysRow, error)
	FetchUniverseRoot(ctx context.Context, namespace string) (FetchUniverseRootRow, error)
	GenesisAssets(ctx context.Context) ([]GenesisAsset, error)
	GenesisPoints(ctx context.Context) ([]GenesisPoint, error)
	GetRootKey(ctx context.Context, id []byte) (Macaroon, error)
	InsertAddr(ctx context.Context, arg InsertAddrParams) (int32, error)
	InsertAssetSeedling(ctx context.Context, arg InsertAssetSeedlingParams) error
	InsertAssetSeedlingIntoBatch(ctx context.Context, arg InsertAssetSeedlingIntoBatchParams) error
	InsertAssetTransfer(ctx context.Context, arg InsertAssetTransferParams) (int32, error)
	InsertAssetTransferInput(ctx context.Context, arg InsertAssetTransferInputParams) error
	InsertAssetTransferOutput(ctx context.Context, arg InsertAssetTransferOutputParams) error
	InsertAssetWitness(ctx context.Context, arg InsertAssetWitnessParams) error
	InsertBranch(ctx context.Context, arg InsertBranchParams) error
	InsertCompactedLeaf(ctx context.Context, arg InsertCompactedLeafParams) error
	InsertLeaf(ctx context.Context, arg InsertLeafParams) error
	InsertNewAsset(ctx context.Context, arg InsertNewAssetParams) (int32, error)
	InsertNewProofEvent(ctx context.Context, arg InsertNewProofEventParams) error
	InsertNewSyncEvent(ctx context.Context, arg InsertNewSyncEventParams) error
	InsertPassiveAsset(ctx context.Context, arg InsertPassiveAssetParams) error
	InsertReceiverProofTransferAttempt(ctx context.Context, arg InsertReceiverProofTransferAttemptParams) error
	InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error
	InsertUniverseLeaf(ctx context.Context, arg InsertUniverseLeafParams) error
	InsertUniverseServer(ctx context.Context, arg InsertUniverseServerParams) error
	ListUniverseServers(ctx context.Context) ([]UniverseServer, error)
	LogServerSync(ctx context.Context, arg LogServerSyncParams) error
	NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) 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, assetIDFilter []byte) ([]QueryAssetBalancesByAssetRow, error)
	QueryAssetBalancesByGroup(ctx context.Context, keyGroupFilter []byte) ([]QueryAssetBalancesByGroupRow, error)
	// We'll use this clause to filter out for only transfers that are
	// unconfirmed. But only if the unconf_only field is set.
	// Here we have another optional query clause to select a given transfer
	// based on the anchor_tx_hash, but only if it's specified.
	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)
	QueryEventIDs(ctx context.Context, arg QueryEventIDsParams) ([]QueryEventIDsRow, error)
	QueryPassiveAssets(ctx context.Context, transferID int32) ([]QueryPassiveAssetsRow, error)
	QueryReceiverProofTransferAttempt(ctx context.Context, proofLocatorHash []byte) ([]time.Time, 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)
	QueryUniverseStats(ctx context.Context) (QueryUniverseStatsRow, error)
	ReAnchorPassiveAssets(ctx context.Context, arg ReAnchorPassiveAssetsParams) error
	SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) error
	SetAssetSpent(ctx context.Context, arg SetAssetSpentParams) (int32, error)
	UniverseLeaves(ctx context.Context) ([]UniverseLeafe, error)
	UniverseRoots(ctx context.Context) ([]UniverseRootsRow, error)
	UpdateBatchGenesisTx(ctx context.Context, arg UpdateBatchGenesisTxParams) error
	UpdateMintingBatchState(ctx context.Context, arg UpdateMintingBatchStateParams) error
	UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (int32, error)
	UpsertAssetGroupKey(ctx context.Context, arg UpsertAssetGroupKeyParams) (int32, error)
	UpsertAssetGroupSig(ctx context.Context, arg UpsertAssetGroupSigParams) (int32, error)
	UpsertAssetMeta(ctx context.Context, arg UpsertAssetMetaParams) (int32, error)
	UpsertAssetProof(ctx context.Context, arg UpsertAssetProofParams) error
	UpsertChainTx(ctx context.Context, arg UpsertChainTxParams) (int32, error)
	UpsertGenesisAsset(ctx context.Context, arg UpsertGenesisAssetParams) (int32, error)
	UpsertGenesisPoint(ctx context.Context, prevOut []byte) (int32, error)
	UpsertInternalKey(ctx context.Context, arg UpsertInternalKeyParams) (int32, error)
	UpsertManagedUTXO(ctx context.Context, arg UpsertManagedUTXOParams) (int32, error)
	UpsertRootNode(ctx context.Context, arg UpsertRootNodeParams) error
	UpsertScriptKey(ctx context.Context, arg UpsertScriptKeyParams) (int32, error)
	UpsertUniverseRoot(ctx context.Context, arg UpsertUniverseRootParams) (int32, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

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) (int32, error)

func (*Queries) AssetsByGenesisPoint

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

func (*Queries) AssetsInBatch

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

func (*Queries) BindMintingBatchWithTx

func (q *Queries) BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) 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) DeleteAssetWitnesses

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

func (*Queries) DeleteManagedUTXO

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

func (*Queries) DeleteNode

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

func (*Queries) DeleteUniverseServer

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

func (*Queries) FetchAddrByTaprootOutputKey

func (q *Queries) FetchAddrByTaprootOutputKey(ctx context.Context, taprootOutputKey []byte) (FetchAddrByTaprootOutputKeyRow, error)

func (*Queries) FetchAddrEvent

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

func (*Queries) FetchAddrs

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

func (*Queries) FetchAllNodes

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

func (*Queries) FetchAssetMeta

func (q *Queries) FetchAssetMeta(ctx context.Context, metaID int32) (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, tweakedScriptKey []byte) (FetchAssetProofRow, error)

func (*Queries) FetchAssetProofs

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

func (*Queries) FetchAssetWitnesses

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

func (*Queries) FetchAssetsByAnchorTx

func (q *Queries) FetchAssetsByAnchorTx(ctx context.Context, anchorUtxoID sql.NullInt32) ([]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 group key, so this'll generate rows that have NULL values for the faily 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) FetchChainTx

func (q *Queries) FetchChainTx(ctx context.Context, txid []byte) (ChainTxn, 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) FetchGenesisByID

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

func (*Queries) FetchGenesisID

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

func (*Queries) FetchGenesisPointByAnchorTx

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

func (*Queries) FetchGroupByGenesis

func (q *Queries) FetchGroupByGenesis(ctx context.Context, genesisID int32) (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) 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) 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) 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) (int32, error)

func (*Queries) FetchSeedlingByID

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

func (*Queries) FetchSeedlingID

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

func (*Queries) FetchSeedlingsForBatch

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

func (*Queries) FetchTransferInputs

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

func (*Queries) FetchTransferOutputs

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

func (*Queries) FetchUniverseKeys

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

func (*Queries) FetchUniverseRoot

func (q *Queries) FetchUniverseRoot(ctx context.Context, namespace string) (FetchUniverseRootRow, 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) InsertAddr

func (q *Queries) InsertAddr(ctx context.Context, arg InsertAddrParams) (int32, 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) (int32, 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) InsertAssetWitness

func (q *Queries) InsertAssetWitness(ctx context.Context, arg InsertAssetWitnessParams) error

func (*Queries) InsertBranch

func (q *Queries) InsertBranch(ctx context.Context, arg InsertBranchParams) 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) InsertNewAsset

func (q *Queries) InsertNewAsset(ctx context.Context, arg InsertNewAssetParams) (int32, 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) InsertReceiverProofTransferAttempt

func (q *Queries) InsertReceiverProofTransferAttempt(ctx context.Context, arg InsertReceiverProofTransferAttemptParams) error

func (*Queries) InsertRootKey

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

func (*Queries) InsertUniverseLeaf

func (q *Queries) InsertUniverseLeaf(ctx context.Context, arg InsertUniverseLeafParams) error

func (*Queries) InsertUniverseServer

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

func (*Queries) ListUniverseServers

func (q *Queries) ListUniverseServers(ctx context.Context) ([]UniverseServer, error)

func (*Queries) LogServerSync

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

func (*Queries) NewMintingBatch

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

func (*Queries) QueryAssetBalancesByAsset

func (q *Queries) QueryAssetBalancesByAsset(ctx context.Context, assetIDFilter []byte) ([]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, keyGroupFilter []byte) ([]QueryAssetBalancesByGroupRow, error)

func (*Queries) QueryAssetTransfers

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

We'll use this clause to filter out for only transfers that are unconfirmed. But only if the unconf_only field is set. Here we have another optional query clause to select a given transfer based on the anchor_tx_hash, but only if it's specified.

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) QueryEventIDs

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

func (*Queries) QueryPassiveAssets

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

func (*Queries) QueryReceiverProofTransferAttempt

func (q *Queries) QueryReceiverProofTransferAttempt(ctx context.Context, proofLocatorHash []byte) ([]time.Time, 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) QueryUniverseStats

func (q *Queries) QueryUniverseStats(ctx context.Context) (QueryUniverseStatsRow, 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) (int32, error)

func (*Queries) UniverseLeaves

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

func (*Queries) UniverseRoots

func (q *Queries) UniverseRoots(ctx context.Context) ([]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) UpsertAddrEvent

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

func (*Queries) UpsertAssetGroupKey

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

func (*Queries) UpsertAssetGroupSig

func (q *Queries) UpsertAssetGroupSig(ctx context.Context, arg UpsertAssetGroupSigParams) (int32, error)

func (*Queries) UpsertAssetMeta

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

func (*Queries) UpsertAssetProof

func (q *Queries) UpsertAssetProof(ctx context.Context, arg UpsertAssetProofParams) error

func (*Queries) UpsertChainTx

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

func (*Queries) UpsertGenesisAsset

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

func (*Queries) UpsertGenesisPoint

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

func (*Queries) UpsertInternalKey

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

func (*Queries) UpsertManagedUTXO

func (q *Queries) UpsertManagedUTXO(ctx context.Context, arg UpsertManagedUTXOParams) (int32, 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) (int32, error)

func (*Queries) UpsertUniverseRoot

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

func (*Queries) WithTx

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

type QueryAssetBalancesByAssetRow

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

type QueryAssetBalancesByGroupRow

type QueryAssetBalancesByGroupRow struct {
	TweakedGroupKey []byte
	Balance         int64
}

type QueryAssetTransfersParams

type QueryAssetTransfersParams struct {
	UnconfOnly   interface{}
	AnchorTxHash []byte
}

type QueryAssetTransfersRow

type QueryAssetTransfersRow struct {
	ID               int32
	HeightHint       int32
	Txid             []byte
	TransferTimeUnix time.Time
}

type QueryAssetsParams

type QueryAssetsParams struct {
	AssetIDFilter    []byte
	TweakedScriptKey []byte
	AnchorPoint      []byte
	MinAmt           sql.NullInt64
	Spent            sql.NullBool
	KeyGroupFilter   []byte
}

type QueryAssetsRow

type QueryAssetsRow struct {
	AssetPrimaryKey          int32
	GenesisID                int32
	Version                  int32
	Spent                    bool
	ScriptKeyTweak           []byte
	TweakedScriptKey         []byte
	ScriptKeyRaw             []byte
	ScriptKeyFam             int32
	ScriptKeyIndex           int32
	GenesisSig               []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
	AnchorOutpoint           []byte
	AnchorTapscriptSibling   []byte
	AnchorMerkleRoot         []byte
	AnchorTaprootAssetRoot   []byte
	AnchorInternalKey        []byte
	SplitCommitmentRootHash  []byte
	SplitCommitmentRootValue sql.NullInt64
}

type QueryEventIDsParams

type QueryEventIDsParams struct {
	StatusFrom     int16
	StatusTo       int16
	AddrTaprootKey []byte
}

type QueryEventIDsRow

type QueryEventIDsRow struct {
	EventID          int32
	TaprootOutputKey []byte
}

type QueryPassiveAssetsRow

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

type QueryUniverseAssetStatsParams

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

type QueryUniverseAssetStatsRow

type QueryUniverseAssetStatsRow struct {
	AssetSupply int64
	AssetName   string
	AssetType   int16
	AssetID     []byte
	TotalSyncs  int64
	TotalProofs int64
}

type QueryUniverseLeavesParams

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

type QueryUniverseLeavesRow

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

type QueryUniverseStatsRow

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

type ReAnchorPassiveAssetsParams

type ReAnchorPassiveAssetsParams struct {
	NewAnchorUtxoID sql.NullInt32
	AssetID         int32
}

type ReceiverProofTransferAttempt

type ReceiverProofTransferAttempt struct {
	ProofLocatorHash []byte
	TimeUnix         time.Time
}

type ScriptKey

type ScriptKey struct {
	ScriptKeyID      int32
	InternalKeyID    int32
	TweakedScriptKey []byte
	Tweak            []byte
}

type SetAddrManagedParams

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

type SetAssetSpentParams

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

type UniverseEvent

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

type UniverseLeafe

type UniverseLeafe struct {
	ID                int32
	AssetGenesisID    int32
	MintingPoint      []byte
	ScriptKeyBytes    []byte
	UniverseRootID    int32
	LeafNodeKey       []byte
	LeafNodeNamespace string
}

type UniverseRoot

type UniverseRoot struct {
	ID            int32
	NamespaceRoot string
	AssetID       []byte
	GroupKey      []byte
}

type UniverseRootsRow

type UniverseRootsRow struct {
	AssetID   []byte
	GroupKey  []byte
	RootHash  []byte
	RootSum   int64
	AssetName string
}

type UniverseServer

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

type UniverseStat

type UniverseStat struct {
	TotalAssetSyncs  int64
	TotalAssetProofs int64
	AssetID          []byte
	GroupKey         []byte
	NamespaceRoot    string
}

type UpdateBatchGenesisTxParams

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

type UpdateMintingBatchStateParams

type UpdateMintingBatchStateParams struct {
	RawKey     []byte
	BatchState int16
}

type UpsertAddrEventParams

type UpsertAddrEventParams struct {
	TaprootOutputKey    []byte
	Txid                []byte
	CreationTime        time.Time
	Status              int16
	ChainTxnOutputIndex int32
	ManagedUtxoID       int32
	AssetProofID        sql.NullInt32
	AssetID             sql.NullInt32
}

type UpsertAssetGroupKeyParams

type UpsertAssetGroupKeyParams struct {
	TweakedGroupKey []byte
	InternalKeyID   int32
	GenesisPointID  int32
}

type UpsertAssetGroupSigParams

type UpsertAssetGroupSigParams struct {
	GenesisSig []byte
	GenAssetID int32
	GroupKeyID int32
}

type UpsertAssetMetaParams

type UpsertAssetMetaParams struct {
	MetaDataHash []byte
	MetaDataBlob []byte
	MetaDataType sql.NullInt16
}

type UpsertAssetProofParams

type UpsertAssetProofParams struct {
	ProofFile        []byte
	TweakedScriptKey []byte
	AssetID          sql.NullInt32
}

type UpsertChainTxParams

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

type UpsertGenesisAssetParams

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

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            int32
	TaprootAssetRoot []byte
}

type UpsertRootNodeParams

type UpsertRootNodeParams struct {
	RootHash  []byte
	Namespace string
}

type UpsertScriptKeyParams

type UpsertScriptKeyParams struct {
	InternalKeyID    int32
	TweakedScriptKey []byte
	Tweak            []byte
}

type UpsertUniverseRootParams

type UpsertUniverseRootParams struct {
	NamespaceRoot string
	AssetID       []byte
	GroupKey      []byte
}

Jump to

Keyboard shortcuts

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