GithubHelp home page GithubHelp logo

openbrush-room-booking-contract's Introduction

Openbrush hotel room booking contract

This is smart contract written for hotel industry. It tracks the records like:

  1. landlord
  2. tenants
  3. rooms
  4. agreements
  5. rents room

. add_room with this function you can add room with fields like [room_name, room_address, rent_per_month, security_deposit, time_stamp]. Only owner of the contract is supposed to add the room.

. sign_agreement with this function only user other that owner can sign agreement with room_id. User should pay fee more than total_fee = rent_per_month + security_deposit in order to sign agreement. Room must be vacant before sign agreement.

. pay_rent with this function user who is tenant of the room can pay_rent if time_stamp exceeds.

. agreement_completed with this function only owner of the contract can complete the agreement. To complete agreement room musn't be vacant. After complete transfer security_deposit back to tenant.

. agreement_terminated with this function agreement can be terminated by owner of the contract. Room must be occupied by tenant to execuate this function.

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.