Re-prioritizes the core loop (sell→feed→close; burn for unsellable only) per
user direction. READ-ONLY this increment — quotes + risk flags only, no swap
build/sign, no funds moved.
- docs: Rev 3 — §5 scope, §6 TRANSMUTABLE active, new §6.1 (Jupiter Ultra
routing incl. pump.fun pre/post-graduation + Token-2022; 3rd-party-swap trust
model = simulate + lamports-delta ≥ min-out + sole-signer + no
SetAuthority/Approve/bad-CloseAccount; Shield; price-impact/slippage/dust
guards; Essence model 1 = opt-in off-chain tally, no custody).
- @pyre/core: SellInfo type + TokenAccountDto.sell.
- @pyre/api: keyless Jupiter client (lite-api: /swap/v1/quote + /ultra/v1/shield);
bounded /api/scan enrichment — upgrades INCINERATE_ONLY→TRANSMUTABLE when a
worthwhile route exists; dust gate (proceeds ≤ fee+rent → keep burn); price
impact >10% blocks; graceful degrade if Jupiter down.
- @pyre/web: shows "Sellable for ~X SOL", price impact, Shield chips; disabled
"Sell & feed the PYRE (soon)" CTA (execution is the next, audited step).
Tracker: Phase 6 "swap candidate detection" + "route quote preview" done.
typecheck 8/8, core 85, solana 19, web build green.
LIVE FINDING: both pump.fun tokens ARE routable via Jupiter (so no pump.fun
engine needed) but quote ~0.0000097 SOL each — far below their ~0.002 SOL rent,
so the dust gate correctly keeps them INCINERATE_ONLY ("not worth selling").
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pyre/core
Shared types and business logic for PYRE / Prometheus Protocol.
Purpose
The canonical home for cross-cutting type definitions and (eventually) pure
business logic shared by apps/* and the other packages/*. Per §13 its
responsibilities are:
- Classification enums —
TokenClassification(§6). - Risk rules — conservative safety-rule types/constants (§7). Placeholder.
- Shared DTOs — request/response shapes for the HTTP API (§14).
- Receipt schema —
CleanupReceipt(§8, §15). - Prometheus I/O schema —
PrometheusInput/PrometheusOutput(§9).
This package carries real type definitions but no application logic in the skeleton.
Modules
src/classification.ts—TokenClassificationenum.src/dto.ts— API request/response DTOs.src/receipt.ts— cleanup receipt schema.src/prometheus.ts— Prometheus meta-mixer input/output.src/risk.ts— risk-rule placeholder.
TODO
- Define concrete risk-rule identifiers, threshold shapes, and pure evaluators.
- Tighten DTO shapes flagged
TODOonce the scan/classify/build pipeline lands. - Define the concrete token
metadataJSON shape used by receipts and Prometheus.