-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Issue ADP-3185 ## Description This PR moves the definition of function `txConstraints` back to `cardano-wallet`. The `txConstraints` function and `TxConstraints` type: - are part of the transaction size and cost abstraction used by the wallet's **_balance migration algorithm_** (which is completely separate from the UTxO selection algorithm used by `balanceTransaction`); - are **_only_** used by the wallet's **_balance migration algorithm_**; - are **_not_** used at all within the `cardano-balance-tx` library. So we can safely move the `txConstraints` function away from `cardano-balance-tx`. This is consistent with our goal of minimising the public interface of `cardano-balance-tx`. ## Notes An alternative approach to this PR would be to move `txConstraints` to the `Internal` module hierarchy of `cardano-balance-tx`, and then have `cardano-wallet` depend on the `Internal` module hierarchy. However, depending on an internal module seems unnecessary when we can just move this function to the only package that depends on it.
- Loading branch information
Showing
4 changed files
with
191 additions
and
218 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
Oops, something went wrong.