ERC1155URI
Abstract contract that provides the URI storage of the ERC1155 Data Manager
Based on OZ ERC1155URIStorage
uri
_See {IERC1155MetadataURI-uri}.
This implementation returns the concatenation of the _baseURI
and the token-specific uri if the latter is set
This enables the following behaviors:
-
if
_tokenURIs[tokenId]is set, then the result is the concatenation of_baseURIand_tokenURIs[tokenId](keep in mind that_baseURIis empty per default); -
if
_tokenURIs[tokenId]is NOT set then we fallback tosuper.uri()which in most cases will containERC1155._uri; -
if
_tokenURIs[tokenId]is NOT set, and if the parents do not have a uri value set, then the result is empty._
_setURI
Sets tokenURI as the tokenURI of tokenId
_setBaseURI
Sets baseURI as the _baseURI for all tokens
_setDefaultURI
Sets defaultURI as the _defaultURI for all tokens

