gnosisguild / wand-nft

wand-nft.vercel.app
8 stars 6 forks source link

Template based SVG generation #6

Closed jfschwarz closed 2 years ago

jfschwarz commented 2 years ago

SVG is generated in contracts/svg/Template.sol, which is a library compiled from the handlebars template files in contracts/svg/template via solid-mustache.

The dynamic stone lighting matching the live position of the sun at the minting geo location is already implemented.

All the other template parameter values are still hardcoded. The coordinates for planets and aspects will come from contract storage (we should include them in the Wand struct) and will calculated in the minting app. (The JavaScript for this calculation is ready.)

Next steps would be: