Skip to content

SpaceDAO is a groundbreaking, community-driven initiative that revolutionizes space applications through decentralized collaboration and consensus. These Space Traffic Management (STM) smart contracts enables user permissions and identity, confidence scoring for data providers and consensus process for Conjunction Data Messages (CDMs)

License

Notifications You must be signed in to change notification settings

adelamare-blockchain/GSoC_2024-SpaceDAO_web3-smart_contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Space traffic consensus smart contracts | Google Summer Of Code 2024

Logo SpaceDAO

Explore the docs » · View Demo · Report Bug · Request Feature

Table of Contents

🚀 Overview

SpaceDAO is a groundbreaking, community-driven initiative that revolutionizes space applications through decentralized collaboration and consensus. Our mission is to mitigate risks associated with centralized control of critical decision-making information in the space industry. The Space Traffic Management (STM) dApp, powered by these smart contracts, enables:

  • Cross-validation of Conjunction Data Messages (CDMs) by Space Situational Awareness (SSA) data providers
  • Optimized spacecraft maneuvering based on consensus data
  • Global orbital situation oversight for regulators and space lawyers

HomePage

💼 Smart Contracts

  1. SpaceDAOID.sol:
  • Manages user permissions and identity
  • Stores comprehensive user information
  • Implements role-based access control
  1. Confidence.sol:
  • Handles confidence scoring for data providers
  • Implements adaptive confidence adjustment algorithms
  • Supports multiple confidence categories (LEO, MEO, HEO, GEO)
  1. ConsensusCDM.sol:
  • Manages the consensus process for CDMs
  • Implements weighted voting based on provider confidence
  • Handles data submission, validation, and fusion

🏗 Architecture

Our decentralized application follows a robust architecture:

   A[Frontend Vue.js App] -->|Interacts with| B[Web3 Provider]
    B -->|Sends transactions to| C[Arbitrum Network]
    C -->|Executes| D[SpaceDAOID Contract]
    C -->|Executes| E[Confidence Contract]
    C -->|Executes| F[ConsensusCDM Contract]
    D <-->|Interacts with| E
    E <-->|Interacts with| F
    F -->|Emits events| G[Event Listeners]
    G -->|Updates| A

🛠 Technology Stack

  • Smart Contracts: Solidity ^0.8.20
  • Development Environment: Hardhat
  • Blockchain: Arbitrum
  • Frontend: Vue.js 3 with TypeScript
  • Styling: TailwindCSS
  • Testing: Mocha & Chai
  • Continuous Integration: GitLab CI/CD

Key Features

  • 🌐 Decentralized identity and permission management positions and trajectories
  • 🚨 Advanced confidence scoring system for data providers
  • 🤝 Weighted consensus mechanism for Conjunction Data Messages
  • 🔗 Scalable and low-fee operations on Arbitrum
  • 🛠 Real-time event processing and updates
  • 🧪 Comprehensive test suite ensuring contract reliability

🛠 Getting Started

Follow these steps to set up the project locally.

Prerequisities

  • Node.js (v14.x or later)
  • npm (v6.0.0 or later)
  • Hardhat

Installation

  1. Clone the repository

    git clone https://gitlab.com/spacedao/web3/space-traffic-consensus.git
    cd space-traffic-consensus
  2. Install dependencies

    npm install
  3. Set up environment variables

   cp .env.example .env
   # Edit .env with your specific configuration

🧪 Testing

Run the comprehensive test suite:

  1. Run the comprehensive test suite:
npx hardhat test
  1. For coverage reports:
npx hardhat coverage

Deployment

Deploy to Arbitrum testnet:

npx hardhat run scripts/deploy.ts --network arbitrum_testnet

🤝 Contributing

We welcome contributions from the space and blockchain communities! Please read our Contributing Guidelines for more information on how to get involved.

Don't forget to give the project a star! Thanks again!

📜 Licensing

This work is licensed under the GNU LESSER GENERAL PUBLIC LICENSE version 3 and above. All contributors accepts terms of this license. See LICENSE for more information.

📞 Contact

Built with ❤️ by the SpaceDAO community

About

SpaceDAO is a groundbreaking, community-driven initiative that revolutionizes space applications through decentralized collaboration and consensus. These Space Traffic Management (STM) smart contracts enables user permissions and identity, confidence scoring for data providers and consensus process for Conjunction Data Messages (CDMs)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published