feat: add gas calculator, block explorer, vulnerability scanner, and issue triage minigame#847
Open
success-OG wants to merge 1 commit into
Open
feat: add gas calculator, block explorer, vulnerability scanner, and issue triage minigame#847success-OG wants to merge 1 commit into
success-OG wants to merge 1 commit into
Conversation
…issue triage minigame
|
@success-OG is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@success-OG Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #807
closes #809
closes #814
closes #821
Summary
Implements four MVP-critical curriculum module features across the Web3 Student Lab platform, following the established lib → hook → component → route (frontend) and service → route → test (backend) architecture.
1. Gas Estimation Calculator — Open Source Contribution Trainer
/open-source/gas-calculatorPOST /api/v1/osct/gas-estimatefrontend/src/lib/open-source/gasCalculator.ts,backend/src/services/gasEstimation.service.ts2. Block Explorer Interface — Hackathon Project Idea Generator
/hackathon-ideas/explorerGET /api/v1/generator/explorer/snapshot,/explorer/search,/explorer/link/:hash/hackathon-ideashub pagefrontend/src/lib/idea-generator/blockExplorer.ts,backend/src/services/blockExplorer.service.ts3. Security Vulnerability Scanner — Blockchain Learning Simulator
/simulator/scannerPOST /api/v1/simulator/scanfrontend/src/lib/simulator/vulnerabilityScanner.ts,backend/src/services/vulnerabilityScanner.service.ts4. Issue Triage Minigame — Smart Contract Playground
/playground/triageGET /api/v1/playground/triage/scenarios,POST /triage/score,GET /triage/leaderboardfrontend/src/lib/playground/issueTriage.ts,issueTriageMachine.ts,backend/src/services/issueTriage.service.tsArchitecture
All features follow the project's data → derive → render separation:
backend/src/routes/index.tsDocumentation
docs/CURRICULUM_MODULE_FEATURES.mdwith routes, APIs, and test commandsfrontend/HACKATHON_IDEA_GENERATOR_README.mdwith block explorer sub-routeTest plan
cd frontend && npx vitest run src/lib/open-source/__tests__/gasCalculator.test.tscd frontend && npx vitest run src/lib/idea-generator/__tests__/blockExplorer.test.tscd frontend && npx vitest run src/lib/simulator/__tests__/vulnerabilityScanner.test.tscd frontend && npx vitest run src/lib/playground/__tests__/issueTriage.test.tscd backend && npm test -- --testPathPattern="gas-estimation|block-explorer|vulnerability-scanner|issue-triage"/open-source/gas-calculator— paste contract, run estimate, verify budget + strategies/hackathon-ideas/explorer— confirm live tx feed, filters, idea suggestions/simulator/scanner— scan sample contract, verify findings + score/playground/triage— complete minigame round, verify scoring flowPOST /api/v1/osct/gas-estimatewith sample Soroban source returns budget analysisPOST /api/v1/simulator/scanwith vulnerable source returns findings arrayPOST /api/v1/playground/triage/scorewith correct answers returns 100% accuracy