Crate substrate_test_runtime_client[][src]

Expand description

Client testing utilities.

Re-exports

pub use substrate_test_runtime as runtime;

Modules

Substrate Client and associated logic.

Client extension for tests.

A prelude to import in tests.

Client backend that is backed by a database.

A crate that provides means of executing/dispatching calls into the runtime.

Common utilities for building and using consensus engines in substrate.

tests that should hold for all implementations of certain traits. to test implementations without duplication.

Structs

Disk backend.

A producer of execution extensions for offchain calls.

Execution strategies settings.

Parameters of test-client builder with test-runtime.

Implementation of light client fetcher used in tests.

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

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

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.

RPC handlers that can perform RPC queries.

An RPC session. Used to perform in-memory RPC queries (ie. RPC queries that don’t go through the HTTP or WebSockets server).

An error for when the RPC call fails.

The output of an RPC transaction.

Struct containing data needed for a storage.

Child trie storage data.

A builder for creating a test client instance.

Enums

Set of test accounts.

Set of test accounts.

Strategy for executing a call into the runtime.

Set of test accounts.

Specification of different methods of executing the runtime Wasm code.

Traits

Extension trait for test block builder.

An extension trait for BlockchainEvents.

Extension trait for a test client around block importing.

Extension trait for a test client.

A TestClientBuilder with default backend and executor.

A genesis storage initialization trait.

An extension trait for RpcHandlers.

Sync version of the CryptoStore

A test-runtime extensions to TestClientBuilder.

Functions

Creates new client instance used for tests.

Creates new light client instance used for tests.

Creates new light client fetcher used for tests.

Create a new native executor.

Type Definitions

Test client database backend.

Known bad block hashes.

Test client type with LocalExecutor and generic Backend.

Test client executor.

Expected hashes of blocks at given heights.

Test client light database backend.

Test client light database backend.

Test client light executor.

A pointer to a keystore.

A test client with default backend.

A TestClient with test-runtime builder.