Skip to content

Packaging

Daniel edited this page Jul 29, 2020 · 2 revisions

Packaging

The runtime is divided into packages and source. The packages are different components that we find useful to reuse and the source is the top-level code that compiles the whole project into a runtime.

The hierarchy has the following structure:

Runtime
│
└───packages
│   └───core-modules       
│   └───core-utils         
│   └───models              
│   └───modules        <--- Modules package. Contains the top-level "pallets" used in the Runtime
│       └───balances       
│       ....
│
└───src

All of the packagings are done using yarn workspaces. Thus so far we have the following workspaces:

  • @core-modules - The core-modules that are used by most of the modules (f.e Storage, Crypto etc.)
  • @core-utils - Package containing utility functions
  • @models - Package containing model classes (block, header, extrinsic, etc...)
  • @balances - Balances modules package. Responsible for the Balances functionality (setting/getting/changing balances of the accounts)
  • @runtime - Top-level code that complies into the Runtime
Clone this wiki locally