Versions in this module Expand all Collapse all v1 v1.0.0 Apr 27, 2024 Changes in this version + var File_dbobjects_proto protoreflect.FileDescriptor + func DBBlockGHOSTDAGDataToBlockGHOSTDAGData(dbBlockGHOSTDAGData *DbBlockGhostdagData) (*externalapi.BlockGHOSTDAGData, error) + func DBMultisetToMultiset(dbMultiset *DbMultiset) (model.Multiset, error) + func DBReachablityDataToReachablityData(dbReachabilityData *DbReachabilityData) (model.ReachabilityData, error) + func DBScriptPublicKeyToScriptPublicKey(dbScriptPublicKey *DbScriptPublicKey) (*externalapi.ScriptPublicKey, error) + func DBTipsToTips(dbTips *DbTips) ([]*externalapi.DomainHash, error) + func DBUTXODiffToUTXODiff(diff *DbUtxoDiff) (externalapi.UTXODiff, error) + func DBUTXOEntryToUTXOEntry(dbUtxoEntry *DbUtxoEntry) (externalapi.UTXOEntry, error) + func DbAcceptanceDataToDomainAcceptanceData(dbAcceptanceData *DbAcceptanceData) (externalapi.AcceptanceData, error) + func DbBlockGHOSTDAGDataHashPairToBlockGHOSTDAGDataHashPair(dbPair *DbBlockGHOSTDAGDataHashPair) (*externalapi.BlockGHOSTDAGDataHashPair, error) + func DbBlockHeaderToDomainBlockHeader(dbBlockHeader *DbBlockHeader) (externalapi.BlockHeader, error) + func DbBlockLevelParentsToDomainBlockLevelParents(dbBlockLevelParents *DbBlockLevelParents) (externalapi.BlockLevelParents, error) + func DbBlockRelationsToDomainBlockRelations(dbBlockRelations *DbBlockRelations) (*model.BlockRelations, error) + func DbBlockStatusToDomainBlockStatus(dbBlockStatus *DbBlockStatus) externalapi.BlockStatus + func DbBlockToDomainBlock(dbBlock *DbBlock) (*externalapi.DomainBlock, error) + func DbHashToDomainHash(dbHash *DbHash) (*externalapi.DomainHash, error) + func DbHashesToDomainHashes(dbHashes []*DbHash) ([]*externalapi.DomainHash, error) + func DbOutpointToDomainOutpoint(dbOutpoint *DbOutpoint) (*externalapi.DomainOutpoint, error) + func DbParentsToDomainParents(dbParents []*DbBlockLevelParents) ([]externalapi.BlockLevelParents, error) + func DbSubnetworkIDToDomainSubnetworkID(dbSubnetworkID *DbSubnetworkId) (*externalapi.DomainSubnetworkID, error) + func DbTransactionIDToDomainTransactionID(dbTransactionID *DbTransactionId) (*externalapi.DomainTransactionID, error) + func DbTransactionToDomainTransaction(dbTransaction *DbTransaction) (*externalapi.DomainTransaction, error) + type DbAcceptanceData struct + BlockAcceptanceData []*DbBlockAcceptanceData + func DomainAcceptanceDataToDbAcceptanceData(domainAcceptanceData externalapi.AcceptanceData) *DbAcceptanceData + func (*DbAcceptanceData) Descriptor() ([]byte, []int) + func (*DbAcceptanceData) ProtoMessage() + func (x *DbAcceptanceData) GetBlockAcceptanceData() []*DbBlockAcceptanceData + func (x *DbAcceptanceData) ProtoReflect() protoreflect.Message + func (x *DbAcceptanceData) Reset() + func (x *DbAcceptanceData) String() string + type DbBlock struct + Header *DbBlockHeader + Transactions []*DbTransaction + func DomainBlockToDbBlock(domainBlock *externalapi.DomainBlock) *DbBlock + func (*DbBlock) Descriptor() ([]byte, []int) + func (*DbBlock) ProtoMessage() + func (x *DbBlock) GetHeader() *DbBlockHeader + func (x *DbBlock) GetTransactions() []*DbTransaction + func (x *DbBlock) ProtoReflect() protoreflect.Message + func (x *DbBlock) Reset() + func (x *DbBlock) String() string + type DbBlockAcceptanceData struct + BlockHash *DbHash + TransactionAcceptanceData []*DbTransactionAcceptanceData + func (*DbBlockAcceptanceData) Descriptor() ([]byte, []int) + func (*DbBlockAcceptanceData) ProtoMessage() + func (x *DbBlockAcceptanceData) GetBlockHash() *DbHash + func (x *DbBlockAcceptanceData) GetTransactionAcceptanceData() []*DbTransactionAcceptanceData + func (x *DbBlockAcceptanceData) ProtoReflect() protoreflect.Message + func (x *DbBlockAcceptanceData) Reset() + func (x *DbBlockAcceptanceData) String() string + type DbBlockCount struct + Count uint64 + func (*DbBlockCount) Descriptor() ([]byte, []int) + func (*DbBlockCount) ProtoMessage() + func (x *DbBlockCount) GetCount() uint64 + func (x *DbBlockCount) ProtoReflect() protoreflect.Message + func (x *DbBlockCount) Reset() + func (x *DbBlockCount) String() string + type DbBlockGHOSTDAGDataHashPair struct + GhostdagData *DbBlockGhostdagData + Hash *DbHash + func BlockGHOSTDAGDataHashPairToDbBlockGhostdagDataHashPair(pair *externalapi.BlockGHOSTDAGDataHashPair) *DbBlockGHOSTDAGDataHashPair + func (*DbBlockGHOSTDAGDataHashPair) Descriptor() ([]byte, []int) + func (*DbBlockGHOSTDAGDataHashPair) ProtoMessage() + func (x *DbBlockGHOSTDAGDataHashPair) GetGhostdagData() *DbBlockGhostdagData + func (x *DbBlockGHOSTDAGDataHashPair) GetHash() *DbHash + func (x *DbBlockGHOSTDAGDataHashPair) ProtoReflect() protoreflect.Message + func (x *DbBlockGHOSTDAGDataHashPair) Reset() + func (x *DbBlockGHOSTDAGDataHashPair) String() string + type DbBlockGhostdagData struct + BlueScore uint64 + BlueWork []byte + BluesAnticoneSizes []*DbBluesAnticoneSizes + MergeSetBlues []*DbHash + MergeSetReds []*DbHash + SelectedParent *DbHash + func BlockGHOSTDAGDataToDBBlockGHOSTDAGData(blockGHOSTDAGData *externalapi.BlockGHOSTDAGData) *DbBlockGhostdagData + func (*DbBlockGhostdagData) Descriptor() ([]byte, []int) + func (*DbBlockGhostdagData) ProtoMessage() + func (x *DbBlockGhostdagData) GetBlueScore() uint64 + func (x *DbBlockGhostdagData) GetBlueWork() []byte + func (x *DbBlockGhostdagData) GetBluesAnticoneSizes() []*DbBluesAnticoneSizes + func (x *DbBlockGhostdagData) GetMergeSetBlues() []*DbHash + func (x *DbBlockGhostdagData) GetMergeSetReds() []*DbHash + func (x *DbBlockGhostdagData) GetSelectedParent() *DbHash + func (x *DbBlockGhostdagData) ProtoReflect() protoreflect.Message + func (x *DbBlockGhostdagData) Reset() + func (x *DbBlockGhostdagData) String() string + type DbBlockHeader struct + AcceptedIDMerkleRoot *DbHash + Bits uint32 + BlueScore uint64 + BlueWork []byte + DaaScore uint64 + HashMerkleRoot *DbHash + Nonce uint64 + Parents []*DbBlockLevelParents + PruningPoint *DbHash + TimeInMilliseconds int64 + UtxoCommitment *DbHash + Version uint32 + func DomainBlockHeaderToDbBlockHeader(domainBlockHeader externalapi.BlockHeader) *DbBlockHeader + func (*DbBlockHeader) Descriptor() ([]byte, []int) + func (*DbBlockHeader) ProtoMessage() + func (x *DbBlockHeader) GetAcceptedIDMerkleRoot() *DbHash + func (x *DbBlockHeader) GetBits() uint32 + func (x *DbBlockHeader) GetBlueScore() uint64 + func (x *DbBlockHeader) GetBlueWork() []byte + func (x *DbBlockHeader) GetDaaScore() uint64 + func (x *DbBlockHeader) GetHashMerkleRoot() *DbHash + func (x *DbBlockHeader) GetNonce() uint64 + func (x *DbBlockHeader) GetParents() []*DbBlockLevelParents + func (x *DbBlockHeader) GetPruningPoint() *DbHash + func (x *DbBlockHeader) GetTimeInMilliseconds() int64 + func (x *DbBlockHeader) GetUtxoCommitment() *DbHash + func (x *DbBlockHeader) GetVersion() uint32 + func (x *DbBlockHeader) ProtoReflect() protoreflect.Message + func (x *DbBlockHeader) Reset() + func (x *DbBlockHeader) String() string + type DbBlockHeaderCount struct + Count uint64 + func (*DbBlockHeaderCount) Descriptor() ([]byte, []int) + func (*DbBlockHeaderCount) ProtoMessage() + func (x *DbBlockHeaderCount) GetCount() uint64 + func (x *DbBlockHeaderCount) ProtoReflect() protoreflect.Message + func (x *DbBlockHeaderCount) Reset() + func (x *DbBlockHeaderCount) String() string + type DbBlockLevelParents struct + ParentHashes []*DbHash + func DomainBlockLevelParentsToDbBlockLevelParents(domainBlockLevelParents externalapi.BlockLevelParents) *DbBlockLevelParents + func DomainParentsToDbParents(domainParents []externalapi.BlockLevelParents) []*DbBlockLevelParents + func (*DbBlockLevelParents) Descriptor() ([]byte, []int) + func (*DbBlockLevelParents) ProtoMessage() + func (x *DbBlockLevelParents) GetParentHashes() []*DbHash + func (x *DbBlockLevelParents) ProtoReflect() protoreflect.Message + func (x *DbBlockLevelParents) Reset() + func (x *DbBlockLevelParents) String() string + type DbBlockRelations struct + Children []*DbHash + Parents []*DbHash + func DomainBlockRelationsToDbBlockRelations(domainBlockRelations *model.BlockRelations) *DbBlockRelations + func (*DbBlockRelations) Descriptor() ([]byte, []int) + func (*DbBlockRelations) ProtoMessage() + func (x *DbBlockRelations) GetChildren() []*DbHash + func (x *DbBlockRelations) GetParents() []*DbHash + func (x *DbBlockRelations) ProtoReflect() protoreflect.Message + func (x *DbBlockRelations) Reset() + func (x *DbBlockRelations) String() string + type DbBlockStatus struct + Status uint32 + func DomainBlockStatusToDbBlockStatus(domainBlockStatus externalapi.BlockStatus) *DbBlockStatus + func (*DbBlockStatus) Descriptor() ([]byte, []int) + func (*DbBlockStatus) ProtoMessage() + func (x *DbBlockStatus) GetStatus() uint32 + func (x *DbBlockStatus) ProtoReflect() protoreflect.Message + func (x *DbBlockStatus) Reset() + func (x *DbBlockStatus) String() string + type DbBluesAnticoneSizes struct + AnticoneSize uint32 + BlueHash *DbHash + func (*DbBluesAnticoneSizes) Descriptor() ([]byte, []int) + func (*DbBluesAnticoneSizes) ProtoMessage() + func (x *DbBluesAnticoneSizes) GetAnticoneSize() uint32 + func (x *DbBluesAnticoneSizes) GetBlueHash() *DbHash + func (x *DbBluesAnticoneSizes) ProtoReflect() protoreflect.Message + func (x *DbBluesAnticoneSizes) Reset() + func (x *DbBluesAnticoneSizes) String() string + type DbHash struct + Hash []byte + func DomainHashToDbHash(domainHash *externalapi.DomainHash) *DbHash + func DomainHashesToDbHashes(domainHashes []*externalapi.DomainHash) []*DbHash + func (*DbHash) Descriptor() ([]byte, []int) + func (*DbHash) ProtoMessage() + func (x *DbHash) GetHash() []byte + func (x *DbHash) ProtoReflect() protoreflect.Message + func (x *DbHash) Reset() + func (x *DbHash) String() string + type DbMultiset struct + Multiset []byte + func MultisetToDBMultiset(multiset model.Multiset) *DbMultiset + func (*DbMultiset) Descriptor() ([]byte, []int) + func (*DbMultiset) ProtoMessage() + func (x *DbMultiset) GetMultiset() []byte + func (x *DbMultiset) ProtoReflect() protoreflect.Message + func (x *DbMultiset) Reset() + func (x *DbMultiset) String() string + type DbOutpoint struct + Index uint32 + TransactionID *DbTransactionId + func DomainOutpointToDbOutpoint(domainOutpoint *externalapi.DomainOutpoint) *DbOutpoint + func (*DbOutpoint) Descriptor() ([]byte, []int) + func (*DbOutpoint) ProtoMessage() + func (x *DbOutpoint) GetIndex() uint32 + func (x *DbOutpoint) GetTransactionID() *DbTransactionId + func (x *DbOutpoint) ProtoReflect() protoreflect.Message + func (x *DbOutpoint) Reset() + func (x *DbOutpoint) String() string + type DbReachabilityData struct + Children []*DbHash + FutureCoveringSet []*DbHash + Interval *DbReachabilityInterval + Parent *DbHash + func ReachablityDataToDBReachablityData(reachabilityData model.ReachabilityData) *DbReachabilityData + func (*DbReachabilityData) Descriptor() ([]byte, []int) + func (*DbReachabilityData) ProtoMessage() + func (x *DbReachabilityData) GetChildren() []*DbHash + func (x *DbReachabilityData) GetFutureCoveringSet() []*DbHash + func (x *DbReachabilityData) GetInterval() *DbReachabilityInterval + func (x *DbReachabilityData) GetParent() *DbHash + func (x *DbReachabilityData) ProtoReflect() protoreflect.Message + func (x *DbReachabilityData) Reset() + func (x *DbReachabilityData) String() string + type DbReachabilityInterval struct + End uint64 + Start uint64 + func (*DbReachabilityInterval) Descriptor() ([]byte, []int) + func (*DbReachabilityInterval) ProtoMessage() + func (x *DbReachabilityInterval) GetEnd() uint64 + func (x *DbReachabilityInterval) GetStart() uint64 + func (x *DbReachabilityInterval) ProtoReflect() protoreflect.Message + func (x *DbReachabilityInterval) Reset() + func (x *DbReachabilityInterval) String() string + type DbScriptPublicKey struct + Script []byte + Version uint32 + func ScriptPublicKeyToDBScriptPublicKey(scriptPublicKey *externalapi.ScriptPublicKey) *DbScriptPublicKey + func (*DbScriptPublicKey) Descriptor() ([]byte, []int) + func (*DbScriptPublicKey) ProtoMessage() + func (x *DbScriptPublicKey) GetScript() []byte + func (x *DbScriptPublicKey) GetVersion() uint32 + func (x *DbScriptPublicKey) ProtoReflect() protoreflect.Message + func (x *DbScriptPublicKey) Reset() + func (x *DbScriptPublicKey) String() string + type DbSubnetworkId struct + SubnetworkId []byte + func DomainSubnetworkIDToDbSubnetworkID(domainSubnetworkID *externalapi.DomainSubnetworkID) *DbSubnetworkId + func (*DbSubnetworkId) Descriptor() ([]byte, []int) + func (*DbSubnetworkId) ProtoMessage() + func (x *DbSubnetworkId) GetSubnetworkId() []byte + func (x *DbSubnetworkId) ProtoReflect() protoreflect.Message + func (x *DbSubnetworkId) Reset() + func (x *DbSubnetworkId) String() string + type DbTips struct + Tips []*DbHash + func TipsToDBTips(tips []*externalapi.DomainHash) *DbTips + func (*DbTips) Descriptor() ([]byte, []int) + func (*DbTips) ProtoMessage() + func (x *DbTips) GetTips() []*DbHash + func (x *DbTips) ProtoReflect() protoreflect.Message + func (x *DbTips) Reset() + func (x *DbTips) String() string + type DbTransaction struct + Gas uint64 + Inputs []*DbTransactionInput + LockTime uint64 + Outputs []*DbTransactionOutput + Payload []byte + SubnetworkID *DbSubnetworkId + Version uint32 + func DomainTransactionToDbTransaction(domainTransaction *externalapi.DomainTransaction) *DbTransaction + func (*DbTransaction) Descriptor() ([]byte, []int) + func (*DbTransaction) ProtoMessage() + func (x *DbTransaction) GetGas() uint64 + func (x *DbTransaction) GetInputs() []*DbTransactionInput + func (x *DbTransaction) GetLockTime() uint64 + func (x *DbTransaction) GetOutputs() []*DbTransactionOutput + func (x *DbTransaction) GetPayload() []byte + func (x *DbTransaction) GetSubnetworkID() *DbSubnetworkId + func (x *DbTransaction) GetVersion() uint32 + func (x *DbTransaction) ProtoReflect() protoreflect.Message + func (x *DbTransaction) Reset() + func (x *DbTransaction) String() string + type DbTransactionAcceptanceData struct + Fee uint64 + IsAccepted bool + Transaction *DbTransaction + TransactionInputUtxoEntries []*DbUtxoEntry + func (*DbTransactionAcceptanceData) Descriptor() ([]byte, []int) + func (*DbTransactionAcceptanceData) ProtoMessage() + func (x *DbTransactionAcceptanceData) GetFee() uint64 + func (x *DbTransactionAcceptanceData) GetIsAccepted() bool + func (x *DbTransactionAcceptanceData) GetTransaction() *DbTransaction + func (x *DbTransactionAcceptanceData) GetTransactionInputUtxoEntries() []*DbUtxoEntry + func (x *DbTransactionAcceptanceData) ProtoReflect() protoreflect.Message + func (x *DbTransactionAcceptanceData) Reset() + func (x *DbTransactionAcceptanceData) String() string + type DbTransactionId struct + TransactionId []byte + func DomainTransactionIDToDbTransactionID(domainTransactionID *externalapi.DomainTransactionID) *DbTransactionId + func (*DbTransactionId) Descriptor() ([]byte, []int) + func (*DbTransactionId) ProtoMessage() + func (x *DbTransactionId) GetTransactionId() []byte + func (x *DbTransactionId) ProtoReflect() protoreflect.Message + func (x *DbTransactionId) Reset() + func (x *DbTransactionId) String() string + type DbTransactionInput struct + PreviousOutpoint *DbOutpoint + Sequence uint64 + SigOpCount uint32 + SignatureScript []byte + func (*DbTransactionInput) Descriptor() ([]byte, []int) + func (*DbTransactionInput) ProtoMessage() + func (x *DbTransactionInput) GetPreviousOutpoint() *DbOutpoint + func (x *DbTransactionInput) GetSequence() uint64 + func (x *DbTransactionInput) GetSigOpCount() uint32 + func (x *DbTransactionInput) GetSignatureScript() []byte + func (x *DbTransactionInput) ProtoReflect() protoreflect.Message + func (x *DbTransactionInput) Reset() + func (x *DbTransactionInput) String() string + type DbTransactionOutput struct + ScriptPublicKey *DbScriptPublicKey + Value uint64 + func (*DbTransactionOutput) Descriptor() ([]byte, []int) + func (*DbTransactionOutput) ProtoMessage() + func (x *DbTransactionOutput) GetScriptPublicKey() *DbScriptPublicKey + func (x *DbTransactionOutput) GetValue() uint64 + func (x *DbTransactionOutput) ProtoReflect() protoreflect.Message + func (x *DbTransactionOutput) Reset() + func (x *DbTransactionOutput) String() string + type DbUtxoCollectionItem struct + Outpoint *DbOutpoint + UtxoEntry *DbUtxoEntry + func (*DbUtxoCollectionItem) Descriptor() ([]byte, []int) + func (*DbUtxoCollectionItem) ProtoMessage() + func (x *DbUtxoCollectionItem) GetOutpoint() *DbOutpoint + func (x *DbUtxoCollectionItem) GetUtxoEntry() *DbUtxoEntry + func (x *DbUtxoCollectionItem) ProtoReflect() protoreflect.Message + func (x *DbUtxoCollectionItem) Reset() + func (x *DbUtxoCollectionItem) String() string + type DbUtxoDiff struct + ToAdd []*DbUtxoCollectionItem + ToRemove []*DbUtxoCollectionItem + func UTXODiffToDBUTXODiff(diff externalapi.UTXODiff) (*DbUtxoDiff, error) + func (*DbUtxoDiff) Descriptor() ([]byte, []int) + func (*DbUtxoDiff) ProtoMessage() + func (x *DbUtxoDiff) GetToAdd() []*DbUtxoCollectionItem + func (x *DbUtxoDiff) GetToRemove() []*DbUtxoCollectionItem + func (x *DbUtxoDiff) ProtoReflect() protoreflect.Message + func (x *DbUtxoDiff) Reset() + func (x *DbUtxoDiff) String() string + type DbUtxoEntry struct + Amount uint64 + BlockDaaScore uint64 + IsCoinbase bool + ScriptPublicKey *DbScriptPublicKey + func UTXOEntryToDBUTXOEntry(utxoEntry externalapi.UTXOEntry) *DbUtxoEntry + func (*DbUtxoEntry) Descriptor() ([]byte, []int) + func (*DbUtxoEntry) ProtoMessage() + func (x *DbUtxoEntry) GetAmount() uint64 + func (x *DbUtxoEntry) GetBlockDaaScore() uint64 + func (x *DbUtxoEntry) GetIsCoinbase() bool + func (x *DbUtxoEntry) GetScriptPublicKey() *DbScriptPublicKey + func (x *DbUtxoEntry) ProtoReflect() protoreflect.Message + func (x *DbUtxoEntry) Reset() + func (x *DbUtxoEntry) String() string + type DbUtxoSet struct + Items []*DbUtxoCollectionItem + func (*DbUtxoSet) Descriptor() ([]byte, []int) + func (*DbUtxoSet) ProtoMessage() + func (x *DbUtxoSet) GetItems() []*DbUtxoCollectionItem + func (x *DbUtxoSet) ProtoReflect() protoreflect.Message + func (x *DbUtxoSet) Reset() + func (x *DbUtxoSet) String() string