This repository was 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.7k
[Uniques V2] Feature flags #12367
Merged
paritytech-processbot
merged 66 commits into
js/uniques-v2-main-branch
from
js/uniques-v2-feature-flags
Oct 18, 2022
Merged
[Uniques V2] Feature flags #12367
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
97a7e30
Basics
a85608f
WIP: change the data format
6db840a
Refactor
fa3a2a7
Remove redundant new() method
472a753
Rename settings
2611dd4
Enable tests
52d7d38
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
46a6b7e
Chore
5ff7048
Change params order
f7ddfed
Delete the config on collection removal
d0d1d60
Chore
7d4b31f
Remove redundant system features
dd84637
Rename force_item_status to force_collection_status
4920a0c
Update node runtime
7456e73
Chore
9ff45b8
Remove thaw_collection
c41a48c
Chore
fee3ade
Connect collection.is_frozen to config
a9ab6f8
Allow to lock the collection in a new way
254816d
Move free_holding into settings
5878197
Connect collection's metadata locker to feature flags
95e21fb
DRY
17b7c9e
Chore
dc6d2f0
Connect pallet level feature flags
cc64873
Prepare tests for the new changes
5153080
Implement Item settings
08a2048
Allow to lock the metadata or attributes of an item
1551714
Common -> Settings
8830a4c
Extract settings related code to a separate file
f8800df
Move feature flag checks inside the do_* methods
3ccf04e
Split settings.rs into parts
f83fb73
Extract repeated code into macro
df97cce
Extract macros into their own file
3bb6eb5
Chore
8563a31
Fix traits
09aca13
Fix traits
114e519
Test SystemFeatures
d6536fc
Fix benchmarks
09a4ed6
Add missing benchmark
d408b32
Fix node/runtime/lib.rs
fd86e41
".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
c002f8b
Keep item's config on burn if it's not empty
b16435a
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
d0ee824
Fix the merge artifacts
0eb568e
Fmt
998691e
Add SystemFeature::NoSwaps check
b8c6f5e
Rename SystemFeatures to PalletFeatures
8bef776
Rename errors
ddaa884
Add docs
4c01fc5
Change error message
fa9d471
Rework pallet features
ad980de
Move macros
8532179
Change comments
fc09bbd
Fmt
e3f67ad
Refactor Incrementable
1966a58
Use pub(crate) for do_* functions
39c84b4
Update comments
71ff09e
Refactor freeze and lock functions
e3778ad
Rework Collection config and Item confg api
f84563d
Chore
5d5cc1c
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
05b6d11
Make clippy happy
08ca688
Chore
8f54489
Update comment
8bb43e6
RequiredDeposit => DepositRequired
41a1c83
Address comments
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
In the weight file it looks like these components are used. Why did you remove them?
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.
Because previously it was possible to create metadata and attributes for non-existing records and that benchmark worked. After I added a check whether the record exists, that benchmark started to fail when we try to add metadata (or an attribute) in separate loop