Struct novax_executor::DummyExecutor
source · pub struct DummyExecutor<Tx: SendableTransactionConvertible> {
pub tx: Tx,
pub caller: Option<Address>,
}Expand description
A structure for capturing transaction details without performing actual blockchain transactions.
It is designed for testing scenarios, especially to fetch SendableTransaction details from interactions.
Fields§
§tx: TxHolds the transaction details.
caller: Option<Address>Optionally holds the caller address.
Implementations§
source§impl<Tx: SendableTransactionConvertible> DummyExecutor<Tx>
impl<Tx: SendableTransactionConvertible> DummyExecutor<Tx>
sourcepub fn get_transaction_details(&self) -> SendableTransaction
pub fn get_transaction_details(&self) -> SendableTransaction
Retrieves the transaction details encapsulated into a SendableTransaction.
source§impl<Tx: SendableTransactionConvertible + Default> DummyExecutor<Tx>
impl<Tx: SendableTransactionConvertible + Default> DummyExecutor<Tx>
Trait Implementations§
source§impl DeployExecutor for DummyExecutor<ScDeployStep>
impl DeployExecutor for DummyExecutor<ScDeployStep>
source§fn sc_deploy<'life0, 'life1, 'async_trait, OriginalResult>(
&'life0 mut self,
sc_deploy_step: &'life1 mut TypedScDeploy<OriginalResult>
) -> Pin<Box<dyn Future<Output = Result<(), ExecutorError>> + Send + 'async_trait>>where
OriginalResult: TopEncodeMulti + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sc_deploy<'life0, 'life1, 'async_trait, OriginalResult>( &'life0 mut self, sc_deploy_step: &'life1 mut TypedScDeploy<OriginalResult> ) -> Pin<Box<dyn Future<Output = Result<(), ExecutorError>> + Send + 'async_trait>>where OriginalResult: TopEncodeMulti + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Captures the smart contract deployment details.
source§impl TransactionExecutor for DummyExecutor<ScCallStep>
impl TransactionExecutor for DummyExecutor<ScCallStep>
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,
Captures the smart contract call details.
Auto Trait Implementations§
impl<Tx> CodecFromSelf for DummyExecutor<Tx>where Tx: CodecFromSelf,
impl<Tx> RefUnwindSafe for DummyExecutor<Tx>where Tx: RefUnwindSafe,
impl<Tx> Send for DummyExecutor<Tx>where Tx: Send,
impl<Tx> Sync for DummyExecutor<Tx>where Tx: Sync,
impl<Tx> Unpin for DummyExecutor<Tx>where Tx: Unpin,
impl<Tx> UnwindSafe for DummyExecutor<Tx>where Tx: 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