Skip to content

Instantly share code, notes, and snippets.

@parva-jain
Last active February 15, 2022 05:30
Show Gist options
  • Save parva-jain/9bf928923df31d87a428cb7441a7bdfc to your computer and use it in GitHub Desktop.
Save parva-jain/9bf928923df31d87a428cb7441a7bdfc to your computer and use it in GitHub Desktop.
MAIN CONTRACTS
==============
PNDC_ERC721 contract
-> function getRoyalties(uint256 _tokenId)
-> function tokenURI(uint256 tokenId)
PNDC_ERC1155 contract
-> function setURI(string memory newuri) [only owner can execute]
-> function getRoyalties(uint256 _tokenId)
TokenERC721 contract
-> function setRoyaltiesByTokenId(uint256 _tokenId, RoyaltiesSet memory royaltiesSet) [only owner can execute]
-> function setRoyaltiesForCollection(LibShare.Share[] memory royalties) [only owner can execute]
-> function getRoyalties(uint256 _tokenId)
-> function tokenURI(uint256 tokenId)
TokenERC1155 contract
-> function setURI(string memory newuri) [only owner can execute]
-> function setTokenUri(string memory _uri, uint256 _tokenId)
-> function setRoyaltiesByTokenId(uint256 _tokenId, RoyaltiesSet memory royaltiesSet) [only owner can execute]
-> function setRoyaltiesForCollection(LibShare.Share[] memory royalties) [only owner can execute]
-> function getRoyalties(uint256 _tokenId)
NFTV1Storage contract
-> mapping(uint256 => LibMeta.TokenMeta) public _tokenMeta;
-> mapping(uint256 => LibBid.BidOrder[]) public Bids;
-> mapping(uint256 => LibCollection.CollectionMeta) public collections;
-> mapping(address => uint256[]) public ownerToCollections;
-> mapping(address => address) public collectionToOwner;
NFTV1Storage1155 contract
-> mapping(uint256 => LibMeta1155.TokenMeta) public _tokenMeta;
-> mapping(uint256 => LibBid1155.BidOrder[]) public Bids;
-> mapping(uint256 => LibCollection1155.CollectionMeta) public collections;
-> mapping(address => uint256[]) public ownerToCollections;
-> mapping(address => address) public collectionToOwner;
(These mapping have a public getter function and can be used in sdk as a function if needed)
LIBRARY CONTRACTS
=================
LibERC1155 contract
-> function deployERC1155(string memory uri, LibShare.Share[] memory royalties)
LibERC721 contract
-> function deployERC721(string memory name, string memory symbol, LibShare.Share[] memory royalties)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment