-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2620: Add `constraints` field to `TransactionLayer` r=rvl a=jonathanknowles # Issue Number ADP-839 # Overview This PR: - [x] adds field `constraints` of type `TxConstraints` to the `TransactionLayer` record type. - [x] adds an implementation of `constraints` to `Shelley.Transaction.TransactionLayer`. - [x] adds property tests to demonstrate the correctness of `Shelley.Transaction.TransactionLayer.constraints`. # Refactoring This PR also: - [x] makes `TxSize` into a concrete type exported by `Primitive.Types.Tx`. - [x] removes `calcMinimumCoinValue` from `TransactionLayer`, as `TxConstraints.txOutputMinimumAdaQuantity` makes this redundant. # Future work This PR will make it possible to: - remove `tokenBundleSizeAssessor` from `TransactionLayer`, as `TxConstraints.txOutputMaximumSize` makes this redundant. Co-authored-by: Jonathan Knowles <jonathan.knowles@iohk.io>
- Loading branch information
Showing
12 changed files
with
666 additions
and
272 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.