MCPcopy Create free account
hub / github.com/HashLips/generative-art-opensource / generateMetadata

Function generateMetadata

index.js:47–59  ·  view source on GitHub ↗
(_dna, _edition, _attributesList)

Source from the content-addressed store, hash-verified

45
46// add metadata for individual nft edition
47const generateMetadata = (_dna, _edition, _attributesList) => {
48 let dateTime = Date.now();
49 let tempMetadata = {
50 dna: _dna.join(""),
51 name: `#${_edition}`,
52 description: description,
53 image: `${baseImageUri}/${_edition}`,
54 edition: _edition,
55 date: dateTime,
56 attributes: _attributesList,
57 };
58 return tempMetadata;
59};
60
61// prepare attributes for the given element to be used as metadata
62const getAttributeForElement = (_element) => {

Callers 1

startCreatingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected