A comprehensive educational workshop demonstrating Stellar blockchain development and Soroswap integration for Rio University students.
This repository contains two complete workshops that demonstrate the full lifecycle of creating and trading custom assets on the Stellar blockchain:
- Stellar Workshop (
workshop-rio.ts) - Basic Stellar asset creation and trading - Soroswap Workshop (
soroswap.ts) - Advanced DeFi integration using Soroswap SDK
Both workshops create a custom "RIO" token and demonstrate different approaches to asset management and trading on the Stellar ecosystem.
- Creating and funding wallets on Stellar testnet
- Issuing custom assets (RIO token)
- Creating trustlines between accounts
- Locking asset supply to prevent further minting
- Creating and managing liquidity pools
- Performing asset swaps through path payments
- Deploying Stellar assets to Soroban smart contracts
- Using the Soroswap SDK for DeFi operations
- Adding liquidity to decentralized exchanges
- Quote → Build → Sign → Submit workflow for trading
- Integration with Soroban's smart contract platform
- Node.js 18+ installed
- TypeScript knowledge
- Basic understanding of blockchain concepts
- Stellar testnet account (automatically created in workshops)
- Clone the repository:
git clone <repository-url>
cd workshop-rio- Install dependencies:
npm install- Create a
.envfile (optional, for API keys):
# Optional: Add your Soroswap API key
SOROSWAP_API_KEY=your_api_key_herenpm run workshopThis will execute the basic Stellar workshop demonstrating:
- Wallet creation and funding
- RIO token issuance
- Liquidity pool creation
- Asset swapping
npm run soroswapThis will execute the advanced Soroswap workshop demonstrating:
- Soroban smart contract deployment
- Soroswap SDK integration
- Decentralized exchange operations
- Advanced trading workflows
Both workshops follow a similar pattern:
- Setup Phase: Create wallets and fund them with testnet XLM
- Asset Creation: Issue custom RIO tokens
- Liquidity Provision: Add liquidity to enable trading
- Trading: Perform asset swaps
- Results: Display final balances and transaction details
- Educational Focus: Comprehensive logging and explanations
- Production-Ready: Uses official Stellar and Soroswap SDKs
- Testnet Safe: All operations run on Stellar testnet
- Interactive: Real-time feedback and countdown timers
- Comprehensive: Covers both basic and advanced concepts
@stellar/stellar-sdk: Official Stellar SDK for blockchain operations@soroswap/sdk: Soroswap SDK for DeFi operationsdotenv: Environment variable managementtypescript: Type-safe development
- Horizon Server:
https://horizon-testnet.stellar.org - Soroban RPC:
https://soroban-testnet.stellar.org - Network: Stellar Testnet
By completing these workshops, students will understand:
- Blockchain Fundamentals: How assets are created and managed on Stellar
- DeFi Concepts: Liquidity provision, automated market makers, and trading
- Smart Contracts: Deploying and interacting with Soroban contracts
- SDK Integration: Using professional-grade SDKs for blockchain development
- Best Practices: Proper error handling, transaction signing, and account management
The workshops create three types of wallets:
- Asset Creator: Issues the RIO token and manages supply
- Token Holder: Provides liquidity to enable trading
- Trader: Performs swaps and trades assets
All wallets are automatically funded using Stellar's Friendbot service.
- All operations use testnet XLM (no real value)
- Private keys are generated randomly for each workshop run
- Asset supply is locked after issuance to prevent inflation
- Transactions include proper timeout and fee settings
If you encounter issues:
- Network Issues: Ensure stable internet connection
- Rate Limiting: Wait between workshop runs if hitting API limits
- Transaction Failures: Check Stellar Expert for transaction details
- SDK Errors: Verify API keys and network configuration
- Stellar Documentation
- Soroswap Documentation
- Stellar Expert - Testnet explorer
- Soroswap Interface - Trading interface
MIT License - See LICENSE file for details
This is an educational workshop. For improvements or bug fixes, please create an issue or pull request.
Built for Rio University students to learn blockchain development on Stellar 🌟