ERC721URIStorageUpgradeable.sol
View Source: @openzeppelin\contracts-upgradeable\token\ERC721\extensions\ERC721URIStorageUpgradeable.sol
↗ Extends: Initializable, ERC721Upgradeable ↘ Derived Contracts: CreatorToken
ERC721URIStorageUpgradeable
ERC721 token with storage based token URI management.
Contract Members
Constants & Variables
mapping(uint256 => string) private _tokenURIs;
uint256[49] private __gap;
Functions
- __ERC721URIStorage_init()
- __ERC721URIStorage_init_unchained()
- tokenURI(uint256 tokenId)
- _setTokenURI(uint256 tokenId, string _tokenURI)
- _burn(uint256 tokenId)
__ERC721URIStorage_init
function __ERC721URIStorage_init() internal nonpayable onlyInitializing
Arguments
| Name | Type | Description | | ————- |————- | —–|
__ERC721URIStorage_init_unchained
function __ERC721URIStorage_init_unchained() internal nonpayable onlyInitializing
Arguments
| Name | Type | Description | | ————- |————- | —–|
tokenURI
See {IERC721Metadata-tokenURI}.
function tokenURI(uint256 tokenId) public view
returns(string)
Arguments
Name | Type | Description |
---|---|---|
tokenId | uint256 |
_setTokenURI
Sets _tokenURI
as the tokenURI of tokenId
.
Requirements:
tokenId
must exist.
function _setTokenURI(uint256 tokenId, string _tokenURI) internal nonpayable
Arguments
Name | Type | Description |
---|---|---|
tokenId | uint256 | |
_tokenURI | string |
_burn
Destroys tokenId
.
The approval is cleared when the token is burned.
Requirements:
tokenId
must exist. Emits a {Transfer} event.
function _burn(uint256 tokenId) internal nonpayable
Arguments
Name | Type | Description |
---|---|---|
tokenId | uint256 |
Contracts
- ActivateToken
- AddressUpgradeable
- ContextUpgradeable
- CreatorToken
- CustomToken
- ERC165Upgradeable
- ERC20Upgradeable
- ERC721BurnableUpgradeable
- ERC721EnumerableUpgradeable
- ERC721Upgradeable
- ERC721URIStorageUpgradeable
- IERC165Upgradeable
- IERC20MetadataUpgradeable
- IERC20Upgradeable
- IERC721EnumerableUpgradeable
- IERC721MetadataUpgradeable
- IERC721ReceiverUpgradeable
- IERC721Upgradeable
- ImmutableEntity
- ImmutableProduct
- Initializable
- Migrations
- OwnableUpgradeable
- ProductActivate
- StringCommon
- StringsUpgradeable