This guide covers setting up your environment and the development standards we follow at SoroScope.
- Rust (latest stable)
- Node.js (>= 18)
- Soroban CLI
- Fork the repository and clone it locally.
- Rust Core: Build the backend.
cargo build -p soroscope-core
- Web Dashboard: Install frontend dependencies.
cd web npm install - Contracts: Compile the sample contracts.
cargo build --target wasm32-unknown-unknown --release
- Formatting: Always run
cargo fmtbefore committing. - Linting: Run
cargo clippyto check for common mistakes. - Tests: Ensure all tests pass with
cargo test.
- Styling: Use Tailwind CSS for consistency.
- Linting: Run
npm run lintwithin the/webdirectory. - Components: Keep components modular and placed in
/web/components.
- Use Soroban SDK v22.0.0 or higher.
- Avoid deprecated methods like
register_contract(useregisterinstead).