The Sentiment-Influenced Voting System is an innovative blockchain-based project that redefines traditional voting by introducing emotion-driven decision dynamics. Built on the Flow Blockchain, this s
A decentralized sentiment-based voting system built on the Flow Blockchain, where real-time sentiment analysis influences the weight of each vote.
Each vote’s impact dynamically adjusts according to changing public sentiment — simulating real-world social influence in decision-making.
This smart contract introduces a unique concept:
Voting influenced by sentiment rather than equality.
Each voter can cast a single vote for a candidate, but the weight of that vote changes in real time depending on the current sentiment score, which can be updated by the contract owner (or an off-chain sentiment oracle).
Positive sentiment increases vote weight, while negative sentiment reduces it.
Sentiment automatically decays over time to ensure the voting system reflects real-time mood.
Blockchain: Flow Testnet
Smart Contract Language: Solidity (Flow-compatible wrapper or hybrid deployment)
Sentiment Mechanism: On-chain weighted scoring logic
Interaction Mode: No imports, no constructors, no input fields — parameterless and self-contained design.
Deployed Contract Address:
0xA6aB8F707006ef5385802D890D1e0C0C732DABe6
You can view and interact with the contract using the Flow Testnet explorer.
Contract / Component | Purpose | Network | Address |
---|---|---|---|
| Core voting logic (sentiment-based) | Flow Testnet |
|
| Simulates real-time sentiment updates | Flow Testnet |
|
| External feed mock for testing | Flow Testnet |
|
💡 Note: Secondary contract addresses are for mock or test integration — may vary across redeployments.
✅ Dynamic Vote Weight: Vote strength adapts to sentiment score.
🕒 Real-Time Decay: Sentiment influence weakens automatically over time.
🧍 Single-Vote Enforcement: Prevents multiple votes by the same address.
🔐 Oracle-Controlled Updates: Only owner can adjust sentiment levels.
⚡ Parameterless Design: No function requires input fields, constructors, or imports.
Function | Description |
---|---|
| Increases global sentiment score by +1 |
| Decreases global sentiment score by -1 |
| Resets sentiment score to neutral (0) |
| Parameterless vote functions for each candidate |
| View total votes for each candidate |
| Check what your vote weight would be if you voted now |
DAO Governance Systems – sentiment-weighted community decisions
Social Platforms – integrating public emotion into polls
Market or Trend Predictions – reflecting collective confidence dynamically
Integration with real-time AI sentiment APIs (e.g., Twitter, news, or token data)
Multi-round or category-based voting sessions
Off-chain to on-chain sentiment oracle using Flow Cadence script
Avni Khattar
B.Tech CSE | Blockchain & Smart Contract Developer
Project built for learning and experimentation with Flow Testnet deployments.
This project is licensed under the MIT License.
Feel free to use, modify, and build upon it with proper attribution.
I learnt a lot about solidity.