Skip to content

Helpers crate to simplify ink! chain extension development

License

Notifications You must be signed in to change notification settings

grindytech/obce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenBrush Chain Extension library

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

The library provides macros that allow implementing the same trait on ink! and substrate. Macros generate all logic related to encoding and decoding arguments, calculation of functions id and extension id, matching function ids, and returning errors. On the substrate side, you need to implement the trait and write the logic of each method. The ink! side will already be prepared to pass all data to you.

TODO:

  • Add unit tests
  • Add examples and documentation
  • Setup CI
  • Add support of the obce::weight attributes for method to simplify benchmarking of the chain extension.
  • Maybe ore features based on the use cases=)

Chain extension examples

About

Helpers crate to simplify ink! chain extension development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%