referrerpolicy=no-referrer-when-downgrade

Crate substrate_test_runtime_client

Source
Expand description

Client testing utilities.

Re-exports§

pub use substrate_test_runtime as runtime;

Modules§

client
Substrate Client and associated logic.
client_ext
Client extension for tests.
prelude
A prelude to import in 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.
trait_tests
tests that should hold for all implementations of certain traits. to test implementations without duplication.

Structs§

ExecutionExtensions
A producer of execution extensions for offchain calls.
GenesisParameters
Parameters of test-client builder with test-runtime.
LongestChain
Implement Longest Chain Select implementation where ‘longest’ is defined as the highest number of blocks
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
Extension trait for test block builder.
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.
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§

new
Creates new client instance used for tests.
new_native_or_wasm_executorDeprecated
Create a new native executor.

Type Aliases§

Backend
Test client database backend.
BadBlocks
Known bad block hashes.
Client
Test client type with WasmExecutor and generic Backend.
ExecutorDispatch
Test client executor.
ForkBlocks
Expected hashes of blocks at given heights.
KeystorePtr
A shared pointer to a keystore implementation.
TestClient
A test client with default backend.
TestClientBuilder
A TestClient with test-runtime builder.