- Struct
WASMInstance
- Function
get_instance_id
- Function
create_wasm_instance
- Function
create_cbor_values
- Function
add_length_with_data
- Function
create_memory_wasm_args
- Function
execute_wasm_function
- Function
read_data_length
- Function
read_data_from_heap
- Function
release_wasm_instance
use 0x2::features;
struct WASMInstance
public fun get_instance_id(instance: &wasm::WASMInstance): u64
public fun create_wasm_instance(bytecode: vector<u8>): wasm::WASMInstance
public fun create_cbor_values(value: vector<vector<u8>>): vector<u8>
public fun add_length_with_data(value: vector<u8>): vector<u8>
public fun create_memory_wasm_args(instance: &mut wasm::WASMInstance, func_name: vector<u8>, args: vector<vector<u8>>): vector<u64>
public fun execute_wasm_function(instance: &mut wasm::WASMInstance, func_name: vector<u8>, args: vector<u64>): u64
public fun read_data_length(instance: &wasm::WASMInstance, data_ptr: u64): u32
public fun read_data_from_heap(instance: &wasm::WASMInstance, data_ptr: u32, data_length: u32): vector<u8>
public fun release_wasm_instance(instance: wasm::WASMInstance): bool