SebastianEdwards / subsembly-core

Core components used by Subsembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Unit Tests

This is the core library of Subsembly framework used for developing Substrate runtimes in AssemblyScript.

Usage

Install the package:

yarn add subsembly-core 

or

npm install subsembly-core

Folder Structure

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

Models

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.

Modules

Folder consists of commonly used modules inside Subsembly runtime. For instance, Log class to display messages to the Host.

Utils

Folder consists of commonly used utility functions in Subsembly. For instance, it includes methods for serialising and deserialising data incoming from the Host.

Funding

The project is funded by Web3 Foundation via their General Grants Program 🙏 WEB3 Badge

About

Core components used by Subsembly

License:Apache License 2.0


Languages

Language:TypeScript 98.4%Language:JavaScript 1.6%