Skip to content

This is a smart contract protocol that allow owners to rent users who want to use tenant spaces in shopping malls by using ERC4907-based rentable NFT.

License

Notifications You must be signed in to change notification settings

masaun/rental-tenant-space-protocol-using-ERC4907-NFT

Repository files navigation

Rental Tenant Space Protocol using ERC4907-based Rentable NFT

Overview

  • This is a smart contract protocol that allow tenant owners to rent users who want to use tenant spaces in shopping malls by using ERC4907-based rentable NFT.

  • Tenant space NFTs is tokenized-tenant spaces that represent tenant spaces.
    • That makes renting tenant spaces more efficient.

  • ERC4907 (Rentable NFT Standard) is used for tenant space NFTs in this protocol.
    • By utilzing ERC4907 in this protocol, owners can rent users tenant spaces by giving "user rights" instead of transferring its tenant space NFTs into users.
    • This workflow makes procesure of renting tenant spaces more transparent who has rights of tenant spaces. (NOTE: In this protocol, owners store their tenant space NFTs into the ShoppingMall contract. Then, the ShoppingMall contract rent users tenant space NFTs on behalf of owners)

Use cases

  • This protocol assume use cases such as:
    • The gaming space: Build shopping malls and rent its tenant space. Decentraland like gaming protocol and dApp are potencially able to integrate with this protocol.
    • The real world: Ultimetory, physical shopping malls might be able to be integrated with this protocol for renting its tenant spaces in the future.

Demo Video


Workflow

  • This is a diagram that entire workflow is written.
    diagram_Rental-Tenant Space-Protocol-using-ERC4907-based-Rentable-NFT

Specifications (Integrations)

  • ERC4907 (Rentable NFT Standard) is used for a tenant space NFT.
  • Chainlink Price Feed is used as the PriceConsumerV3.sol in the ShoppingMall.sol for retrieving ETH/USD price. This price retrieved is used for payment when a tenant space NFT is rent.
    • When a user rent a tenant space NFT

Test (Rinkeby testnet-forking test)

  • Unit test of the ShoppingMall.sol (NOTE: This test is the main test that includes entire workflow of this protocol)
yarn test-unit:ShoppingMall

  • Unit test of the TenantSpaceNFT.sol
yarn test-unit:TenantSpaceNFT

  • Unit test of the TenantSpaceNFTFactory.sol
yarn test-unit:TenantSpaceNFTFactory

  • Unit test of the PriceConsumerV3.sol
yarn test-unit:PriceConsumerV3

  • Unit test (ERC4907 Demo)
yarn test-unit:ERC4907Demo

Resources


About

This is a smart contract protocol that allow owners to rent users who want to use tenant spaces in shopping malls by using ERC4907-based rentable NFT.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published