Crate multiversx_sc_scenario

Source

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§

ContractInfo
Bundles a representation of a contract with the contract proxy, so that it can be easily called in the context of a blockchain mock.
ExpectError
Verifies that transaction result error matches the given one.
ExpectMessage
Verifies that transaction result message matches the given one.
ExpectStatus
Verifies that transaction result status matches the given one.
ExpectValue
Verifies that transaction result matches the given value.
ReturnsGasUsed
Indicates that the newly deployed address will be returned after a deploy.
ReturnsHandledOrError
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.
ReturnsLogs
ReturnsMessage
Indicates that the error status will be returned.
ReturnsNewBech32Address
Indicates that the newly deployed address will be returned after a deploy.
ReturnsNewTokenIdentifier
ReturnsStatus
Indicates that the error status will be returned.
ReturnsTxHash
ScenarioEnvExec
Environment for executing transactions.
ScenarioEnvQuery
ScenarioTxEnvData
The actual data required to run a scenario locally. This is the minimal environment needed to run txs.
ScenarioWorld
A facade for contracts tests.
WhiteboxContract
Wraps a contract that is supposed to be used in whitebox tests.
WithRawTxResponse
Wraps a closure that handles a TxResponse object.

Traits§

ScenarioTxEnv
Designates a tx environment suitable for running scenarios locally.
ScenarioTxRun
Provides a run method for transactions and steps.
ScenarioTxWhitebox

Functions§

mandos_goDeprecated
mandos_rsDeprecated
run_goDeprecated
Legacy function for running a scenario test using the Go VM tool.
run_rsDeprecated
Legacy function for running a scenario test using the Go VM tool.

Type Aliases§

BlockchainMockDeprecated