r0gue-io / pop-node

Pop Network makes it easy for smart contract developers to use the Power of Polkadot.
The Unlicense
24 stars 6 forks source link

chore(api/nonfungibles): fork pallet nfts #382

Closed chungquantin closed 1 week ago

chungquantin commented 1 week ago

Description

Fork of pallet-nfts v1.15.0 for the implementation of pallet-api/non-fungibles: #339.

Only changes I made is the Cargo.toml to update it consistent with other pallets.

codecov-commenter commented 1 week ago

Codecov Report

Attention: Patch coverage is 57.81341% with 1447 lines in your changes missing coverage. Please review.

Project coverage is 68.38%. Comparing base (3cdb9b5) to head (b9fe4d8).

Files with missing lines Patch % Lines
pallets/nfts/src/weights.rs 1.86% 736 Missing :warning:
pallets/nfts/src/impl_nonfungibles.rs 22.06% 266 Missing and 6 partials :warning:
pallets/nfts/src/lib.rs 71.82% 53 Missing and 78 partials :warning:
pallets/nfts/src/migration.rs 0.00% 53 Missing :warning:
pallets/nfts/src/types.rs 67.11% 49 Missing :warning:
pallets/nfts/src/features/attributes.rs 86.36% 19 Missing and 23 partials :warning:
pallets/nfts/src/benchmarking.rs 85.79% 11 Missing and 14 partials :warning:
pallets/nfts/src/features/transfer.rs 83.84% 9 Missing and 12 partials :warning:
pallets/nfts/src/features/create_delete_item.rs 89.20% 5 Missing and 14 partials :warning:
pallets/nfts/src/features/metadata.rs 91.56% 0 Missing and 14 partials :warning:
... and 9 more
@@             Coverage Diff             @@
##             main     #382       +/-   ##
===========================================
+ Coverage   54.34%   68.38%   +14.03%     
===========================================
  Files          49       70       +21     
  Lines        5025    11846     +6821     
  Branches     5025    11846     +6821     
===========================================
+ Hits         2731     8101     +5370     
- Misses       2245     3486     +1241     
- Partials       49      259      +210     
Files with missing lines Coverage Δ
pallets/nfts/src/mock.rs 100.00% <100.00%> (ø)
pallets/nfts/src/tests.rs 99.88% <ø> (ø)
pallets/nfts/src/features/roles.rs 96.15% <96.15%> (ø)
pallets/nfts/src/features/approvals.rs 93.25% <93.25%> (ø)
pallets/nfts/src/common_functions.rs 80.00% <80.00%> (ø)
pallets/nfts/src/features/buy_sell.rs 90.69% <90.69%> (ø)
pallets/nfts/src/features/lock.rs 90.12% <90.12%> (ø)
pallets/nfts/src/features/settings.rs 84.41% <84.41%> (ø)
pallets/nfts/src/features/atomic_swap.rs 90.51% <90.51%> (ø)
...lets/nfts/src/features/create_delete_collection.rs 84.33% <84.33%> (ø)
... and 11 more