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§
- Substrate Client and associated logic.
- Client extension for 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.
Structs§
- Disk backend.
- A producer of execution extensions for offchain calls.
- Parameters of test-client builder with test-runtime.
- A running RPC service that can perform in-memory RPC queries.
- 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.
- An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.
Enums§
- Block data origin.
- Block pruning settings.
- Set of test accounts.
- Set of test accounts.
- Specification of different methods of executing the runtime Wasm code.
Traits§
- Polkadot specific extensions for the
BlockBuilder
. - 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 for the test client to initialize a Polkadot specific block builder.
- Something that generates, stores and provides access to secret keys.
- An extension trait for
RpcHandlers
. - A
test-runtime
extensions toTestClientBuilder
.
Functions§
- Construct an extrinsic that can be applied to the test runtime.
- Construct a transfer extrinsic.
Type Aliases§
- Known bad block hashes.
- The client type being used by the test service.
- Test client executor.
- Expected hashes of blocks at given heights.
- A shared pointer to a keystore implementation.
LongestChain
type for the test runtime/client.- Test client builder for Polkadot.