IntersectMBO / IntersectMBO/cardano-ledger

Adjust `getConsumedValue` to accept `Value` instead of spent `UTxO`

Open
#4,258 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.