-
Notifications
You must be signed in to change notification settings - Fork 155
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
Rename Acnt
-> Account
#4002
Rename Acnt
-> Account
#4002
Conversation
5dd66d2
to
1db34ec
Compare
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.
This looks great!
We just need changelog entries for the renames and I also suggested two extra renames that can be made in the vicinity of a reward account
c18a30c
to
c4a86e1
Compare
Sorry for the rebase after (pre-)review but I wanted to keep the commits organised so we can easily revert if need be. Also, I found some more instances of |
92a1c56
to
58f6682
Compare
This is now ready for review. I tried to keep the commits as organised as possible. I also attempted to keep changes separate, except for the final commit (f51ed29): that was used to rename some internal stuff for consistency and since those are internal, not exported things, I didn't add deprecation helpers for them. I am also quite certain that I missed a few things here and there. |
58f6682
to
f51ed29
Compare
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.
Very nice work! Thank you.
libs/cardano-ledger-core/testlib/Test/Cardano/Ledger/Core/KeyPair.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-core/testlib/Test/Cardano/Ledger/Core/KeyPair.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Generic/PrettyCore.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Constrained/Vars.hs
Outdated
Show resolved
Hide resolved
libs/cardano-ledger-test/src/Test/Cardano/Ledger/Constrained/TypeRep.hs
Outdated
Show resolved
Hide resolved
621f5f3
to
e8ce02a
Compare
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.
Perfect!
Thank you!
With respect to failing CI, it is unrelated to your changes. Both are flaky tests, one of which I already have a fix for. |
e8ce02a
to
e057ab4
Compare
Renamed to `RewardAccount`
Renamed to `serialiseRewardAccount`
Renamed to `deserialiseRewardAccount`
Renamed to `putRewardAccount`
Renamed to `decodeRewardAccount`
Renamed to `fromCborRewardAccount`
Renamed to `ppRewardAccount`
Renamed to `prAccountState`
* `getRwdNetwork` -> `raNetwork` * `getRwdCred` -> `raCredential` Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
Renamed to `mkVKeyRewardAccount` Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
Renamed to `delPlAccount`
Renamed to `deserialiseRewardAccountOld`
It seems that these are only used internally, hence no deprecation helpers.
e057ab4
to
d4e8bb4
Compare
Description
This PR renames
Acnt
toAccount
by deprecating the following:prAcnt
ppRewardAcnt
fromCborRewardAcnt
decodeRewardAcnt
putRewardAcnt
deserialiseRewardAcnt
serialiseRewardAcnt
RewardAcnt
deserialiseRewardAcntOld
delPlAcnt
mkVKeyRwdAcnt
Furthermore, the PR also renames some occurrences of
acnt
for consistency, without any deprecation helpers (as these are just internal functions or helpers, etc.).Resolves #3928
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)