Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] - Data.Map style module for UTxO #705

Open
locallycompact opened this issue Dec 8, 2024 · 0 comments
Open

[FR] - Data.Map style module for UTxO #705

locallycompact opened this issue Dec 8, 2024 · 0 comments

Comments

@locallycompact
Copy link
Contributor

In hydra we are using a lot of Data.Map style functions on a custom newtype definition for UTxO.

https://github.com/cardano-scaling/hydra/blob/2943ad0e38e259d41dd547ba58844377ab51a73c/hydra-cardano-api/src/Cardano/Api/UTxO.hs#L55

Could we have a module for the specific UTxO type that is returned from querying via the cardano api that exports filtering and singleton functions. This module would be intended to be imported qualified, similarly to how people import the different types of haskell containers.

import qualified Cardano.Api.UTxO as UTxO

...
x = UTxO.singleton $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant