digest

package
v0.0.0-...-75e6b69 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package digest provides api features.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultColNameNFTCollection = "digest_nftcollection"
	DefaultColNameNFT           = "digest_nft"
	DefaultColNameNFTOperator   = "digest_nftoperator"
)
View Source
var DefaultIndexes = cdigest.DefaultIndexes

Functions

func NFT

func NFT(st *cdigest.Database, contract, idx string) (*types.NFT, error)

func NFTCollection

func NFTCollection(st *cdigest.Database, contract string) (*types.Design, error)

func NFTOperators

func NFTOperators(
	st *cdigest.Database,
	contract, account string,
) (*types.AllApprovedBook, error)

func NFTsByCollection

func NFTsByCollection(
	st *cdigest.Database,
	contract, factHash, offset string,
	reverse bool,
	limit int64,
	callback func(nft types.NFT, st base.State) (bool, error),
) error

func PrepareNFTs

func PrepareNFTs(bs *cdigest.BlockSession, st base.State) (string, []mongo.WriteModel, error)

func ProcessDigester

func ProcessDigester(ctx context.Context) (context.Context, error)

Types

type NFTAllApprovedDoc

type NFTAllApprovedDoc struct {
	mongodbst.BaseDoc
	// contains filtered or unexported fields
}

func NewNFTOperatorDoc

func NewNFTOperatorDoc(st base.State, enc encoder.Encoder) (*NFTAllApprovedDoc, error)

func (NFTAllApprovedDoc) MarshalBSON

func (doc NFTAllApprovedDoc) MarshalBSON() ([]byte, error)

type NFTCollectionDoc

type NFTCollectionDoc struct {
	mongodbst.BaseDoc
	// contains filtered or unexported fields
}

func NewNFTCollectionDoc

func NewNFTCollectionDoc(st base.State, enc encoder.Encoder) (NFTCollectionDoc, error)

func (NFTCollectionDoc) MarshalBSON

func (doc NFTCollectionDoc) MarshalBSON() ([]byte, error)

type NFTDoc

type NFTDoc struct {
	mongodbst.BaseDoc
	// contains filtered or unexported fields
}

func NewNFTDoc

func NewNFTDoc(st base.State, enc encoder.Encoder) (*NFTDoc, error)

func (NFTDoc) MarshalBSON

func (doc NFTDoc) MarshalBSON() ([]byte, error)

type NFTLastIndexDoc

type NFTLastIndexDoc struct {
	mongodbst.BaseDoc
	// contains filtered or unexported fields
}

func NewNFTLastIndexDoc

func NewNFTLastIndexDoc(st base.State, enc encoder.Encoder) (*NFTLastIndexDoc, error)

func (NFTLastIndexDoc) MarshalBSON

func (doc NFTLastIndexDoc) MarshalBSON() ([]byte, error)

Jump to

Keyboard shortcuts

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