Day 20 / 21 – Sui Challenge
Today’s progress:
– Learned how to use Events (sui::event).
– Defined a PlantEvent to signal when planting happens.
– Emitted a message on-chain for every new plant.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 19 / 21 – Sui Challenge
Today’s progress:
– Wrote "read-only" functions to check Farm stats.
– Learned to use &Farm to look at data without changing it.
– Added ways to see total planted and harvested counts.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 18 / 21 – Sui Challenge
Today’s progress:
– Wrote entry functions to update the Farm object.
– Learned how to pass objects (&mut Farm) into functions.
– Made planting and harvesting work on-chain.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 17 / 21 – Sui Challenge
Today’s progress:
– Wrote entry functions to let users interact with the Farm.
– Used transfer::share_object to make the farm accessible to everyone.
– Connected the logic to actual transaction commands.
#Sui#Move
Day 16 / 21 – Sui Challenge
Today’s progress:
– Created my first real Sui Object (Farm).
– Learned why UID and key are important.
– Used object::new to give a unique ID to my struct.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 15 / 21 – Sui Challenge
Today’s progress:
– Started the final project: Farm Simulator.
– Designed the FarmCounters struct.
– Added rules to track plots and prevent duplicate planting.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 14 / 21 – Sui Challenge
Today’s progress:
– Wrote tests for the Bounty Board project.
– Checked if adding tasks and counting rewards works correctly.
– Ran sui move test to verify everything.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 13 / 21 – Sui Challenge
Today’s progress:
– Used loops to read the task list.
– Calculated the total reward amount.
– Counted how many tasks are done.
#Sui#Move@ercandotsui@Devrimdotsui @mericdotsui @electrogu
Day 12 / 21 – Sui Challenge
Today’s progress:
– Learned about the Option<T> type to handle "maybe" values.
– Implemented find_task_by_title to safely search for tasks.
– Used Some and None to manage search results without errors.
#Sui#Move
Day 11 / 21 – Sui Challenge
Today’s progress:
– Introduced the address type to assign ownership to the TaskBoard.
– Created the TaskBoard struct to group multiple tasks.
#Sui#Move
Day 10 / 21 – Sui Challenge
Today’s progress:
– Focused on API design and Visibility modifiers.
– Learned when to use public fun vs. private fun.
– Exposed complete_task while keeping internal logic hidden.
Day 9 / 21 – Sui Challenge
Today’s progress:
– Replaced boolean flags with Enums for better state management.
– Defined TaskStatus to differentiate between Open and Completed tasks.
– Updated the Task struct to be more semantic.
#Sui#Move
Day 8 / 21 – Sui Challenge
Today’s progress:
– Started a new project: Task Bounty Board.
– Defined the Task struct with properties like reward and title.
– Wrote the constructor function to initialize tasks.
#Sui#Move
Day 7 / 21 – Sui Challenge
Today’s progress:
– Wrote unit tests for the Habit Tracker features.
– Verified add_habit and complete_habit functions using assertions.
– Practiced using assert! and assert_eq! to ensure logic is correct.
#Sui#Move
Day 6 / 21 – Sui Challenge
Today’s progress:
– Refactored the Habit struct to use String instead of raw vector<u8>.
– Learned how to convert bytes to proper strings using string::utf8.
– Updated the constructor to accept more readable text inputs.
#Sui#Move@ercandotsui
Day 5 / 21 – Sui Challenge
Today’s progress:
– Implemented logic to modify state with complete_habit.
– Practiced using mutable references (borrow_mut) on vectors.
– Added basic safety checks with if/else.
#Move#Sui