A decentralized knowledge sharing platform built on the Stacks blockchain using Clarity smart contracts. This platform enables users to create, share, and reward valuable knowledge content while building reputation through community engagement.
- Article Creation: Users can publish knowledge articles with titles, content hashes, and categories
- Voting System: Community-driven upvote/downvote mechanism for content quality assessment
- Reward System: STX-based rewards for valuable content creators
- Reputation System: Dynamic reputation scoring based on contributions and community feedback
- Category Management: Organized content categorization with admin controls
- Content Moderation: Article locking capabilities for authors and administrators
- User Profiles: Track reputation, article count, total rewards, and join date
- Article Management: Comprehensive article metadata with voting and reward tracking
- Category System: Pre-defined categories (technology, science, education, business, general)
- Platform Economics: Configurable platform fees and minimum stake requirements
articles: Stores article metadata, votes, and reward poolsuser-profiles: User reputation and statisticsarticle-votes: Tracks individual user votes per articlearticle-rewards: Records reward contributionscategories: Category status and article counts
- Platform fee: 5% (configurable by owner)
- Minimum stake: 1 STX (configurable by owner)
- Error codes for comprehensive error handling
get-article(article-id): Retrieve article detailsget-user-profile(user): Get user profile informationget-article-vote(article-id, voter): Check user's vote on articleget-category-info(category): Get category status and statsget-platform-stats(): Platform-wide statistics
create-article(title, content-hash, category): Publish new article (+10 reputation)vote-article(article-id, is-upvote): Vote on articles (+5/-2 reputation to author)lock-article(article-id): Lock article from further interactions
reward-article(article-id): Send STX rewards to article authors (+20 reputation to author, +5 to contributor)
toggle-category(category, is-active): Enable/disable categories (owner only)update-platform-settings(new-fee, new-min-stake): Update platform economics (owner only)
- Stacks blockchain testnet/mainnet access
- Clarity CLI or compatible deployment tool
- STX tokens for deployment and testing
- Clone this repository
- Deploy using Clarity CLI: ```bash clarinet deploy --testnet ```
- Initialize with default categories (automatically done on deployment)
(contract-call? .knowledge-platform create-article
"Introduction to Blockchain"
"QmHash123..."
"technology")