@pump-fun/shared-contracts
Version:
Shared contracts for Pump.fun microservices.
24 lines (21 loc) • 726 B
text/typescript
import { oc } from "@orpc/contract";
import { TrackPnlTSchema } from "../schemas/pnl.schema";
/**
* Setup mobile P&L tracking contract - requires authentication
*/
export const setupMobilePnlTracking = oc
.route({
description: "Setup 7-day P&L tracking for authenticated mobile user (resets tracking window each time)",
method: "POST",
path: "/mobile/users/pnl-tracking",
tags: ["Mobile", "P&L"],
})
.output(TrackPnlTSchema);
export const checkPnlTrackingStatus = oc
.route({
description: "Check if authenticated user has active P&L tracking (within 7-day window)",
method: "GET",
path: "/mobile/users/pnl-tracking-status",
tags: ["Mobile", "P&L"],
})
.output(TrackPnlTSchema);