Skip to content

Commit 021604b

Browse files
Update src/Ledger/Conway/Specification/Transaction.lagda.md
plus final cleanup of prose Co-authored-by: Carlos Tomé Cortiñas <carlos.tome-cortinas@iohk.io>
1 parent 56cb7ec commit 021604b

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

src/Ledger/Conway/Specification/Transaction.lagda.md

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,30 @@ unquoteDecl DecEq-Tag = derive-DecEq ((quote Tag , DecEq-Tag) ∷ [])
3838
```
3939
-->
4040

41-
Some key ingredients in the transaction body are:
41+
Here are some key components of the transaction body.
4242

43-
+ A set `txIns`{.AgdaField} of transaction inputs, each of which
44-
identifies an output from a previous transaction. A transaction input
45-
consists of a transaction id and an index to uniquely identify the
46-
output.
43+
+ `txIns`{.AgdaField} denotes a set of transaction inputs; each input consists of a
44+
transaction id and an index that points to a unique output from a previous transaction.
4745

48-
+ An indexed collection `txOuts`{.AgdaField} of transaction outputs. The
49-
`TxOut`{.AgdaFunction} type is an address paired with a coin value.
46+
+ `txOuts`{.AgdaField} denotes an indexed collection of transaction outputs; each output
47+
consists of an address and a coin value.
5048

51-
+ A transaction fee, `txFee`{.AgdaField}, which will be added to the fee pot.
49+
+ `txFee`{.AgdaField} denotes a transaction fee to be added to the fee pot.
5250

53-
+ The hash of the serialized form of the transaction that was included
54-
in the block.
51+
+ `txId`{.AgdaField} denotes the hash of the serialized form of the
52+
transaction---the form in which the transaction is included in a block.
5553

54+
In addition to these, the Conway era introduces some new fields to the transaction body.
5655

57-
Ingredients of the transaction body introduced in the Conway era are the
58-
following:
56+
+ `txGovVotes`{.AgdaField} denotes the list of votes for governance actions.
5957

60-
+ `txGovVotes`{.AgdaField}, the list of votes for goverance actions;
58+
+ `txGovProposals`{.AgdaField} denotes the list of governance proposals.
6159

62-
+ `txGovProposals`{.AgdaField}, the list of governance proposals;
60+
+ `txDonation`{.AgdaField} denotes the amount of `Coin`{.AgdaFunction} to donate to
61+
treasury, e.g., to return funds to the treasury after a governance action.
6362

64-
+ `txDonation`{.AgdaField}, the amount of `Coin`{.AgdaFunction} to donate to
65-
treasury, e.g., to return funds to the treasury after a governance action;
66-
67-
+ `currentTreasury`{.AgdaField}, the current value of the treasury. This
68-
field serves as a precondition to executing Plutus scripts that access
69-
the value of the treasury.
63+
+ `currentTreasury`{.AgdaField} denotes the current value of the treasury; this serves
64+
as a precondition to executing Plutus scripts that access the value of the treasury.
7065

7166

7267
## Transaction Types

0 commit comments

Comments
 (0)