Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Runtime: Split staking into staking, accounts, transfer and contracts modules #211

@gavofyork

Description

@gavofyork

Staking module has become unwieldy.

  • Accounts module should handle accounts: Nonce, Free/ReservedBalance, basic transfer mechanics (non-public), account death, indexing & lookups.
  • Transfer module should just provide a public transfer call. Enabled in Polkadot.
  • Staking module should handle any staking mechanics, slashing, PoS.
  • Contracts should be an (optional) add-on in order to provide smart contract, Code and Storage. Disabled in Polkadot.

Lookups in higher-order modules (democracy, council) should be done through a published trait mechanism.

Metadata

Metadata

Assignees

Labels

I7-refactorCode needs refactoring.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions