nft

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MintAssetId     = "c94ac88f-4671-3976-b60a-09064f1811e8"
	MintMinimumCost = "0.001"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	Key         []byte
	Creator     string
	Circulation int
}

type MintWorker

type MintWorker struct {
	// contains filtered or unexported fields
}

func NewMintWorker

func NewMintWorker(grp *mtg.Group, store Store) *MintWorker

func (*MintWorker) ProcessCollectibleOutput added in v0.0.4

func (mw *MintWorker) ProcessCollectibleOutput(ctx context.Context, out *mtg.CollectibleOutput)

func (*MintWorker) ProcessOutput

func (mw *MintWorker) ProcessOutput(ctx context.Context, out *mtg.Output)

type Store

type Store interface {
	WriteMintToken(collection []byte, id []byte, user string) error
	ReadMintCollection(collection []byte) (*Collection, error)
	ReadMintToken(collection, token []byte) (*Token, error)
}

type Token

type Token struct {
	Collection []byte
	Key        []byte
}

Jump to

Keyboard shortcuts

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