multiversx_sc_scenario::imports

Trait TxEnv

Source
pub trait TxEnv: Sized {
    type Api: CallTypeApi;
    type RHExpect: Default;

    // Required methods
    fn resolve_sender_address(&self) -> ManagedAddress<Self::Api>;
    fn default_gas_annotation(&self) -> ManagedBuffer<Self::Api>;
    fn default_gas_value(&self) -> u64;
}

Required Associated Types§

Source

type Api: CallTypeApi

Source

type RHExpect: Default

Type built by result handlers that translates into the “expect” section in scenarios.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TxEnv for ScenarioEnvExec<'_>

Source§

type Api = VMHooksApi<StaticApiBackend>

Source§

type RHExpect = TxExpect

Source§

impl TxEnv for ScenarioEnvQuery<'_>

Source§

type Api = VMHooksApi<StaticApiBackend>

Source§

type RHExpect = TxExpect

Source§

impl TxEnv for ScenarioTxEnvData

Source§

type Api = VMHooksApi<StaticApiBackend>

Source§

type RHExpect = TxExpect

Source§

impl<Api> TxEnv for TxScEnv<Api>
where Api: CallTypeApi,