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§
- Execution
Extensions - A producer of execution extensions for offchain calls.
- Genesis
Parameters - Parameters of test-client builder with test-runtime.
- Longest
Chain - 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.
- RpcTransaction
Error - An error for when the RPC call fails.
- RpcTransaction
Output - The output of an RPC transaction.
- Storage
- Struct containing data needed for a storage.
- Storage
Child - Child trie storage data.
- Wasm
Executor - An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.
Enums§
- Block
Origin - Block data origin.
- Blocks
Pruning - Block pruning settings.
- Ed25519
Keyring - Set of test accounts.
- Sr25519
Keyring - Set of test accounts.
- Wasm
Execution Method - Specification of different methods of executing the runtime Wasm code.
Traits§
- Block
Builder Ext - Extension trait for test block builder.
- Blockchain
Events Ext - An extension trait for
BlockchainEvents
. - Client
Block Import Ext - Extension trait for a test client around block importing.
- Client
Ext - Extension trait for a test client.
- Default
Test Client Builder Ext - A
TestClientBuilder
with default backend and executor. - Genesis
Init - A genesis storage initialization trait.
- Keystore
- Something that generates, stores and provides access to secret keys.
- RpcHandlers
Ext - An extension trait for
RpcHandlers
. - Test
Client Builder Ext - A
test-runtime
extensions toTestClientBuilder
.
Functions§
- new
- Creates new client instance used for tests.
- new_
native_ or_ wasm_ executor Deprecated - 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. - Executor
Dispatch - Test client executor.
- Fork
Blocks - Expected hashes of blocks at given heights.
- Keystore
Ptr - A shared pointer to a keystore implementation.
- Test
Client - A test client with default backend.
- Test
Client Builder - A
TestClient
withtest-runtime
builder.