This repository contains various programs and projects developed during the Turbine Cohort course for Solana smart contract development. It includes code from the lessons, as well as the final project.
Xero is a decentralized platform built on Solana that enables investment funds to manage their assets and allows anyone to invest in Real World Assets (RWA) through tokenization. The platform ensures transparency and reliability by recording all necessary data on Program Derived Accounts (PDAs) to calculate share values.
- Fund initialization and configuration
- Investment registration
- Expense tracking
- Semi-automated share redemption process
- Share purchase and redemption for investors
- Transparent access to fund data
- Smart Contract: Developed using Anchor framework
- Frontend: Next.js application
- Deployment: The program is deployed on Solana devnet
- Program Address:
E7s9u89mMuVGULoSnY6PA1yLkcAev8MeTMxxA33pskFo - Explorer: https://explorer.solana.com/address/E7s9u89mMuVGULoSnY6PA1yLkcAev8MeTMxxA33pskFo?cluster=devnet
The project is located in the capstone-xero directory. To run the project locally, follow these steps:
- Ensure you have Rust and Anchor installed on your system.
- Navigate to the
capstone-xero/xerodirectory. - Build the project:
anchor build - Run tests:
anchor test
- Ensure you have Node.js installed on your system.
- Navigate to the
capstone-xero/xero-frontdirectory. - Install dependencies:
or
npm installyarn install - Run the development server:
or
npm run devyarn dev - Open your browser and go to
http://localhost:3000to view the application.
Note: Make sure you have the necessary environment variables set up for both the smart contract and frontend to interact with the Solana devnet.