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.
视频
描述
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.htmlMain contract: CommodityOracle
Key features
Signature-based price updates
Replay protection
15-minute staleness check
Supports bulk updates
Owner-controlled signer
Important functions
updateCommodityPriceupdateCommodityPricesBulkgetLatestPrice
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