sqlc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 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               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
	AssetProofID        sql.NullInt64
	AssetID             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
	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 AssetGroup

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

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
}

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
}

type AssetTransfer

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

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
}

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
}

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
	GenesisID         sql.NullInt64
}

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 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
	ProofType       string
	AllowSyncInsert bool
	AllowSyncExport bool
}

type FetchAddrByTaprootOutputKeyRow

type FetchAddrByTaprootOutputKeyRow 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
	TweakedScriptKey       []byte
	ScriptKeyTweak         []byte
	ScriptKeyDeclaredKnown sql.NullBool
	RawScriptKey           []byte
	ScriptKeyFamily        int32
	ScriptKeyIndex         int32
	RawTaprootKey          []byte
	TaprootKeyFamily       int32
	TaprootKeyIndex        int32
}

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
	AssetProofID       sql.NullInt64
	AssetID            sql.NullInt64
	Txid               []byte
	ConfirmationHeight sql.NullInt32
	OutputIndex        int32
	AmtSats            sql.NullInt64
	TapscriptSibling   []byte
	InternalKey        []byte
}

type FetchAddrEventRow

type FetchAddrEventRow struct {
	CreationTime       time.Time
	Status             int16
	AssetProofID       sql.NullInt64
	AssetID            sql.NullInt64
	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
	AssetVersion           int16
	GenesisAssetID         int64
	GroupKey               []byte
	TapscriptSibling       []byte
	TaprootOutputKey       []byte
	Amount                 int64
	AssetType              int16
	CreationTime           time.Time
	ManagedFrom            sql.NullTime
	ProofCourierAddr       []byte
	TweakedScriptKey       []byte
	ScriptKeyTweak         []byte
	ScriptKeyDeclaredKnown sql.NullBool
	RawScriptKey           []byte
	ScriptKeyFamily        int32
	ScriptKeyIndex         int32
	RawTaprootKey          []byte
	TaprootKeyFamily       int32
	TaprootKeyIndex        int32
}

type FetchAssetIDParams added in v0.4.0

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

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 FetchAssetProofParams added in v0.3.3

type FetchAssetProofParams struct {
	TweakedScriptKey []byte
	Outpoint         []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 FetchAssetWitnessesRow

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

type FetchAssetsForBatchRow

type FetchAssetsForBatchRow struct {
	Version                int32
	Tweak                  []byte
	TweakedScriptKey       []byte
	ScriptKeyDeclaredKnown sql.NullBool
	ScriptKeyRaw           []byte
	ScriptKeyFam           int32
	ScriptKeyIndex         int32
	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
	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     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 {
	TweakedGroupKey []byte
	RawKey          []byte
	KeyIndex        int32
	KeyFamily       int32
	TapscriptRoot   []byte
	WitnessStack    []byte
}

type FetchGroupByGroupKeyRow

type FetchGroupByGroupKeyRow struct {
	GenAssetID    int64
	RawKey        []byte
	KeyIndex      int32
	KeyFamily     int32
	TapscriptRoot []byte
	WitnessStack  []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 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 FetchMintingBatchRow

type FetchMintingBatchRow struct {
	BatchID           int64
	BatchState        int16
	MintingTxPsbt     []byte
	ChangeOutputIndex sql.NullInt32
	GenesisID         sql.NullInt64
	HeightHint        int32
	CreationTimeUnix  time.Time
	TapscriptSibling  []byte
	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
	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 {
	Tweak         []byte
	RawKey        []byte
	KeyFamily     int32
	KeyIndex      int32
	DeclaredKnown sql.NullBool
}

type FetchSeedlingIDParams

type FetchSeedlingIDParams struct {
	SeedlingName string
	BatchKey     []byte
}

type FetchSeedlingsForBatchRow

type FetchSeedlingsForBatchRow struct {
	SeedlingID             int64
	AssetName              string
	AssetType              int16
	AssetVersion           int16
	AssetSupply            int64
	MetaDataHash           []byte
	MetaDataType           sql.NullInt16
	MetaDataBlob           []byte
	EmissionEnabled        bool
	BatchID                int64
	GroupGenesisID         sql.NullInt64
	GroupAnchorID          sql.NullInt64
	GroupTapscriptRoot     []byte
	ScriptKeyTweak         []byte
	TweakedScriptKey       []byte
	ScriptKeyDeclaredKnown sql.NullBool
	ScriptKeyRaw           []byte
	ScriptKeyFam           sql.NullInt32
	ScriptKeyIndex         sql.NullInt32
	GroupKeyRaw            []byte
	GroupKeyFam            sql.NullInt32
	GroupKeyIndex          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
	AssetVersion             int32
	LockTime                 sql.NullInt32
	RelativeLockTime         sql.NullInt32
	AnchorUtxoID             int64
	AnchorOutpoint           []byte
	AnchorValue              int64
	AnchorMerkleRoot         []byte
	AnchorTaprootAssetRoot   []byte
	AnchorTapscriptSibling   []byte
	AnchorCommitmentVersion  sql.NullInt16
	InternalKeyRawKeyBytes   []byte
	InternalKeyFamily        int32
	InternalKeyIndex         int32
	ScriptKeyBytes           []byte
	ScriptKeyTweak           []byte
	ScriptKeyDeclaredKnown   sql.NullBool
	ScriptKeyID              int64
	ScriptKeyRawKeyBytes     []byte
	ScriptKeyFamily          int32
	ScriptKeyIndex           int32
}

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 string
	RootHash  []byte
	RootSum   int64
	AssetName string
}

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 InsertAddrParams

type InsertAddrParams 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 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
}

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
}

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
}

type InsertAssetTransferParams

type InsertAssetTransferParams struct {
	HeightHint       int32
	TransferTimeUnix time.Time
	AnchorTxid       []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 InsertNewProofEventParams

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

type InsertNewSyncEventParams

type InsertNewSyncEventParams struct {
	GroupKeyXOnly  interface{}
	EventTime      time.Time
	EventTimestamp int64
	ProofType      string
	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 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 {
	WitnessID       int64
	GenAssetID      int64
	WitnessStack    []byte
	TapscriptRoot   []byte
	TweakedGroupKey []byte
	RawKey          []byte
	KeyIndex        int32
	KeyFamily       int32
	XOnlyGroupKey   []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 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
}

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 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)
	AssetsInBatch(ctx context.Context, rawKey []byte) ([]AssetsInBatchRow, error)
	BindMintingBatchWithTapSibling(ctx context.Context, arg BindMintingBatchWithTapSiblingParams) error
	BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) error
	ConfirmChainAnchorTx(ctx context.Context, arg ConfirmChainAnchorTxParams) error
	ConfirmChainTx(ctx context.Context, arg ConfirmChainTxParams) 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)
	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
	FetchAddrByTaprootOutputKey(ctx context.Context, taprootOutputKey []byte) (FetchAddrByTaprootOutputKeyRow, error)
	FetchAddrEvent(ctx context.Context, id int64) (FetchAddrEventRow, error)
	FetchAddrEventByAddrKeyAndOutpoint(ctx context.Context, arg FetchAddrEventByAddrKeyAndOutpointParams) (FetchAddrEventByAddrKeyAndOutpointRow, error)
	FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, 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)
	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 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 int64) (FetchGenesisByIDRow, error)
	FetchGenesisID(ctx context.Context, arg FetchGenesisIDParams) (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)
	FetchInternalKeyLocator(ctx context.Context, rawKey []byte) (FetchInternalKeyLocatorRow, 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)
	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)
	// 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)
	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)
	InsertAddr(ctx context.Context, arg InsertAddrParams) (int64, 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
	InsertBranch(ctx context.Context, arg InsertBranchParams) 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
	InsertUniverseServer(ctx context.Context, arg InsertUniverseServerParams) error
	LogProofTransferAttempt(ctx context.Context, arg LogProofTransferAttemptParams) 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)
	QueryAssetStatsPerDayPostgres(ctx context.Context, arg QueryAssetStatsPerDayPostgresParams) ([]QueryAssetStatsPerDayPostgresRow, error)
	QueryAssetStatsPerDaySqlite(ctx context.Context, arg QueryAssetStatsPerDaySqliteParams) ([]QueryAssetStatsPerDaySqliteRow, 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)
	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) ([]FederationUniSyncConfig, error)
	QueryMultiverseLeaves(ctx context.Context, arg QueryMultiverseLeavesParams) ([]QueryMultiverseLeavesRow, error)
	QueryPassiveAssets(ctx context.Context, transferID int64) ([]QueryPassiveAssetsRow, error)
	QueryProofTransferAttempts(ctx context.Context, arg QueryProofTransferAttemptsParams) ([]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)
	QueryUniverseServers(ctx context.Context, arg QueryUniverseServersParams) ([]UniverseServer, 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) (int64, 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
	UpdateUTXOLease(ctx context.Context, arg UpdateUTXOLeaseParams) error
	UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (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)
	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)
	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)
}

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

func (q *Queries) FetchAddrByTaprootOutputKey(ctx context.Context, taprootOutputKey []byte) (FetchAddrByTaprootOutputKeyRow, 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) 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) 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) 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 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 int64) (FetchGenesisByIDRow, error)

func (*Queries) FetchGenesisID

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

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

func (q *Queries) InsertUniverseServer(ctx context.Context, arg InsertUniverseServerParams) 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) 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) QueryAssetStatsPerDayPostgres added in v0.2.3

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

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)

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) 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) ([]FederationUniSyncConfig, 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) QueryProofTransferAttempts added in v0.3.1

func (q *Queries) QueryProofTransferAttempts(ctx context.Context, arg QueryProofTransferAttemptsParams) ([]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) 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) 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) 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) UpdateUTXOLease added in v0.3.0

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

func (*Queries) UpsertAddrEvent

func (q *Queries) UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (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) 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) 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) WithTx

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

type QueryAssetBalancesByAssetRow

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

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 {
	UnconfOnly   interface{}
	AnchorTxHash []byte
}

type QueryAssetTransfersRow

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

type QueryAssetsParams

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

type QueryAssetsRow

type QueryAssetsRow struct {
	AssetPrimaryKey          int64
	GenesisID                int64
	Version                  int32
	Spent                    bool
	ScriptKeyTweak           []byte
	TweakedScriptKey         []byte
	ScriptKeyDeclaredKnown   sql.NullBool
	ScriptKeyRaw             []byte
	ScriptKeyFam             int32
	ScriptKeyIndex           int32
	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 QueryEventIDsParams

type QueryEventIDsParams struct {
	StatusFrom     int16
	StatusTo       int16
	AddrTaprootKey []byte
	CreatedAfter   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          string
}

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 QueryProofTransferAttemptsParams added in v0.3.1

type QueryProofTransferAttemptsParams struct {
	ProofLocatorHash []byte
	TransferType     string
}

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 ReAnchorPassiveAssetsParams

type ReAnchorPassiveAssetsParams struct {
	NewAnchorUtxoID sql.NullInt64
	AssetID         int64
}

type ScriptKey

type ScriptKey struct {
	ScriptKeyID      int64
	InternalKeyID    int64
	TweakedScriptKey []byte
	Tweak            []byte
	DeclaredKnown    sql.NullBool
}

type SetAddrManagedParams

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

type SetAssetSpentParams

type SetAssetSpentParams struct {
	AnchorPoint []byte
	ScriptKey   []byte
	GenAssetID  []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 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
}

type UniverseRoot

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

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 string
	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        string
}

type UpdateBatchGenesisTxParams

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

type UpdateMintingBatchStateParams

type UpdateMintingBatchStateParams struct {
	RawKey     []byte
	BatchState int16
}

type UpdateUTXOLeaseParams added in v0.3.0

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

type UpsertAddrEventParams

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

type UpsertAssetGroupKeyParams

type UpsertAssetGroupKeyParams struct {
	TweakedGroupKey []byte
	TapscriptRoot   []byte
	InternalKeyID   int64
	GenesisPointID  int64
}

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
}

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
}

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       string
	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 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
	DeclaredKnown    sql.NullBool
}

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
}

type UpsertUniverseRootParams

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

Jump to

Keyboard shortcuts

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