Skip to content

feat: expose deposit field in accounts and DReps endpoints#453

Merged
slowbackspace merged 5 commits into
masterfrom
feat/deposit-fields
May 12, 2026
Merged

feat: expose deposit field in accounts and DReps endpoints#453
slowbackspace merged 5 commits into
masterfrom
feat/deposit-fields

Conversation

@slowbackspace
Copy link
Copy Markdown
Contributor

@slowbackspace slowbackspace commented May 11, 2026

Summary

Adds a deposit field to two per-event endpoint responses to expose the stake key / DRep deposit paid at registration. Matching backend SQL changes in blockfrost-backend-ryo are already done; this is the spec side.

Schema changes

  • src/schemas/accounts/account_registration_content.yaml — added per-row deposit (string, nullable, required). null on deregistered rows.
  • src/schemas/governance/drep_updates.yaml — added per-row deposit (string, nullable, required). null on deregistered and updated rows (mirrors stake-account registrations semantics).

Test plan

  • Verify backend response shape matches new schema for both endpoints
  • Verify deposit is non-null only on registered rows
  • Sanity-check the rendered docs

🤖 Generated with Claude Code

Add deposit field to:
- /accounts/{stake_address}
- /accounts/{stake_address}/registrations
- /governance/dreps/{drep_id}
- /governance/dreps/{drep_id}/updates

Surfaces the stake key / DRep deposit paid at registration. For
accounts endpoints, falls back to the key_deposit protocol parameter
at the registration epoch on rows that predate db-sync's
stake_registration.deposit column.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openapi Ready Ready Preview, Comment May 12, 2026 7:29am

Request Review

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Keep deposit only on per-event endpoints:
- /accounts/{stake_address}/registrations
- /governance/dreps/{drep_id}/updates

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Return null for deregistered/updated rows to mirror stake account
registrations behavior.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@slowbackspace slowbackspace force-pushed the feat/deposit-fields branch from a588a1b to b16db1a Compare May 12, 2026 07:28
@slowbackspace slowbackspace merged commit 07e27ee into master May 12, 2026
6 checks passed
@vladimirvolek vladimirvolek deleted the feat/deposit-fields branch May 20, 2026 16:24
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.

1 participant