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
[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 65 commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
97a7e30
Basics
jsidorenko a85608f
WIP: change the data format
jsidorenko 6db840a
Refactor
jsidorenko fa3a2a7
Remove redundant new() method
jsidorenko 472a753
Rename settings
jsidorenko 2611dd4
Enable tests
jsidorenko 52d7d38
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
jsidorenko 46a6b7e
Chore
jsidorenko 5ff7048
Change params order
jsidorenko f7ddfed
Delete the config on collection removal
jsidorenko d0d1d60
Chore
jsidorenko 7d4b31f
Remove redundant system features
jsidorenko dd84637
Rename force_item_status to force_collection_status
jsidorenko 4920a0c
Update node runtime
jsidorenko 7456e73
Chore
jsidorenko 9ff45b8
Remove thaw_collection
jsidorenko c41a48c
Chore
jsidorenko fee3ade
Connect collection.is_frozen to config
jsidorenko a9ab6f8
Allow to lock the collection in a new way
jsidorenko 254816d
Move free_holding into settings
jsidorenko 5878197
Connect collection's metadata locker to feature flags
jsidorenko 95e21fb
DRY
jsidorenko 17b7c9e
Chore
jsidorenko dc6d2f0
Connect pallet level feature flags
jsidorenko cc64873
Prepare tests for the new changes
jsidorenko 5153080
Implement Item settings
jsidorenko 08a2048
Allow to lock the metadata or attributes of an item
jsidorenko 1551714
Common -> Settings
jsidorenko 8830a4c
Extract settings related code to a separate file
jsidorenko f8800df
Move feature flag checks inside the do_* methods
jsidorenko 3ccf04e
Split settings.rs into parts
jsidorenko f83fb73
Extract repeated code into macro
jsidorenko df97cce
Extract macros into their own file
jsidorenko 3bb6eb5
Chore
jsidorenko 8563a31
Fix traits
jsidorenko 09aca13
Fix traits
jsidorenko 114e519
Test SystemFeatures
jsidorenko d6536fc
Fix benchmarks
jsidorenko 09a4ed6
Add missing benchmark
jsidorenko d408b32
Fix node/runtime/lib.rs
jsidorenko fd86e41
".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
c002f8b
Keep item's config on burn if it's not empty
jsidorenko b16435a
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
jsidorenko d0ee824
Fix the merge artifacts
jsidorenko 0eb568e
Fmt
jsidorenko 998691e
Add SystemFeature::NoSwaps check
jsidorenko b8c6f5e
Rename SystemFeatures to PalletFeatures
jsidorenko 8bef776
Rename errors
jsidorenko ddaa884
Add docs
jsidorenko 4c01fc5
Change error message
jsidorenko fa9d471
Rework pallet features
jsidorenko ad980de
Move macros
jsidorenko 8532179
Change comments
jsidorenko fc09bbd
Fmt
jsidorenko e3f67ad
Refactor Incrementable
jsidorenko 1966a58
Use pub(crate) for do_* functions
jsidorenko 39c84b4
Update comments
jsidorenko 71ff09e
Refactor freeze and lock functions
jsidorenko e3778ad
Rework Collection config and Item confg api
jsidorenko f84563d
Chore
jsidorenko 5d5cc1c
Merge branch 'js/uniques-v2-main-branch' into js/uniques-v2-feature-f…
jsidorenko 05b6d11
Make clippy happy
jsidorenko 08ca688
Chore
jsidorenko 8f54489
Update comment
jsidorenko 8bb43e6
RequiredDeposit => DepositRequired
jsidorenko 41a1c83
Address comments
jsidorenko 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 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
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