pub struct ContractUtils;Expand description
Contract tool
Implementations§
Source§impl ContractUtils
impl ContractUtils
Sourcepub fn create_standard_call(
module_address: &str,
module_name: &str,
function_name: &str,
type_arguments: Vec<String>,
arguments: Vec<Value>,
) -> ContractCall
pub fn create_standard_call( module_address: &str, module_name: &str, function_name: &str, type_arguments: Vec<String>, arguments: Vec<Value>, ) -> ContractCall
Generate standard contract calls
Sourcepub fn parse_event_data(
event_data: Value,
event_schema: &[&str],
) -> HashMap<String, Value>
pub fn parse_event_data( event_data: Value, event_schema: &[&str], ) -> HashMap<String, Value>
Parsing event data into a structured format
Sourcepub fn calculate_call_signature(
contract_call: &ContractCall,
nonce: &str,
) -> String
pub fn calculate_call_signature( contract_call: &ContractCall, nonce: &str, ) -> String
Calculate the contract call signature
Auto Trait Implementations§
impl Freeze for ContractUtils
impl RefUnwindSafe for ContractUtils
impl Send for ContractUtils
impl Sync for ContractUtils
impl Unpin for ContractUtils
impl UnwindSafe for ContractUtils
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