pub struct BaseSimulationNetworkExecutor<Client: GatewayClient> {
pub client: Client,
pub sender_address: Address,
}Expand description
A struct for executing transactions in a simulated blockchain environment. It interacts with a blockchain network for transaction simulation purposes.
Fields§
§client: ClientThe client used to interact with the blockchain network gateway for transaction simulations.
sender_address: AddressThe blockchain address of the transaction sender.
Implementations§
source§impl<Client: GatewayClient> BaseSimulationNetworkExecutor<Client>
impl<Client: GatewayClient> BaseSimulationNetworkExecutor<Client>
Trait Implementations§
source§impl<Client> Clone for BaseSimulationNetworkExecutor<Client>where
Client: GatewayClient + Clone,
impl<Client> Clone for BaseSimulationNetworkExecutor<Client>where
Client: GatewayClient + Clone,
source§impl<Client> Debug for BaseSimulationNetworkExecutor<Client>where
Client: GatewayClient,
impl<Client> Debug for BaseSimulationNetworkExecutor<Client>where
Client: GatewayClient,
source§impl<Client: GatewayClient> TransactionExecutor for BaseSimulationNetworkExecutor<Client>
impl<Client: GatewayClient> TransactionExecutor for BaseSimulationNetworkExecutor<Client>
source§fn sc_call<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 mut self,
to: &'life1 Address,
function: String,
arguments: Vec<Vec<u8>>,
gas_limit: u64,
egld_value: BigUint,
esdt_transfers: Vec<TokenTransfer>,
) -> Pin<Box<dyn Future<Output = Result<CallResult<OutputManaged::Native>, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sc_call<'life0, 'life1, 'async_trait, OutputManaged>(
&'life0 mut self,
to: &'life1 Address,
function: String,
arguments: Vec<Vec<u8>>,
gas_limit: u64,
egld_value: BigUint,
esdt_transfers: Vec<TokenTransfer>,
) -> Pin<Box<dyn Future<Output = Result<CallResult<OutputManaged::Native>, ExecutorError>> + Send + 'async_trait>>where
OutputManaged: TopDecodeMulti + NativeConvertible + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a smart contract call in a simulated environment.
Auto Trait Implementations§
impl<Client> Freeze for BaseSimulationNetworkExecutor<Client>where
Client: Freeze,
impl<Client> RefUnwindSafe for BaseSimulationNetworkExecutor<Client>where
Client: RefUnwindSafe,
impl<Client> Send for BaseSimulationNetworkExecutor<Client>
impl<Client> Sync for BaseSimulationNetworkExecutor<Client>
impl<Client> Unpin for BaseSimulationNetworkExecutor<Client>where
Client: Unpin,
impl<Client> UnwindSafe for BaseSimulationNetworkExecutor<Client>where
Client: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
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