open-web3-stack / open-runtime-module-library

Substrate Open Runtime Module Library
Apache License 2.0
447 stars 289 forks source link

[XNFT PoC] xtokens non-fungible multiassets support #966

Closed mrshiposha closed 7 months ago

mrshiposha commented 7 months ago

A change to the do_transfer_multiassets: support of the NonFungible fungibility for non-fee assets.

This PR doesn't change the API of extrinsics that use the configurable CurrencyId since it is a PoC. In the future, we could alter the amount argument to take the fungibility into account.

So only the following extrinsics can be used to transfer an NFT asset:

codecov[bot] commented 7 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b45942e) 85.32% compared to head (dbcc789) 85.50%.

Files Patch % Lines
xtokens/src/lib.rs 90.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #966 +/- ## ========================================== + Coverage 85.32% 85.50% +0.17% ========================================== Files 88 88 Lines 10476 10533 +57 ========================================== + Hits 8939 9006 +67 + Misses 1537 1527 -10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.