#smart-contracts #blockchain #ink #wasm

no-std obce-codegen

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

1 unstable release

0.1.0 Sep 15, 2023

#48 in #ink

Download history 3/week @ 2024-01-14 7/week @ 2024-01-28 11/week @ 2024-02-04 12/week @ 2024-02-11 20/week @ 2024-02-18 44/week @ 2024-02-25 16/week @ 2024-03-03 19/week @ 2024-03-10 10/week @ 2024-03-17 14/week @ 2024-03-24 45/week @ 2024-03-31

92 downloads per month
Used in 5 crates (via obce-macro)

MIT license

51KB
1K SLoC

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

~2.5MB
~59K SLoC