Struct multiversx_sc_snippets::Interactor
source · pub struct Interactor {
pub proxy: CommunicationProxy,
pub network_config: NetworkConfig,
pub sender_map: HashMap<Address, Sender>,
pub pre_runners: ScenarioRunnerList,
pub post_runners: ScenarioRunnerList,
/* private fields */
}Fields§
§proxy: CommunicationProxy§network_config: NetworkConfig§sender_map: HashMap<Address, Sender>§pre_runners: ScenarioRunnerList§post_runners: ScenarioRunnerListImplementations§
source§impl Interactor
impl Interactor
source§impl Interactor
impl Interactor
pub async fn multi_sc_exec(&mut self, buffer: StepBuffer<'_>)
source§impl Interactor
impl Interactor
pub async fn sc_call<S>(&mut self, sc_call_step: S)where
S: AsMut<ScCallStep>,
source§impl Interactor
impl Interactor
pub async fn launch_sc_deploy( &mut self, sc_deploy_step: &mut ScDeployStep ) -> String
pub async fn sc_deploy<S>(&mut self, sc_deploy_step: S)where
S: AsMut<ScDeployStep>,
source§impl Interactor
impl Interactor
pub async fn sc_call_use_raw_response<S, F>( &mut self, step: S, use_raw_response: F ) -> &mut Self
pub async fn sc_call_use_result<OriginalResult, RequestedResult, F>(
&mut self,
step: TypedScCall<OriginalResult>,
use_result: F
) -> &mut Selfwhere
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
F: FnOnce(TypedResponse<RequestedResult>),
pub async fn sc_call_get_result<OriginalResult, RequestedResult>(
&mut self,
step: TypedScCall<OriginalResult>
) -> TypedResponse<RequestedResult>where
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
pub async fn sc_query_use_raw_response<S, F>( &mut self, step: S, use_raw_response: F ) -> &mut Self
pub async fn sc_query_use_result<OriginalResult, RequestedResult, F>(
&mut self,
step: TypedScQuery<OriginalResult>,
use_result: F
) -> &mut Selfwhere
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
F: FnOnce(TypedResponse<RequestedResult>),
pub async fn sc_query_get_result<OriginalResult, RequestedResult>(
&mut self,
step: TypedScQuery<OriginalResult>
) -> TypedResponse<RequestedResult>where
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
pub async fn quick_query<CC, RequestedResult>(
&mut self,
contract_call: CC
) -> RequestedResultwhere
CC: ContractCall<StaticApi>,
RequestedResult: CodecFrom<CC::OriginalResult>,
pub async fn sc_deploy_use_raw_response<S, F>( &mut self, step: S, use_raw_response: F ) -> &mut Self
pub async fn sc_deploy_use_result<OriginalResult, RequestedResult, F>(
&mut self,
step: TypedScDeploy<OriginalResult>,
use_result: F
) -> &mut Selfwhere
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
F: FnOnce(Address, TypedResponse<RequestedResult>),
pub async fn sc_deploy_get_result<OriginalResult, RequestedResult>(
&mut self,
step: TypedScDeploy<OriginalResult>
) -> (Address, TypedResponse<RequestedResult>)where
OriginalResult: TopEncodeMulti,
RequestedResult: CodecFrom<OriginalResult>,
source§impl Interactor
impl Interactor
pub async fn transfer(&mut self, transfer_step: TransferStep) -> String
source§impl Interactor
impl Interactor
pub async fn recall_nonce(&self, address: &Address) -> u64
source§impl Interactor
impl Interactor
pub async fn sc_query<S>(&mut self, step: S) -> &mut Selfwhere
S: AsMut<ScQueryStep>,
pub async fn perform_sc_query(&mut self, step: &mut ScQueryStep)
pub async fn vm_query<CC, RequestedResult>(
&mut self,
contract_call: CC
) -> RequestedResultwhere
CC: ContractCall<StaticApi>,
RequestedResult: CodecFrom<CC::OriginalResult>,
👎Deprecated since 0.42.0: Was renamed to
quick_query.Auto Trait Implementations§
impl !CodecFromSelf for Interactor
impl !RefUnwindSafe for Interactor
impl Send for Interactor
impl Sync for Interactor
impl Unpin for Interactor
impl !UnwindSafe for Interactor
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