Mock Implementation of the EIP 4907: Rentable NFTs
Also check out : https://medium.com/@sidarths/list/rentable-nfts
ERC4907 is an extension of ERC-721, specially designed for NFT Renting.
It proposes an additional role : user and a valid duration indicator : expires.
It allows users and developers manage the rentable usage rights, more simple and efficient.
-
Refer Brownie Docs for setup :
https://eth-brownie.readthedocs.io/en/stable/install.html -
Compile the code:
>>> brownie compile
-
Testing the contracts :
>>> brownie test -v
Check out my Medium blogs for better understanding and detailed code walkthrough
- Rentable NFTs Complete List : https://medium.com/@sidarths/list/rentable-nfts-83a91175880a
- Rentable NFTs Part1 : https://medium.com/@sidarths/rentable-nfts-erc-4907-949225d476a9
- Rentable NFTs Part2 : https://medium.com/@sidarths/rentable-nfts-erc-4907-part-ii-954cc27d22e9