Skip to content

Instantly share code, notes, and snippets.

@ilamanov
Created April 10, 2022 20:31
Show Gist options
  • Select an option

  • Save ilamanov/71f1ace57e6d112639cccdd31226968c to your computer and use it in GitHub Desktop.

Select an option

Save ilamanov/71f1ace57e6d112639cccdd31226968c to your computer and use it in GitHub Desktop.
pragma solidity ^0.5.0;
//All financial functions are stripped from Project struct for visibility
mapping(uint256 => address) public projectIdToArtistAddress;
mapping(uint256 => string) public projectIdToCurrencySymbol;
mapping(uint256 => address) public projectIdToCurrencyAddress;
mapping(uint256 => uint256) public projectIdToPricePerTokenInWei;
mapping(uint256 => address) public projectIdToAdditionalPayee;
mapping(uint256 => uint256) public projectIdToAdditionalPayeePercentage;
mapping(uint256 => uint256) public projectIdToSecondaryMarketRoyaltyPercentage;
mapping(uint256 => string) public staticIpfsImageLink;
mapping(uint256 => uint256) public tokenIdToProjectId;
mapping(uint256 => uint256[]) internal projectIdToTokenIds;
mapping(uint256 => bytes32) public tokenIdToHash;
mapping(bytes32 => uint256) public hashToTokenId;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment