subsembly-core

Framework for building AssemblyScript Substrate Runtimes

Usage no npm install needed!

<script type="module">
  import subsemblyCore from 'https://cdn.skypack.dev/subsembly-core';
</script>

README

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