Add deposit for setting session keys#7953
Conversation
…pallet. Update KeyDeposit type to use BalanceOf. Add tests for setting and purging keys to verify fund reservation and unreservation.
…undant storage reads and improve efficiency in the session pallet.
xlc
left a comment
There was a problem hiding this comment.
we really need to deprecate unnamed reserves. should use names reserve instead
i wil l change to use named reserve instead then, but from what i can see i still need to use ReservableCurrency for the can_reserve function since NamedReservableCurrency doesnt seem to implement it |
…functionality for key management. Update related types and events to reflect changes from reservation to holding of funds.
|
@kianenigma its good besides CI complaining that PRdoc should be Major instead of Patch |
|
/tip medium |
|
@kianenigma Could not submit tip :( The team has been notified. Alternatively open an issue here. |
4a40095
|
@kianenigma maybe try the tip again, i removed the address from the description since i already have it in my bio. (might be conflicting) |
|
/tip medium |
|
The referendum has appeared on Polkassembly. |
This brings in `unstable2507` Polkadot SDK, and integrates new features. Integrated breaking changes to be verified by the original authors: - [ ] paritytech/polkadot-sdk#7953 @kianenigma @Ank4n acatangiu#13 - [x] paritytech/polkadot-sdk#8684 @nkpar - [x] paritytech/polkadot-sdk#8693 @tiagobndr @franciscoaguirre - [x] paritytech/polkadot-sdk#9137 @franciscoaguirre fixes #837 --------- Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Christian Langenbacher <clangenb+gh@protonmail.ch>
# Description closes #1625 Implement hold balance tracking for test accounts in the session pallet. Requires `pallet_session::Config` to specify: * `type Currency`, assigned to an instance of `pallet_balances`. * `type RuntimeHoldReason`, almost always set to `RuntimeHoldReason`. * `type KeyDeposit`, the amount of deposit. Set to `()` to assert no deposit amount is needed. Polkadot address: 14AgwoPjcRiEEJgjfHmvAqkjdERCG26WEvQUoGLuBzcXKMS2 --------- Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Bastian Köcher <git@kchr.de>
Breaking change, paritytech/polkadot-sdk#7953.

Description
closes #1625
Implement hold balance tracking for test accounts in the session pallet. Requires
pallet_session::Configto specify:*
type Currency, assigned to an instance ofpallet_balances.*
type RuntimeHoldReason, almost always set toRuntimeHoldReason.*
type KeyDeposit, the amount of deposit. Set to()to assert no deposit amount is needed.