soroban

Develop Soroban smart contracts with Rust, testing, and security hardening.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ceshez/VELAR --skill soroban-ceshez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: soroban
Source: https://github.com/ceshez/VELAR/tree/main/.agents/skills/soroban
Command: npx skills add https://github.com/ceshez/VELAR --skill soroban-ceshez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Soroban contract teams need a reliable, end-to-end reference for writing correct Rust contracts, validating behavior with strong tests, and avoiding security and runtime pitfalls specific to the Soroban execution model.

Core Features & Use Cases

  • End-to-end Soroban contract development: Set up Rust/Soroban SDK configuration, contract structure, and deployment workflow.
  • Storage, authorization, and events: Choose the right storage type (instance/persistent/temporary), implement auth patterns safely, and emit typed events.
  • Testing and security hardening: Cover unit/integration testing approaches plus fuzz/property-focused strategies, error handling, and common vulnerability classes.
  • Advanced architecture patterns: Guidance for factories, upgrades, governance-style admin controls, cross-contract calls, and DeFi/SAC interoperability patterns.

Quick Start

Use this skill to write a new Soroban contract by following its project setup, constructor/initialization guidance, and then adding unit tests that validate authorization and state transitions for your contract functions.

Frequently Asked Questions about soroban

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write and test Soroban smart contracts in Rust?

End-to-end Soroban smart contract development in Rust requires configuring the Soroban SDK, structuring contract functions under no_std constraints, and validating state transitions through deterministic unit tests.

What is the best way to manage storage and TTL in Stellar smart contracts?

Managing storage and TTL in Stellar smart contracts involves selecting the appropriate storage type—instance, persistent, or temporary—based on data persistence requirements, and implementing correct initialization semantics to maintain storage hygiene and avoid runtime limits.

How do I secure Soroban contracts against common authorization vulnerabilities?

To secure Soroban contracts against authorization vulnerabilities, implement safe auth patterns, verify caller identities within contract functions, and apply security checks for protocol and resource limits during local and testnet testing.

Does Soroban support cross-contract calls and event emission?

Yes, Soroban supports cross-contract calls and event emission, enabling Rust contracts to interact via advanced architecture patterns like factories and governance, while emitting typed events to log state changes and contract interactions.

Why does my Soroban contract fail during local testing?

Soroban contracts often fail during local testing due to incorrect constructor initialization semantics, violating no_std constraints, exceeding storage TTL limits, or triggering authorization and resource limit checks within the execution environment.