feat: scaffold frontend pnpm monorepo with apps (admin, web) and shared packages (types, api-client, ui)

This commit is contained in:
Bot
2026-08-30 23:55:17 +08:00
parent 874b421f39
commit 1e9b9bd0b2
11 changed files with 193 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"name": "@wtfx/types",
"version": "1.0.0",
"main": "./src/index.ts",
"types": "./src/index.ts"
}
+42
View File
@@ -0,0 +1,42 @@
export interface Market {
questionId: string;
marketAddress: string;
title: string;
imageUri?: string;
outcomeNames: string[];
status: 'Trading' | 'Graduated' | 'Finalised' | 'Refunded';
tierId: number;
totalMarketCap: string;
timestampEnd: number;
}
export interface Order {
id: string;
marketAddress: string;
outcomeIndex: number;
side: 'BUY' | 'SELL';
amount: string;
price: string;
status: 'OPEN' | 'FILLED' | 'CANCELLED';
createdAt: number;
}
export interface Position {
marketAddress: string;
tokenId: string;
outcomeName: string;
shares: string;
avgCost: string;
}
export interface GovernanceConfig {
creatorShare: string;
centralWallet: string;
defaultFeeRate: string;
disputeWindow: number;
tiers: Record<number, {
thresholdMcap: string;
thresholdMaxSupply: string;
disputeWindow: number;
}>;
}