OnGrid Protocol Doc
  • Introduction to Ongrid Protocol
  • OnGrid Protocol
    • Problem Statement
    • OnGrid Protocol Solution
      • Core Features
  • Technical Architecture
    • Key Components:
      • Physical Infrastructure Layer (DePIN Devices)
      • Decentralized Network Layer
      • Blockchain and Storage Layer (Including Smart Contracts)
      • Application Layer
    • Technology Stack
  • Data Flow and Smart Contract Interactions
  • Security and Scalability Features
  • Use Cases
  • Roadmap
  • Conclusion
Powered by GitBook
On this page

Data Flow and Smart Contract Interactions

  1. Energy Data Collection:

    • EdmondX devices collect energy production data, sign it, and transmit it to the libp2p network.

  2. Network Propagation:

    • The libp2p network propagates energy data and signed transactions to other nodes.

    • The ICP Canister ensures only trusted devices participate.

  3. Smart Contract Processing:

    • Investment Management:

      • Investors commit funds via the Application Layer, triggering the Investment Management Contract.

      • The contract verifies energy data from the libp2p network to release funds and distribute repayments.

    • Carbon Credit Issuance:

      • The Data Aggregation Service processes energy data and submits CO2 reduction calculations to the Carbon Credit Issuance Contract.

      • The contract verifies reductions, mints carbon credits, and stores records on Arweave.

    • Carbon Credit Trading:

      • Users list carbon credits for sale via the Application Layer, interacting with the Carbon Credit Trading Contract.

      • The contract executes trades, transfers tokens, and updates ownership on the blockchain.

  4. Permanent Storage:

    • Transaction records, energy data, and carbon credit issuances are stored on Arweave, with hashes recorded on the blockchain.

  5. User Interaction:

    • Investors and solar companies access dashboards to monitor investments, energy data, and carbon credits, interacting with smart contracts via the API Gateway.

PreviousTechnology StackNextSecurity and Scalability Features

Last updated 13 days ago