nft

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix  = "NFO"
	Version = 0x00
)

Variables

View Source
var (
	MintAssetId        = "c94ac88f-4671-3976-b60a-09064f1811e8"
	MintMinimumCost, _ = decimal.NewFromString("0.001")

	GroupMembers = []string{
		"4b188942-9fb0-4b99-b4be-e741a06d1ebf",
		"dd655520-c919-4349-822f-af92fabdbdf4",
		"047061e6-496d-4c35-b06b-b0424a8a400d",
		"acf65344-c778-41ee-bacb-eb546bacfb9f",
		"a51006d0-146b-4b32-a2ce-7defbf0d7735",
		"cf4abd9c-2cfa-4b5a-b1bd-e2b61a83fabd",
		"50115496-7247-4e2c-857b-ec8680756bee",
	}
	GroupThreshold uint8 = 5

	DefaultCollectionID = uuid.Nil.String()
	DefaultChain, _     = uuid.FromString("43d61dcd-e413-450d-80b8-101d5e903357")
	DefaultClass, _     = hex.DecodeString("3c8c161a18ae2c8b14fda1216fff7da88c419b5d")
)

Functions

func BuildMintNFO

func BuildMintNFO(collection string, token int64, metaHash []byte) []byte

func BuildTokenID added in v1.6.8

func BuildTokenID(collection string, token int64) []byte

Types

type NFOMemo

type NFOMemo struct {
	Prefix  string
	Version byte

	Mask       uint64
	Chain      uuid.UUID // 16 bytes
	Class      []byte    // 64 bytes contract address
	Collection uuid.UUID // 16 bytes
	Token      []byte    // 64 bytes hash of content

	Extra []byte
}

func DecodeNFOMemo

func DecodeNFOMemo(b []byte) (*NFOMemo, error)

func (*NFOMemo) Encode

func (nm *NFOMemo) Encode() []byte

func (*NFOMemo) Indexes

func (nm *NFOMemo) Indexes() []int

func (*NFOMemo) Mark

func (nm *NFOMemo) Mark(indexes []int)

func (*NFOMemo) WillMint

func (nm *NFOMemo) WillMint() bool

Jump to

Keyboard shortcuts

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