adds the TxWithUTxO data type, along with smart constructors, generators, and shrinkers.
uses the TxWithUTxO data type to simplify the Arbitrary instance for PartialTx.
Details
An object of type TxWithUTxO combines a transaction t with an associated UTxO set u, such that:
every input in transaction t is guaranteed to resolve to a UTxO within UTxO set u.
UTXO set umay also contain additional UTxOs that are not referenced by t.
In order to uphold the above guarantee:
the TxWithUTxO data type is defined within its own module;
the TxWithUTxO data constructor is not exported;
a pattern synonym TxWithUTxO is provided to facilitate safe pattern matching.
Motivation
This data type will be used for testing balanceTx in situations where we want to guarantee that balanceTx will not fail with ErrBalanceTxUnresolvedInputs.
Summary
This PR:
TxWithUTxO
data type, along with smart constructors, generators, and shrinkers.TxWithUTxO
data type to simplify theArbitrary
instance forPartialTx
.Details
An object of type
TxWithUTxO
combines a transactiont
with an associated UTxO setu
, such that:t
is guaranteed to resolve to a UTxO within UTxO setu
.u
may also contain additional UTxOs that are not referenced byt
.In order to uphold the above guarantee:
TxWithUTxO
data type is defined within its own module;TxWithUTxO
data constructor is not exported;TxWithUTxO
is provided to facilitate safe pattern matching.Motivation
This data type will be used for testing
balanceTx
in situations where we want to guarantee thatbalanceTx
will not fail withErrBalanceTxUnresolvedInputs
.Issue
ADP-3272