Struct multiversx_sc_snippets::imports::ScenarioEnvExec
source · pub struct ScenarioEnvExec<'w> {
pub world: &'w mut ScenarioWorld,
pub data: ScenarioTxEnvData,
}
Expand description
Environment for executing transactions.
Fields§
§world: &'w mut ScenarioWorld
§data: ScenarioTxEnvData
Trait Implementations§
source§impl<'w> ScenarioTxEnv for ScenarioEnvExec<'w>
impl<'w> ScenarioTxEnv for ScenarioEnvExec<'w>
fn env_data(&self) -> &ScenarioTxEnvData
source§impl<'w> TxEnv for ScenarioEnvExec<'w>
impl<'w> TxEnv for ScenarioEnvExec<'w>
type Api = VMHooksApi<StaticApiBackend>
§type RHExpect = TxExpect
type RHExpect = TxExpect
Type built by result handlers that translates into the “expect” section in scenarios.
fn resolve_sender_address( &self, ) -> ManagedAddress<<ScenarioEnvExec<'w> as TxEnv>::Api>
fn default_gas_annotation( &self, ) -> ManagedBuffer<<ScenarioEnvExec<'w> as TxEnv>::Api>
fn default_gas_value(&self) -> u64
source§impl<'w> TxEnvMockDeployAddress for ScenarioEnvExec<'w>
impl<'w> TxEnvMockDeployAddress for ScenarioEnvExec<'w>
fn mock_deploy_new_address<From, NA>(&mut self, from: &From, new_address: NA)where
From: TxFromSpecified<ScenarioEnvExec<'w>>,
NA: AnnotatedValue<ScenarioEnvExec<'w>, ManagedAddress<<ScenarioEnvExec<'w> as TxEnv>::Api>>,
source§impl<'w> TxEnvWithTxHash for ScenarioEnvExec<'w>
impl<'w> TxEnvWithTxHash for ScenarioEnvExec<'w>
fn set_tx_hash(&mut self, tx_hash: H256)
source§impl<'w, From, To, RH> TxToStep<ScenarioEnvExec<'w>, RH> for Tx<ScenarioEnvExec<'w>, From, To, NotPayable, (), UpgradeCall<ScenarioEnvExec<'w>, Code<MxscPath<'w>>>, RH>where
From: TxFromSpecified<ScenarioEnvExec<'w>>,
To: TxToSpecified<ScenarioEnvExec<'w>>,
RH: RHListExec<TxResponse, ScenarioEnvExec<'w>>,
impl<'w, From, To, RH> TxToStep<ScenarioEnvExec<'w>, RH> for Tx<ScenarioEnvExec<'w>, From, To, NotPayable, (), UpgradeCall<ScenarioEnvExec<'w>, Code<MxscPath<'w>>>, RH>where
From: TxFromSpecified<ScenarioEnvExec<'w>>,
To: TxToSpecified<ScenarioEnvExec<'w>>,
RH: RHListExec<TxResponse, ScenarioEnvExec<'w>>,
type Step = ScCallStep
fn tx_to_step( self, ) -> StepWrapper<ScenarioEnvExec<'w>, <Tx<ScenarioEnvExec<'w>, From, To, NotPayable, (), UpgradeCall<ScenarioEnvExec<'w>, Code<MxscPath<'w>>>, RH> as TxToStep<ScenarioEnvExec<'w>, RH>>::Step, RH>
Auto Trait Implementations§
impl<'w> Freeze for ScenarioEnvExec<'w>
impl<'w> !RefUnwindSafe for ScenarioEnvExec<'w>
impl<'w> Send for ScenarioEnvExec<'w>
impl<'w> Sync for ScenarioEnvExec<'w>
impl<'w> Unpin for ScenarioEnvExec<'w>
impl<'w> !UnwindSafe for ScenarioEnvExec<'w>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more