Documentation ¶
Index ¶
- func DigitalArtMetadataToCadence(metadata *DigitalArtMetadata, digitalArtAddr flow.Address) cadence.Value
- func LoadFlowKitAccount(addrStr, keyStr string) (accounts.Account, error)
- func NewGrpcClient(baseLoader flowkit.ReaderWriter, network string, ...) (access.Client, error)
- func NewInMemoryConnectorEmbedded(enableTxFees bool) (*splash.Connector, error)
- func NewNetworkConnectorEmbedded(network string) (*splash.Connector, error)
- func NewTemplateEngine(client *splash.Connector) (*splash.TemplateEngine, error)
- type DigitalArtMetadata
- type MintOnDemandParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DigitalArtMetadataToCadence ¶
func DigitalArtMetadataToCadence(metadata *DigitalArtMetadata, digitalArtAddr flow.Address) cadence.Value
func NewGrpcClient ¶
func NewGrpcClient(baseLoader flowkit.ReaderWriter, network string, opts ...grpcAccess.ClientOption) (access.Client, error)
func NewInMemoryConnectorEmbedded ¶
NewInMemoryConnectorEmbedded creates a new Splash Connector for in-memory emulator that uses embedded Flow configuration.
func NewNetworkConnectorEmbedded ¶
NewNetworkConnectorEmbedded creates a new Splash Connector that uses embedded Flow configuration.
func NewTemplateEngine ¶
func NewTemplateEngine(client *splash.Connector) (*splash.TemplateEngine, error)
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)
type MintOnDemandParameters ¶
type MintOnDemandParameters struct { Metadata *DigitalArtMetadata Profile *evergreen.Profile }
MintOnDemandParameters provides inputs for "digitalart_mint_on_demand_flow" and "digitalart_mint_on_demand" transaction templates. If Metadata is nil, the transactions won't include checks if the master is sealed (and sealing it, if it's not).
Click to show internal directories.
Click to hide internal directories.