This contracts are create for the Muggi/Wara Network. on these links
Muggi - https://github.com/Q-YZX0/Muggi Wara - https://github.com/Q-YZX0/Wara
Wara Smart Contracts is the decentralized backbone of the Wara Network. It provides the source of truth for node discovery, a trustless economy for streaming, and a community-driven DAO for content management.
These contracts are deployed on the Ethereum Sepolia testnet.
The Wara smart contract suite is divided into three functional layers:
Ensures that the Wara nodes can find each other and maintain their gas levels automatically.
- NodeRegistry: The "Phonebook" of the network.
- GasPool: The fuel management system (Sentinel auto-fills).
Powers the USD-Stable streaming economy where hosters are rewarded in $WARA.
- WaraToken: The native economy token.
- AdManager: Handles ad campaigns and proof-of-view rewards.
- Subscriptions: Manages premium access and reward pools.
Powers the community-owned catalog and link verification system.
- MediaRegistry: The official DAO-run content database.
- LinkRegistry: Connects movies to streaming IPs via Trust Scores.
- LeaderBoard: Tracks and ranks node performance.
We use Hardhat for all blockchain operations.
npm run deploy:sepolia: Re-deploys the entire ecosystem on Sepolia.npm run fund: Utility to send test ETH/WARA to a development wallet.npm run seed: Populates theMediaRegistrywith a test catalog.npx hardhat test: Run the security and logic test suite.
Update your .env file with the following:
PRIVATE_KEY: Your deployer wallet key.INFURA_API_KEY: For network connectivity.RPC_URL: Set to your Sepolia RPC provider.
Wara utilizes Gasless Signatures (EIP-712) for voting and ad rewards, ensuring that end-users never have to pay gas to interact with the protocol while maintaining full cryptographic security.
License: MIT. Developed by the YZX0.