Skip to content

MentoNest/SkillSync_Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SkillSync Contracts 🔗

Soroban smart contracts for the SkillSync platform

📌 About

SkillSync Contracts contains the smart contracts that power decentralized mentorship agreements on SkillSync.

These contracts are written using Soroban and deployed on the Stellar network, enabling trustless escrow, payments, and reputation tracking.

⚙️ Core Contracts

  • Mentorship Escrow Contract
  • Payment Release Logic
  • Reputation & Rating Registry
  • Platform Fee Management
  • Session Completion Gate

🛠 Tech Stack

  • Rust
  • Soroban SDK
  • Stellar CLI

⚙️ Setup & Deployment

Prerequisites

  • Rust
  • Stellar CLI
  • Stellar Testnet Account

Build Contracts

stellar contract build

Installation

  • Install rustup
  •  curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
     rustup update stable
     rustup target add wasm32-unknown-unknown
    
    
  • Install cargo-contract (ink! tool)
  •  cargo install cargo-contract --vers ^2.0.0
    
    
  • (Optional) Install cargo-make cargo install cargo-make

To run a local dev node:

   * Get a node for local dev (one-off)
      git clone https://github.com/paritytech/substrate-contracts-node
      cd substrate-contracts-node
      cargo build --release
   * Run node in a separate terminal:
      ./target/release/substrate-contracts-node --dev

Project Structure

contracts/
├── session_gate/           # Session completion gate contract
│   ├── src/
│   │   └── lib.rs          # SessionGate contract implementation
│   ├── Cargo.toml          # Contract dependencies
│   ├── README.md           # Contract documentation
│   └── .env.example        # Environment configuration template
├── Cargo.toml              # workspace or contract top-level (if multiple modules)
├── src/
│   ├── lib.rs              # main ink! contract entry (SkillSync)
│   ├── modules/            # modular contract components (separate Rust modules)
│   │   ├── user.rs
│   │   ├── escrow.rs
│   │   ├── reputation.rs
│   │   └── dispute.rs
│   └── utils.rs
├── tests/
│   └── unit_tests.rs       # Rust unit tests (ink! off-chain tests)
├── README.md               # This file
└── .env.example            # Environment / deployment template (RPC endpoints, accounts)

DEPLOYMENT

deploy command (example)

cargo +stable contract instantiate \
  --constructor new \
  --suri "//Alice" \
  --endowment 1000000000000000 \
  --salt 0x00 \
  --manifest-path target/ink/metadata.json \
  --wasm target/ink/skill_sync.wasm



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 18

Languages