-
Notifications
You must be signed in to change notification settings - Fork 0
abielvillarosa/01SmartContract
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Swop is a decentralized application powered by smart contract that allows users to swap paid reservations/bookings through blockchain. Several consumers lose money on paid bookings and reservations which they cannot attend to especially if the establishment does not allow cancellation. This application offers the possibility of the person who booked to be able to swap the booking to another person and get the original amount. Available Functions: 1) postBooking - This function allows poster who have paid booking to publish their booking details that is available for swapping. They have to enter the Company name, Date, Amount 2) retrieveBooking - This function will be called by swapper who are searching for available posted booking. For this smart contract, booking will be retrieved first by address and will return the amount 3) swapBooking - This function will pay the original poster the amount and the 10% admin fee to the contract. This needs to be called by the swapper address. 4) addAdminFee - This is a private function to add a 10% admin fee on top of the original amount of the booking 5) getAdminFee - This is a private function to get the 10% admin fee of the original amount of booking 6) refundBooking - This function is used to refund the swopper the amount in case of any dispute. Only the contract owner can execute this function EtherScan Contract Address: 0x0971b5d216af52c411c9016bbc63665b4e6f2542 EtherScan Link: https://etherscan.io/address/0x0971b5d216af52c411c9016bbc63665b4e6f2542
About
Smart Contract Essentials - Final Assignment
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published