hackquest logo
  • Learn
  • Explore Course
  • Build
  • Explore Hackathon
  • Project Archive
  • Community
  • Forum
  • Global Event
  • My Community
  • Co-learning
  • Organization Hub
  • More
    • Glossary
    • Blog
    • Faucet
    • Job Station
    • Press Kit
    • Founder
hackquest logo

Commodities Oracle

CommodityOracle A decentralized oracle system for commodity price data on the blockchain, featuring secure signature-based price updates and a consumer contract for easy price queries.

Videos

Tech Stack

Node
Solidity

Description

CommodityOracle

CommodityOracle is a decentralized oracle system that provides commodity and RWA price data on-chain.
It uses signature-based updates to securely push off-chain prices to smart contracts, and a consumer contract to easily read those prices.

What this project does

  • Fetches commodity prices off-chain

  • Verifies them on-chain using cryptographic signatures

  • Stores latest prices securely

  • Allows other contracts to read prices easily

    You can view all asset IDs here:
    https://raw.githack.com/Kali-Decoder/CommodityOracle/main/docs/commodityTable.html

    Main contract: CommodityOracle

    Key features

    • Signature-based price updates

    • Replay protection

    • Supports bulk updates

    • Owner-controlled signer

    Important functions

    • updateCommodityPrice

    • updateCommodityPricesBulk

    • getLatestPrice

      Here are the direct links to both deployed contracts that you shared (on Sepolia via MantleScan):

      🔗 CommodityOracle Contract

      👉 https://sepolia.mantlescan.xyz/address/0xE370b43b3405148E6D5Aff0F1DB151C6C17c3051

      🔗 CommodityConsumer Contract

      👉 https://sepolia.mantlescan.xyz/address/0x0eba74872672ee3FC81E55239967BFF142E52fC7

Progress During Hackathon

Progress During Hackathon Designed the overall Commodities / RWA Oracle architecture Implemented the CommodityOracle smart contract with: Signature-based price updates Replay protection Timestamp (staleness) validation Bulk price update support Built the CommodityConsumer contract for: Easy price querying Single and bulk asset reads Convenience functions (e.g. Natural Gas) Integrated off-chain price data format aligned with real commodity APIs Deployed both contracts on Sepolia (Mantle) testnet Added support for 100+ assets including commodities, stocks, indices, ETFs, and FX Created an interactive table listing all supported assets and their feed IDs Documented usage examples for: Reading prices Updating prices securely Designed a Commodities Oracle logo and architecture diagrams
Team Leader
SSomi
Project Link
Sector
DeFiSocialFiInfra