Skip to content

Move StakingLedger struct definition and implementation #402

@gpestana

Description

@gpestana

Follow up from #1484 (already merged).

The #1484 has implemented and refactored out some of the code from the StakingLedger into its own module (/src/ledger.rs). In order to keep the PR 1484 clean and with sane diffs, we kept half of the staking ledger related code in src/lib.rs. This issue consists of refactoring the code so that the StakingLedger definition and all impls are in the ledger module.

  • Move the StakingLedger definition and implementation into /staking/src/lib.rs.

Metadata

Metadata

Assignees

Labels

C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.C2-good-first-issueA task for a first time contributor to become familiar with the Polkadot-SDK.D0-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder.

Type

No type

Projects

Status

📕 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions