Crate ink_e2e

source ·
Expand description

Module for the logic behind ink!’s End-to-End testing framework.

Re-exports§

Modules§

Structs§

Enums§

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.

Traits§

  • General chain operations useful in contract testing.
  • Contract-specific operations.
  • Full E2E testing backend: combines general chain API and contract-specific operations.

Functions§

  • Get an ink! ink_primitives::AccountId for a given keyring account.
  • Equivalent to {DEV_PHRASE}//Alice.
  • Equivalent to {DEV_PHRASE}//Bob.
  • Builds the “root” contract (the contract in which the E2E tests are defined) together with any contracts which are a dependency of the root contract.
  • Equivalent to {DEV_PHRASE}//Charlie.
  • Creates a call builder builder for Contract, based on an account id.
  • 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.

Type Aliases§

Attribute Macros§

  • Defines an End-to-End test.