Crate polkadot_service

source ·
Expand description

Polkadot service. Specialized wrapper over substrate service.

Re-exports

pub use self::overseer::OverseerGen;
pub use self::overseer::OverseerGenArgs;
pub use self::overseer::RealOverseerGen;
pub use chain_spec::KusamaChainSpec;
pub use chain_spec::PolkadotChainSpec;
pub use chain_spec::RococoChainSpec;
pub use chain_spec::WestendChainSpec;

Modules

Polkadot chain configurations.
Generic implementations of Extrinsic/Header/Block.
Primitives for the runtime modules.

Structs

Auxiliary wrapper that holds an api instance and binds it to the given lifetime.
Blake2-256 Hash implementation.
Service configuration.
A handle used to communicate with the Overseer.
Implement Longest Chain Select implementation where ‘longest’ is defined as the highest number of blocks
The orchestra.
External connector.
Unique identifier of a parachain.
The native executor instance for Polkadot.
Configuration of the Prometheus endpoint.
A proposal that is created by a Proposer.
A chain-selection implementation which provides safety for relay chains.
Helper struct to manage background/async tasks in Service.
Pool configuration options.

Enums

A client instance of Polkadot.
Where to find the database..
Strategy for executing a call into the runtime.
Is this node a collator?
Pruning mode.
Role of the local node.
Service errors.

Traits

Trait that abstracts over all available client implementations.
The authority discovery api.
Provides access to an auxiliary database.
API necessary for block authorship with BABE.
Client backend.
Block import trait.
Something which fulfills the abstract idea of a Substrate block. It has types for Extrinsic pieces of information as well as a Header.
Method call executor.
A type which provides access to chain information.
Common interface of a chain specification.
A handle to a Polkadot client instance.
Something that can be constructed to a runtime api.
The Core runtime api that every Substrate runtime needs to implement.
Execute something with the client instance.
Blockchain database header backend. Does not perform any validation.
Handles header metadata: hash, number, parent hash, etc.
Provides the header and block number for a hash.
Decoupling the provider.
Something which fulfills the abstract idea of a Substrate header. It has types for a Number, a Hash and a Hashing. It provides access to an extrinsics_root, state_root and parent_hash, as well as a digest and a block number.
Can be called for a Configuration to identify which network the configuration targets.
Delegate for dispatching a CodeExecutor call.
The API for querying the state of parachains on-chain.
Something that provides a runtime api.
A set of APIs that polkadot-like runtimes must implement.
A set of traits for the runtime genesis config.
The SelectChain trait defines the strategy upon which the head is chosen if multiple forks are present for an opaque definition of “best” in the specific chain build.
A state backend is used to read state data and can have changes committed to it.

Functions

Build a full node.
Builds a new object suitable for chain operations.
Create a new full node of arbitrary runtime and executor.
Reverts the node state down to at most the last finalized block.

Type Definitions

Block type.
Block ID.
The block number type used by Polkadot. 32-bits will allow for 136 years of blocks assuming 1 block per second.
A Parachain collator keypair.
A hash of some data used by the relay chain.
Extract the hashing type for a block.
Extract the number type for a block.
Handle for an orchestra.
Full client backend type.
Full client call executor type.
Full client type.