Please enable JavaScript.
Coggle requires JavaScript to display documents.
Virtusa Book Store Block Chain - Coggle Diagram
Virtusa Book Store Block Chain
Future Work
Features
Structs
Books
Name
ISBN Number
Category
Author
List Of Past Owners
Current Owner
Price
Sale Flag
Orders
Name Of Buyer
Address Of The Buyer
Mobile Number
Pin Code
Maps
Books Available For Sale
key: uniqueID
Value: Book Structure
Books Owned By Someone
Books Added By Someone
Pending Orders
key: OrderID
Value: Order Struct
Completed Orders
Order - Product Map
key: OrderID
value: Book ID
order-address
Functions
Buy Book
Remove From Map BAS and Push to Map BOS
Finishing Smart Contract
Push Current Owner to List Of Past Owners
Make Current Owner as the new Ownee
Add A Book
Add a Book Struccture to BAddS
Mark A Book as Available for Sale
Move the Book from BOS or BAddS to BAS
AvailableBooks
Return Map Of BAS
Create Order
Make A Order ID
Push it into Pending Orders
create A new entry in order-product map
OrderComplete
Remove from Pending Order and push to completed order Map
getAllOwnedBooks
getOrderStatus
getAllOrders
Front End
Display Books For Sale
Buy A Book
Display Books Owned
Add A Book
Display Orders
Mark as Received
IDs
All the IDs will be generated using a hash function on the available fields