Skip to content
@Descipline

Descipline

An open challenge arena where discipline is rewarded.

Descipline

An open Challenge Arena where discpline is rewarded

Put money on the line, prove your success, and earn rewards β€” all trustless, transparent, and on-chain.


🌟 Overview

  • Descipline is a decentralized platform that turns self-discipline into real rewards.
  • Users can create or join time-based or usage-based challenges, staking funds before a deadline.
  • Winners β€” verified via merkle proof verification β€” reclaim their stake and share forfeited funds from those who didn’t succeed.
  • Attestation - backed by Solana Attestation Service

Key features:

  • Trustless Escrow: All funds locked in Solana smart contracts.
  • Transparent Verification: Proofs of success via Solana Attestation Service.
  • Open Arena: Anyone can create or join challenges.
  • Fair Rewards: Stake from non-completers distributed to winners.

πŸ›  How It Works

High-level flow:

  1. Create Challenge
    • Initiator sets challenge details (goal, stake amount, deadline).
    • Contract stores challenge data on-chain.
    • Backend integrates with Solana Attestation Service to set credential & schema storage.

1

  1. Join Challenge
    • Challenger deposits SPL tokens before deadline.
    • If staking SOL, frontend auto-wraps to wSOL.

2

  1. Attestation & Winner Resolution
    • At challenge end, attestor signs attestation.
    • Backend indexes winners, stores results in DB, uploads to Arweave.
    • Merkle root of winner list stored on-chain for verification.

3

  1. Claim Rewards
    • Winners submit Merkle proof to claim stake + share of forfeits.

4


πŸ“‚ Project Structure

  • frontend repository
    descipline-frontend/
    │── public/
    │── src/
    │── .gitignore
    │── README.md
    │── babel.config.js
    │── jsconfig.json
    │── package-lock.json
    │── package.json
    │── vue.config.js
    
    
  • smart contracts repository
    • struct

      descipline-smart-contracts/
      │── programs/               # smart contract(s)
      β”‚   └── descipline/          
      β”‚       β”œβ”€β”€ src/             
      β”‚       β”œβ”€β”€ Cargo.toml       
      β”‚       └── Anchor.toml      
      β”‚
      │── scripts/                # Helper scripts
      │── tests/                  # Integration tests
      │── README.md
      
    • run

      yarn manual:build
      anchor deploy
      yarn codama-idl
      yarn test
      

πŸ”§ Dev Tools

Popular repositories Loading

  1. descipline-smart-contracts descipline-smart-contracts Public

    TypeScript 2

  2. descipline-frontend descipline-frontend Public

    TypeScript 1 1

  3. .github .github Public

Repositories

Showing 3 of 3 repositories

Top languages

Loading…

Most used topics

Loading…