docs/vyper-by-example/erc1155.rst
.. index:: tokens;ERC1155, ERC1155
ERC1155 Multi-Token
.. _erc1155:
.. warning::
This is example code for learning purposes. Do not use in production without thorough review and testing.
ERC1155 supports both fungible and non-fungible tokens in a single contract. This implementation includes ownership and pause functionality.
.. literalinclude:: ../../examples/tokens/ERC1155ownable.vy :language: vyper :linenos:
Features beyond the base ERC1155 standard:
mintBatch, burnBatch, safeBatchTransferFromThe BATCH_SIZE constant (128) limits array sizes for gas predictability—a Vyper requirement.