mk314k / polkadot-moonbeam-greenify-2023

Easy A Polkadot Hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polkadot-moonbeam-greenify-2023

EasyA x Polka dot Hackathon

πŸ‘¨β€πŸ’» Developers:

πŸ”Ή Kartikesh - MIT CS Major

πŸ”Ή Shubham - Northeastern Software Engineering Major

πŸ”Ή Chandler - Northeastern Business Major

πŸ”Ή Rishi - Northeastern Software Engineering Major

πŸ”Ή Swaroop - Northeastern Software Engineering Major

πŸ“š Overview:

🌱 Greenify is a Staking DAO that allows users to stake their tokens on different companies/collators. These collators have an ESG (Environmental, Social, and Governance) score, which is dynamically calculated from various sources using attributes like carbon emission, DEI, electricity consumption, and legal compliance. Based on this score, delegators who have staked tokens with a particular company/collator are rewarded if they choose a collator with a high ESG score.

🌍 Greenify aims to utilize blockchain technology to make an Environmental, Social, and Governance impact on society. The project plans to onboard major companies based on various categories and encourage them to create a highly ESG-friendly environment.

πŸ”’ Staking DAO Functionalities:

1️⃣ Delegators/Users can stake funds on the Collators. πŸ’°πŸ’Ό

2️⃣ Collators have an ESG score calculated using data collected from various sources. πŸ“ŠπŸŒ

3️⃣ Based on the ESG scores, Collators are nominated, and delegators are incentivized. πŸ†πŸ”

4️⃣ Delegators who support Collators with high ESG scores are rewarded. 🎁🌱

πŸ› οΈ Tech Stack:

1️⃣ Moonbeam Staking Pre-Compile πŸŒ™β›“οΈ

2️⃣ Solidity Smart Contract πŸ§ πŸ’‘

3️⃣ Scaffold ETH (to make the repository visually appealing) πŸ—οΈπŸ–ŒοΈ

🏒 Architecture of the Staking DAO System:

1️⃣ Delegators/User Interface:

β€’ Provides a user-friendly interface for delegators to interact with the system.

β€’ Allows delegators to stake their tokens on Collators.

β€’ Displays information about the Collators and their ESG scores.

2️⃣ Collator Management:

β€’ Collects data from various sources to calculate the ESG score of each Collator.

β€’ Updates the ESG scores periodically based on the latest data.

β€’ Maintains a database of Collators and their corresponding ESG scores.

3️⃣ Staking Contract:

β€’ Implements the staking functionality, allowing delegators to stake their tokens on Collators.

β€’ Manages the delegation and withdrawal of tokens.

β€’ Calculates and distributes rewards to delegators based on the ESG scores of the Collators they have staked with.

4️⃣ Rewards Distribution:

β€’ Determines the reward distribution mechanism based on the ESG scores.

β€’ Calculates the rewards earned by delegators.

β€’ Distributes rewards to delegators' wallets accordingly.

5️⃣ Blockchain Layer:

β€’ Utilizes Moonbeam Staking Pre-Compile, a blockchain platform compatible with Ethereum, to handle staking operations and smart contracts.

β€’ Provides a secure and decentralized environment for executing transactions and storing data.

6️⃣ Data Sources:

β€’ Integrates with various external data sources to gather information for calculating the ESG scores of Collators.

β€’ Data sources can include carbon emission databases, DEI reports, electricity consumption records, and legal compliance information.

7️⃣ User Wallets:

β€’ Delegators manage their tokens and interact with the system through their individual wallets.

β€’ Wallets enable users to stake, withdraw, and receive rewards.

8️⃣ Frontend/UI:

β€’ Implements a visually appealing and intuitive user interface.

β€’ Connects with the backend system to display Collator information, staking options, and reward details.

β€’ Allows users to interact with the system seamlessly.

The architecture above outlines the key components and their interactions in the Staking DAO system, enabling delegators to stake their tokens, Collators to be evaluated based on ESG scores, and rewards to be distributed accordingly.

About

Easy A Polkadot Hackathon

License:MIT License


Languages

Language:CSS 84.0%Language:JavaScript 13.2%Language:Solidity 1.7%Language:Shell 0.7%Language:Dockerfile 0.2%Language:HTML 0.1%Language:TypeScript 0.1%Language:Less 0.1%