Documentation
README
Smart Contracts (Soroban)
Source Files
| File | Contents |
|---|---|
contracts/hello-world/src/lib.rs |
Minimal contract scaffold |
contracts/hello-world/src/test.rs |
Unit + auth + event tests |
contracts/token/src/lib.rs |
Full SEP-41 token |
contracts/token/src/test.rs |
Token unit + integration tests |
Testing Guide
Setup
#![cfg(test)]
extern crate std;
use soroban_sdk::{
testutils::{Address as _, Events},
Address, Env, String, Symbol,
};
Pattern 1: Unit Test with Setup Helper
Extract shared setup into a helper function:
This is the opening of the README. Read the full README on GitHub.