Soroban smart contracts for ChronoPay — time tokenization and scheduling on the Stellar network.
- Time token contract (
contracts/chronopay): Stub implementations for:create_time_slot(professional, start_time, end_time)mint_time_token(slot_id)buy_time_token(token_id, buyer, seller)redeem_time_token(token_id)
- Rust (stable)
rustfmt:rustup component add rustfmt- For deployment: Stellar CLI (optional)
# Clone the repo (or use your fork)
git clone <repo-url>
cd chronopay-contracts
# Build
cargo build
# Run tests
cargo test
# Check formatting
cargo fmt --all -- --checkchronopay-contracts/
├── Cargo.toml # Workspace definition
├── contracts/
│ └── chronopay/
│ ├── Cargo.toml
│ └── src/
│ ├── lib.rs # Contract logic
│ └── test.rs # Unit tests
└── .github/workflows/
└── ci.yml # CI: fmt, build, test
- Fork the repo and create a branch from
main. - Make changes; keep formatting clean:
cargo fmt. - Ensure tests pass:
cargo test. - Open a pull request. CI must pass (fmt check, build, tests).
On every push and pull request to main, GitHub Actions runs:
- Format:
cargo fmt --all -- --check - Build:
cargo build - Tests:
cargo test
MIT