Need help blockchain developers

Viewed 24

Hello LF blockchain developers need help for my projects in schoolremix IDE

UPDATES: All updates (if any) will be posted on our Discord server channel #blockchain.

PROJECT REQUIREMENTS:

Applications which make use of blockchain technology are knawn as DApps. As developer for Elon's company, you are tasked with creating an easy to use Expense Tracker which saves data to the chain. Your friend wants to keep it as simple as possible to ensure that it's easy to pick up.

Required features: • User can input an expense

• Add new users • Owner can Block/Unblock users • Blocked users cannot post anything • If the cost is more than 100 uint then that specific expense is marked as "Too expensive"; if less than 10 uint then it's marked as "Cheap".

• Mark when the latest expense was made (refer below) • The name of  the app can be updated by owner

Read data: • App name • Show a user's most expensive expense • Show a user's cheapest expense • Total sum of a specific user's latest expense • Count of how many expenses does a a user have • Get data on the most recent expense • Show user info DATA: • Expenses: id, category, amount, is it cheap, expensive, or not; date it was made • User: id, address,  totalExpense, isBanned

GETTING DATETIME IN SOLIDITY:  Short answer: block.timezone Long answer (a good read): https://soliditytips.com/articles/solidity-dates-time-operations/

BONUS: • Cancel an expense • Use crypto instead of a random uint value for the amount of a transaction

SUBMISSION: Solidity file only. Like this

0 Answers
Related