-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Move LockableCurrency trait to fungible::Lockable and deprecate LockableCurrency #12887
Conversation
…ate into aa/lockable-for-assets
…ate into aa/lockable-for-assets
Co-authored-by: Squirrel <gilescope@gmail.com>
Co-authored-by: Squirrel <gilescope@gmail.com>
@@ -28,15 +28,15 @@ macro_rules! decl_tests { | |||
use frame_support::{ | |||
assert_noop, assert_storage_noop, assert_ok, assert_err, | |||
traits::{ | |||
LockableCurrency, LockIdentifier, WithdrawReasons, | |||
fungible, fungible::Lockable, WithdrawReasons, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would happen if you don't include fungible::Lockable
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch, got it :)
…le::Lockable can have breaking changes
…trate into aa/lockable-for-assets-2
How does this work link to paritytech/polkadot-sdk#236? has it been discussed/coordinated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 (code-wise; don't know enough to reason about business logic)
@@ -20,6 +20,7 @@ | |||
//! NOTE: If you're looking for `parameter_types`, it has moved in to the top-level module. | |||
|
|||
pub mod tokens; | |||
#[allow(deprecated)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need this?
It's intended to be a step in that direction |
Priliminary efforts to introduce a Lockable trait based off LockableCurrency.
This moves us closer to the points in paritytech/polkadot-sdk#327