pub struct MultiContractCall;Expand description
Multi-contract call manager
Implementations§
Source§impl MultiContractCall
impl MultiContractCall
Sourcepub async fn aggregate_read(
client: Arc<Aptos>,
calls: Vec<ContractCall>,
) -> Result<Vec<Value>, String>
pub async fn aggregate_read( client: Arc<Aptos>, calls: Vec<ContractCall>, ) -> Result<Vec<Value>, String>
execute multiple read-only calls
Sourcepub async fn execute_sequence(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
calls: Vec<(ContractCall, Option<String>)>,
) -> Result<Vec<Value>, String>
pub async fn execute_sequence( client: Arc<Aptos>, wallet: Arc<Wallet>, calls: Vec<(ContractCall, Option<String>)>, ) -> Result<Vec<Value>, String>
Contract call sequence with dependencies
Sourcepub async fn conditional_execute(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
condition_call: ContractCall,
execute_call: ContractCall,
) -> Result<Option<Value>, String>
pub async fn conditional_execute( client: Arc<Aptos>, wallet: Arc<Wallet>, condition_call: ContractCall, execute_call: ContractCall, ) -> Result<Option<Value>, String>
Conditional execution execute the call only if a condition is met
Auto Trait Implementations§
impl Freeze for MultiContractCall
impl RefUnwindSafe for MultiContractCall
impl Send for MultiContractCall
impl Sync for MultiContractCall
impl Unpin for MultiContractCall
impl UnwindSafe for MultiContractCall
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more