Skip to content

Hlpok1lad/NodeJackPot

Repository files navigation

⚔️ NodeJackPot

Secure Quadratic Elimination Protocol

A provably-fair, Viking-themed elimination raffle powered by Vyper 0.4.3 & Chainlink VRF 2.5.

Arbitrum Chainlink Vyper License: MIT

ArchitectureFrontendSecurity


🏛️ Executive Summary

NodeJackPot is a high-stakes elimination engine where players compete for a multi-tiered prize pool. The protocol utilizes Quadratic Pricing to ensure a democratic battlefield, preventing whale domination while maintaining a premium, "Cyber-Nordic" user experience.

  • Quadratic Entry: Cost scales with the square of tickets owned: T² × Base.
  • VRF Eliminations: Provably-fair random selection powered by Chainlink.
  • Tiered Loot: 70/20/10 split between the final 3 survivors.
  • Immutable Trust: Built with security-first Vyper and pull-payment vesting.

🧬 Technical Specification

Component Specification
Base Price 0.001 ETH
Max Capacity 1,000 Vikings
Min Entrants 10 Vikings
Elimination Interval 2 Hours
Vesting Delay 24 Hours
State Machine 6-Phase Lifecycle
Randomness Chainlink VRF 2.5
Development Moccasin Framework

🛠️ Repository Structure

NodeJackPot/
├── contracts/          # Vyper 0.4.3 Smart Contracts
├── frontend/           # Next.js 15 + Wagmi + Framer Motion
├── script/             # Python Deployment & Management Scripts
├── tests/              # Stateful Fuzzing & Unit Test Suites
├── ARCHITECTURE.md     # Deep dive into protocol mechanics
└── moccasin.toml       # Environment & Tooling configuration

🧪 Testing & Verification

NodeJackPot maintains 100% Branch Coverage using a multi-layered testing strategy.

Test Suites

  • Unit: 45+ tests validating entry math and state transitions.
  • Integration: End-to-end flow from entry to final payout.
  • Stateful Fuzzer: 6,000+ operations via Hypothesis to verify invariants.
# Run full test suite
mox test --coverage

🔐 Security Audit Log

The protocol is currently in "Community Alpha" phase. Formal audits are pending.

Audit ID Auditor Status Report
KHM-01 Internal (KhomDev) ✅ PASSED View Summary
KHM-02 Community Peer Review ⏳ PENDING --

Core Security Features

  1. Pull-Payment Vault: Eliminates reentrancy vectors on prize distribution.
  2. 24H Vesting: Protects against flash-loan and front-running manipulations.
  3. Round-ID Isolation: Prevents legacy state from interfering with fresh rounds.
  4. Coordinator Guard: Only authorized VRF nodes can fulfill randomness.

🚀 Quickstart for Developers

  1. Install Dependencies:
    uv sync
    cd frontend && npm install
  2. Compile & Test:
    mox compile
    mox test
  3. Local Development:
    # Start local node
    anvil
    # Run frontend
    cd frontend && npm run dev

Built with ⚔️ by KhomDev

Disclaimer: This is experimental software. Use at your own risk.

---

📄 License


Built with 🐍 by KhomDev

About

NodeJackPot is a secure elimination engine built with Vyper and Python. It utilizes Chainlink VRF 2.5 for verifiable randomness, quadratic entry logic to ensure fairness, and a vault-based pull-payment system with time-locked vesting. Engineered for security via Vyper’s restrictive, audit-friendly architecture.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors