feat: expose deposit field in accounts and DReps endpoints#453
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
be720c2 to
82b25bc
Compare
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>
4 tasks
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
a588a1b to
b16db1a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
depositfield to two per-event endpoint responses to expose the stake key / DRep deposit paid at registration. Matching backend SQL changes inblockfrost-backend-ryoare already done; this is the spec side.Schema changes
src/schemas/accounts/account_registration_content.yaml— added per-rowdeposit(string, nullable, required).nullonderegisteredrows.src/schemas/governance/drep_updates.yaml— added per-rowdeposit(string, nullable, required).nullonderegisteredandupdatedrows (mirrors stake-account registrations semantics).Test plan
depositis non-null only onregisteredrows🤖 Generated with Claude Code