Pledgy is a goal-staking app that gamifies personal goal-setting, fostering accountability, engagement, and rewards within a secure and transparent ecosystem. It allows individuals, known as Pledgers, to set ambitious goals and back their commitment with a penalty stake. At the same time, others, known as Challengers, can participate by either supporting the Pledger's success or betting on their failure, dynamically engaging with the platform through a bonding curve mechanism.
- Pledge Goals: Pledgers define goals with a deadline and stake penalties for failure.
- Challenge Participation: Challengers back or bet against Pledgers, with stakes determined by a bonding curve—early Challenges require lower contributions.
- Dynamic Rewards: Pledgers earn stakes and bonuses for success; Challengers share penalties for unmet goals.
- World ID Integration: Ensures secure and decentralized identity verification.
- Blockchain Transparency: All activities are recorded on-chain for full transparency.
pledgy/
├── frontend/ # Frontend application (Next.js)
│ ├── app/ # Next.js app directory
│ │ ├── api/ # API routes
│ │ └── pages/ # App pages
│ ├── components/ # React components
│ │ ├── CreatePledgy/ # Create pledge form
│ │ ├── Login/ # World ID login
│ │ └── PledgyList/ # List of pledges
│ └── config/ # Configuration files
│
└── contract/ # Smart contracts
├── contracts/ # Solidity source code
│ └── ChallengeMarket.sol # Main contract
└── scripts/ # Deployment scripts
-
Clone the repository
-
Install dependencies:
npm install
-
Start the development server:
npm next dev
-
Open your browser and navigate to
http://localhost:3000
.
- Set a goal, define a deadline, and stake an amount as a penalty for failure.
- Achieve the goal to earn back your stake plus bonuses from Challengers.
- All Pledges are transparent and recorded on-chain.
- Browse active Pledges and select a Challenge to back or bet against.
- Stake your contribution early for lower costs or later for higher stakes (bonding curve).
- If the Pledger fails, share the penalty with other Challengers.
- World ID ensures secure and privacy-focused login and identity verification for all participants.
- Frontend: Next.js, TypeScript
- Blockchain: World Chain, Solidity
- Identity Verification: World ID
- Smart Contracts: ERC-20 for staking and rewards
-
Run for the Prize
Pledger commits to running 5km daily for 30 days. Success earns rewards, failure splits stakes among Challengers. -
Code New Horizons
Complete a full-stack blockchain course in 4 weeks. Success means growth and rewards; failure benefits the Challengers. -
Crypto Saver Challenge
Save 0.1 ETH weekly for 10 weeks. Stick to the plan and earn, or skip a week and let Challengers win. -
NFT Artist Marathon
Mint one new NFT weekly for 6 weeks. Meet your creative goal to earn, or let Challengers cash in on your stakes.
🔍 Explore on Blockscout
ChallengeMarket [Contract]
This project is licensed under the MIT License.