Inspiration
In a changing world full of innovations, it forces us to be ready for the future, and the future is smart contracts. What is better than developing smart contracts with a product that continuously develops contracts to subsist, such as property rentals?
What it does
Our app uses smart contracts and real furniture NFTs allowing property owners and future tenants to have secure, fast, and transparent transactions.
How we built it
We created the website for the Frontend with Google sites for the wiki and Reactjs for the DApp. We created 2 smart contracts (sc) using Hardhat framework:
- Renting NFT (RentFantomBNB.sol): This sc Admin the process of renting a house and storing the information of the Renter, the House NFT, and the House Owner. Also, store the balance of each payment.
- House NFT (FantomBNB.sol): This sc has all the attributes of the house. The House owner owns the NFTs generated by this contract. We use GitHUB as repository. We develop specific tests for each functionality. We deployed the contracts to the Fantom Testnet network with Hardhat framework. But in the repo Readme file you can find the guide to run it locally on your machine with Hardhat node (hardhat local blockchain) Finally, the DApp is hosted using vercel platform.
Challenges we ran into
We had to learn how to sync everything on the Fantom network, as we hadn't in the past. At the time of establishing the rental contracts we had to create specific variables to store the values of the monthly rent We had to learn how to mount local servers on hardhat We are not experts in the rental business model, so we had to develop use cases and flowcharts to better understand it and provide a better user experience. It cost us to find a way to synchronize the properties (Renting NFT) with the google search engine
Accomplishments that we're proud of
NFTs are successfully created with the desired properties The Renting contract performs the functions sought successfully There is a correct relationship between the front-end and the back-end The website is visually appealing and user friendly.
What we learned
Work with Fantom, Test and Production Creation of Smart Contract in Fantom Local Server with Hardhat Rental Contracts Business Model google map api
What's next for TBD
Control the time by month of the renting. Create a user interface to mint NFTs (house to rent) Display month by the renter. Add a star rating for each House, Renter, and House Owner. Add the functionality to cancel the rent due to a rent delay Update house price (deposit and month price)
Built With
- fantom
- fantom-testnet
- google-maps
- google-sites
- hardhat
- react
- solidity
- vercel
Log in or sign up for Devpost to join the conversation.