This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Move LockableCurrency trait to fungible::Lockable and deprecate LockableCurrency #12887
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
9a537f9
WIP move LockableCurrency to fungibles
tonyalaribe c1a5824
rename Lockable and LockIdentifier to funginbles::*
tonyalaribe cc39dc4
fix imports further
tonyalaribe 2c34ec4
change Lockable from fungible to fungibles
tonyalaribe 35174e0
Merge branch 'master' into aa/lockable-for-assets
tonyalaribe 6595afe
reintroduce LockableCurrency but marked as deprecated
tonyalaribe b7e1941
Merge branch 'aa/lockable-for-assets' of github.com:paritytech/substr…
tonyalaribe 3f806c7
Merge branch 'master' into aa/lockable-for-assets
tonyalaribe c4e11b6
fix imports
tonyalaribe cf328be
Merge branch 'aa/lockable-for-assets' of github.com:paritytech/substr…
tonyalaribe d0970e3
fix imports
tonyalaribe 6cdfd70
Merge branch 'master' into aa/lockable-for-assets
tonyalaribe c6f5693
cargo fmt
tonyalaribe 1716ed0
add allow deprecated warnings
tonyalaribe 928bb4d
remove unused benchmark import
tonyalaribe 71c4860
fix some of the docs
tonyalaribe eac6e5d
fix failing doctest check
tonyalaribe 4e90a73
reexport LockIdentifier and LockableCurrency from support/traits
tonyalaribe 4691034
reexport LockIdentifier and LockableCurrency from support/traits
tonyalaribe a022c8c
allow using deprecated re-export
tonyalaribe 9c00601
Merge remote-tracking branch 'origin/master' into aa/lockable-for-assets
bc35b27
Merge remote-tracking branch 'origin/master' into aa/lockable-for-assets
2050f85
replace LockableCurrency and LockIdentifier with a module alias
tonyalaribe 9432b9d
Update frame/support/src/traits/tokens/fungibles/lockable.rs
tonyalaribe 1e1c43e
Update frame/staking/src/pallet/mod.rs
tonyalaribe f3c69a0
Update frame/support/src/traits.rs
tonyalaribe 0a5a820
REVERT removing fungibles::Lockable import
tonyalaribe 101f352
Merge remote-tracking branch 'origin/master' into aa/lockable-for-assets
tonyalaribe 16212b5
switch from fungibles to fungible
tonyalaribe 9caf89a
fix fmt
tonyalaribe f0bd8ab
fix imports in benchmarks
tonyalaribe 2a7f615
Update README.md
tonyalaribe 97b3ee1
Update README.md
tonyalaribe eacb6c0
reintroduce LockableCurrency and LockIdentifiers as copies, so fungib…
tonyalaribe 3c195c7
Merge branch 'aa/lockable-for-assets-2' of github.com:paritytech/subs…
tonyalaribe b8fad5e
Merge branch 'master' into aa/lockable-for-assets-2
tonyalaribe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. do we really need this? |
||
pub use tokens::{ | ||
currency::{ | ||
ActiveIssuanceOf, Currency, LockIdentifier, LockableCurrency, NamedReservableCurrency, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I get this, if fungible::Lockable isn't included:
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 :)