Merged
Conversation
Contributor
|
@mzparacha did you merge my second PR here? |
Contributor
Author
|
nope, just the initial version of prediction market spec |
17 tasks
- ThreadPredictionMarketCard component with status, probability bar, collateral, countdown - Prediction market API hooks (getPredictionMarkets, cancelPredictionMarket) - ViewThreadPage integration and predictionMarketUtils - Styles: ThreadPredictionMarketCard.scss Client-side only; backend/API from PR 13393 when ready. Co-authored-by: Cursor <cursoragent@cursor.com>
b8f7079 to
07c14e4
Compare
5 tasks
5 tasks
…rafts - Store initial_liquidity on prediction markets (migration, model, schema) - Include initial_liquidity in create and deploy APIs - Validate Ethereum addresses before on-chain deploy - Allow cancel only for draft markets, not active - Filter out cancelled markets and show one active market per thread - Add collateral address validation in DeployDraftPredictionMarketModal Made-with: Cursor
masvelio
approved these changes
Mar 9, 2026
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.
Description
Implements the read-only prediction market card component for displaying market information within thread views (GitHub issue #13373 / PM-7a).
Changes
Frontend Component (PM-7a)
Data Layer (PM-2, PM-5, PM-6)
Since the card component required backend data, also implemented:
Backend:
GetPredictionMarkets.query.ts: Query aggregate with pagination supportCancelPredictionMarket.command.ts: Command with thread author auth validationprediction-market.ts: tRPC API router with query and mutation endpointsexternal-router.tsto expose prediction market routesPredictionMarkettag to tRPC types enumFrontend Hooks:
useGetPredictionMarketsQuery: Fetches markets by thread_id (30s stale time)useCancelPredictionMarketMutation: Cancels market and invalidates cacheTesting
pnpm build)pnpm lint-branch-warnings)UI Features
Related
common_knowledge/Prediction-Markets.md🤖 Generated with Claude Code