Allow privileged virtual bond in Staking pallet (#3889)
This is the first PR in preparation for https://github.com/paritytech/polkadot-sdk/issues/454. ## Follow ups: - https://github.com/paritytech/polkadot-sdk/pull/3904. - https://github.com/paritytech/polkadot-sdk/pull/3905. Overall changes are documented here (lot more visual): https://hackmd.io/@ak0n/454-np-governance [Maybe followup](https://github.com/paritytech/polkadot-sdk/issues/4217) with migration of storage item `VirtualStakers` as a bool or enum in `Ledger`. ## Context We want to achieve a way for a user (`Delegator`) to delegate their funds to another account (`Agent`). Delegate implies the funds are locked in delegator account itself. Agent can act on behalf of delegator to stake directly on Staking pallet. The delegation feature is added to Staking via another pallet `delegated-staking` worked on [here](https://github.com/paritytech/polkadot-sdk/pull/3904). ## Introduces: ### StakingUnchecked Trait As the name implies, this trai...
parent
4eabe5e0
Showing
- prdoc/pr_3889.prdoc 14 additions, 0 deletionsprdoc/pr_3889.prdoc
- substrate/frame/nomination-pools/src/mock.rs 8 additions, 0 deletionssubstrate/frame/nomination-pools/src/mock.rs
- substrate/frame/staking/src/ledger.rs 29 additions, 14 deletionssubstrate/frame/staking/src/ledger.rs
- substrate/frame/staking/src/mock.rs 21 additions, 2 deletionssubstrate/frame/staking/src/mock.rs
- substrate/frame/staking/src/pallet/impls.rs 147 additions, 8 deletionssubstrate/frame/staking/src/pallet/impls.rs
- substrate/frame/staking/src/pallet/mod.rs 15 additions, 24 deletionssubstrate/frame/staking/src/pallet/mod.rs
- substrate/frame/staking/src/slashing.rs 12 additions, 10 deletionssubstrate/frame/staking/src/slashing.rs
- substrate/frame/staking/src/tests.rs 231 additions, 12 deletionssubstrate/frame/staking/src/tests.rs
- substrate/primitives/staking/src/lib.rs 36 additions, 2 deletionssubstrate/primitives/staking/src/lib.rs
Please register or sign in to comment