Skip to content

lycantho/ChronoPay-Contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chronopay-contracts

Soroban smart contracts for ChronoPay — time tokenization and scheduling on the Stellar network.

What's in this repo

  • 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)

Prerequisites

  • Rust (stable)
  • rustfmt: rustup component add rustfmt
  • For deployment: Stellar CLI (optional)

Setup

# 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 -- --check

Project layout

chronopay-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

Contributing

  1. Fork the repo and create a branch from main.
  2. Make changes; keep formatting clean: cargo fmt.
  3. Ensure tests pass: cargo test.
  4. Open a pull request. CI must pass (fmt check, build, tests).

CI/CD

On every push and pull request to main, GitHub Actions runs:

  • Format: cargo fmt --all -- --check
  • Build: cargo build
  • Tests: cargo test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 100.0%