PolymeshAssociation / Polymesh

Node for Polymesh Blockchain
https://polymesh.network/
GNU General Public License v3.0
165 stars 47 forks source link

Add NonFungible types; Add `BalanceOf` to the NFT pallet; Add `asset_type` checks #1399

Closed HenriqueNogara closed 1 year ago

HenriqueNogara commented 1 year ago

Adresses the comments in #1389

changelog

modified API

modified logic

codecov[bot] commented 1 year ago

Codecov Report

Merging #1399 (44e9a4d) into MESH-1890/add-nft-pallet (8543fd5) will decrease coverage by 0.05%. The diff coverage is 75.00%.

@@                     Coverage Diff                      @@
##           MESH-1890/add-nft-pallet    #1399      +/-   ##
============================================================
- Coverage                     43.69%   43.65%   -0.05%     
============================================================
  Files                           145      145              
  Lines                         31175    31218      +43     
============================================================
+ Hits                          13623    13628       +5     
- Misses                        17552    17590      +38     
Impacted Files Coverage Δ
primitives/src/nft.rs 77.35% <ø> (-1.22%) :arrow_down:
pallets/asset/src/lib.rs 60.32% <67.85%> (+<0.01%) :arrow_up:
pallets/nft/src/lib.rs 62.41% <74.07%> (+0.04%) :arrow_up:
primitives/src/asset.rs 46.93% <91.66%> (+14.50%) :arrow_up:
pallets/settlement/src/lib.rs 49.09% <100.00%> (-1.29%) :arrow_down:
primitives/src/asset_identifier.rs 97.92% <0.00%> (-0.42%) :arrow_down:
pallets/balances/src/lib.rs 57.10% <0.00%> (-0.14%) :arrow_down: