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
  • Overview
  • Basics

Was this helpful?

  1. Guides

Create a New Module

Overview

One of the core features of Subsembly is the ability to add new modules to your runtime easily. In this tutorial we will demonstrate how new modules are added and implemented in a Subsembly runtime.

Basics

Here are some of the concepts and constraints you need to know before starting with this guide:

  • New module is added as a new folder inside the assembly/pallets/ folder.

    • Inside the folder, usually we place the file which defines the pallet: storage entries, extrinsic calls, etc.

    • It's important to place your modules in the above path, since metadata looks for modules specifically in this path

  • Types specific to the module should be added and exported from the assembly/runtime/runtime.ts file

  • If you have any runtime API entries specific to your module, define a file with your functions exported and place them in assembly/runtime/api/ folder

PreviousLaunch the Third NodeNextNicks Module

Last updated 4 years ago

Was this helpful?