Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Writing a runtime module

HaoZhaiX edited this page May 3, 2020 · 2 revisions

Runtime modules allow us to extend the functionality and features of our blockchain.

They provide interfaces for:

  • extrinsics - a way for users to "do things" on the block chain
  • storage - the state of the runtime module. Maps are commonly used here to map user accounts to stored data items.
  • events - effectively a pub-sub service

Getting started

PL^G is built on top of Substrate, which provide excellent documentation for writing runtime modules. Possibly the best tutorial for writing a runtime module can be found in the:

If you have followed the PL^G Getting Started Guides, you should be able start at #1 Basics.

PL^G Template Module

Once you are confident in writing your own Runtime Module, the template module located at bin/node-template/pallets/template provides all of the necessary scaffolding to get started.

PL^G


Getting Started


PL^G Component Guides


Advanced Topics


External Links

Clone this wiki locally