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-3344] Use Read.ChainPoint in Cardano.Wallet.Deposit.Read #4775

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

HeinrichApfelmus
Copy link
Contributor

@HeinrichApfelmus HeinrichApfelmus commented Sep 12, 2024

This pull request changes Cardano.Wallet.Deposit.Read to use the ChainPoint type from Cardano.Wallet.Read.

Comment

  • This pull request moves us closer to a point where the temporary module Cardano.Wallet.Deposit.Read is subsumed by the official Cardano.Wallet.Read.

Issue Number

ADP-3344

@HeinrichApfelmus HeinrichApfelmus self-assigned this Sep 12, 2024
@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/ADP-3344/deposit-chainpoint branch 2 times, most recently from a1d853a to ccdf443 Compare September 13, 2024 10:37
mempty
& type_ ?~ OpenApiString
& format ?~ "hex"
& minLength ?~ (2*32)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about introducing charsPerByte = 2 and internally bytePayload=32 Then it would be very clear and well documented imho;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a definition hexCharactersPerByte.


genChainPoint :: Gen Read.ChainPoint
genChainPoint = frequency
[ ( 1, pure Read.GenesisPoint) -- "common" but not "very common"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so rarely common - 😄 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the comment.

Copy link
Contributor

@paweljakubas paweljakubas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a valid refactoring 👍

@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/ADP-3344/deposit-chainpoint branch from ccdf443 to 72186bb Compare September 13, 2024 11:35
@HeinrichApfelmus HeinrichApfelmus added this pull request to the merge queue Sep 13, 2024
Merged via the queue into master with commit 095e5a8 Sep 13, 2024
25 checks passed
@HeinrichApfelmus HeinrichApfelmus deleted the HeinrichApfelmus/ADP-3344/deposit-chainpoint branch September 13, 2024 13:02
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