#node #chain #run-time #helper #parachain #default #polkadot

polkadot-omni-node-lib

Helper library that can be used to build a parachain node

4 releases (2 breaking)

0.4.1 Feb 21, 2025
0.4.0 Jan 29, 2025
0.3.0 Jan 14, 2025
0.0.0 Oct 8, 2024

#39 in #parachain

Download history 2/week @ 2024-12-06 100/week @ 2025-01-10 26/week @ 2025-01-17 100/week @ 2025-01-24 61/week @ 2025-01-31 40/week @ 2025-02-07 12/week @ 2025-02-14 186/week @ 2025-02-21 47/week @ 2025-02-28

296 downloads per month
Used in 2 crates

Apache-2.0 and GPL-3.0-only

120KB
2.5K SLoC

Polkadot Omni Node Library

Helper library that can be used to run a parachain node.

Overview

This library can be used to run a parachain node while also customizing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the parameters of the runtime that is associated with each of these chain specs.

API

The library exposes the possibility to provide a RunConfig. Through this structure 2 optional configurations can be provided:

  • a chain spec loader (an implementation of chain_spec::LoadSpec): this can be used for providing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the actual chain config associated with each one.
  • a runtime resolver (an implementation of runtime::RuntimeResolver): this can be used for providing the parameters of the runtime that is associated with each of the chain specs

Apart from this, a CliConfig can also be provided, that can be used to customize some user-facing binary author, support url, etc.

Examples

For an example, see the polkadot-parachain-bin crate.

Release

Polkadot SDK Stable 2412

Dependencies

~179MB
~3M SLoC