xhakti / Hotel-Management-Smart-Contract

A hotel management smart contract is a self-executing code on a blockchain network that automates hotel operations and transactions, providing secure, transparent, and tamper-proof management of room bookings, payments, and customer data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hotel-Management-Smart-Contract

A hotel management smart contract is a self-executing code on a blockchain network that automates hotel operations and transactions, providing secure, transparent, and tamper-proof management of room bookings, payments, and customer data.

Getting Started

To use this smart contract, you will need a platform that supports smart contract deployment and execution, such as Ethereum. You will also need a tool such as Remix or Truffle to deploy and test the contract.

Features

  • Security: The smart contract is secured by the decentralized nature of blockchain technology, providing a secure platform for room reservations and payment processing.
  • Transparency: All transactions and changes in the smart contract are recorded on the blockchain, providing a transparent and auditable record.
  • Room management: The smart contract enables the management of rooms, including booking status, prices, and room types.
  • Room availability: The smart contract provides real-time information on the availability of rooms in the hotel.

Contract Methods

avaliableRooms()

This method returns the number of available rooms for each type (Solo, Duo, Family).

checkIn()

This method is used to check-in a customer into the hotel.

viewRent()

This method is used to view the rent that a customer needs to pay. It returns the total rent calculated based on the customer's room type and the amount of time they have spent in the hotel.

checkOut()

This method is used to check-out a customer from the hotel.

Contributing

If you would like to contribute to the development of this contract, please fork the repository and submit a pull request with your changes.

About

A hotel management smart contract is a self-executing code on a blockchain network that automates hotel operations and transactions, providing secure, transparent, and tamper-proof management of room bookings, payments, and customer data.


Languages

Language:Solidity 100.0%