This repository contains the smart contracts for deBlog, a decentralized blogging platform. It includes contracts for user profiles, blogging functionalities, and tipping mechanisms, written in Solidity and deployed using Hardhat.
Handles:
- User registration
- Profile editing
- Tip wallet management
Manages:
- Blog post creation
- Post count updates linked to user profiles
- Blog post editing
- Comment functionality
Handles:
- Tip distribution to content creators
.
├── contracts/ # Solidity contracts
│ ├── Blog.sol
│ ├── UserProfile.sol
│ └── Tipping.sol
├── scripts/ # Deployment scripts
│ └── deploy.js
├── artifacts/ # Build output (ignored in git)
├── cache/ # Cache (ignored in git)
├── .env # Environment variables (not tracked)
├── .env.example # Environment variable template
├── .gitignore
├── hardhat.config.js
├── package.json
└── README.md
npm installcp .env.example .envUpdate .env with your values:
PRIVATE_KEY=your_wallet_private_key
RPC_URL=https://your_rpc_provider
NETWORK=network_name
npx hardhat compilenpx hardhat run scripts/deploy.js --network <network_name>This will deploy
UserProfile,Blog, andTippingcontracts.
Use Base Sepolia Explorer or similar tools depending on your deployment network.
npx hardhat verify --network <network_name> <contract_address> <constructor_args>