-
Notifications
You must be signed in to change notification settings - Fork 16
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
New governance drep id
command
#194
Conversation
5712ce4
to
c619393
Compare
| PoolIdOutputFormatBech32 | ||
data IdOutputFormat | ||
= IdOutputFormatHex | ||
| IdOutputFormatBech32 |
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 was renamed to remove Pool
prefix because it can be used by drep
s as well (and possibly others).
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.
Add a comment explicitly stating what this type is i.e an identifier for SPOs or DReps.
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.
Added a comment.
@@ -1388,16 +1388,16 @@ pKeyOutputFormat = | |||
, Opt.value KeyOutputFormatTextEnvelope | |||
] | |||
|
|||
pPoolIdOutputFormat :: Parser PoolIdOutputFormat | |||
pPoolIdOutputFormat :: Parser IdOutputFormat |
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.
The parser retains the Pool
prefix however because the help text is pool specific.
c619393
to
30b068a
Compare
30b068a
to
fd611a1
Compare
@@ -0,0 +1 @@ | |||
drep1avya24t2308yyyr5uw2dqtreemvkwst90dx00j5fj5556meyztm |
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.
Golden tests included
@@ -0,0 +1 @@ | |||
eb09d5556a8bce421074e394d02c79ced96741657b4cf7ca8995294d |
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.
Golden tests included
"type": "DRepSigningKey_ed25519", | ||
"description": "Delegate Representative Signing Key", | ||
"cborHex": "58201872d334e12a3a062dbdc4f2a22dc77f6e88ba8ecb39d0a2e385375f15ba0005" | ||
} |
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.
It is proposed that test input files are put in a separate directory outside of the golden
directory.
These files can be re-used. We don't need to have separate keys of the same type for each test for example. This means there shouldn't be many such files and we can throw them all in the same directory.
| GovernanceDRepGenerateKey | ||
(ConwayEraOnwards era) | ||
(File (VerificationKey ()) Out) | ||
(File (SigningKey ()) Out) | ||
| GovernanceDRepRegistrationCertificateCmd | ||
AnyRegistrationTarget | ||
(File () Out) |
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'm just alphabetically sorting the commands.
a71c987
to
2efac9a
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.
Looks good, two small changes.
| PoolIdOutputFormatBech32 | ||
data IdOutputFormat | ||
= IdOutputFormatHex | ||
| IdOutputFormatBech32 |
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.
Add a comment explicitly stating what this type is i.e an identifier for SPOs or DReps.
@@ -47,7 +47,10 @@ data LegacyPoolCmds | |||
EpochNo | |||
-- ^ Epoch in which to retire the stake pool. | |||
(File () Out) | |||
| PoolGetId (VerificationKeyOrFile StakePoolKey) PoolIdOutputFormat (Maybe (File () Out)) | |||
| PoolGetId |
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.
Don't add anything else to the legacy commands. We only want to maintain them. Anything new should only go under the new era based commands.
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.
There's no changes to this command.
I've only just done the PoolIdOutputFormat
-> IdOutputFormat
rename.
This can be verified as there are no golden file changes for this command.
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.
Ah sorry, misread the diff
2efac9a
to
8be1bae
Compare
Changelog
Context
Resolves #129
Checklist
See Running tests for more details
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7