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

[ADP-3215] Add Value type to Cardano.Wallet.Read #4713

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

HeinrichApfelmus
Copy link
Contributor

This pull request adds a type Value to Cardano.Wallet.Read, which mirrors the type Value from the ledger specification.

This type occupies the following point in the design space:

  • Value is an abstract data type, but accompanied by a pattern synonym.
  • Value is era-independent.
  • Value has zero-cost conversion to MaryValue from cardano-ledger-mary.

The goal is to make this type convenient, but also efficient to use in the context of reading blocks from the Cardano blockchain.

Comments

  • I have included some functions, such as subtract or lessOrEqual that are relevant for the Deposit Wallet, but did not go into the details of the MultiAsset type — this can be amended later.

Issue Number

ADP-3215

@HeinrichApfelmus HeinrichApfelmus self-assigned this Aug 1, 2024
@HeinrichApfelmus HeinrichApfelmus added this pull request to the merge queue Aug 2, 2024
Merged via the queue into master with commit 4bc9c90 Aug 2, 2024
23 checks passed
@HeinrichApfelmus HeinrichApfelmus deleted the HeinrichApfelmus/ADP-3215/read-value branch August 2, 2024 12:29
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

Successfully merging this pull request may close these issues.

2 participants