IntersectMBO / IntersectMBO/cardano-ledger
Adjust `getConsumedValue` to accept `Value` instead of spent `UTxO`
Open
enhancement
- Dominant language
- Haskell
- Stars
- 295
- Forks
- 179
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 29
Description
This functionality is necessary for cardano-cli and fee estimation whenever UTxO is not available.
In particular we need an extra function that is very similar to [`evalBalanceTxBody`](https://github.com/IntersectMBO/cardano-ledger/blob/9589f2c040fd9367c012eb68669a3f1ea07e031c/libs/cardano-ledger-api/src/Cardano/Ledger/Api/Tx/Body.hs#L96-L122) that accepts `Value` instead of `UTxO`
In order to achieve that we need to make `getConsumedValue` accept `Value` instead of `UTxO`
Functions should be adjusted in a way that minimizes breakage.
Contributor guide
Assessment
This issue has not been assessed yet.