ERC-3754 Pure abstract ownership NFT standard (A Vanilla Non-Fungible Token Standard)
Stagnant · NFTs & multi-token · created 2021-08-21
An NFT standard that represents ownership alone without a URI, tokenizing abstract rights such as options, oracle memberships, or coupons so that they can be transferred.
Why it is needed
ERC-721 is widely accepted as the standard for representing ownership of concrete assets such as digital assets or collectibles. However, when it is used to represent a right itself rather than an asset, such as the right to call a smart contract function, an option to buy another ERC-721 NFT, or a prepaid membership to use an oracle data feed, using ERC-721 as is creates confusion with the concept of an asset ownership standard. ERC-721 also includes a URI field and related logic, which is unnecessary when representing a right and leaves room for errors in URI handling. There is no standard for tokenizing rights as a clearly defined concept and making them easily liquid.
What to implement
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);: An event emitted when ownership of a right token changes.event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);: An event emitted when transfer authority for a specific token is approved to another address.event ApprovalForAll(address indexed owner, address indexed operator, bool approved);: An event emitted when an owner grants or revokes blanket authority over all of their tokens to an operator.function balanceOf(address owner) external view returns (uint256);: Queries the number of tokens held by a specific address.function ownerOf(uint256 tokenId) external view returns (address);: Queries the current owner address of a specific token.function approve(address to, uint256 tokenId) external;: Approves another address to transfer a specific token on one's behalf.function getApproved(uint256 tokenId) external view returns (address);: Queries the address approved for a specific token.function setApprovalForAll(address operator, bool approved) external;: Grants or revokes authority over all of an owner's tokens to a single address in bulk.function isApprovedForAll(address owner, address operator) external view returns (bool);: Queries whether an address has been granted authority over all of an owner's tokens.function transferFrom(address from, address to, uint256 tokenId) external;: Transfers a token from one address to another.function safeTransferFrom(address from, address to, uint256 tokenId) external;: Transfers a token while checking whether the recipient is able to receive it.function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) external;: Safely transfers a token while also passing along additional data.
In depth
The concept of abstract ownership
This standard aims to keep the NFT as an atomic entity and build a layer of abstraction on top of it. It is designed to be suited to representing abstract ownership such as rights, rather than digital assets. Examples given include the right to call a smart contract function, an option to buy an ERC-721 NFT, and a prepaid membership that allows use of an oracle data feed without a per-use token fee. It explains that this kind of tokenization also makes on-chain subscription business models possible.
The same interface as ERC-721, minus the URI
The IERC3754 interface retains the exact same set of functions as ERC-721, including the Transfer, Approval, and ApprovalForAll events and balanceOf, ownerOf, approve, getApproved, setApprovalForAll, isApprovedForAll, transferFrom, and safeTransferFrom (both forms). However, the data fields and functions dealing with the URI have been excluded from the spec to distinguish it from ERC-721.
The equivalence of ownership and rights
Just as an ERC-721 NFT is accepted as representing ownership of a digital asset, this standard's NFT aims to be accepted as representing abstract ownership. Owning this token is equivalent to holding the right to perform the function granted to that token. This is achieved by permitting and encouraging an abstract utility layer to be built on top of it, and tokenization is said to also make the transfer of such rights easier.
No additional backward compatibility requirements
The standard states that it requires no additional backward compatibility.
Reference implementation
A reference implementation is provided at https://github.com/simontianx/ERC3754 .
Security improved over ERC-721
It is explained that security is improved over ERC-721 because there is no need to provide a URI when minting a token. The reasoning is that this avoids errors that can arise while handling a URI.
Current status is Stagnant
This proposal is in Stagnant status, meaning it is no longer actively discussed or progressed and has stalled.
Things to watch out for
- Improved security from not providing a URI: Because there is no need to provide a URI when minting a token, security is improved over ERC-721, avoiding errors that can arise during URI handling.