-
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
Extend 'Block' to also contain delegation certificates registrations #898
Comments
Hi @KtorZ, are you able to say what "Type 3" and "Type 1" refer to in the acceptance criterion below:
I had a look through and couldn't see anything obvious. Thanks in advance! |
@jonathanknowles this refers to the fragment type (a.k.a fragment spec in Jormungandr). What's important to capture here is that delegation certificates should now be part of our primitive blocks, as the title suggests. |
1043: Extend `Block` type to contain delegation certificate registrations. r=jonathanknowles a=jonathanknowles # Issue Number #898 # Overview I have: - [x] Extended the Jörmungandr `Block` type to contain stake delegations. - [x] Adjusted the `convertBlock` function to populate the `delegations` field when converting from a Jörmungandr block to Wallet-layer block. # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Jonathan Knowles <[email protected]>
*Putting this back to
|
I don't think so no. With all the integration tests for this one and the binary unit tests, it seems to me that it's already well tested. 1 |
lgtm. |
Context
Delegation certificate registration (a pair of a pool id and an account public key) can be present in blocks. We'll have to be able to process them and adjust the wallet delegation settings accordingly.
Decision
Extend primitive 'Block' type to also contain delegation certificates registrations. e.g.
Extend Jörmungandr Binary decoder to decode certificate messages & adjust conversion functions from Jörmungandr 'Block' to our new primitive 'Block'.
Acceptance Criteria
Cardano.Wallet.Primitive.Types#Block
must contain delegation registrations requestsCardano.Wallet.Jormungandr.Binary#Block
must contain delegation registrations requestscardano-wallet-jormungandr
must support correctly map Type 3 messages and Type 1 messages to primitiveBlock
Development Plan
Block
type to contain stake delegations.convertBlock
function to populate thedelegations
field when converting from a Jörmungandr block to Wallet-layer block.Write golden tests forconvertBlock
with golden blocks with delegations.PR
master
QA
Covered by QA tasks in issue #899.
The text was updated successfully, but these errors were encountered: