Crate cumulus_test_client
source ·Expand description
A Cumulus test client.
Re-exports§
pub use cumulus_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§
- A struct containing a block builder and support data required to build test scenarios.
- Parachain block data.
- A producer of execution extensions for offchain calls.
- Parameters of test-client builder with test-runtime.
- Parachain head data included in the chain.
- 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.
- Validation parameters for evaluating the parachain validity function.
- The result of parachain validation.
- 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§
- An extension trait for
BlockchainEvents
. - Extension trait for the
BlockBuilder
to build directly aParachainBlockData
. - 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 Cumulus test client to init a block builder.
- Something that generates, stores and provides access to secret keys.
- An extension trait for
RpcHandlers
. - A
test-runtime
extensions toTestClientBuilder
.
Functions§
- Generate an extrinsic from the provided function call, origin and
Client
. - Create a signed extrinsic from a runtime call and sign with the given key pair.
- Create an unsigned extrinsic from a runtime call.
- Given parachain block data and a slot, seal the block with an aura seal. Assumes that the authorities of the test runtime are present in the keyring.
- Transfer some token from one account to another using a provided test
Client
. - Call
validate_block
in the givenwasm_blob
.
Type Aliases§
- Test client database backend.
- Known bad block hashes.
- Test client type with
LocalExecutor
and generic Backend. - Test client executor.
- Result type alias.
- 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 Cumulus