Lumen Loop
All media
VideoYouTubeStellar Development FoundationJuly 24, 20241y ago1:00:16

Build #BetterOnStellar: Getting Started in Rust

Julian Martinez from SDF walks through Rust smart contract development on Soroban, covering basics like data types and storage, then advances to a staking contract example with cross-contract calls and testing.

Smart ContractsDevelopersDeveloper Tools
Lumen Loop's take

Senior Developer Advocate Julian Martinez from the Stellar Development Foundation delivers a comprehensive workshop on Soroban smart contract development in Rust. The session covers foundational concepts including Soroban SDK attributes, data types (symbols, strings, addresses), and contract storage mechanisms using key-value pairs. Participants learn to use Okashi, an online IDE for iterating on contracts, then transition to the Stellar CLI for local development and testnet deployment. The workshop progresses to a staking contract example demonstrating advanced patterns: enumeration-based data keys, authorization framework usage, cross-contract calls to token contracts, and minting/burning share tokens. Testing practices are covered through cargo test examples. Key takeaways include storage access patterns (env.storage.instance.set/get), the three storage types (temporary, instance, persistent), and how to compose contracts via WASM imports.

Mentioned projects
1 project linked
O
OkashiDeveloper Tooling
SCF
IDEDevX

Okashi is an online smart contract developer playground.

View →