Code Monkey home page Code Monkey logo

rental-tenant-space-protocol-using-erc4907-nft's Introduction

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


rental-tenant-space-protocol-using-erc4907-nft's People

Contributors

masaun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lexsf waltluv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.