Skip to content

thelezend/codecracy

Repository files navigation

Codecracy

Website: Codecracy
Devnet Address: j8RWHX7RcLfWxkimpbgrSv6cPjUdpdGvjj3n3ikd53S

Overview

Codecracy is a decentralized protocol built on Solana, developed as part of the Q4 2024 Turbin3 Cohort Capstone Project. The protocol incentivizes code contributions by enabling transparent tracking, voting, and reward mechanisms for developers.

Inspired by the principles of democracy, Codecracy emphasizes fairness, transparency, and equality in software development. It leverages Solana's cutting-edge blockchain features, such as Address Lookup Tables, for scalable and efficient team management without requiring centralized backends.


Program Instructions

Protocol Management

Project Management

  • initialize_project: Create a new project, define metadata, and authorize team members.
  • close_project: Deactivate and archive an existing project.
  • change_admin: Transfer administrative rights to another team member.

Member Management

Voting and Rewards

  • start_poll: Launch a voting poll to evaluate a specific contribution.
  • cast_vote: Submit a vote on an active poll.
  • claim: Claim rewards based on the contribution score determined through voting.

Architecture and Technical Highlights

State Management

The program employs Program Derived Address (PDA) accounts to manage protocol state, ensuring robust, decentralized, and transparent data storage. Detailed implementations and schemas are available in the state directory of the program's codebase.

Efficient Team Management

Using Solana's Address Lookup Tables, the protocol allows dynamic team member updates, ensuring scalability without needing backend infrastructure.

Security and Reliability

The protocol includes comprehensive access control mechanisms, ensuring only authorized actions can be performed. It mitigates risks associated with tampering or unauthorized access to sensitive operations.


Building and Testing

To build and run tests for Codecracy, follow these steps:

  1. Install dependencies:

    yarn install
    anchor test

Test Coverage

The test suite thoroughly validates:

  • Core functionality of all program instructions.
  • Role-based access control and permission management.
  • Edge cases and potential security vulnerabilities.
  • Robust handling of state transitions.

Releases

No releases published

Packages

No packages published

Languages