Summary
ERC-721 and ERC-1155 uses uint256 tokenId
, this standard extend them with string name
.
Motivation
For Marketplaces, Explorers, Wallets, DeFi and dApps to better display and operate NFTs that comes with a name.
Specification
interface IERCNamedNFT {
function safeTransferFromByName(string memory _tokenName, address from, address to, bytes calldata);
function approveByName(address _approved, string memory _tokenName) external payable;
function idToName(uint256 _tokenId) external view returns (string);
function nameToId(string memory _tokenName) external returns (uint256);
function getApprovedByName(string memory _tokenName) external view returns (address);
}
Security Considerations
- Contract developer shall declare normalization mechanism