Skip to content

RGB StdLibs v0.12 RC2

Latest

Choose a tag to compare

@dr-orlovsky dr-orlovsky released this 03 Jun 09:04
· 39 commits to master since this release
c5af353

LNP/BP Standards Association presented a new generation of RGB smart contracts (version 0.12) 10 days ago with release candidate 1. Over this period of time we have received several improvement requests from the companies already integrating it into their products and tried to fulfill them with release candidate 2.

This release refactors the RGB smart contracts library to improve its persistence layer, enhance security, and streamline consignment handling.

  • Replaced the fs feature with a binfile feature, providing more granular control over binary file format support.
  • Introduced a new rgb-persist-fs crate to encapsulate filesystem persistence logic, improving code modularity and separation of concerns.
  • Introduced the way to programmatically import contracts via consignments.
  • Improved spam prevention, which included creation of a dedicated guideline to contract developers (RCP-250528A), its implementation, and the addition of an embedded mechanism limiting the maximal number of operations in a consignment.
  • Added more aggregators producing computed contract state.
  • Replaced ImmutableApi and DestructibleApi with GlobalApi and OwnedApi, respectively, for clearer semantics.
  • Introduced Semantics struct to group API definitions, codex libraries, and type systems.
  • Added ApisChecksum and ArticlesId for improved API versioning and identification.
  • Implemented signature validation in Articles::with and Issuer::with using a provided validator function.
  • The test suite has been updated to include more comprehensive validation of the new API and consignment handling mechanisms.

Read the full announcement on the official website: https://rgb.tech/blog/release-0-12-rc-2/