feat(nfts + nonfungibles): sync polkadot stable2503#558
Conversation
|
[sc-3710] |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #558 +/- ##
==========================================
- Coverage 63.56% 63.44% -0.13%
==========================================
Files 121 121
Lines 23801 23850 +49
Branches 23801 23850 +49
==========================================
+ Hits 15129 15131 +2
- Misses 7628 7675 +47
Partials 1044 1044
🚀 New features to boost your workflow:
|
06f0e43 to
6cb9ad9
Compare
a3089ab to
fd99b50
Compare
al3mart
left a comment
There was a problem hiding this comment.
Awesome! It looks great!
I've left one comment to clarify if we really need BlockNumberProvider in the api.
Given that we are using
type BlockNumberFor<T> = pallet_nfts::BlockNumberFor<T, NftsInstanceOf<T>>; it seems that we could be good without adding a new type to the trait ?
Once that is clarified I'm happy to approve 👌
Daanvdplas
left a comment
There was a problem hiding this comment.
Looking good, two nitpicks but nothing to stop this from going in.
The base branch was changed.
54bab63 to
2e0fb15
Compare
Changes from the commit: paritytech/polkadot-sdk#3634
Changes made from upstream: paritytech/polkadot-sdk#6087
2e0fb15 to
21accad
Compare
848b9f1 to
182486a
Compare
This reverts commit 182486a.
There was a problem hiding this comment.
Looks great!
Only one nit. I believe there's some more cases (at least one) of frame_system::Pallet::<T>::block_number(); within benchmarking.rs that could be substituted for T::BlockNumberProvider::current_block_number();
Thanks Ale, great catch! I have resolved it in 986a3b4 |
al3mart
left a comment
There was a problem hiding this comment.
Awesome, @chungquantin! Thanks
* fix visibility for pallet_nfts types used as call arguments Changes from the commit: paritytech/polkadot-sdk#3634 * [pallet-nfts, pallet_uniques] - Expose private structs Changes made from upstream: paritytech/polkadot-sdk#6087 * Adds BlockNumberProvider in multisig, proxy and nft pallets Upstream commit: paritytech/polkadot-sdk#5723 * Removed unused dependencies (partial progress) Upstream commit: paritytech/polkadot-sdk#7329 * implement DecodeWithMemTracking for frame pallets paritytech/polkadot-sdk#7598 * chore: bump pallet-nfts version to 34.1.0 * feat: adds BlockNumberProvider in nonfungbiles pallet * chore: update lock file of pop-api to sync nfts * chore: BlockNumberProvider for devnet nonfungibles * chore: fix benchmarking to use new BlockNumberFor * chore: revert changes * fix: missing DecodeWithMemTracking * chore: update weights of pallets * refactor(nonfungibles): remove unused BlockNumberProvider type * chore: remove unused Zero trait * chore: revert non-relevant changes * chore: revert non-relevant changes This reverts commit 182486a. * chore: benchmarking replace with BlockNumberProvider * chore(pallet-nfts): update weights
This PR syncs all changes from
v1.15.0topolkadot-stable2503for thepallet-nftsandpallet-nonfugiblespolkadot-v1.15.0: paritytech/polkadot-sdk@7ecf3f7polkadot-stable2503: paritytech/polkadot-sdk@0c0d4ceRequires rebasing to this commit on
main.Related upstream commits:
Commit comments are identical to the commits in
pallet-nfts | stable2503pallet-nonfungiblesas it was a blocker before (maybe not needed, just note it here)frame_system::pallet_prelude::BlockNumberForand replaces it withtype BlockNumberProviderconfigured on the runtime side.Configtrait of bothpallet-nftsandpallet-nonfungiblesBlockNumberFor<T>withBlockNumberFor<T, I>pallet-nftsfromruntime-apias it is not used by the crate.DecodeWithMemTrackingto most of the types inpallet-nfts. (UPDATED: This PR no longer contains this commit as it has been updated in 2372731#diff-c20a7ad3d8fa1d073ced5bb90e6dd70a357679adfd05c562478a10e4c55b733e)