Skip to content

Instantly share code, notes, and snippets.

@ilamanov
Last active April 10, 2022 20:28
Show Gist options
  • Select an option

  • Save ilamanov/22f831efa3ef42ac62853de487e24a2a to your computer and use it in GitHub Desktop.

Select an option

Save ilamanov/22f831efa3ef42ac62853de487e24a2a to your computer and use it in GitHub Desktop.
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