Crate klever_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 klever_chain_vm;
pub use num_bigint;
pub use klever_sc;
pub use klever_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
standalone
test_wallets
whitebox_legacy

Macros§

assert_sc_error
assert_values_eq
managed_address
managed_biguint
managed_buffer
managed_klv_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.
ReturnsMessage
Indicates that the error status will be returned.
ReturnsNewBech32Address
Indicates that the newly deployed address will be returned after a deploy.
ReturnsStatus
Indicates that the error status will be returned.
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.

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