iinft

package module
v0.0.0-...-69593a2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigitalArtMetadataToCadence

func DigitalArtMetadataToCadence(metadata *DigitalArtMetadata, digitalArtAddr flow.Address) cadence.Value

func LoadFlowKitAccount

func LoadFlowKitAccount(addrStr, keyStr string) (flowkit.Account, error)

func NewFlowKitLogger

func NewFlowKitLogger() output.Logger

func NewGoWithTheFlowEmbedded

func NewGoWithTheFlowEmbedded(network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)

NewGoWithTheFlowEmbedded creates a new test go with the flow client based on embedded setup

func NewGoWithTheFlowError

func NewGoWithTheFlowError(baseLoader flowkit.ReaderWriter, network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)

func NewGoWithTheFlowFS

func NewGoWithTheFlowFS(flowBasePath, network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)

NewGoWithTheFlowFS creates a new local go with the flow client

func StringToPath

func StringToPath(path string) (cadence.Path, error)

func ToFloat64

func ToFloat64(value cadence.Value) float64

func UFix64FromFloat64

func UFix64FromFloat64(v float64) cadence.Value

func UFix64ToString

func UFix64ToString(v float64) string

Types

type DigitalArtMetadata

type DigitalArtMetadata struct {
	// Asset is the DID of the master's asset.
	// This ID is the same for all editions of a particular Digital Art NFT.
	Asset string
	// Name is the name of the digital art.
	//
	// This field will be displayed in lists and therefore should
	// be short and concise.
	//
	Name string
	// Artist is the DID of the artist who created the given digital art.
	Artist string
	// Description is a written description of the digital art.
	//
	// This field will be displayed in a detailed view of the object,
	// so can be more verbose (e.g. a paragraph instead of a single line).
	//
	Description string
	// Type is the digital art's media type: Image, Audio, Video, etc.
	Type string
	// ContentURI is the URI of the original digital art content.
	ContentURI string
	// ContentPreviewURI is the URI of the digital art preview content (i.e. a thumbnail).
	ContentPreviewURI string
	// ContentMimetype is the content's MIME type (e.g. 'image/jpeg')
	ContentMimetype string
	// Edition number of the given NFT. Editions are unique for the same master,
	// identified by the asset ID.
	Edition uint64
	// MaxEdition is the number of editions that may have been produced
	// for the given master. This number can't be exceeded by the contract,
	// but not all the editions may have been minted (yet or ever).
	// If maxEdition == 1, the given NFT is one-of-a-kind.
	MaxEdition uint64
	// MetadataURI is a URI of the full digital art's metadata JSON
	// as it existed at the time the master was sealed.
	MetadataURI string
	// Record is the ChainLocker record ID of the full metadata JSON
	// as it existed at the time the master was sealed.
	Record string
	// AssetHead is the ChainLocker asset head ID of the full metadata JSON.
	// It can be used to retrieve the current metadata JSON (if changed).
	AssetHead string
}

func DigitalArtMetadataFromCadence

func DigitalArtMetadataFromCadence(val cadence.Value) (*DigitalArtMetadata, error)

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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