Skip to content

Latest commit

 

History

History
180 lines (133 loc) · 7.98 KB

File metadata and controls

180 lines (133 loc) · 7.98 KB

TerraQura - Investor Technical Summary

Date: February 2, 2026 Version: 3.0.0-final Solidity: 0.8.32 (Bug-free) Network: Polygon Amoy Testnet (Chain ID: 80002)


Executive Summary

TerraQura is an enterprise-grade carbon credit verification and trading platform built on Polygon blockchain. The platform implements a novel Proof-of-Physics verification system that ensures carbon capture data from Direct Air Capture (DAC) facilities is legitimate before minting carbon credits.


Technical Readiness

Smart Contract Status

Component Status Coverage Notes
Core Contracts (4) ✅ Deployed 100% CarbonCredit, Marketplace, VerificationEngine, AccessControl
Governance (2) ✅ Deployed 100% Multisig (2-of-3), Timelock (1h delay)
Security (1) ✅ Deployed 100% CircuitBreaker with rate limiting
Gasless (1) ✅ Deployed 100% Meta-transaction marketplace

Total: 8 of 8 contracts deployed (100%) - All verified on Polygonscan

Test Coverage

Statements: 100%  |  Functions: 96.25%
Branches:   82.36%  |  Lines:     100%
Total Tests: 562 passing

Deployed Contract Addresses (v3 Final - Solidity 0.8.32)

Core Contracts (UUPS Proxies)

Contract Proxy Address Verified Implementation
AccessControl 0x55695aAAEC30AB495074c57e85Ae2E1A4866B83b View Code
VerificationEngine 0x8dad7E87646e9607Fae225e3A7EAD17ce179dEA8 View Code
CarbonCredit 0x29B58064fD95b175e5824767d3B18bACFafaF959 View Code
CarbonMarketplace 0x5a4cb32709AB829E2918F0a914FBa1e0Dab2Fdec View Code

Governance Contracts

Contract Address Configuration Verified
Multisig 0x0805E6ffDE71fd798F3Fe787D1dC907aABA65bAD 2-of-3 signatures View Code
Timelock 0xb8b01581d61Bf2D58B8B8626Ebb7Ab959ccF6354 1 hour delay (testnet) View Code

Security Contracts

Contract Proxy Address Verified Implementation
CircuitBreaker 0x24192ecf06aA782F1dF69878413D217d9319e257 View Code

Gasless Contracts

Contract Proxy Address Verified Implementation
GaslessMarketplace 0x45a65e46e8C1D588702cB659b7d3786476Be0A80 View Code

Enterprise Security Features

1. Upgradeable Proxy Pattern (UUPS)

  • All core contracts are upgradeable
  • Upgrade authority controlled by Timelock
  • Emergency upgrades require multisig approval

2. Multi-Signature Governance

  • M-of-N signature scheme (configurable)
  • Transaction expiration (7 days default)
  • EIP-712 typed signatures
  • Replay protection via nonces

3. Timelock Protection

  • Mandatory delay on critical operations
  • Testnet: 1 hour | Production: 2+ days
  • Public visibility of pending operations

4. Circuit Breaker

  • 5 security levels (Normal → Emergency)
  • Global and per-contract pause
  • Rate limiting (100 ops/hour)
  • Volume limits (1000 ETH/day)
  • 1-hour cooldown after unpause

5. Role-Based Access Control

  • Granular permissions
  • Time-limited roles
  • Admin hierarchy

Running the Demo

# Navigate to contracts directory
cd apps/contracts

# Run investor demo
npx hardhat run scripts/investor-demo.ts --network polygonAmoy

Outstanding Items

Before Mainnet

Item Priority Status
Professional Security Audit 🔴 Critical Not Started
All Contracts Deployed ✅ Done 8/8 Deployed
Source Code Verified ✅ Done All Verified
Compiler Bug Fixed ✅ Done Solidity 0.8.32
Bug Bounty Program 🟡 Medium Not Started
Hardware Wallet Multisig 🔴 Critical Not Started
Increase Timelock to 48h 🟢 Ready Production Config

Technical Documentation

Document Location
Security Audit Report apps/contracts/audit-packet/SECURITY_AUDIT_REPORT.md
Deployment Records apps/contracts/deployments/polygonAmoy-v3-final.json
Test Coverage apps/contracts/coverage/
Solidity Metrics Source Generate locally from apps/contracts/coverage.json and contract sources
API Documentation http://localhost:4000/docs (when running)

Architecture Diagram

┌─────────────────────────────────────────────────────────────────┐
│                         TerraQura Platform                       │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐      │
│  │   Frontend   │───▶│   API Server │───▶│  Blockchain  │      │
│  │   (Next.js)  │    │   (Fastify)  │    │   (Polygon)  │      │
│  └──────────────┘    └──────────────┘    └──────────────┘      │
│         │                   │                   │                │
│         ▼                   ▼                   ▼                │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐      │
│  │   Wallet     │    │  IoT Sensors │    │   Contracts  │      │
│  │  (RainbowKit)│    │  (Simulator) │    │   (8 Total)  │      │
│  └──────────────┘    └──────────────┘    └──────────────┘      │
│                                                                  │
├─────────────────────────────────────────────────────────────────┤
│                      Security Layer                              │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌──────────────┐    │
│  │ Multisig │  │ Timelock │  │ Circuit  │  │ AccessControl│    │
│  │  2-of-3  │  │  1 hour  │  │ Breaker  │  │   RBAC       │    │
│  └──────────┘  └──────────┘  └──────────┘  └──────────────┘    │
└─────────────────────────────────────────────────────────────────┘

Contact

Repository: TerraQuraMVP Network: Polygon Amoy Testnet Compiler: Solidity 0.8.32 (No known bugs)


This document was generated automatically by the TerraQura deployment system.