RGB-WG / rgb-std

RGB standard libs for WASM & low-level integrations (no FS/networking)
https://rgb.tech
Apache License 2.0
66 stars 30 forks source link

Collect supplyment features in consign #230

Closed cymqqqq closed 4 months ago

cymqqqq commented 4 months ago

Description:

  1. add a get_sigs interface for obtaining the content_sig in order to collect signatures. (the reason for adding this interface is that there are add_supplyment, and supplement interfaces for adding and obtaining the supplement, and then I noticed that there is an import_sigs interface, but no method to get content signature by content ID, so I think maybe we need an interface to obtain the content signature)

  2. collect supplements.

  3. test cases.

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 72.91667% with 26 lines in your changes missing coverage. Please review.

Project coverage is 20.4%. Comparing base (7f637c6) to head (fc31e3b). Report is 2 commits behind head on master.

Files Patch % Lines
src/persistence/stock.rs 75.3% 23 Missing :warning:
src/persistence/memory.rs 0.0% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #230 +/- ## ======================================== + Coverage 17.6% 20.4% +2.8% ======================================== Files 37 37 Lines 7535 7626 +91 ======================================== + Hits 1323 1553 +230 + Misses 6212 6073 -139 ``` | [Flag](https://app.codecov.io/gh/RGB-WG/rgb-std/pull/230/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | Coverage Δ | | |---|---|---| | [rust](https://app.codecov.io/gh/RGB-WG/rgb-std/pull/230/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | `20.4% <72.9%> (+2.8%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG#carryforward-flags-in-the-pull-request-comment) to find out more.

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