referrerpolicy=no-referrer-when-downgrade

Crate polkadot_test_client

Source
Expand description

A Polkadot test client.

This test client is using the Polkadot test runtime.

Re-exports§

pub use polkadot_test_runtime as runtime;

Modules§

client
Substrate Client and associated logic.
client_ext
Client extension for tests.
sc_client_db
Client backend that is backed by a database.
sc_executor
A crate that provides means of executing/dispatching calls into the runtime.
sp_consensus
Common utilities for building and using consensus engines in substrate.

Structs§

Backend
Disk backend.
ExecutionExtensions
A producer of execution extensions for offchain calls.
GenesisParameters
Parameters of test-client builder with test-runtime.
RpcHandlers
A running RPC service that can perform in-memory RPC queries.
RpcTransactionError
An error for when the RPC call fails.
RpcTransactionOutput
The output of an RPC transaction.
Storage
Struct containing data needed for a storage.
StorageChild
Child trie storage data.
WasmExecutor
An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.

Enums§

BlockOrigin
Block data origin.
BlocksPruning
Block pruning settings.
Ed25519Keyring
Set of test accounts.
Sr25519Keyring
Set of test accounts.
WasmExecutionMethod
Specification of different methods of executing the runtime Wasm code.

Traits§

BlockBuilderExt
Polkadot specific extensions for the BlockBuilder.
BlockchainEventsExt
An extension trait for BlockchainEvents.
ClientBlockImportExt
Extension trait for a test client around block importing.
ClientExt
Extension trait for a test client.
DefaultTestClientBuilderExt
A TestClientBuilder with default backend and executor.
GenesisInit
A genesis storage initialization trait.
InitPolkadotBlockBuilder
An extension for the test client to initialize a Polkadot specific block builder.
Keystore
Something that generates, stores and provides access to secret keys.
RpcHandlersExt
An extension trait for RpcHandlers.
TestClientBuilderExt
A test-runtime extensions to TestClientBuilder.

Functions§

construct_extrinsic
Construct an extrinsic that can be applied to the test runtime.
construct_transfer_extrinsic
Construct a transfer extrinsic.

Type Aliases§

BadBlocks
Known bad block hashes.
Client
The client type being used by the test service.
Executor
Test client executor.
ForkBlocks
Expected hashes of blocks at given heights.
FullBackend
KeystorePtr
A shared pointer to a keystore implementation.
LongestChain
LongestChain type for the test runtime/client.
TestClientBuilder
Test client builder for Polkadot.