refactor: remove dedicated redemption contract datum decoding #576
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.








Overview
Redemption UTxOs already have the correct stake credentials in their address, so the dedicated redemption queries (which decode datums) are unnecessary. The standard asset_create/asset_spend queries catch redemption UTxOs via their cNIGHT policy ID.
We have performed limited testing on redemption UTXO observation - removing this code improves our test coverage.
Includes a v0→v1 storage migration that clears
UtxoOwnersand resetsNextCardanoPositionto trigger a full replay from genesis.Redemption contract analysis
The Redemption validator enforces that the continuing UTxO preserves its staking credential across thaws. On-chain verification of all 7,601 unspent Redemption UTxOs (as of 25/12/25) confirms:
9015199b...addr1w) — single address5986bfcc...addr1z) — one per userThe Redemption script's thaw validator (
Terms.hs:211) enforces:This means the delegation part of the UTxO address is preserved across thaws, so address-based queries are reliable without datum decoding.
🗹 TODO before merging
📌 Submission Checklist
🧪 Testing Evidence
Please describe any additional testing aside from CI:
🔱 Fork Strategy
Links