pub struct MultiCallUtils;Expand description
Multiple call tool functions
Implementations§
Source§impl MultiCallUtils
impl MultiCallUtils
Sourcepub fn create_multicall_calls(
base_calls: Vec<ContractCall>,
common_args: Vec<Value>,
) -> Vec<ContractCall>
pub fn create_multicall_calls( base_calls: Vec<ContractCall>, common_args: Vec<Value>, ) -> Vec<ContractCall>
Creating standard multi-call parameters
Sourcepub fn analyze_multicall_results(results: &[Value]) -> HashMap<String, usize>
pub fn analyze_multicall_results(results: &[Value]) -> HashMap<String, usize>
Analyzing multiple call results
Sourcepub fn filter_successful_results(results: Vec<Value>) -> Vec<Value>
pub fn filter_successful_results(results: Vec<Value>) -> Vec<Value>
Filter successful call results
Sourcepub fn extract_transaction_hashes(results: &[Value]) -> Vec<String>
pub fn extract_transaction_hashes(results: &[Value]) -> Vec<String>
Extract all transaction hashes
Auto Trait Implementations§
impl Freeze for MultiCallUtils
impl RefUnwindSafe for MultiCallUtils
impl Send for MultiCallUtils
impl Sync for MultiCallUtils
impl Unpin for MultiCallUtils
impl UnwindSafe for MultiCallUtils
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