[][src]Module polymesh::service

Service and ServiceFactory implementation. Specialized wrapper over substrate service.

Re-exports

pub use crate::chain_spec::alcyone_testnet::ChainSpec as AlcyoneChainSpec;
pub use crate::chain_spec::polymesh_itn::ChainSpec as GeneralChainSpec;
pub use polymesh_runtime_develop;
pub use polymesh_runtime_testnet;

Modules

native_rng

Host functions to allow native access to OS RNG from Wasm.

native_schnorrkel

Native interface for runtime module to use some Schnorrkel functionality.

Structs

AlcyoneExecutor

A unit struct which implements NativeExecutionDispatch feeding in the hard-coded runtime.

BlakeTwo256

Blake2-256 Hash implementation.

Configuration

Service configuration.

GeneralExecutor

A unit struct which implements NativeExecutionDispatch feeding in the hard-coded runtime.

ITNExecutor

A unit struct which implements NativeExecutionDispatch feeding in the hard-coded runtime.

IdentityId

Polymesh Identifier ID. It is stored internally as an u128 but it can be load from string with the following format: "did:poly:<32 Hex characters>".

LongestChain

Implement Longest Chain Select implementation where 'longest' is defined as the highest number of blocks

NativeExecutor

A generic CodeExecutor implementation that uses a delegate to determine wasm code equivalence and dispatch to native code when possible, falling back on WasmExecutor when not.

NewFullBase
PrometheusConfig

Configuration of the Prometheus endpoint.

SecondaryKey

A secondary key is a signatory with defined permissions.

Ticker

Ticker symbol.

TransactionPoolOptions

Pool configuration options.

Enums

DatabaseConfig

Where to find the database..

Error

Service errors.

Network

Known networks based on name.

PruningMode

Pruning mode.

Role

Role of the local node.

ServiceError

Service errors.

Signatory

It supports different elements as a signer.

Traits

Backend

Client backend.

ChainSpec

Common interface of a chain specification.

Codec

Trait that allows zero-copy read/write of value-references to/from slices in LE format.

ConstructRuntimeApi

Something that can be constructed to a runtime api.

CoreApi

The Core runtime api that every Substrate runtime needs to implement.

IsNetwork
NativeExecutionDispatch

Delegate for dispatching a CodeExecutor call.

ProvideRuntimeApi

Something that provides a runtime api.

RemoteBackend

Mark for all Backend implementations, that are fetching required state data from remote nodes.

RuntimeApiCollection

A set of APIs that polkadot-like runtimes must implement.

RuntimeExtrinsic
RuntimeGenesis

A set of traits for the runtime genesis config.

SelectChain

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.

StateBackend

A state backend is used to read state data and can have changes committed to it.

Functions

alcyone_chain_ops
alcyone_new_full

Create a new Alcyone service for a full node.

alcyone_new_light

Create a new Polymesh service for a light client.

chain_ops

Builds a new object suitable for chain operations.

general_chain_ops
general_new_full

Create a new General node service for a full node.

general_new_light

Create a new Polymesh service for a light client.

itn_chain_ops
itn_new_full

Create a new Alcyone service for a full node.

itn_new_light

Create a new Polymesh service for a light client.

new_full_base

Creates a full service from the configuration.

new_light_base
new_partial
set_prometheus_registry

Type Definitions

AccountId

Alias to an sr25519 or ed25519 key.

BabeLink
Balance

The balance of an account. 128-bits (or 38 significant decimal figures) will allow for 10m currency (10^7) at a resolution to all for one second's worth of an annualised 50% reward be paid to a unit holder (10^11 unit denomination), or 10^18 total atomic units, to grow at 50%/year for 51 years (10^9 multiplier) for an eventual total of 10^27 units (27 significant decimal figures). We round denomination to 10^12 (12 sdf), and leave the other redundancy at the upper end so that 32 bits may be multiplied with a balance in 128 bits without worrying about overflow.

Block

Block type.

BlockNumber

An index to a block. 32-bits will allow for 136 years of blocks assuming 1 block per second.

FullBabeBlockImport
FullBabeImportQueue
FullBackend
FullClient
FullGrandpaBlockImport
FullLinkHalf
FullPool
FullSelectChain
FullServiceComponents
FullStateBackend
Hash

A hash of some data used by the relay chain.

IoHandler
LightBackend
LightClient
LightPool
LightStateBackend
LightStorage
Moment

An instant or duration in time.

NewChainOps
Nonce

Index of a transaction in the relay chain. 32-bit should be plenty.

TFullBackend

Full client backend type.

TFullCallExecutor

Full client call executor type.

TFullClient

Full client type.

TLightBackend

Light client backend type.

TLightCallExecutor

Light call executor type.

TLightClient

Light client type.

TaskResult