#smart-contracts #blockchain #wasm #chain-extension

no-std obce

OpenBursh chain extension(OBCE) - util to simplify chain extension development

1 unstable release

0.1.0 Sep 15, 2023

#485 in #smart-contracts

Download history 2/week @ 2024-01-29 1/week @ 2024-02-05 10/week @ 2024-02-12 43/week @ 2024-02-19 33/week @ 2024-02-26 9/week @ 2024-03-04 20/week @ 2024-03-11 6/week @ 2024-03-25 36/week @ 2024-04-01 7/week @ 2024-04-08 15/week @ 2024-04-15

64 downloads per month
Used in 3 crates (via pallet-assets-chain-exten…)

MIT license

34KB
243 lines

OpenBrush Chain Extension library

CI/CD

The library provides tools and primitives to simplify the development of chain extensions for ink! and Substrate.

OBCE automatically generates everything needed to correctly call chain extension from ink! smart contracts, and to correctly implement the chain extension itself on the Substrate side.

OBCE' macros automatically generate all the logic related to argument encoding/decoding, function and extension identifier calculation and error handling.

The ink! side of OBCE is fully automated, while with Substrate all that's left is to implement the chain extension using generated traits.

Tutorial

For a step-by-step guide on how to create your own Substrate node with a custom chain extension check the rand-extension example, which contains detailed instructions on the whole process.

Usage examples

Dependencies

~5–25MB
~369K SLoC