subsembly
  • Introduction
  • Getting Started
    • Overview
    • Substrate Essentials
    • CLI
      • subsembly init
      • subsembly compile
      • subsembly spec
  • Development
    • Runtime Development
    • Chain Specification
    • Runtime Execution
  • Modules
    • Core
      • System
      • Executive
      • Crypto
      • Log
    • Pre-built
      • Aura
      • Balances
      • Timestamp
      • TransactionPayment
  • Advanced
    • as-scale-codec
    • subsembly-core
    • Metadata
      • Dispatcher
  • Guides
    • Create Your First Subsembly Runtime
      • Set Up
      • Start the Node
      • PolkadotJS
    • Start Your Network
      • Prepare the Network
      • Launch Validator Nodes
      • Launch the Third Node
    • Create a New Module
      • Nicks Module
      • Launch the Node
      • PolkadotJs
Powered by GitBook
On this page

Was this helpful?

  1. Modules

Pre-built

Modules ready for use

Overview

Modules are represented as an AS class and are used to compose runtimes. Each module has its own logic and can modify the functionality of the state transition function of the blockchain.

It is possible to write your own custom module, provided that you implement all the necessary API entries.

One example is a Timestamp module. It is used to set and get on-chain time. More specifically, it sets the storage items for the module, such as Now, DidUpdate that help saving and retrieving on-chain time of the blockchain.

To ease and shorten the development time of the runtimes, Subsembly currently comes with already pre-built modules that could be easily integrated with the runtime.

  • Aura

  • Balances

  • Timestamp

  • TransactionPayment

PreviousLogNextAura

Last updated 4 years ago

Was this helpful?