Expand description
A Cumulus test client.
Re-exports§
pub use cumulus_test_runtime as runtime;
Modules§
- client
- Substrate Client and associated logic.
- client_
ext - Client extension for 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.
Structs§
- Block
Builder AndSupport Data - A struct containing a block builder and support data required to build test scenarios.
- Block
Data - Parachain block data.
- Execution
Extensions - A producer of execution extensions for offchain calls.
- Genesis
Parameters - Parameters of test-client builder with test-runtime.
- Head
Data - Parachain head data included in the chain.
- 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.
- Validation
Params - Validation parameters for evaluating the parachain validity function.
- Validation
Result - The result of parachain validation.
- 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§
- Blockchain
Events Ext - An extension trait for
BlockchainEvents. - Build
Parachain Block Data - Extension trait for the
BlockBuilderto build directly aParachainBlockData. - 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
TestClientBuilderwith default backend and executor. - Genesis
Init - A genesis storage initialization trait.
- Init
Block Builder - An extension for the Cumulus test client to init a block builder.
- Keystore
- Something that generates, stores and provides access to secret keys.
- RpcHandlers
Ext - An extension trait for
RpcHandlers. - Test
Client Builder Ext - A
test-runtimeextensions toTestClientBuilder.
Functions§
- generate_
extrinsic - Generate an extrinsic from the provided function call, origin and
Client. - generate_
extrinsic_ with_ pair - Create a signed extrinsic from a runtime call and sign with the given key pair.
- generate_
unsigned - Create an unsigned extrinsic from a runtime call.
- seal_
block - Seals the given block with an AURA seal.
- seal_
parachain_ block_ data - Seals all the blocks in the given
ParachainBlockDatawith an AURA seal. - transfer
- Transfer some token from one account to another using a provided test
Client. - validate_
block - Call
validate_blockin the givenwasm_blob.
Type Aliases§
- Backend
- Test client database backend.
- BadBlocks
- Known bad block hashes.
- Client
- Test client type with
LocalExecutorand generic Backend. - Executor
- Test client executor.
- Executor
Result - Result type alias.
- Fork
Blocks - Expected hashes of blocks at given heights.
- Keystore
Ptr - A shared pointer to a keystore implementation.
- Longest
Chain - LongestChain type for the test runtime/client.
- Parachain
Block Data - Test
Client Builder - Test client builder for Cumulus