RGB-WG / rgb-core

RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning
https://spec.rgb.tech
Apache License 2.0
207 stars 52 forks source link

Support for multiple layer 1 #183

Closed dr-orlovsky closed 1 year ago

dr-orlovsky commented 1 year ago

This is an example of the scale of changes we need to support Liquid as layer 1. Support for another prospective layer 1 (like Prime) comes at nearly no additional cost.

PR adds support for Liquid as a commitment layer + ability to add more client-side-validation chains in the future

TODO:

codecov[bot] commented 1 year ago

Codecov Report

Merging #183 (c0be2d9) into master (de8f0e6) will decrease coverage by 0.2%. The diff coverage is 5.3%.

@@           Coverage Diff            @@
##           master    #183     +/-   ##
========================================
- Coverage    12.8%   12.5%   -0.2%     
========================================
  Files          30      31      +1     
  Lines        3087    3188    +101     
========================================
+ Hits          394     400      +6     
- Misses       2693    2788     +95     
Flag Coverage Δ
rust 12.5% <5.3%> (-0.2%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/contract/operations.rs 24.6% <ø> (ø)
src/lib.rs 15.4% <ø> (ø)
src/stl.rs 100.0% <100.0%> (ø)
src/validation/status.rs 0.0% <ø> (ø)
src/contract/contract.rs 0.3% <0.0%> (-<0.1%) :arrow_down:
src/contract/assignments.rs 1.0% <0.0%> (-<0.1%) :arrow_down:
src/contract/mod.rs 12.5% <12.5%> (ø)
src/contract/seal.rs 3.0% <4.2%> (+3.0%) :arrow_up:
src/validation/anchor.rs 8.0% <8.0%> (ø)
src/validation/validator.rs 0.0% <0.0%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more