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, OriginalResult>(
&'life0 mut self,
sc_call_step: &'life1 mut TypedScCall<OriginalResult>
) -> Pin<Box<dyn Future<Output = Result<(), ExecutorError>> + Send + 'async_trait>>where
OriginalResult: 'async_trait + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sc_call<'life0, 'life1, 'async_trait, OriginalResult>(
&'life0 mut self,
sc_call_step: &'life1 mut TypedScCall<OriginalResult>
) -> Pin<Box<dyn Future<Output = Result<(), ExecutorError>> + Send + 'async_trait>>where
OriginalResult: 'async_trait + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes a smart contract call in a simulated environment.
§Type Parameters
OriginalResult: The result type expected from the smart contract call.
§Parameters
sc_call_step: The smart contract call step to be executed.
§Returns
A Result indicating the success or failure of the smart contract call execution.
Auto Trait Implementations§
impl<Client> CodecFromSelf for BaseSimulationNetworkExecutor<Client>
impl<Client> Freeze for BaseSimulationNetworkExecutor<Client>
impl<Client> RefUnwindSafe for BaseSimulationNetworkExecutor<Client>
impl<Client> Send for BaseSimulationNetworkExecutor<Client>
impl<Client> Sync for BaseSimulationNetworkExecutor<Client>
impl<Client> Unpin for BaseSimulationNetworkExecutor<Client>
impl<Client> UnwindSafe for BaseSimulationNetworkExecutor<Client>
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