Crate polkadot_service
source ·Expand description
Polkadot service. Specialized wrapper over substrate service.
Re-exports§
pub use self::overseer::CollatorOverseerGen;
pub use self::overseer::ExtendedOverseerGenArgs;
pub use self::overseer::OverseerGen;
pub use self::overseer::OverseerGenArgs;
pub use self::overseer::ValidatorOverseerGen;
pub use chain_spec::GenericChainSpec;
pub use chain_spec::RococoChainSpec;
pub use chain_spec::WestendChainSpec;
pub use rococo_runtime;
pub use rococo_runtime_constants;
pub use westend_runtime;
pub use westend_runtime_constants;
Modules§
- Code related to benchmarking a node.
- Polkadot chain configurations.
- Generic implementations of
crate::traits::Header
,crate::traits::Block
andcrate::traits::ExtrinsicLike
. - Primitives for the runtime modules.
- Utilities and tests for locating the PVF worker binaries.
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.
- 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.
- Transaction pool options.
Enums§
- Identifies the variant of the chain.
- Where to find the database..
- Is this node running as in-process node for a parachain node?
- Pruning mode.
- Role of the local node.
- Service errors.
Constants§
Traits§
- 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 aHeader
. - Method call executor.
- Common interface of a chain specification.
- Something that can be constructed to a runtime api.
- The
Core
runtime api that every Substrate runtime needs to implement. - This runtime API is only implemented for the test runtime!
- 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
, aHash
and aHashing
. It provides access to anextrinsics_root
,state_root
andparent_hash
, as well as adigest
and a blocknumber
. - 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.
- 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.
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 Aliases§
- 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 number type for a block.
- Handle for an orchestra.
- Full client backend type.
- Full client call executor type.
- Full client type.