-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add governance query
commands
#189
Add governance query
commands
#189
Conversation
1ee1a2e
to
f786349
Compare
( newExceptT $ executeLocalStateQueryExpr localNodeConnInfo Nothing $ queryDRepStakeDistribution eraInMode sbe dreps) | ||
& onLeft (left . GovernanceCmdUnsupportedNtcVersion) | ||
& onLeft (left . GovernanceCmdEraMismatch) | ||
let serializedGovState = encodePretty $ Map.assocs drepStakeDistribution |
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 will end up as a list of 2-element lists in JSON.
2ad9025
to
ff56f5e
Compare
84d8e55
to
5e98c87
Compare
3a8e53b
to
1942ab4
Compare
governance query
command
governance query
commandgovernance query
commands
ec7f50d
to
ac961e4
Compare
CI failures are coming from relying on an unreleased version of cardano-api. To be fixed prior to merge. |
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.
Nice 👍 . One minor 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.
This needs a newer API version than what is currently released, which in turn needs a lot of changes to adopt txVotes -> txVotingProcedures among other things.
ac961e4
to
6367b97
Compare
6367b97
to
f279085
Compare
Updated cardano-api dep to 8.16.2
Changelog
Context
Requires:
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