Expand description
Polkadot service. Specialized wrapper over substrate service.
Re-exports§
pub use crate::builder::new_full;
pub use crate::builder::NewFull;
pub use crate::builder::NewFullParams;
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§
- benchmarking
- Code related to benchmarking a node.
- builder
- Polkadot service builder.
- chain_
spec - Polkadot chain configurations.
- generic
- Generic implementations of
crate::traits::Header
,crate::traits::Block
andcrate::traits::ExtrinsicLike
. - overseer
- runtime_
traits - Primitives for the runtime modules.
- workers
- Utilities and tests for locating the PVF worker binaries.
Structs§
- ApiRef
- Auxiliary wrapper that holds an api instance and binds it to the given lifetime.
- Blake
Two256 - Blake2-256 Hash implementation.
- Configuration
- Service configuration.
- Handle
- A handle used to communicate with the
Overseer
. - Longest
Chain - Implement Longest Chain Select implementation where ‘longest’ is defined as the highest number of blocks
- Overseer
- The orchestra.
- Overseer
Connector - External connector.
- ParaId
- Unique identifier of a parachain.
- Prometheus
Config - Configuration of the Prometheus endpoint.
- Proposal
- A proposal that is created by a
Proposer
. - Runtime
Api - Select
Relay Chain - A chain-selection implementation which provides safety for relay chains.
- Task
Manager - Helper struct to manage background/async tasks in Service.
- Transaction
Pool Options - Transaction pool options.
Enums§
- Chain
- Identifies the variant of the chain.
- Database
Source - Where to find the database..
- Error
- IsParachain
Node - Is this node running as in-process node for a parachain node?
- Pruning
Mode - Pruning mode.
- Role
- Role of the local node.
- Substrate
Service Error - Service errors.
Traits§
- Authority
Discovery Api - The authority discovery api.
- AuxStore
- Provides access to an auxiliary database.
- BabeApi
- API necessary for block authorship with BABE.
- Backend
- Client backend.
- Block
Import - Block import trait.
- BlockT
- Something which fulfills the abstract idea of a Substrate block. It has types for
Extrinsic
pieces of information as well as aHeader
. - Call
Executor - Method call executor.
- Chain
Spec - Common interface of a chain specification.
- Construct
Runtime Api - Something that can be constructed to a runtime api.
- CoreApi
- The
Core
runtime api that every Substrate runtime needs to implement. - GetLast
Timestamp - This runtime API is only implemented for the test runtime!
- Header
Backend - Blockchain database header backend. Does not perform any validation.
- Header
Metadata - Handles header metadata: hash, number, parent hash, etc.
- Header
Provider - Provides the header and block number for a hash.
- Header
Provider Provider - Decoupling the provider.
- HeaderT
- 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
. - Identify
Variant - Can be called for a
Configuration
to identify which network the configuration targets. - Native
Execution Dispatch - Delegate for dispatching a CodeExecutor call.
- Parachain
Host - The API for querying the state of parachains on-chain.
- Provide
Runtime Api - Something that provides a runtime api.
- Select
Chain - 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_
full - Build a full node.
- new_
chain_ ops - Builds a new object suitable for chain operations.
- open_
database - revert_
backend - Reverts the node state down to at most the last finalized block.
Type Aliases§
- Block
- Block type.
- BlockId
- Block ID.
- Block
Number - The block number type used by Polkadot. 32-bits will allow for 136 years of blocks assuming 1 block per second.
- Collator
Pair - A Parachain collator keypair.
- Full
Backend - Full
Client - Hash
- A hash of some data used by the relay chain.
- Number
For - Extract the number type for a block.
- Overseer
Handle - Handle for an orchestra.
- TFull
Backend - Full client backend type.
- TFull
Call Executor - Full client call executor type.
- TFull
Client - Full client type.