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

feat(staking): Add staking package with governance feature #2874

Merged
merged 44 commits into from
Dec 1, 2023

Conversation

michaeljscript
Copy link
Collaborator

@michaeljscript michaeljscript commented Nov 6, 2023

Resolves YOMO-955

@michaeljscript michaeljscript changed the title feat(governance): Add core package structure feat(staking): Add staking package with governance feature Nov 16, 2023

it('should throw an error when for a DRep id that has wrong length', async () => {
const invalidId = 'abc'
const errorMessage = 'invalid DRep ID length, must be 56 characters'
Copy link
Member

Choose a reason for hiding this comment

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

so it's just the hash no bech32 ? (I'd say the client api should receive both and we transform before consuming the api)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, will add this as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will need to be updated in https://github.com/Emurgo/cardano-serialization-lib/blob/5c58e5ee75b0d6262840287ba06c9f9d1caf1037/rust/src/chain_crypto/bech32.rs#L63, because we're getting a parse error Parsed bech32 has invalid HRP prefix 'drep', expected 'xpub'

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Checking with Ahmed and Evgenii

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll be updating cross-csl

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be updated in a new PR for YOMO-1002

@michaeljscript
Copy link
Collaborator Author

2 items WIP, check description

@michaeljscript
Copy link
Collaborator Author

1 item WIP, I'll update cross-csl to enable DREP.fromBech32 to improve validation used in this package

@michaeljscript michaeljscript changed the base branch from develop to feature/governance November 26, 2023 11:08
@michaeljscript
Copy link
Collaborator Author

Note the base branch is now feature/governance. Future governance PRs will be made against feature/governance branch.

@michaeljscript michaeljscript merged commit 646a868 into feature/governance Dec 1, 2023
2 checks passed
@michaeljscript michaeljscript deleted the feat/governance-package branch December 1, 2023 11:45
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.

4 participants