This repository has been archived by the owner on Jul 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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
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:
- Substrate Collectable's Workshop by Shaun Tabrizi.
If you have followed the PL^G Getting Started Guides, you should be able start at #1 Basics.
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.
Getting Started
PL^G Component Guides
- Attestation
- Doughnut
- Generic Assets (coming soon)
Advanced Topics
External Links