Carbon Oracle
Lightweight oracle dApp using Pyth feeds for real-time carbon prices with EVVM auto updates.
Problem Statement
A lightweight oracle dApp that uses Pyth data feeds to fetch real-time carbon credit prices and track emissions data flow. Built with Next.js, Hardhat, and EVVM integration for fast price updates.✨ Features Real-time Carbon Credit Prices: Live price feeds from Pyth Network for VERRA, Gold Standard, and other carbon credit types Emissions Tracking: Track your carbon footprint and offset credits Automated Trading Strategies: Set up automated carbon credit purchases with EVVM executor Beautiful Dashboard: Modern, responsive UI with live data visualization Fast Price Updates: EVVM integration for high-frequency price updates Smart Contract Integration: Deploy and interact with carbon credit oracles on-chain
Solution
Carbon Oracle is a lightweight on-chain oracle dApp that tracks real-time carbon credit prices using @Pyth Network’s data feeds and @EVVM’s executor for automated, high-frequency updates.⚙️ ArchitectureThe system has three layers:Smart Contracts (Solidity + @Hardhat) — Fetch and store verified carbon price data from Pyth.Frontend (Next.js 14 + TypeScript + Tailwind) — Displays live price feeds and update events.Automation (EVVM) — Triggers periodic updatePrice() calls for continuous on-chain freshness.🔐 Smart ContractsCarbonOracle.sol pulls verified price data from Pyth and emits a PriceUpdated event whenever new data arrives. EVVMExecutor.sol automates these updates using EVVM’s execution nodes for fast, gas-efficient refresh cycles.💻 FrontendBuilt with Next.js 14 (App Router), TypeScript, and Tailwind CSS, the dashboard fetches on-chain data using Wagmi + Ethers.js, displaying live carbon credit prices with automatic updates from contract events.🔗 IntegrationsPyth Network: Real-time, verifiable carbon price feeds.EVVM: Automated on-chain updates with minimal latency.Ethereum: Smart contract deployment and verifiable storage.🧪 Notable ImplementationsSimulated carbon credit feed using a commodity price source for testing.Integrated EVVM automation for near real-time price refreshes.Event-driven UI updates without reloads — mimicking a “live oracle dashboard.”🧰 StackSolidity, Hardhat, Next.js 14, Tailwind, TypeScript, Ethers.js, Pyth Network, EVVM, Base/Arbitrum Sepolia
Hackathon
ETHOnline 2025
2025
Contributors
- Ashish-Kumar-007
3 contributions