Welcome, Initiate.
RitualChain is a mystical Web3 ecosystem where contributors mint MeeBots, stake MCB tokens, and celebrate every ritual on-chain. This repository bridges the gap between the ethereal (frontend) and the immutable (blockchain).
| Contract | Path | Purpose |
|---|---|---|
| MeeToken (MCB) | contracts/MeeToken.sol |
The native ERC20 token for staking & rewards. |
| MeeBotNFT | contracts/MeeBotNFT.sol |
Mint MeeBot NFTs with custom prompt metadata. |
| MeeBotStaking | contracts/MeeBotStaking.sol |
Stake MCB to earn rewards/energy. |
npm installnpx hardhat compileStart your local node:
npx hardhat nodeIn a new terminal, deploy the contracts:
npx hardhat run scripts/deploy.ts --network localhostThe spirits will automatically update .env or src/constants/addresses.ts.
To reveal your contracts on the explorer (Etherscan/RitualScan):
npx hardhat run scripts/verify.ts --network localhostThe frontend is located in src/, powered by React, Wagmi, and RainbowKit.
npm run dev- Network Switcher: Automatically detects if you stray from RitualChain and offers a portal back.
- Genesis Ritual: Upload an image to IPFS (via Pinata), generate metadata, and mint a MeeBot NFT.
- Staking Altar: Stake MCB tokens to earn passive yield.
- Event Oracle: Real-time log feed of all chain activities.
- Celebration Engine: Confetti and Sound Effects for every on-chain interaction.
- Minting: Plays a magical chime (
playMint). - Staking: Plays an energy charging sound (
playStake). - Claiming: Plays a retro coin collection sound (
playClaim).
- User selects an image and enters a prompt.
- Frontend uploads image to Pinata Gateway.
- Frontend constructs JSON metadata with the image hash.
- Frontend uploads JSON to Pinata.
- Smart Contract mints NFT with the IPFS Token URI.
-
Minting:
- Go to Genesis Ritual.
- Enter a theme (e.g., "Neon Paladin").
- (Optional) Upload a visual representation.
- Confirm TX -> Watch the confetti & Hear the chime.
-
Staking:
- Go to Staking Altar.
- Approve MCB tokens for use.
- Stake an amount -> Watch your balance grow.
-
Claiming:
- Harvest your rewards when the energy is high.
Crafted with 🪄, ⚡, and 🎉 for the RitualChain community.