Dependency Injection Trait Locker for Uniques Pallet (#11025)
* Create a dependency injection trait named Locker that can be implemented downstream to enable locking of an asset. Use case defined in RMRK substrate pallet PR76 * Formatting * Change impl Locker function name to is_locked * Remove unused import * Add docstring header * Remove impl_locker file and add Locker trait to frame_support::traits * Expose Locker from frame_support::traits::misc * Formatting * Move to tokens folder * Move to tokens folder * Format and remove Locker from misc traits * Punctuation * Update frame/support/src/traits/tokens/misc.rs Co-authored-by:Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by:
Giles Cope <gilescope@gmail.com>
Showing
- substrate/bin/node/runtime/src/lib.rs 1 addition, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/support/src/traits.rs 1 addition, 1 deletionsubstrate/frame/support/src/traits.rs
- substrate/frame/support/src/traits/tokens.rs 1 addition, 1 deletionsubstrate/frame/support/src/traits/tokens.rs
- substrate/frame/support/src/traits/tokens/misc.rs 16 additions, 0 deletionssubstrate/frame/support/src/traits/tokens/misc.rs
- substrate/frame/uniques/src/functions.rs 1 addition, 0 deletionssubstrate/frame/uniques/src/functions.rs
- substrate/frame/uniques/src/lib.rs 6 additions, 1 deletionsubstrate/frame/uniques/src/lib.rs
- substrate/frame/uniques/src/mock.rs 1 addition, 0 deletionssubstrate/frame/uniques/src/mock.rs
Please register or sign in to comment