mint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessNode

func GetAccessNode() string

func GetMinterAddress

func GetMinterAddress() string

func GetMinterKey

func GetMinterKey() []byte

Types

type MintRequest

type MintRequest struct {
	Address string
	Piece   Piece
}

func (*MintRequest) ToCadenceValues

func (m *MintRequest) ToCadenceValues() ([]cadence.Value, error)

type Piece

type Piece struct {
	IPFS        string `json:"ipfs"`
	PieceID     int    `json:"pieceID"`
	PuzzleID    int    `json:"puzzleID"`
	DisplayName string `json:"displayName"`
	MintURL     string `json:"mintURL"`
}

type PieceMinter

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

func NewMinter

func NewMinter(source []byte) PieceMinter

func (*PieceMinter) MintPiece

func (m *PieceMinter) MintPiece(addr string, key string) (*flow.Identifier, error)

Jump to

Keyboard shortcuts

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