A decentralized application demonstrating real-time price feeds and data-dependent smart contract operations using the Morpher Oracle for precious metals markets.
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
- Creates an ERC4337 Safe Wallet for secure transactions
- Fetches real-time Silver (XAG/USD) and Polish Złoty (POL/USD) price data
- Executes bundled ERC4337 transactions:
- First UserOp: Updates oracle with latest price data
- Second UserOp: Mints Silver NFT with current market prices
- 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)
- Technical Blog Post
- Morpher Oracle Documentation
- Live Demo
- ERC4337 Account Abstraction Specification
# Install dependencies
npm install
# Run development server
npm run dev
# Deploy contracts
forge script script/DeployCoins.s.sol
Contributions are welcome!
MIT License - see LICENSE file for details