docs(language): automatic reference inputs for ref-backed policies#56
Merged
Conversation
…licies A policy declared with a `ref` field, when used as an input's `from` or as a mint/burn policy, now automatically contributes its `ref` UTxO to the transaction's reference inputs. Document this in the policies and txs guides, and distinguish it from inline `script` bytes (which still require a `cardano::*_witness` block). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Clarify that the `reference` block is the explicit way to attach a reference script (when not using a ref-backed policy), not only a way to read oracle datums, and that reference inputs are deduplicated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Documents new behavior shipped in tx3#332: a policy declared with a
reffield, when used as an input'sfromor as amint/burnpolicy, automatically contributes itsrefUTxO to the transaction's reference inputs (deduped).Changes
language/policies.md— rewrote "Pairing a policy with a witness" into two clear paths: reference scripts (ref, automatic) vs inline scripts (cardano::*_witness, explicit), with a worked example. Clarified thereffield-table row.language/txs.md— noted on the inputfromfield and themint/burnsection that a ref-backed policy's reference-script UTxO is attached automatically.Accuracy notes
ref(reference scripts) only — inlinescriptbytes still need a witness block.🤖 Generated with Claude Code