Skip to content

Conversation

@rbaconcordium
Copy link
Contributor

@rbaconcordium rbaconcordium commented Nov 28, 2025

Purpose

To introduce support for ConfigureValidator (aka ConfigureBaker) deserialize function as part of ensuring serialize and deserialize are available for all account transactions which are currently supported.

Changes

implement deserialize function in ConfigureBakerHandler

Checklist

  • [ x ] My code follows the style of this project.
  • [ x ] The code compiles without warnings.
  • [ x ] I have performed a self-review of the changes.
  • [ x ] I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

CLA acceptance

_Remove if not applicable.

By submitting the contribution I accept the terms and conditions of the
Contributor License Agreement v1.0

Comment on lines +326 to +356
const payload: ConfigureBakerPayload = {
stake: CcdAmount.fromMicroCcd(1000),

restakeEarnings: true,

openForDelegation: OpenStatus.OpenForAll,

keys: {
electionVerifyKey: 'aa'.repeat(32),

proofElection: 'bb'.repeat(64),

signatureVerifyKey: 'cc'.repeat(32),

proofSig: 'dd'.repeat(64),

aggregationVerifyKey: 'ee'.repeat(96),

proofAggregation: 'ff'.repeat(64),
},

metadataUrl: 'g'.repeat(16),

transactionFeeCommission: 10,

bakingRewardCommission: 5,

finalizationRewardCommission: 2,

suspended: true,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we limit the amount of blank lines? 😅

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.

3 participants