Re-exports§
pub use whitebox_legacy as testing_framework;
pub use api::DebugApi;
pub use crate::scenario::model as scenario_model;
pub use crate::scenario as mandos_system;
pub use multiversx_chain_vm;
pub use num_bigint;
pub use multiversx_sc;
pub use multiversx_sc_meta_lib as meta;
pub use multiversx_chain_scenario_format as scenario_format;
Modules§
- api
- bech32
- debug_
executor - display_
util - imports
- Imports normally needed in integration tests, grouped together.
- managed_
test_ util - scenario
- scenario_
macros - whitebox_
legacy
Macros§
- assert_
sc_ error - assert_
values_ eq - managed_
address - managed_
biguint - managed_
buffer - managed_
egld_ token_ id - managed_
token_ id - managed_
token_ id_ wrapped - rust_
biguint - unwrap_
or_ panic
Structs§
- Contract
Info - Bundles a representation of a contract with the contract proxy, so that it can be easily called in the context of a blockchain mock.
- Expect
Error - Verifies that transaction result error matches the given one.
- Expect
Message - Verifies that transaction result message matches the given one.
- Expect
Status - Verifies that transaction result status matches the given one.
- Expect
Value - Verifies that transaction result matches the given value.
- Returns
GasUsed - Indicates that the newly deployed address will be returned after a deploy.
- Returns
Handled OrError - Indicates that a
Result
will be returned, either with the handled result, according to the nested result handlers, or with an error in case of a failed transaction. - Returns
Logs - Returns
Message - Indicates that the error status will be returned.
- Returns
NewBech32 Address - Indicates that the newly deployed address will be returned after a deploy.
- Returns
NewToken Identifier - Returns
Status - Indicates that the error status will be returned.
- Returns
TxHash - Scenario
EnvExec - Environment for executing transactions.
- Scenario
EnvQuery - Scenario
TxEnv Data - The actual data required to run a scenario locally. This is the minimal environment needed to run txs.
- Scenario
World - A facade for contracts tests.
- Whitebox
Contract - Wraps a contract that is supposed to be used in whitebox tests.
- With
RawTx Response - Wraps a closure that handles a
TxResponse
object.
Traits§
- Scenario
TxEnv - Designates a tx environment suitable for running scenarios locally.
- Scenario
TxRun - Provides a
run
method for transactions and steps. - Scenario
TxWhitebox
Functions§
- mandos_
go Deprecated - mandos_
rs Deprecated - run_go
Deprecated - Legacy function for running a scenario test using the Go VM tool.
- run_rs
Deprecated - Legacy function for running a scenario test using the Go VM tool.
Type Aliases§
- Blockchain
Mock Deprecated