Expand description
Module for the logic behind ink!’s End-to-End testing framework.
Re-exports
pub use env_logger;
pub use subxt;
pub use tokio;
Modules
- An sr25519 keypair implementation.
Macros
- Builds a contract and imports its scaffolded structure as a module.
Structs
- Result of the dry run of a contract call.
- Result of a contract call.
- The
Client
takes care of communicating with the node. - Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
- Result of a contract instantiation.
- An sr25519 keypair implementation. While the API is slightly different, the logic for this has been taken from
sp_core::sr25519
and we test against this to ensure conformity. - Build messages using a contract ref.
- Spawn a local substrate node for testing.
- Construct a test node process.
- Result of a contract upload.
Enums
- Set of test accounts.
- An error occurred while interacting with the Substrate node.
- Default set of commonly used types by Polkadot nodes.
Constants
- This prefix will be used for log output. It is set by each
#[ink_e2e::test]
with the function name as String. This way it is possible to distinguish the lines in stdout and stderr, to still know which line belongs to which test.
Statics
- We use this to only initialize
env_logger
once.
Functions
- Get an ink!
ink_primitives::AccountId
for a given keyring account. - Equivalent to
{DEV_PHRASE}//Alice
. - Equivalent to
{DEV_PHRASE}//Bob
. - Convenience method for building messages for the default environment.
- Equivalent to
{DEV_PHRASE}//Charlie
. - Equivalent to
{DEV_PHRASE}//Dave
. - Equivalent to
{DEV_PHRASE}//Eve
. - Equivalent to
{DEV_PHRASE}//Ferdie
. - Writes
msg
to stderr. - Writes
msg
to stdout. - Returns the name of the test which is currently executed.
- Equivalent to
{DEV_PHRASE}//One
. - Equivalent to
{DEV_PHRASE}//Two
.
Attribute Macros
- Defines an End-to-End test.