Substrate Framework
Last updated
Was this helpful?
Last updated
Was this helpful?
Material
URL
Setup Rust and WASM
Create your first chain
Tutorial catalogue
Web Assembly WASM
Rust for WASM
WASM Spec
Parity company is developing massive component for Substrate:
Frame is: The Framework for Runtime Aggregation of Modularized Entities (FRAME) is a set of modules (called pallets) and support libraries that simplify runtime development. Pallets are individual modules within FRAME that host domain-specific logic, see
Pallet: set of component/module, like small lib/component for runtime function in Frame. Pallet contains a set of types, storage items, and functions that define a set of features and functionality for a runtime.
The Contract Pallet: The Contracts pallet provides functionality for the runtime to deploy and execute WebAssembly smart-contracts.
The provides low-level types, storage, and functions for your blockchain. All other pallets depend on the System library as the basis of your Substrate runtime.
Rocksdb: This is the Database used on Substrate node. This has been invented by Facebook team: , , it is based on leveldb invented at Google ()
The acts as the orchestration layer for the runtime. It dispatches incoming extrinsic calls to the respective pallets in the runtime.
The runtime library brings together all these components and pallets. It defines which pallets are included with your runtime and configures them to work together to compose your final runtime. When calls are made to your runtime, it uses the Executive pallet to dispatch those calls to the individual pallets.
Consensus mechanisms used by Substrate:
Babe: BABE (Blind Assignment for Blockchain Extension) is the block production mechanism that runs between the validator nodes and determines the authors of new blocks.
GRANDPA (GHOST-based Recursive ANcestor Deriving Prefix Agreement) is the finality gadget that is implemented for the Polkadot Relay Chain.
The is a collection of Rust macros, types, traits, and functions that simplify the development of Substrate pallets.The support macros expand at compile time to generate code that is used by the runtime and reduce boilerplate code for the most common components of a pallet.
See more on
Details is explained here: