This is the core library of Subsembly framework used for developing Substrate runtimes in AssemblyScript.
Install the package:
yarn add subsembly-core
or
npm install subsembly-core
Subsembly-Core project consists of following folders:
subsembly
assembly/
│
└───models <--- Models representing common Subsembly types
|
└───modules <--- Core modules used in Runtime development
│
└───utils <--- Utility functions used in Runtime development
Folder consists of commonly used types in Subsembly, such as, Header
, Extrinsic
, Block
, etc. All the models implement Codec interface from as-scale-codec
and have corresponding SCALE encoding and decoding methods.
Folder consists of commonly used modules inside Subsembly runtime. For instance, Log
class to display messages to the Host.
Folder consists of commonly used utility functions in Subsembly. For instance, it includes methods for serialising and deserialising data incoming from the Host.
The project is funded by Web3 Foundation via their General Grants Program 🙏