PolymeshAssociation / Polymesh

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

Mesh 1915/allow nft transfers #1369

Closed HenriqueNogara closed 1 year ago

HenriqueNogara commented 1 year ago

Change the Settlement pallet for allowing transferring NFT. A new type LegV2 that accepts fungible and non-fungible assets has been added.

changelog

new features

modified logic

codecov[bot] commented 1 year ago

Codecov Report

Merging #1369 (8bdfd56) into MESH-1890/add-nft-pallet (886e03b) will increase coverage by 0.34%. The diff coverage is 60.98%.

@@                     Coverage Diff                      @@
##           MESH-1890/add-nft-pallet    #1369      +/-   ##
============================================================
+ Coverage                     43.43%   43.77%   +0.34%     
============================================================
  Files                           144      144              
  Lines                         30428    30927     +499     
============================================================
+ Hits                          13215    13537     +322     
- Misses                        17213    17390     +177     
Impacted Files Coverage Δ
pallets/common/src/traits/nft.rs 0.00% <ø> (ø)
pallets/common/src/traits/portfolio.rs 0.00% <ø> (ø)
pallets/runtime/common/src/runtime.rs 1.86% <ø> (ø)
pallets/runtime/develop/src/runtime.rs 2.58% <ø> (ø)
pallets/weights/src/pallet_settlement.rs 4.12% <0.00%> (-0.99%) :arrow_down:
primitives/src/lib.rs 79.12% <ø> (ø)
pallets/portfolio/src/lib.rs 35.96% <54.54%> (+0.89%) :arrow_up:
pallets/sto/src/lib.rs 25.16% <55.55%> (+0.43%) :arrow_up:
pallets/settlement/src/lib.rs 50.20% <63.78%> (+4.63%) :arrow_up:
pallets/nft/src/lib.rs 62.37% <72.58%> (+2.54%) :arrow_up:
... and 4 more