-
Notifications
You must be signed in to change notification settings - Fork 214
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
[ADP-3344] Use Read.ChainPoint
in Cardano.Wallet.Deposit.Read
#4775
Conversation
a1d853a
to
ccdf443
Compare
mempty | ||
& type_ ?~ OpenApiString | ||
& format ?~ "hex" | ||
& minLength ?~ (2*32) |
There was a problem hiding this comment.
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;-)
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so rarely common - 😄 ?
There was a problem hiding this comment.
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.
There was a problem hiding this 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 👍
ccdf443
to
72186bb
Compare
This pull request changes
Cardano.Wallet.Deposit.Read
to use theChainPoint
type fromCardano.Wallet.Read
.Comment
Cardano.Wallet.Deposit.Read
is subsumed by the officialCardano.Wallet.Read
.Issue Number
ADP-3344