RogueWave 00f9a96286 feat(phase2): close-empty-ATA flow — build/decode/preview/sign/confirm/receipt
- @pyre/solana: buildCloseEmptyAccountsTx (UNSIGNED v0 tx; re-validates each
  account on-chain — owner==wallet, balance==0, correct program, not
  frozen/delegated, Token-2022 EMPTY_CLOSE_ONLY via §7.1; rejects whole build on
  any ineligible account), simulateTransaction, decodeTransaction. Rent
  destination + close authority + fee payer all pinned to the wallet.
- @pyre/api: POST /api/build/close-empty (server re-validates, 400 on ineligible)
  and POST /api/receipt (on-chain verified: meta.err==null, signer==wallet, rent
  from balance delta; lists only closes whose destination==wallet).
- @pyre/web: select empty accounts → build → CLIENT-SIDE decode+match (7 checks:
  feePayer/all-closeAccount/dest==wallet/closed-set==selected==preview) gates
  signing → sign in wallet → send → confirm → on-chain receipt w/ explorer link.

Built by 3 agents, reviewed by 2 audits (security: SOUND — no critical/high;
integration: SHIP). Applied audit fixes: receipt destination check, doc/lint
cleanup. typecheck 8/8, core 85, solana 19, web build green. Live-verified: the
API refuses to build a close tx for a non-empty account (400). buildBurnTx
remains a Phase-3 stub.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 04:49:30 +00:00

PYRE / Prometheus Protocol

Burn the dead. Feed the PYRE. Claim the Spawn.

Links: feedthepyre.com · repo: git.lumiai.dev/RogueWave/pyre · dev status: feedthepyre.com (status dashboard)

PYRE is a Solana wallet-cleanup and ritual meme-rebirth protocol. You connect a wallet; PYRE scans your SPL token accounts, classifies them conservatively, and helps you safely close empty associated token accounts (ATAs) and burn obvious junk — returning recovered rent to you and producing a clear, shareable receipt. A later layer (Prometheus) uses AI to generate a meme-token "Spawn" from burned remnants for manual, human-reviewed launch.

The first emotional win is simple: "PYRE cleaned my wallet and returned SOL I forgot was trapped in token accounts."

What PYRE is — and is not

PYRE is: wallet cleanup, token-scrap transmutation, recovered-rent return, transparent contribution accounting, AI-generated meme rebirth, and ritual entertainment.

PYRE is NOT an investment product, yield mechanism, trading bot, guaranteed-profit system, or protected launch mechanism. It makes no profit promises.

Trust guarantees: PYRE never holds your private keys, never signs custodially, and always shows a decoded transaction preview that matches what you sign. Recovered rent goes back to your wallet by default. Anything the system cannot safely reason about is skipped.

The burner flow at a glance

Connect wallet
 → scan token accounts
 → classify accounts (closeable / burnable / transmutable / protected / unsupported)
 → preview the transaction (accounts, rent, destination, fees, warnings)
 → you sign locally in your wallet
 → recovered rent returns to you
 → see your PYRE receipt

Roadmap

  • v0.1 — Burner / Cleaner (current focus): wallet connect, scan, classify, close empty ATAs, optional junk burn, rent return, receipt.
  • v0.2 — Prometheus Meta Mixer: AI generation of a Spawn identity from burned/cleaned token context (candidate package only — no auto-launch).
  • v0.3 — Manual Pump.fun Workflow: human reviews the Spawn package and manually creates the token; PYRE records mint, URL, metadata, and tx.
  • v0.4 — Essence Ledger: record net SOL value of safe scrap swaps as Essence per wallet/round (database-only, experimental, no claim promises).
  • v1.0 — PYRE Core Program: custom Solana (Anchor) program for trust-critical accounting — rounds, Essence vault, contribution receipts, Spawn distribution, claims, and refunds.

Repo structure

apps/
  web/        Next.js user app (wallet connect, scanner, preview, receipt)
  api/        Fastify HTTP API (scan, classify, build tx, receipt, generation)
  worker/     BullMQ background worker (metadata, AI, safety, confirmations)
packages/
  core/       shared types, classification enums, risk rules, schemas
  solana/     token-account parsing, close/burn tx builders, decoder, simulation
  prometheus/ AI prompt templates, meta mixer, output parser, safety checks
  db/         database schema and migrations
  config/     shared config & env loading
programs/
  pyre-core/  future Anchor program (v1.0)
docs/         design, architecture, security, classification

Quick start

This is a scaffold. The commands below are not yet runnable — the workspace package definitions and source are still being built out.

Prerequisites: Node 22, pnpm, PostgreSQL, Redis.

cp .env.example .env   # then fill in values (no private keys — by design)
pnpm install
pnpm dev               # (once apps are implemented)

Docs

See docs/ — start with docs/PYRE_MVP_DESIGN.md (the canonical design), then ARCHITECTURE.md, SECURITY.md, and TOKEN_CLASSIFICATION.md.

Description
No description provided
Readme 516 KiB
Languages
TypeScript 72%
Shell 9.5%
HTML 7.1%
CSS 6%
JavaScript 5.4%