Live Stellar Workshop | Week 4, Day 3: Building a Guest Book Smart Contract
Автор: SM Web Systems
Загружено: 2026-03-05
Просмотров: 0
Описание:
Welcome to Week 4, Day 3 of the Live Stellar Workshop! In this session of our Soroban Crash Course, we are taking everything we have learned about Rust and Soroban state management and building our first complete, interactive decentralized application: a Guest Book Smart Contract.
Building practical, hands-on examples like this is exactly how we equip developers to engineer scalable blockchain solutions designed for maximum market penetration across the SADC region and the broader Web3 space. Today, we will write the logic to allow users to securely sign the guest book, store their messages permanently on the Stellar blockchain, and retrieve the full list of signatures.
Course Resources & Links:
GitHub Repository (Code & Notes): https://github.com/smwebsystems/sorob...
What We Cover in This Session:
Structuring the Contract: How to organize our Guest Book data using Rust Structs and Soroban Symbols.
Writing the sign Function: Capturing user input and saving new entries into the blockchain's state.
Managing Authorization: Ensuring that only authenticated users can sign the guest book using Soroban's native auth framework.
Writing the get_entries Function: Safely reading and returning the stored list of signatures from the ledger.
End-to-End Testing: Deploying the contract locally and interacting with it using the Soroban CLI.
Timestamps:
(Note: Adjust these placeholders to match the exact pacing of your live stream!)
0:00 - Welcome Back & Project Overview
3:15 - Designing the Guest Book Data Structure
9:30 - Writing the Contract Initialization Logic
16:45 - The sign Method: Saving Data to State
25:10 - Introduction to Soroban Authorization (require_auth)
34:20 - The get_entries Method: Reading from State
42:30 - Compiling to WebAssembly (Wasm)
48:00 - Testing the Contract Locally via CLI
56:30 - Q&A and Next Steps
Homework: Check today's GitHub notes to pull the Guest Book starter code. Your task is to successfully compile the contract, deploy it to your local Soroban sandbox, and use the CLI to add your own signature to the ledger!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: