hackquest logo
  • 学习
  • 课程探索
  • 实战
  • 探索黑客松
  • 往期项目
  • 社区
  • 论坛
  • 全球活动
  • 我的社区
  • 共学营
  • 组织中心
  • 更多
    • 词汇表
    • 博客
    • 水龙头
    • 工作机会
    • 媒体工具包
    • 创始人
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.

视频

技术栈

Node
Solidity

描述

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

    • 15-minute staleness check

    • 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 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
队长
SSomi
项目链接
赛道
DeFiSocialFiInfra