Skip to content

MarcusDavidG/Suivi-clair

Repository files navigation

Suiviclair - Supply Chain Tracking DApp

Suiviclair is a blockchain-based solution for transparent, secure, and traceable supply chain management. Built on Starknet with private shard capabilities through Calimero SDK, Suiviclair combines the power of blockchain immutability with privacy-preserving features to deliver real-time supply chain visibility.

Key Features

  • Real-Time Shipment Tracking: Monitor shipments throughout their entire journey
  • Secure Data Sharing: Leverage private blockchain shards via Calimero SDK
  • Transparency & Immutability: Guaranteed recording of all supply chain events
  • End-to-End Traceability: Complete visibility from shipment creation to delivery

Technology Stack

  • Frontend: Starknet Scaffold
  • Smart Contracts: Cairo (Starknet)
  • Private Shard Integration: Calimero SDK
  • Backend Logic: Rust with Borsh serialization (WASM)

System Architecture

The Suiviclair platform consists of three main components:

  1. Frontend Interface: Built with Starknet Scaffold for DApp interactions
  2. Smart Contract Layer: Core business logic implemented in Cairo
  3. WASM Backend: Rust-based implementation for private shard interactions

Prerequisites

  • Node.js (v14 or higher)
  • Rust (latest stable)
  • Starknet CLI
  • Calimero SDK

Installation

  1. Clone the repository:
git clone https://github.com/your-username/suiviclair.git
cd suiviclair
  1. Install frontend dependencies:
cd frontend
npm install
  1. Build the WASM backend:
cd backend
cargo build --target wasm32-unknown-unknown
  1. Start the development server:
cd frontend
npm start

Smart Contract Deployment

  1. Configure your Starknet environment
  2. Deploy the contract using Starknet CLI
  3. Update the contract address in your frontend configuration

Refer to the Starknet documentation for detailed deployment instructions.

Usage Example

// Create a new shipment
let shipment = tracker.create_shipment(
    "Product XYZ".to_string(),
    "Description".to_string(),
    "Origin City".to_string(),
    "Destination City".to_string()
);

// Track an existing shipment
let tracked_shipment = tracker.track_shipment(shipment_id);

Development

The project follows a modular architecture with clear separation of concerns:

  • frontend/: Contains the Starknet Scaffold DApp interface
  • contracts/: Houses the Cairo smart contracts
  • backend/: Includes the Rust WASM implementation
  • docs/: Additional documentation and guides

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Security

  • All sensitive data is handled through private shards using Calimero SDK
  • Smart contracts undergo regular security audits
  • Private key management follows industry best practices

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Acknowledgments

  • Starknet team for the blockchain infrastructure
  • Calimero SDK team for private shard capabilities
  • The open-source community for continuous support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published