Last active
April 10, 2022 20:28
-
-
Save ilamanov/22f831efa3ef42ac62853de487e24a2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| struct Project { | |
| string name; | |
| string artist; | |
| string description; | |
| string website; | |
| string license; | |
| bool active; | |
| bool locked; | |
| bool paused; | |
| // number of NFTs minted for this project | |
| uint256 invocations; | |
| uint256 maxInvocations; | |
| // Javascript scripts used to generate the images | |
| uint scriptCount; // number of scripts | |
| mapping(uint256 => string) scripts; // store each script as a string | |
| string scriptJSON; // script metadata such as what libraries it depends on | |
| bool useHashString; // if true, hash is used as an input to generate the image | |
| // whether project dynamic or static | |
| bool dynamic; | |
| // if project is dynamic, tokenUri will be "{projectBaseUri}/{tokenId}" | |
| string projectBaseURI; | |
| // if project is static, will use IPFS | |
| bool useIpfs; | |
| // tokenUri will be "{projectBaseIpfsURI}/{ipfsHash}" | |
| string projectBaseIpfsURI; | |
| string ipfsHash; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment