multiversx_sc_scenario::api

Type Alias SingleTxApi

Source
pub type SingleTxApi = VMHooksApi<SingleTxApiBackend>;
Expand description

Similar to the StaticApi, but offers allows calls to storage, input, and even creating results.

Aliased Type§

struct SingleTxApi { /* private fields */ }

Implementations§

Source§

impl SingleTxApi

Source

pub fn clear_global()

Source

pub fn with_global<F, R>(f: F) -> R
where F: FnOnce(&mut SingleTxApiData) -> R,

Source

pub fn with_global_default_account<F, R>(f: F) -> R
where F: FnOnce(&mut AccountData) -> R,

Trait Implementations§

Source§

impl Debug for SingleTxApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more