Skip to content

Version 2#19

Merged
aaboyle878 merged 19 commits intomainfrom
improve-milestone-design
May 6, 2026
Merged

Version 2#19
aaboyle878 merged 19 commits intomainfrom
improve-milestone-design

Conversation

@Ryun1
Copy link
Copy Markdown
Member

@Ryun1 Ryun1 commented May 1, 2026

  • Milestone lifecycle redesign - 4 independent boolean flags (evidence_provided, withdrawn, paused, archived)
    plus an archive model via superseded_by, replacing the old single-status enum.
  • Event-processing rewrite - every on-chain TOM event is now recorded in treasury.events even when chain-trace
    can't attribute it
  • Semantics change: "vendor contract" → "project" - the singleton on-chain PSSC (one row, shared by all 42
    projects) is now distinct from the projects (one per fund event). All paths, columns, views, struct names, and
    parser names renamed accordingly.
  • Persistent UTxO history - Postgres triggers capture every script-address UTxO into treasury.utxo_history
    synchronously with YACI Store inserts, so chain-trace doesn't fall over once UTxOs are pruned.
  • Multi-key vendor datum parser - handles the UTXO-* family's two-party vendor info constructor (KI-VND-01);
    unblocks the milestone-data backfill.
  • API consistency pass - paginated envelopes everywhere, ChainTime { unix, iso } for on-chain block times,
    structured error envelopes, ?from_time/?to_time filters on milestones, full-text ?q= search on events.
  • New UTxO endpoints (v2.1.0) - GET /api/v1/vendor-contract/utxos returns every currently-unspent UTxO at the
    PSSC labeled per project; GET /api/v1/projects/{id} now inlines current_utxos.
  • Statistics + status endpoints rebuilt with structured groupings (database, sync, chain, totals);
    events.by_type now reports real categories.
  • Documentation overhaul

@Ryun1 Ryun1 changed the title Improve milestone design Version 2 May 5, 2026
@aaboyle878 aaboyle878 merged commit e6b9e95 into main May 6, 2026
1 check passed
@aaboyle878 aaboyle878 deleted the improve-milestone-design branch May 6, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants