Documentation
¶
Index ¶
- func DigitalArtMetadataToCadence(metadata *DigitalArtMetadata, digitalArtAddr flow.Address) cadence.Value
- func LoadFlowKitAccount(addrStr, keyStr string) (accounts.Account, error)
- func NewFlowKitLogger() output.Logger
- func NewGoWithTheFlowEmbedded(network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)
- func NewGoWithTheFlowError(baseLoader flowkit.ReaderWriter, network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)
- func NewGoWithTheFlowFS(flowBasePath, network string, inMemory, enableTxFees bool) (*gwtf.GoWithTheFlow, error)
- func NewGrpcClient(baseLoader flowkit.ReaderWriter, network string, ...) (access.Client, error)
- func NewGrpcClientForNetworkEmbedded(network string) (access.Client, error)
- func NewGrpcClientForNetworkFS(flowBasePath, network string) (access.Client, error)
- func StringToPath(path string) (cadence.Path, error)
- func ToFloat64(value cadence.Value) float64
- func UFix64FromFloat64(v float64) cadence.Value
- func UFix64ToString(v float64) string
- type DigitalArtMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigitalArtMetadataToCadence ¶
func DigitalArtMetadataToCadence(metadata *DigitalArtMetadata, digitalArtAddr flow.Address) cadence.Value
func NewFlowKitLogger ¶
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 NewGrpcClient ¶
func NewGrpcClient(baseLoader flowkit.ReaderWriter, network string, opts ...grpcAccess.ClientOption) (access.Client, error)
func NewGrpcClientForNetworkEmbedded ¶
NewGrpcClientForNetworkEmbedded creates a new test go with the flow client based on embedded setup
func NewGrpcClientForNetworkFS ¶
NewGrpcClientForNetworkFS creates a new local go with the flow client
func UFix64FromFloat64 ¶
func UFix64ToString ¶
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)
Click to show internal directories.
Click to hide internal directories.