Commit c660581
* Add helpers for grouping top-level guard requests
* Fix prose explaining CIP 118.
+ Remove contradiction between "ref inputs may refer to earlier tx outputs in the batch" vs "all inputs must exist before applying any tx in the batch." The new text punts the exact constraint to the UTxO rules (where it belongs).
+ Fix Plutus bullet (old "nor earlier versions" reads like "no Plutus at all").
+ Align fees with current Agda (`txFee : InTopLevel …`), but leave room for later CIP-driven updates.
* update CHANGELOG
* Update src/Ledger/Dijkstra/Specification/Transaction.lagda.md
Co-authored-by: Copilot <[email protected]>
* change txRequiredTopLevelGuards type from list to set
agreeing with Carlos' observation/suggestion
* changed nomenclature
Agreeing with Carlos' suggestion to avoid "request."
* convert code comments to (literate) documentation
* Add `requiredTopLevelGuardsSatisfied` predicate.
* Add initial versions of Utxo and Utxow modules
+ a minimal `UTXOS` rule as a stub/hook (so `UTXO` can call something),
+ a minimal `UTXO` rule with just the new phase-1 premise (plus an explicit "calls UTXOS"),
+ a minimal `UTXOW`; just a wrapper over `UTXO` for now.
* Make `ScriptPurpose.Guard` carry a `Credential`
Key idea:
+ Keep `txGuards` as a set **for now**.
+ Define an ordered view `guardsList : List Credential` via `setToList`.
+ Make `indexOfGuard` operate on that list.
+ Let `rdptr` compute the `Ix` using `indexOfGuard`.
For the "required top-level guards requested by subTxs" (i.e., `txRequiredTopLevelGuards` requests), we don't need a new ScriptPurpose constructor yet, because:
+ phase-1 ensures those requested credentials are contained in top-level `txGuards`
+ the later work (#1004 / #1006) will decide how to construct TxInfo / datum arguments for running those guard scripts batch-wide
---------
Co-authored-by: Copilot <[email protected]>
1 parent cd76009 commit c660581
File tree
2 files changed
+28
-22
lines changed- src/Ledger/Dijkstra/Specification
- Script
2 files changed
+28
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 21 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments