cardano-foundation / cardano-wallet

HTTP server & command-line for managing UTxOs and HD wallets in Cardano.
Apache License 2.0
758 stars 213 forks source link

[ADP-3272] Use `Write.UTxO era` type in `Wallet` test type. #4543

Closed jonathanknowles closed 3 months ago

jonathanknowles commented 3 months ago

Issue

ADP-3272

Description

This PR redefines the test Wallet type in terms of the Write.UTxO era type instead of the primitive UTxO type:

- data Wallet     =
+ data Wallet era =
-      Wallet UTxOAssumptions  UTxO      AnyChangeAddressGenWithState
+      Wallet UTxOAssumptions (UTxO era) AnyChangeAddressGenWithState

Motivation

The balanceTransaction function accepts a UTxO set of type Write.UTxO era, which (in principal) is capable of encoding more information than a primitive UTxO object.