Skip to content

Morpher-io/morpher-oracle-demo-nft

Repository files navigation

Precious Metals Oracle Demo DApp

A decentralized application demonstrating real-time price feeds and data-dependent smart contract operations using the Morpher Oracle for precious metals markets.

Overview

Screenshot Demo App

This DApp showcases the implementation of Data-Dependent User Operations in Web3, featuring:

  • Real-time precious metal price feeds (XAG/USD, POL/USD)
  • ERC4337 Account Abstraction
  • NFT minting based on live market data
  • Automated oracle price updates
  • Smart contract interaction with verified price data

How It Works

  1. Creates an ERC4337 Safe Wallet for secure transactions
  2. Fetches real-time Silver (XAG/USD) and Polish Złoty (POL/USD) price data
  3. Executes bundled ERC4337 transactions:
    • First UserOp: Updates oracle with latest price data
    • Second UserOp: Mints Silver NFT with current market prices

Tools & Technologies

  • Smart Contracts: Solidity, ERC4337, ERC721
  • Frontend: Next.js, React, TypeScript, Tailwind CSS
  • Web3 Integration: wagmi, viem
  • Oracle: Morpher Oracle for real-time price feeds
  • Development: Foundry (Forge, Anvil, Cast)

Links & Resources

Getting Started

# Install dependencies
npm install

# Run development server
npm run dev

# Deploy contracts
forge script script/DeployCoins.s.sol

Contributing

Contributions are welcome!

License

MIT License - see LICENSE file for details

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published