This shows you the differences between two versions of the page.
fob:laboratoare:09 [2022/09/27 14:18] 127.0.0.1 external edit |
fob:laboratoare:09 [2023/01/12 16:27] (current) costin.carabas |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Laboratorul 09. ===== | + | ===== Building Scaling dApps ===== |
+ | In this lab you will learn how to implement and trigger events from smart contracts level. We will use a predefined smart contract template as starting point. | ||
+ | Please clone the git repo from [[https://github.com/systems-cs-pub-ro/Foundation-Of-Blockchains/tree/master/labs/lab03/neversea|here]]. | ||
+ | |||
+ | Tasks for this practical session: | ||
+ | - Implement an event for updating registration fee. Add the new values to the event | ||
+ | - Implement an event for user registration. Add user address and registration fee to the event | ||
+ | - Perform at least one update registration fees transaction and at least one register transaction. Identify the event from transaction | ||
+ | - Bonus: optimise smart contract storage for participants. Add a view function to get a specific category | ||
+ | |||
+ | |||
+ | Useful links: | ||
+ | * [[https://docs.multiversx.com/developers/developer-reference/wasm-annotations/#events | MultiversX Docs]] |