Hadrien Croubois 0db76e98f9 Merge branch 'solc-0.7' into solc-0.8 4 gadi atpakaļ
..
ERC1155.sol 0db76e98f9 Merge branch 'solc-0.7' into solc-0.8 4 gadi atpakaļ
ERC1155Burnable.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
ERC1155Holder.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
ERC1155Pausable.sol 0db76e98f9 Merge branch 'solc-0.7' into solc-0.8 4 gadi atpakaļ
ERC1155Receiver.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
IERC1155.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
IERC1155MetadataURI.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
IERC1155Receiver.sol 974c534210 Update contracts to support Solidity 0.8.x (#2442) 4 gadi atpakaļ
README.adoc 0c667ca32a docs: add note explaining opinionated presets (#2313) 5 gadi atpakaļ

README.adoc

= ERC 1155

[.readme-notice]
NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/token/erc1155

This set of interfaces and contracts are all related to the https://eips.ethereum.org/EIPS/eip-1155[ERC1155 Multi Token Standard].

The EIP consists of three interfaces which fulfill different roles, found here as {IERC1155}, {IERC1155MetadataURI} and {IERC1155Receiver}.

{ERC1155} implements the mandatory {IERC1155} interface, as well as the optional extension {IERC1155MetadataURI}, by relying on the substitution mechanism to use the same URI for all token types, dramatically reducing gas costs.

Additionally there are multiple custom extensions, including:

* designation of addresses that can pause token transfers for all users ({ERC1155Pausable}).
* destruction of own tokens ({ERC1155Burnable}).

NOTE: This core set of contracts is designed to be unopinionated, allowing developers to access the internal functions in ERC1155 (such as <>) and expose them as external functions in the way they prefer. On the other hand, xref:ROOT:erc1155.adoc#Presets[ERC1155 Presets] (such as {ERC1155PresetMinterPauser}) are designed using opinionated patterns to provide developers with ready to use, deployable contracts.

== Core

{{IERC1155}}

{{IERC1155MetadataURI}}

{{ERC1155}}

{{IERC1155Receiver}}

== Extensions

{{ERC1155Pausable}}

{{ERC1155Burnable}}

== Convenience

{{ERC1155Holder}}