Mint


Minting is done using Mint function in both (PNDC_ERC1155 and TokenERC1155) contracts.

For PNDC_ERC1155

    mint(
        address account,
        uint256 amount,
        bytes memory data,
        string memory uri,
        LibShare.Share[] memory royalties
    ) 
  • account: Address of the owner
  • amount: Amount of Token
  • data: Token data
  • uri: Token Uri
  • royalties: array of Share struct

For TokenERC1155

    mint(
        address account,
        uint256 id,
        uint256 amount,
        string memory _uri,
        bytes memory data
    ) 
  • account: Address of the owner
  • id: ID of token
  • amount: Amount of token
  • _uri: Token Uri
  • royaltiesSet: RoyaltiesSet struct