Documentation ¶
Index ¶
- type Addr
- type AddrEvent
- type AllMintingBatchesRow
- type AnchorGenesisPointParams
- type AnchorPendingAssetsParams
- type ApplySpendDeltaParams
- type Asset
- type AssetDelta
- type AssetFamily
- type AssetFamilySig
- type AssetMintingBatch
- type AssetProof
- type AssetSeedling
- type AssetTransfer
- type AssetWitness
- type AssetsByGenesisPointRow
- type AssetsInBatchRow
- type BindMintingBatchWithTxParams
- type ChainTxn
- type ConfirmChainAnchorTxParams
- type ConfirmChainTxParams
- type DBTX
- type DeleteNodeParams
- type FetchAddrByTaprootOutputKeyRow
- type FetchAddrEventRow
- type FetchAddrsParams
- type FetchAddrsRow
- type FetchAssetDeltasRow
- type FetchAssetDeltasWithProofsRow
- type FetchAssetProofRow
- type FetchAssetProofsRow
- type FetchAssetWitnessesRow
- type FetchAssetsForBatchRow
- type FetchChildrenParams
- type FetchChildrenRow
- type FetchChildrenSelfJoinParams
- type FetchChildrenSelfJoinRow
- type FetchGenesisByIDRow
- type FetchManagedUTXOParams
- type FetchManagedUTXORow
- type FetchMintingBatchRow
- type FetchMintingBatchesByInverseStateRow
- type FetchMintingBatchesByStateRow
- type FetchSpendProofsRow
- type GenesisAsset
- type GenesisInfoView
- type GenesisPoint
- type InsertAddrParams
- type InsertAssetDeltaParams
- type InsertAssetSeedlingIntoBatchParams
- type InsertAssetSeedlingParams
- type InsertAssetTransferParams
- type InsertAssetWitnessParams
- type InsertBranchParams
- type InsertCompactedLeafParams
- type InsertLeafParams
- type InsertNewAssetParams
- type InsertRootKeyParams
- type InsertSpendProofsParams
- type InternalKey
- type KeyFamInfoView
- type Macaroon
- type ManagedUtxo
- type MssmtNode
- type MssmtRoot
- type NewMintingBatchParams
- type Querier
- type Queries
- func (q *Queries) AllAssets(ctx context.Context) ([]Asset, error)
- func (q *Queries) AllInternalKeys(ctx context.Context) ([]InternalKey, error)
- func (q *Queries) AllMintingBatches(ctx context.Context) ([]AllMintingBatchesRow, error)
- func (q *Queries) AnchorGenesisPoint(ctx context.Context, arg AnchorGenesisPointParams) error
- func (q *Queries) AnchorPendingAssets(ctx context.Context, arg AnchorPendingAssetsParams) error
- func (q *Queries) ApplySpendDelta(ctx context.Context, arg ApplySpendDeltaParams) (int32, error)
- func (q *Queries) AssetsByGenesisPoint(ctx context.Context, prevOut []byte) ([]AssetsByGenesisPointRow, error)
- func (q *Queries) AssetsInBatch(ctx context.Context, rawKey []byte) ([]AssetsInBatchRow, error)
- func (q *Queries) BindMintingBatchWithTx(ctx context.Context, arg BindMintingBatchWithTxParams) error
- func (q *Queries) ConfirmChainAnchorTx(ctx context.Context, arg ConfirmChainAnchorTxParams) error
- func (q *Queries) ConfirmChainTx(ctx context.Context, arg ConfirmChainTxParams) error
- func (q *Queries) DeleteAssetWitnesses(ctx context.Context, assetID int32) error
- func (q *Queries) DeleteManagedUTXO(ctx context.Context, outpoint []byte) error
- func (q *Queries) DeleteNode(ctx context.Context, arg DeleteNodeParams) (int64, error)
- func (q *Queries) DeleteSpendProofs(ctx context.Context, transferID int32) error
- func (q *Queries) FetchAddrByTaprootOutputKey(ctx context.Context, taprootOutputKey []byte) (FetchAddrByTaprootOutputKeyRow, error)
- func (q *Queries) FetchAddrEvent(ctx context.Context, id int32) (FetchAddrEventRow, error)
- func (q *Queries) FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, error)
- func (q *Queries) FetchAssetDeltas(ctx context.Context, transferID int32) ([]FetchAssetDeltasRow, error)
- func (q *Queries) FetchAssetDeltasWithProofs(ctx context.Context, transferID int32) ([]FetchAssetDeltasWithProofsRow, error)
- func (q *Queries) FetchAssetProof(ctx context.Context, tweakedScriptKey []byte) (FetchAssetProofRow, error)
- func (q *Queries) FetchAssetProofs(ctx context.Context) ([]FetchAssetProofsRow, error)
- func (q *Queries) FetchAssetWitnesses(ctx context.Context, assetID sql.NullInt32) ([]FetchAssetWitnessesRow, error)
- func (q *Queries) FetchAssetsByAnchorTx(ctx context.Context, anchorUtxoID sql.NullInt32) ([]Asset, error)
- func (q *Queries) FetchAssetsForBatch(ctx context.Context, rawKey []byte) ([]FetchAssetsForBatchRow, error)
- func (q *Queries) FetchChainTx(ctx context.Context, txid []byte) (ChainTxn, error)
- func (q *Queries) FetchChildren(ctx context.Context, arg FetchChildrenParams) ([]FetchChildrenRow, error)
- func (q *Queries) FetchChildrenSelfJoin(ctx context.Context, arg FetchChildrenSelfJoinParams) ([]FetchChildrenSelfJoinRow, error)
- func (q *Queries) FetchGenesisByID(ctx context.Context, genAssetID int32) (FetchGenesisByIDRow, error)
- func (q *Queries) FetchGenesisPointByAnchorTx(ctx context.Context, anchorTxID sql.NullInt32) (GenesisPoint, error)
- func (q *Queries) FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error)
- func (q *Queries) FetchMintingBatch(ctx context.Context, rawKey []byte) (FetchMintingBatchRow, error)
- func (q *Queries) FetchMintingBatchesByInverseState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByInverseStateRow, error)
- func (q *Queries) FetchMintingBatchesByState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByStateRow, error)
- func (q *Queries) FetchRootNode(ctx context.Context, namespace string) (MssmtNode, error)
- func (q *Queries) FetchSeedlingsForBatch(ctx context.Context, rawKey []byte) ([]AssetSeedling, error)
- func (q *Queries) FetchSpendProofs(ctx context.Context, transferID int32) (FetchSpendProofsRow, error)
- func (q *Queries) GenesisAssets(ctx context.Context) ([]GenesisAsset, error)
- func (q *Queries) GenesisPoints(ctx context.Context) ([]GenesisPoint, error)
- func (q *Queries) GetRootKey(ctx context.Context, id []byte) (Macaroon, error)
- func (q *Queries) InsertAddr(ctx context.Context, arg InsertAddrParams) (int32, error)
- func (q *Queries) InsertAssetDelta(ctx context.Context, arg InsertAssetDeltaParams) error
- func (q *Queries) InsertAssetSeedling(ctx context.Context, arg InsertAssetSeedlingParams) error
- func (q *Queries) InsertAssetSeedlingIntoBatch(ctx context.Context, arg InsertAssetSeedlingIntoBatchParams) error
- func (q *Queries) InsertAssetTransfer(ctx context.Context, arg InsertAssetTransferParams) (int32, error)
- func (q *Queries) InsertAssetWitness(ctx context.Context, arg InsertAssetWitnessParams) error
- func (q *Queries) InsertBranch(ctx context.Context, arg InsertBranchParams) error
- func (q *Queries) InsertCompactedLeaf(ctx context.Context, arg InsertCompactedLeafParams) error
- func (q *Queries) InsertLeaf(ctx context.Context, arg InsertLeafParams) error
- func (q *Queries) InsertNewAsset(ctx context.Context, arg InsertNewAssetParams) (int32, error)
- func (q *Queries) InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error
- func (q *Queries) InsertSpendProofs(ctx context.Context, arg InsertSpendProofsParams) (int32, error)
- func (q *Queries) NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) error
- func (q *Queries) QueryAssetBalancesByAsset(ctx context.Context, assetIDFilter interface{}) ([]QueryAssetBalancesByAssetRow, error)
- func (q *Queries) QueryAssetBalancesByFamily(ctx context.Context, keyFamFilter interface{}) ([]QueryAssetBalancesByFamilyRow, error)
- func (q *Queries) QueryAssetTransfers(ctx context.Context, arg QueryAssetTransfersParams) ([]QueryAssetTransfersRow, error)
- func (q *Queries) QueryAssets(ctx context.Context, arg QueryAssetsParams) ([]QueryAssetsRow, error)
- func (q *Queries) QueryEventIDs(ctx context.Context, arg QueryEventIDsParams) ([]QueryEventIDsRow, error)
- func (q *Queries) ReanchorAssets(ctx context.Context, arg ReanchorAssetsParams) error
- func (q *Queries) SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) error
- func (q *Queries) UpdateBatchGenesisTx(ctx context.Context, arg UpdateBatchGenesisTxParams) error
- func (q *Queries) UpdateMintingBatchState(ctx context.Context, arg UpdateMintingBatchStateParams) error
- func (q *Queries) UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (int32, error)
- func (q *Queries) UpsertAssetFamilyKey(ctx context.Context, arg UpsertAssetFamilyKeyParams) (int32, error)
- func (q *Queries) UpsertAssetFamilySig(ctx context.Context, arg UpsertAssetFamilySigParams) (int32, error)
- func (q *Queries) UpsertAssetProof(ctx context.Context, arg UpsertAssetProofParams) error
- func (q *Queries) UpsertChainTx(ctx context.Context, arg UpsertChainTxParams) (int32, error)
- func (q *Queries) UpsertGenesisAsset(ctx context.Context, arg UpsertGenesisAssetParams) (int32, error)
- func (q *Queries) UpsertGenesisPoint(ctx context.Context, prevOut []byte) (int32, error)
- func (q *Queries) UpsertInternalKey(ctx context.Context, arg UpsertInternalKeyParams) (int32, error)
- func (q *Queries) UpsertManagedUTXO(ctx context.Context, arg UpsertManagedUTXOParams) (int32, error)
- func (q *Queries) UpsertRootNode(ctx context.Context, arg UpsertRootNodeParams) error
- func (q *Queries) UpsertScriptKey(ctx context.Context, arg UpsertScriptKeyParams) (int32, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type QueryAssetBalancesByAssetRow
- type QueryAssetBalancesByFamilyRow
- type QueryAssetTransfersParams
- type QueryAssetTransfersRow
- type QueryAssetsParams
- type QueryAssetsRow
- type QueryEventIDsParams
- type QueryEventIDsRow
- type ReanchorAssetsParams
- type ScriptKey
- type SetAddrManagedParams
- type TransferProof
- type UpdateBatchGenesisTxParams
- type UpdateMintingBatchStateParams
- type UpsertAddrEventParams
- type UpsertAssetFamilyKeyParams
- type UpsertAssetFamilySigParams
- type UpsertAssetProofParams
- type UpsertChainTxParams
- type UpsertGenesisAssetParams
- type UpsertInternalKeyParams
- type UpsertManagedUTXOParams
- type UpsertRootNodeParams
- type UpsertScriptKeyParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllMintingBatchesRow ¶
type ApplySpendDeltaParams ¶
type AssetDelta ¶
type AssetFamily ¶
type AssetFamilySig ¶
type AssetMintingBatch ¶
type AssetProof ¶
type AssetSeedling ¶
type AssetTransfer ¶
type AssetWitness ¶
type AssetsByGenesisPointRow ¶
type AssetsByGenesisPointRow struct { AssetID int32 GenesisID int32 Version int32 ScriptKeyID int32 AssetFamilySigID sql.NullInt32 ScriptVersion int32 Amount int64 LockTime sql.NullInt32 RelativeLockTime sql.NullInt32 SplitCommitmentRootHash []byte SplitCommitmentRootValue sql.NullInt64 AnchorUtxoID sql.NullInt32 GenAssetID int32 AssetID_2 []byte AssetTag string MetaData []byte OutputIndex int32 AssetType int16 GenesisPointID int32 GenesisID_2 int32 PrevOut []byte AnchorTxID sql.NullInt32 }
type AssetsInBatchRow ¶
type ConfirmChainTxParams ¶
type DeleteNodeParams ¶
type FetchAddrByTaprootOutputKeyRow ¶
type FetchAddrByTaprootOutputKeyRow struct { Version int16 GenesisAssetID int32 FamKey []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 FetchAddrsParams ¶
type FetchAddrsRow ¶
type FetchAddrsRow struct { Version int16 GenesisAssetID int32 FamKey []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 FetchAssetDeltasRow ¶
type FetchAssetDeltasRow struct { OldScriptKey []byte NewAmt int64 NewScriptKeyBytes []byte ScriptKeyTweak []byte NewScriptKeyID int32 NewRawScriptKeyBytes []byte NewScriptKeyFamily int32 NewScriptKeyIndex int32 SerializedWitnesses []byte SplitCommitmentRootHash []byte SplitCommitmentRootValue sql.NullInt64 }
type FetchAssetDeltasWithProofsRow ¶
type FetchAssetDeltasWithProofsRow struct { OldScriptKey []byte NewAmt int64 NewScriptKeyBytes []byte ScriptKeyTweak []byte NewScriptKeyID int32 NewRawScriptKeyBytes []byte NewScriptKeyFamily int32 NewScriptKeyIndex int32 SerializedWitnesses []byte SplitCommitmentRootHash []byte SplitCommitmentRootValue sql.NullInt64 SenderProof []byte ReceiverProof []byte }
type FetchAssetProofRow ¶
type FetchAssetProofsRow ¶
type FetchAssetWitnessesRow ¶
type FetchAssetsForBatchRow ¶
type FetchAssetsForBatchRow struct { Version int32 Tweak []byte TweakedScriptKey []byte ScriptKeyRaw []byte ScriptKeyFam int32 ScriptKeyIndex int32 GenesisSig []byte TweakedFamKey []byte FamKeyRaw []byte FamKeyFamily sql.NullInt32 FamKeyIndex sql.NullInt32 ScriptVersion int32 Amount int64 LockTime sql.NullInt32 RelativeLockTime sql.NullInt32 AssetID []byte AssetTag string MetaData []byte GenesisOutputIndex int32 AssetType int16 GenesisPrevOut []byte }
type FetchChildrenParams ¶
type FetchChildrenRow ¶
type FetchGenesisByIDRow ¶
type FetchManagedUTXOParams ¶
type FetchManagedUTXORow ¶
type FetchMintingBatchRow ¶
type FetchSpendProofsRow ¶
type GenesisAsset ¶
type GenesisInfoView ¶
type GenesisPoint ¶
type InsertAddrParams ¶
type InsertAssetDeltaParams ¶
type InsertBranchParams ¶
type InsertLeafParams ¶
type InsertNewAssetParams ¶
type InsertRootKeyParams ¶
type InsertSpendProofsParams ¶
type InternalKey ¶
type KeyFamInfoView ¶
type ManagedUtxo ¶
type NewMintingBatchParams ¶
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 ApplySpendDelta(ctx context.Context, arg ApplySpendDeltaParams) (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) DeleteSpendProofs(ctx context.Context, transferID int32) 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) FetchAssetDeltas(ctx context.Context, transferID int32) ([]FetchAssetDeltasRow, error) FetchAssetDeltasWithProofs(ctx context.Context, transferID int32) ([]FetchAssetDeltasWithProofsRow, 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 family key, so this'll // generate rows that have NULL values for the faily key fields if an asset // doesn't have a family 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) FetchGenesisByID(ctx context.Context, genAssetID int32) (FetchGenesisByIDRow, error) FetchGenesisPointByAnchorTx(ctx context.Context, anchorTxID sql.NullInt32) (GenesisPoint, error) FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error) FetchMintingBatch(ctx context.Context, rawKey []byte) (FetchMintingBatchRow, error) FetchMintingBatchesByInverseState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByInverseStateRow, error) FetchMintingBatchesByState(ctx context.Context, batchState int16) ([]FetchMintingBatchesByStateRow, error) FetchRootNode(ctx context.Context, namespace string) (MssmtNode, error) FetchSeedlingsForBatch(ctx context.Context, rawKey []byte) ([]AssetSeedling, error) FetchSpendProofs(ctx context.Context, transferID int32) (FetchSpendProofsRow, 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) InsertAssetDelta(ctx context.Context, arg InsertAssetDeltaParams) error InsertAssetSeedling(ctx context.Context, arg InsertAssetSeedlingParams) error InsertAssetSeedlingIntoBatch(ctx context.Context, arg InsertAssetSeedlingIntoBatchParams) error InsertAssetTransfer(ctx context.Context, arg InsertAssetTransferParams) (int32, 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) InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error InsertSpendProofs(ctx context.Context, arg InsertSpendProofsParams) (int32, error) NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) error // We use a LEFT JOIN here as not every asset has a family key, so this'll // generate rows that have NULL values for the family key fields if an asset // doesn't have a family 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 interface{}) ([]QueryAssetBalancesByAssetRow, error) QueryAssetBalancesByFamily(ctx context.Context, keyFamFilter interface{}) ([]QueryAssetBalancesByFamilyRow, error) QueryAssetTransfers(ctx context.Context, arg QueryAssetTransfersParams) ([]QueryAssetTransfersRow, error) // We use a LEFT JOIN here as not every asset has a family key, so this'll // generate rows that have NULL values for the family key fields if an asset // doesn't have a family 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) ReanchorAssets(ctx context.Context, arg ReanchorAssetsParams) error SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) error UpdateBatchGenesisTx(ctx context.Context, arg UpdateBatchGenesisTxParams) error UpdateMintingBatchState(ctx context.Context, arg UpdateMintingBatchStateParams) error UpsertAddrEvent(ctx context.Context, arg UpsertAddrEventParams) (int32, error) UpsertAssetFamilyKey(ctx context.Context, arg UpsertAssetFamilyKeyParams) (int32, error) UpsertAssetFamilySig(ctx context.Context, arg UpsertAssetFamilySigParams) (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) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
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) ApplySpendDelta ¶
func (*Queries) AssetsByGenesisPoint ¶
func (*Queries) AssetsInBatch ¶
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 (*Queries) DeleteManagedUTXO ¶
func (*Queries) DeleteNode ¶
func (*Queries) DeleteSpendProofs ¶
func (*Queries) FetchAddrByTaprootOutputKey ¶
func (*Queries) FetchAddrEvent ¶
func (*Queries) FetchAddrs ¶
func (q *Queries) FetchAddrs(ctx context.Context, arg FetchAddrsParams) ([]FetchAddrsRow, error)
func (*Queries) FetchAssetDeltas ¶
func (*Queries) FetchAssetDeltasWithProofs ¶
func (*Queries) FetchAssetProof ¶
func (*Queries) FetchAssetProofs ¶
func (q *Queries) FetchAssetProofs(ctx context.Context) ([]FetchAssetProofsRow, error)
func (*Queries) FetchAssetWitnesses ¶
func (*Queries) FetchAssetsByAnchorTx ¶
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 family key, so this'll generate rows that have NULL values for the faily key fields if an asset doesn't have a family 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 (*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) FetchGenesisByID ¶
func (*Queries) FetchGenesisPointByAnchorTx ¶
func (*Queries) FetchManagedUTXO ¶
func (q *Queries) FetchManagedUTXO(ctx context.Context, arg FetchManagedUTXOParams) (FetchManagedUTXORow, error)
func (*Queries) FetchMintingBatch ¶
func (*Queries) FetchMintingBatchesByInverseState ¶
func (*Queries) FetchMintingBatchesByState ¶
func (*Queries) FetchRootNode ¶
func (*Queries) FetchSeedlingsForBatch ¶
func (*Queries) FetchSpendProofs ¶
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 (*Queries) InsertAddr ¶
func (*Queries) InsertAssetDelta ¶
func (q *Queries) InsertAssetDelta(ctx context.Context, arg InsertAssetDeltaParams) 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 (*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 (*Queries) InsertRootKey ¶
func (q *Queries) InsertRootKey(ctx context.Context, arg InsertRootKeyParams) error
func (*Queries) InsertSpendProofs ¶
func (*Queries) NewMintingBatch ¶
func (q *Queries) NewMintingBatch(ctx context.Context, arg NewMintingBatchParams) error
func (*Queries) QueryAssetBalancesByAsset ¶
func (q *Queries) QueryAssetBalancesByAsset(ctx context.Context, assetIDFilter interface{}) ([]QueryAssetBalancesByAssetRow, error)
We use a LEFT JOIN here as not every asset has a family key, so this'll generate rows that have NULL values for the family key fields if an asset doesn't have a family 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) QueryAssetBalancesByFamily ¶
func (q *Queries) QueryAssetBalancesByFamily(ctx context.Context, keyFamFilter interface{}) ([]QueryAssetBalancesByFamilyRow, error)
func (*Queries) QueryAssetTransfers ¶
func (q *Queries) QueryAssetTransfers(ctx context.Context, arg QueryAssetTransfersParams) ([]QueryAssetTransfersRow, error)
func (*Queries) QueryAssets ¶
func (q *Queries) QueryAssets(ctx context.Context, arg QueryAssetsParams) ([]QueryAssetsRow, error)
We use a LEFT JOIN here as not every asset has a family key, so this'll generate rows that have NULL values for the family key fields if an asset doesn't have a family 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) ReanchorAssets ¶
func (q *Queries) ReanchorAssets(ctx context.Context, arg ReanchorAssetsParams) error
func (*Queries) SetAddrManaged ¶
func (q *Queries) SetAddrManaged(ctx context.Context, arg SetAddrManagedParams) 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 (*Queries) UpsertAssetFamilyKey ¶
func (*Queries) UpsertAssetFamilySig ¶
func (*Queries) UpsertAssetProof ¶
func (q *Queries) UpsertAssetProof(ctx context.Context, arg UpsertAssetProofParams) error
func (*Queries) UpsertChainTx ¶
func (*Queries) UpsertGenesisAsset ¶
func (*Queries) UpsertGenesisPoint ¶
func (*Queries) UpsertInternalKey ¶
func (*Queries) UpsertManagedUTXO ¶
func (*Queries) UpsertRootNode ¶
func (q *Queries) UpsertRootNode(ctx context.Context, arg UpsertRootNodeParams) error
func (*Queries) UpsertScriptKey ¶
type QueryAssetTransfersParams ¶
type QueryAssetTransfersParams struct { UnconfOnly interface{} NewAnchorPoint interface{} }
type QueryAssetTransfersRow ¶
type QueryAssetTransfersRow struct { OldAnchorPoint []byte NewAnchorPoint []byte TaroRoot []byte TapscriptSibling []byte NewAnchorUtxoID int32 AnchorTxBytes []byte AnchorTxid []byte AnchorTxPrimaryKey int32 ChainFees int64 TransferTimeUnix time.Time InternalKeyBytes []byte InternalKeyFam int32 InternalKeyIndex int32 TransferID int32 TransferTimeUnix_2 time.Time }
type QueryAssetsParams ¶
type QueryAssetsRow ¶
type QueryAssetsRow struct { AssetPrimaryKey int32 GenesisID int32 Version int32 ScriptKeyTweak []byte TweakedScriptKey []byte ScriptKeyRaw []byte ScriptKeyFam int32 ScriptKeyIndex int32 GenesisSig []byte TweakedFamKey []byte FamKeyRaw []byte FamKeyFamily sql.NullInt32 FamKeyIndex sql.NullInt32 ScriptVersion int32 Amount int64 LockTime sql.NullInt32 RelativeLockTime sql.NullInt32 AssetID []byte AssetTag string MetaData []byte GenesisOutputIndex int32 AssetType int16 GenesisPrevOut []byte AnchorTx []byte AnchorTxid []byte AnchorBlockHash []byte AnchorOutpoint []byte AnchorInternalKey []byte SplitCommitmentRootHash []byte SplitCommitmentRootValue sql.NullInt64 }