use std::ffi::c_void;
use crate::{MemLength, MemPtr};
#[rustfmt::skip]
#[allow(clippy::too_many_arguments)]
pub trait VMHooks: core::fmt::Debug + 'static {
fn set_vm_hooks_ptr(&mut self, vm_hooks_ptr: *mut c_void);
fn get_gas_left(&self) -> i64;
fn get_sc_address(&self, result_offset: MemPtr);
fn get_owner_address(&self, result_offset: MemPtr);
fn get_shard_of_address(&self, address_offset: MemPtr) -> i32;
fn is_smart_contract(&self, address_offset: MemPtr) -> i32;
fn signal_error(&self, message_offset: MemPtr, message_length: MemLength);
fn get_external_balance(&self, address_offset: MemPtr, result_offset: MemPtr);
fn get_block_hash(&self, nonce: i64, result_offset: MemPtr) -> i32;
fn get_dcdt_balance(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, result_offset: MemPtr) -> i32;
fn get_dcdt_nft_name_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32;
fn get_dcdt_nft_attribute_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32;
fn get_dcdt_nft_uri_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32;
fn get_dcdt_token_data(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, value_handle: i32, properties_offset: MemPtr, hash_offset: MemPtr, name_offset: MemPtr, attributes_offset: MemPtr, creator_offset: MemPtr, royalties_handle: i32, uris_offset: MemPtr) -> i32;
fn get_dcdt_local_roles(&self, token_id_handle: i32) -> i64;
fn validate_token_identifier(&self, token_id_handle: i32) -> i32;
fn transfer_value(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, length: MemLength) -> i32;
fn transfer_value_execute(&self, dest_offset: MemPtr, value_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn transfer_dcdt_execute(&self, dest_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, value_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn transfer_dcdt_nft_execute(&self, dest_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, value_offset: MemPtr, nonce: i64, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn multi_transfer_dcdt_nft_execute(&self, dest_offset: MemPtr, num_token_transfers: i32, token_transfers_args_length_offset: MemPtr, token_transfer_data_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn create_async_call(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, data_length: MemLength, success_offset: MemPtr, success_length: MemLength, error_offset: MemPtr, error_length: MemLength, gas: i64, extra_gas_for_callback: i64) -> i32;
fn set_async_context_callback(&self, callback: MemPtr, callback_length: MemLength, data: MemPtr, data_length: MemLength, gas: i64) -> i32;
fn upgrade_contract(&self, dest_offset: MemPtr, gas_limit: i64, value_offset: MemPtr, code_offset: MemPtr, code_metadata_offset: MemPtr, length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr);
fn upgrade_from_source_contract(&self, dest_offset: MemPtr, gas_limit: i64, value_offset: MemPtr, source_contract_address_offset: MemPtr, code_metadata_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr);
fn delete_contract(&self, dest_offset: MemPtr, gas_limit: i64, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr);
fn async_call(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, length: MemLength);
fn get_argument_length(&self, id: i32) -> i32;
fn get_argument(&self, id: i32, arg_offset: MemPtr) -> i32;
fn get_function(&self, function_offset: MemPtr) -> i32;
fn get_num_arguments(&self) -> i32;
fn storage_store(&self, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr, data_length: MemLength) -> i32;
fn storage_load_length(&self, key_offset: MemPtr, key_length: MemLength) -> i32;
fn storage_load_from_address(&self, address_offset: MemPtr, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr) -> i32;
fn storage_load(&self, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr) -> i32;
fn set_storage_lock(&self, key_offset: MemPtr, key_length: MemLength, lock_timestamp: i64) -> i32;
fn get_storage_lock(&self, key_offset: MemPtr, key_length: MemLength) -> i64;
fn is_storage_locked(&self, key_offset: MemPtr, key_length: MemLength) -> i32;
fn clear_storage_lock(&self, key_offset: MemPtr, key_length: MemLength) -> i32;
fn get_caller(&self, result_offset: MemPtr);
fn check_no_payment(&self);
fn get_call_value(&self, result_offset: MemPtr) -> i32;
fn get_dcdt_value(&self, result_offset: MemPtr) -> i32;
fn get_dcdt_value_by_index(&self, result_offset: MemPtr, index: i32) -> i32;
fn get_dcdt_token_name(&self, result_offset: MemPtr) -> i32;
fn get_dcdt_token_name_by_index(&self, result_offset: MemPtr, index: i32) -> i32;
fn get_dcdt_token_nonce(&self) -> i64;
fn get_dcdt_token_nonce_by_index(&self, index: i32) -> i64;
fn get_current_dcdt_nft_nonce(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength) -> i64;
fn get_dcdt_token_type(&self) -> i32;
fn get_dcdt_token_type_by_index(&self, index: i32) -> i32;
fn get_num_dcdt_transfers(&self) -> i32;
fn get_call_value_token_name(&self, call_value_offset: MemPtr, token_name_offset: MemPtr) -> i32;
fn get_call_value_token_name_by_index(&self, call_value_offset: MemPtr, token_name_offset: MemPtr, index: i32) -> i32;
fn write_log(&self, data_pointer: MemPtr, data_length: MemLength, topic_ptr: MemPtr, num_topics: i32);
fn write_event_log(&self, num_topics: i32, topic_lengths_offset: MemPtr, topic_offset: MemPtr, data_offset: MemPtr, data_length: MemLength);
fn get_block_timestamp(&self) -> i64;
fn get_block_nonce(&self) -> i64;
fn get_block_round(&self) -> i64;
fn get_block_epoch(&self) -> i64;
fn get_block_random_seed(&self, pointer: MemPtr);
fn get_state_root_hash(&self, pointer: MemPtr);
fn get_prev_block_timestamp(&self) -> i64;
fn get_prev_block_nonce(&self) -> i64;
fn get_prev_block_round(&self) -> i64;
fn get_prev_block_epoch(&self) -> i64;
fn get_prev_block_random_seed(&self, pointer: MemPtr);
fn finish(&self, pointer: MemPtr, length: MemLength);
fn execute_on_same_context(&self, gas_limit: i64, address_offset: MemPtr, value_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn execute_on_dest_context(&self, gas_limit: i64, address_offset: MemPtr, value_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn execute_read_only(&self, gas_limit: i64, address_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn create_contract(&self, gas_limit: i64, value_offset: MemPtr, code_offset: MemPtr, code_metadata_offset: MemPtr, length: MemLength, result_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn deploy_from_source_contract(&self, gas_limit: i64, value_offset: MemPtr, source_contract_address_offset: MemPtr, code_metadata_offset: MemPtr, result_address_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32;
fn get_num_return_data(&self) -> i32;
fn get_return_data_size(&self, result_id: i32) -> i32;
fn get_return_data(&self, result_id: i32, data_offset: MemPtr) -> i32;
fn clean_return_data(&self);
fn delete_from_return_data(&self, result_id: i32);
fn get_original_tx_hash(&self, data_offset: MemPtr);
fn get_current_tx_hash(&self, data_offset: MemPtr);
fn get_prev_tx_hash(&self, data_offset: MemPtr);
fn managed_sc_address(&self, destination_handle: i32);
fn managed_owner_address(&self, destination_handle: i32);
fn managed_caller(&self, destination_handle: i32);
fn managed_signal_error(&self, err_handle: i32);
fn managed_write_log(&self, topics_handle: i32, data_handle: i32);
fn managed_get_original_tx_hash(&self, result_handle: i32);
fn managed_get_state_root_hash(&self, result_handle: i32);
fn managed_get_block_random_seed(&self, result_handle: i32);
fn managed_get_prev_block_random_seed(&self, result_handle: i32);
fn managed_get_return_data(&self, result_id: i32, result_handle: i32);
fn managed_get_multi_dcdt_call_value(&self, multi_call_value_handle: i32);
fn managed_get_back_transfers(&self, dcdt_transfers_value_handle: i32, call_value_handle: i32);
fn managed_get_dcdt_balance(&self, address_handle: i32, token_id_handle: i32, nonce: i64, value_handle: i32);
fn managed_get_dcdt_token_data(&self, address_handle: i32, token_id_handle: i32, nonce: i64, value_handle: i32, properties_handle: i32, hash_handle: i32, name_handle: i32, attributes_handle: i32, creator_handle: i32, royalties_handle: i32, uris_handle: i32);
fn managed_async_call(&self, dest_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32);
fn managed_create_async_call(&self, dest_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, success_offset: MemPtr, success_length: MemLength, error_offset: MemPtr, error_length: MemLength, gas: i64, extra_gas_for_callback: i64, callback_closure_handle: i32) -> i32;
fn managed_get_callback_closure(&self, callback_closure_handle: i32);
fn managed_upgrade_from_source_contract(&self, dest_handle: i32, gas: i64, value_handle: i32, address_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_handle: i32);
fn managed_upgrade_contract(&self, dest_handle: i32, gas: i64, value_handle: i32, code_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_handle: i32);
fn managed_delete_contract(&self, dest_handle: i32, gas_limit: i64, arguments_handle: i32);
fn managed_deploy_from_source_contract(&self, gas: i64, value_handle: i32, address_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_address_handle: i32, result_handle: i32) -> i32;
fn managed_create_contract(&self, gas: i64, value_handle: i32, code_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_address_handle: i32, result_handle: i32) -> i32;
fn managed_execute_read_only(&self, gas: i64, address_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32;
fn managed_execute_on_same_context(&self, gas: i64, address_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32;
fn managed_execute_on_dest_context(&self, gas: i64, address_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32;
fn managed_multi_transfer_dcdt_nft_execute(&self, dst_handle: i32, token_transfers_handle: i32, gas_limit: i64, function_handle: i32, arguments_handle: i32) -> i32;
fn managed_transfer_value_execute(&self, dst_handle: i32, value_handle: i32, gas_limit: i64, function_handle: i32, arguments_handle: i32) -> i32;
fn managed_is_dcdt_frozen(&self, address_handle: i32, token_id_handle: i32, nonce: i64) -> i32;
fn managed_is_dcdt_limited_transfer(&self, token_id_handle: i32) -> i32;
fn managed_is_dcdt_paused(&self, token_id_handle: i32) -> i32;
fn managed_buffer_to_hex(&self, source_handle: i32, dest_handle: i32);
fn managed_get_code_metadata(&self, address_handle: i32, response_handle: i32);
fn managed_is_builtin_function(&self, function_name_handle: i32) -> i32;
fn big_float_new_from_parts(&self, integral_part: i32, fractional_part: i32, exponent: i32) -> i32;
fn big_float_new_from_frac(&self, numerator: i64, denominator: i64) -> i32;
fn big_float_new_from_sci(&self, significand: i64, exponent: i64) -> i32;
fn big_float_add(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_float_sub(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_float_mul(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_float_div(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_float_neg(&self, destination_handle: i32, op_handle: i32);
fn big_float_clone(&self, destination_handle: i32, op_handle: i32);
fn big_float_cmp(&self, op1_handle: i32, op2_handle: i32) -> i32;
fn big_float_abs(&self, destination_handle: i32, op_handle: i32);
fn big_float_sign(&self, op_handle: i32) -> i32;
fn big_float_sqrt(&self, destination_handle: i32, op_handle: i32);
fn big_float_pow(&self, destination_handle: i32, op_handle: i32, exponent: i32);
fn big_float_floor(&self, dest_big_int_handle: i32, op_handle: i32);
fn big_float_ceil(&self, dest_big_int_handle: i32, op_handle: i32);
fn big_float_truncate(&self, dest_big_int_handle: i32, op_handle: i32);
fn big_float_set_int64(&self, destination_handle: i32, value: i64);
fn big_float_is_int(&self, op_handle: i32) -> i32;
fn big_float_set_big_int(&self, destination_handle: i32, big_int_handle: i32);
fn big_float_get_const_pi(&self, destination_handle: i32);
fn big_float_get_const_e(&self, destination_handle: i32);
fn big_int_get_unsigned_argument(&self, id: i32, destination_handle: i32);
fn big_int_get_signed_argument(&self, id: i32, destination_handle: i32);
fn big_int_storage_store_unsigned(&self, key_offset: MemPtr, key_length: MemLength, source_handle: i32) -> i32;
fn big_int_storage_load_unsigned(&self, key_offset: MemPtr, key_length: MemLength, destination_handle: i32) -> i32;
fn big_int_get_call_value(&self, destination_handle: i32);
fn big_int_get_dcdt_call_value(&self, destination: i32);
fn big_int_get_dcdt_call_value_by_index(&self, destination_handle: i32, index: i32);
fn big_int_get_external_balance(&self, address_offset: MemPtr, result: i32);
fn big_int_get_dcdt_external_balance(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, result_handle: i32);
fn big_int_new(&self, small_value: i64) -> i32;
fn big_int_unsigned_byte_length(&self, reference_handle: i32) -> i32;
fn big_int_signed_byte_length(&self, reference_handle: i32) -> i32;
fn big_int_get_unsigned_bytes(&self, reference_handle: i32, byte_offset: MemPtr) -> i32;
fn big_int_get_signed_bytes(&self, reference_handle: i32, byte_offset: MemPtr) -> i32;
fn big_int_set_unsigned_bytes(&self, destination_handle: i32, byte_offset: MemPtr, byte_length: MemLength);
fn big_int_set_signed_bytes(&self, destination_handle: i32, byte_offset: MemPtr, byte_length: MemLength);
fn big_int_is_int64(&self, destination_handle: i32) -> i32;
fn big_int_get_int64(&self, destination_handle: i32) -> i64;
fn big_int_set_int64(&self, destination_handle: i32, value: i64);
fn big_int_add(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_sub(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_mul(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_tdiv(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_tmod(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_ediv(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_emod(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_sqrt(&self, destination_handle: i32, op_handle: i32);
fn big_int_pow(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_log2(&self, op1_handle: i32) -> i32;
fn big_int_abs(&self, destination_handle: i32, op_handle: i32);
fn big_int_neg(&self, destination_handle: i32, op_handle: i32);
fn big_int_sign(&self, op_handle: i32) -> i32;
fn big_int_cmp(&self, op1_handle: i32, op2_handle: i32) -> i32;
fn big_int_not(&self, destination_handle: i32, op_handle: i32);
fn big_int_and(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_or(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_xor(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32);
fn big_int_shr(&self, destination_handle: i32, op_handle: i32, bits: i32);
fn big_int_shl(&self, destination_handle: i32, op_handle: i32, bits: i32);
fn big_int_finish_unsigned(&self, reference_handle: i32);
fn big_int_finish_signed(&self, reference_handle: i32);
fn big_int_to_string(&self, big_int_handle: i32, destination_handle: i32);
fn mbuffer_new(&self) -> i32;
fn mbuffer_new_from_bytes(&self, data_offset: MemPtr, data_length: MemLength) -> i32;
fn mbuffer_get_length(&self, m_buffer_handle: i32) -> i32;
fn mbuffer_get_bytes(&self, m_buffer_handle: i32, result_offset: MemPtr) -> i32;
fn mbuffer_get_byte_slice(&self, source_handle: i32, starting_position: i32, slice_length: i32, result_offset: MemPtr) -> i32;
fn mbuffer_copy_byte_slice(&self, source_handle: i32, starting_position: i32, slice_length: i32, destination_handle: i32) -> i32;
fn mbuffer_eq(&self, m_buffer_handle1: i32, m_buffer_handle2: i32) -> i32;
fn mbuffer_set_bytes(&self, m_buffer_handle: i32, data_offset: MemPtr, data_length: MemLength) -> i32;
fn mbuffer_set_byte_slice(&self, m_buffer_handle: i32, starting_position: i32, data_length: MemLength, data_offset: MemPtr) -> i32;
fn mbuffer_append(&self, accumulator_handle: i32, data_handle: i32) -> i32;
fn mbuffer_append_bytes(&self, accumulator_handle: i32, data_offset: MemPtr, data_length: MemLength) -> i32;
fn mbuffer_to_big_int_unsigned(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32;
fn mbuffer_to_big_int_signed(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32;
fn mbuffer_from_big_int_unsigned(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32;
fn mbuffer_from_big_int_signed(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32;
fn mbuffer_to_big_float(&self, m_buffer_handle: i32, big_float_handle: i32) -> i32;
fn mbuffer_from_big_float(&self, m_buffer_handle: i32, big_float_handle: i32) -> i32;
fn mbuffer_storage_store(&self, key_handle: i32, source_handle: i32) -> i32;
fn mbuffer_storage_load(&self, key_handle: i32, destination_handle: i32) -> i32;
fn mbuffer_storage_load_from_address(&self, address_handle: i32, key_handle: i32, destination_handle: i32);
fn mbuffer_get_argument(&self, id: i32, destination_handle: i32) -> i32;
fn mbuffer_finish(&self, source_handle: i32) -> i32;
fn mbuffer_set_random(&self, destination_handle: i32, length: i32) -> i32;
fn managed_map_new(&self) -> i32;
fn managed_map_put(&self, m_map_handle: i32, key_handle: i32, value_handle: i32) -> i32;
fn managed_map_get(&self, m_map_handle: i32, key_handle: i32, out_value_handle: i32) -> i32;
fn managed_map_remove(&self, m_map_handle: i32, key_handle: i32, out_value_handle: i32) -> i32;
fn managed_map_contains(&self, m_map_handle: i32, key_handle: i32) -> i32;
fn small_int_get_unsigned_argument(&self, id: i32) -> i64;
fn small_int_get_signed_argument(&self, id: i32) -> i64;
fn small_int_finish_unsigned(&self, value: i64);
fn small_int_finish_signed(&self, value: i64);
fn small_int_storage_store_unsigned(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32;
fn small_int_storage_store_signed(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32;
fn small_int_storage_load_unsigned(&self, key_offset: MemPtr, key_length: MemLength) -> i64;
fn small_int_storage_load_signed(&self, key_offset: MemPtr, key_length: MemLength) -> i64;
fn int64get_argument(&self, id: i32) -> i64;
fn int64finish(&self, value: i64);
fn int64storage_store(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32;
fn int64storage_load(&self, key_offset: MemPtr, key_length: MemLength) -> i64;
fn sha256(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32;
fn managed_sha256(&self, input_handle: i32, output_handle: i32) -> i32;
fn keccak256(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32;
fn managed_keccak256(&self, input_handle: i32, output_handle: i32) -> i32;
fn ripemd160(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32;
fn managed_ripemd160(&self, input_handle: i32, output_handle: i32) -> i32;
fn verify_bls(&self, key_offset: MemPtr, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32;
fn managed_verify_bls(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32;
fn verify_ed25519(&self, key_offset: MemPtr, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32;
fn managed_verify_ed25519(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32;
fn verify_custom_secp256k1(&self, key_offset: MemPtr, key_length: MemLength, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr, hash_type: i32) -> i32;
fn managed_verify_custom_secp256k1(&self, key_handle: i32, message_handle: i32, sig_handle: i32, hash_type: i32) -> i32;
fn verify_secp256k1(&self, key_offset: MemPtr, key_length: MemLength, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32;
fn managed_verify_secp256k1(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32;
fn encode_secp256k1_der_signature(&self, r_offset: MemPtr, r_length: MemLength, s_offset: MemPtr, s_length: MemLength, sig_offset: MemPtr) -> i32;
fn managed_encode_secp256k1_der_signature(&self, r_handle: i32, s_handle: i32, sig_handle: i32) -> i32;
fn add_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, fst_point_xhandle: i32, fst_point_yhandle: i32, snd_point_xhandle: i32, snd_point_yhandle: i32);
fn double_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32);
fn is_on_curve_ec(&self, ec_handle: i32, point_xhandle: i32, point_yhandle: i32) -> i32;
fn scalar_base_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32;
fn managed_scalar_base_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32;
fn scalar_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32, data_offset: MemPtr, length: MemLength) -> i32;
fn managed_scalar_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32, data_handle: i32) -> i32;
fn marshal_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32;
fn managed_marshal_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_handle: i32) -> i32;
fn marshal_compressed_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32;
fn managed_marshal_compressed_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_handle: i32) -> i32;
fn unmarshal_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32;
fn managed_unmarshal_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32;
fn unmarshal_compressed_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32;
fn managed_unmarshal_compressed_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32;
fn generate_key_ec(&self, x_pub_key_handle: i32, y_pub_key_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32;
fn managed_generate_key_ec(&self, x_pub_key_handle: i32, y_pub_key_handle: i32, ec_handle: i32, result_handle: i32) -> i32;
fn create_ec(&self, data_offset: MemPtr, data_length: MemLength) -> i32;
fn managed_create_ec(&self, data_handle: i32) -> i32;
fn get_curve_length_ec(&self, ec_handle: i32) -> i32;
fn get_priv_key_byte_length_ec(&self, ec_handle: i32) -> i32;
fn elliptic_curve_get_values(&self, ec_handle: i32, field_order_handle: i32, base_point_order_handle: i32, eq_constant_handle: i32, x_base_point_handle: i32, y_base_point_handle: i32) -> i32;
}
#[derive(Debug)]
pub struct VMHooksDefault;
#[allow(unused)]
#[rustfmt::skip]
impl VMHooks for VMHooksDefault {
fn set_vm_hooks_ptr(&mut self, _vm_hooks_ptr: *mut c_void) {
}
fn get_gas_left(&self) -> i64 {
println!("Called: get_gas_left");
0
}
fn get_sc_address(&self, result_offset: MemPtr) {
println!("Called: get_sc_address");
}
fn get_owner_address(&self, result_offset: MemPtr) {
println!("Called: get_owner_address");
}
fn get_shard_of_address(&self, address_offset: MemPtr) -> i32 {
println!("Called: get_shard_of_address");
0
}
fn is_smart_contract(&self, address_offset: MemPtr) -> i32 {
println!("Called: is_smart_contract");
0
}
fn signal_error(&self, message_offset: MemPtr, message_length: MemLength) {
println!("Called: signal_error");
}
fn get_external_balance(&self, address_offset: MemPtr, result_offset: MemPtr) {
println!("Called: get_external_balance");
}
fn get_block_hash(&self, nonce: i64, result_offset: MemPtr) -> i32 {
println!("Called: get_block_hash");
0
}
fn get_dcdt_balance(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, result_offset: MemPtr) -> i32 {
println!("Called: get_dcdt_balance");
0
}
fn get_dcdt_nft_name_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32 {
println!("Called: get_dcdt_nft_name_length");
0
}
fn get_dcdt_nft_attribute_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32 {
println!("Called: get_dcdt_nft_attribute_length");
0
}
fn get_dcdt_nft_uri_length(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64) -> i32 {
println!("Called: get_dcdt_nft_uri_length");
0
}
fn get_dcdt_token_data(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, value_handle: i32, properties_offset: MemPtr, hash_offset: MemPtr, name_offset: MemPtr, attributes_offset: MemPtr, creator_offset: MemPtr, royalties_handle: i32, uris_offset: MemPtr) -> i32 {
println!("Called: get_dcdt_token_data");
0
}
fn get_dcdt_local_roles(&self, token_id_handle: i32) -> i64 {
println!("Called: get_dcdt_local_roles");
0
}
fn validate_token_identifier(&self, token_id_handle: i32) -> i32 {
println!("Called: validate_token_identifier");
0
}
fn transfer_value(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, length: MemLength) -> i32 {
println!("Called: transfer_value");
0
}
fn transfer_value_execute(&self, dest_offset: MemPtr, value_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: transfer_value_execute");
0
}
fn transfer_dcdt_execute(&self, dest_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, value_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: transfer_dcdt_execute");
0
}
fn transfer_dcdt_nft_execute(&self, dest_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, value_offset: MemPtr, nonce: i64, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: transfer_dcdt_nft_execute");
0
}
fn multi_transfer_dcdt_nft_execute(&self, dest_offset: MemPtr, num_token_transfers: i32, token_transfers_args_length_offset: MemPtr, token_transfer_data_offset: MemPtr, gas_limit: i64, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: multi_transfer_dcdt_nft_execute");
0
}
fn create_async_call(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, data_length: MemLength, success_offset: MemPtr, success_length: MemLength, error_offset: MemPtr, error_length: MemLength, gas: i64, extra_gas_for_callback: i64) -> i32 {
println!("Called: create_async_call");
0
}
fn set_async_context_callback(&self, callback: MemPtr, callback_length: MemLength, data: MemPtr, data_length: MemLength, gas: i64) -> i32 {
println!("Called: set_async_context_callback");
0
}
fn upgrade_contract(&self, dest_offset: MemPtr, gas_limit: i64, value_offset: MemPtr, code_offset: MemPtr, code_metadata_offset: MemPtr, length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) {
println!("Called: upgrade_contract");
}
fn upgrade_from_source_contract(&self, dest_offset: MemPtr, gas_limit: i64, value_offset: MemPtr, source_contract_address_offset: MemPtr, code_metadata_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) {
println!("Called: upgrade_from_source_contract");
}
fn delete_contract(&self, dest_offset: MemPtr, gas_limit: i64, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) {
println!("Called: delete_contract");
}
fn async_call(&self, dest_offset: MemPtr, value_offset: MemPtr, data_offset: MemPtr, length: MemLength) {
println!("Called: async_call");
}
fn get_argument_length(&self, id: i32) -> i32 {
println!("Called: get_argument_length");
0
}
fn get_argument(&self, id: i32, arg_offset: MemPtr) -> i32 {
println!("Called: get_argument");
0
}
fn get_function(&self, function_offset: MemPtr) -> i32 {
println!("Called: get_function");
0
}
fn get_num_arguments(&self) -> i32 {
println!("Called: get_num_arguments");
0
}
fn storage_store(&self, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr, data_length: MemLength) -> i32 {
println!("Called: storage_store");
0
}
fn storage_load_length(&self, key_offset: MemPtr, key_length: MemLength) -> i32 {
println!("Called: storage_load_length");
0
}
fn storage_load_from_address(&self, address_offset: MemPtr, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr) -> i32 {
println!("Called: storage_load_from_address");
0
}
fn storage_load(&self, key_offset: MemPtr, key_length: MemLength, data_offset: MemPtr) -> i32 {
println!("Called: storage_load");
0
}
fn set_storage_lock(&self, key_offset: MemPtr, key_length: MemLength, lock_timestamp: i64) -> i32 {
println!("Called: set_storage_lock");
0
}
fn get_storage_lock(&self, key_offset: MemPtr, key_length: MemLength) -> i64 {
println!("Called: get_storage_lock");
0
}
fn is_storage_locked(&self, key_offset: MemPtr, key_length: MemLength) -> i32 {
println!("Called: is_storage_locked");
0
}
fn clear_storage_lock(&self, key_offset: MemPtr, key_length: MemLength) -> i32 {
println!("Called: clear_storage_lock");
0
}
fn get_caller(&self, result_offset: MemPtr) {
println!("Called: get_caller");
}
fn check_no_payment(&self) {
println!("Called: check_no_payment");
}
fn get_call_value(&self, result_offset: MemPtr) -> i32 {
println!("Called: get_call_value");
0
}
fn get_dcdt_value(&self, result_offset: MemPtr) -> i32 {
println!("Called: get_dcdt_value");
0
}
fn get_dcdt_value_by_index(&self, result_offset: MemPtr, index: i32) -> i32 {
println!("Called: get_dcdt_value_by_index");
0
}
fn get_dcdt_token_name(&self, result_offset: MemPtr) -> i32 {
println!("Called: get_dcdt_token_name");
0
}
fn get_dcdt_token_name_by_index(&self, result_offset: MemPtr, index: i32) -> i32 {
println!("Called: get_dcdt_token_name_by_index");
0
}
fn get_dcdt_token_nonce(&self) -> i64 {
println!("Called: get_dcdt_token_nonce");
0
}
fn get_dcdt_token_nonce_by_index(&self, index: i32) -> i64 {
println!("Called: get_dcdt_token_nonce_by_index");
0
}
fn get_current_dcdt_nft_nonce(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength) -> i64 {
println!("Called: get_current_dcdt_nft_nonce");
0
}
fn get_dcdt_token_type(&self) -> i32 {
println!("Called: get_dcdt_token_type");
0
}
fn get_dcdt_token_type_by_index(&self, index: i32) -> i32 {
println!("Called: get_dcdt_token_type_by_index");
0
}
fn get_num_dcdt_transfers(&self) -> i32 {
println!("Called: get_num_dcdt_transfers");
0
}
fn get_call_value_token_name(&self, call_value_offset: MemPtr, token_name_offset: MemPtr) -> i32 {
println!("Called: get_call_value_token_name");
0
}
fn get_call_value_token_name_by_index(&self, call_value_offset: MemPtr, token_name_offset: MemPtr, index: i32) -> i32 {
println!("Called: get_call_value_token_name_by_index");
0
}
fn write_log(&self, data_pointer: MemPtr, data_length: MemLength, topic_ptr: MemPtr, num_topics: i32) {
println!("Called: write_log");
}
fn write_event_log(&self, num_topics: i32, topic_lengths_offset: MemPtr, topic_offset: MemPtr, data_offset: MemPtr, data_length: MemLength) {
println!("Called: write_event_log");
}
fn get_block_timestamp(&self) -> i64 {
println!("Called: get_block_timestamp");
0
}
fn get_block_nonce(&self) -> i64 {
println!("Called: get_block_nonce");
0
}
fn get_block_round(&self) -> i64 {
println!("Called: get_block_round");
0
}
fn get_block_epoch(&self) -> i64 {
println!("Called: get_block_epoch");
0
}
fn get_block_random_seed(&self, pointer: MemPtr) {
println!("Called: get_block_random_seed");
}
fn get_state_root_hash(&self, pointer: MemPtr) {
println!("Called: get_state_root_hash");
}
fn get_prev_block_timestamp(&self) -> i64 {
println!("Called: get_prev_block_timestamp");
0
}
fn get_prev_block_nonce(&self) -> i64 {
println!("Called: get_prev_block_nonce");
0
}
fn get_prev_block_round(&self) -> i64 {
println!("Called: get_prev_block_round");
0
}
fn get_prev_block_epoch(&self) -> i64 {
println!("Called: get_prev_block_epoch");
0
}
fn get_prev_block_random_seed(&self, pointer: MemPtr) {
println!("Called: get_prev_block_random_seed");
}
fn finish(&self, pointer: MemPtr, length: MemLength) {
println!("Called: finish");
}
fn execute_on_same_context(&self, gas_limit: i64, address_offset: MemPtr, value_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: execute_on_same_context");
0
}
fn execute_on_dest_context(&self, gas_limit: i64, address_offset: MemPtr, value_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: execute_on_dest_context");
0
}
fn execute_read_only(&self, gas_limit: i64, address_offset: MemPtr, function_offset: MemPtr, function_length: MemLength, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: execute_read_only");
0
}
fn create_contract(&self, gas_limit: i64, value_offset: MemPtr, code_offset: MemPtr, code_metadata_offset: MemPtr, length: MemLength, result_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: create_contract");
0
}
fn deploy_from_source_contract(&self, gas_limit: i64, value_offset: MemPtr, source_contract_address_offset: MemPtr, code_metadata_offset: MemPtr, result_address_offset: MemPtr, num_arguments: i32, arguments_length_offset: MemPtr, data_offset: MemPtr) -> i32 {
println!("Called: deploy_from_source_contract");
0
}
fn get_num_return_data(&self) -> i32 {
println!("Called: get_num_return_data");
0
}
fn get_return_data_size(&self, result_id: i32) -> i32 {
println!("Called: get_return_data_size");
0
}
fn get_return_data(&self, result_id: i32, data_offset: MemPtr) -> i32 {
println!("Called: get_return_data");
0
}
fn clean_return_data(&self) {
println!("Called: clean_return_data");
}
fn delete_from_return_data(&self, result_id: i32) {
println!("Called: delete_from_return_data");
}
fn get_original_tx_hash(&self, data_offset: MemPtr) {
println!("Called: get_original_tx_hash");
}
fn get_current_tx_hash(&self, data_offset: MemPtr) {
println!("Called: get_current_tx_hash");
}
fn get_prev_tx_hash(&self, data_offset: MemPtr) {
println!("Called: get_prev_tx_hash");
}
fn managed_sc_address(&self, destination_handle: i32) {
println!("Called: managed_sc_address");
}
fn managed_owner_address(&self, destination_handle: i32) {
println!("Called: managed_owner_address");
}
fn managed_caller(&self, destination_handle: i32) {
println!("Called: managed_caller");
}
fn managed_signal_error(&self, err_handle: i32) {
println!("Called: managed_signal_error");
}
fn managed_write_log(&self, topics_handle: i32, data_handle: i32) {
println!("Called: managed_write_log");
}
fn managed_get_original_tx_hash(&self, result_handle: i32) {
println!("Called: managed_get_original_tx_hash");
}
fn managed_get_state_root_hash(&self, result_handle: i32) {
println!("Called: managed_get_state_root_hash");
}
fn managed_get_block_random_seed(&self, result_handle: i32) {
println!("Called: managed_get_block_random_seed");
}
fn managed_get_prev_block_random_seed(&self, result_handle: i32) {
println!("Called: managed_get_prev_block_random_seed");
}
fn managed_get_return_data(&self, result_id: i32, result_handle: i32) {
println!("Called: managed_get_return_data");
}
fn managed_get_multi_dcdt_call_value(&self, multi_call_value_handle: i32) {
println!("Called: managed_get_multi_dcdt_call_value");
}
fn managed_get_back_transfers(&self, dcdt_transfers_value_handle: i32, call_value_handle: i32) {
println!("Called: managed_get_back_transfers");
}
fn managed_get_dcdt_balance(&self, address_handle: i32, token_id_handle: i32, nonce: i64, value_handle: i32) {
println!("Called: managed_get_dcdt_balance");
}
fn managed_get_dcdt_token_data(&self, address_handle: i32, token_id_handle: i32, nonce: i64, value_handle: i32, properties_handle: i32, hash_handle: i32, name_handle: i32, attributes_handle: i32, creator_handle: i32, royalties_handle: i32, uris_handle: i32) {
println!("Called: managed_get_dcdt_token_data");
}
fn managed_async_call(&self, dest_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32) {
println!("Called: managed_async_call");
}
fn managed_create_async_call(&self, dest_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, success_offset: MemPtr, success_length: MemLength, error_offset: MemPtr, error_length: MemLength, gas: i64, extra_gas_for_callback: i64, callback_closure_handle: i32) -> i32 {
println!("Called: managed_create_async_call");
0
}
fn managed_get_callback_closure(&self, callback_closure_handle: i32) {
println!("Called: managed_get_callback_closure");
}
fn managed_upgrade_from_source_contract(&self, dest_handle: i32, gas: i64, value_handle: i32, address_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_handle: i32) {
println!("Called: managed_upgrade_from_source_contract");
}
fn managed_upgrade_contract(&self, dest_handle: i32, gas: i64, value_handle: i32, code_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_handle: i32) {
println!("Called: managed_upgrade_contract");
}
fn managed_delete_contract(&self, dest_handle: i32, gas_limit: i64, arguments_handle: i32) {
println!("Called: managed_delete_contract");
}
fn managed_deploy_from_source_contract(&self, gas: i64, value_handle: i32, address_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_address_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_deploy_from_source_contract");
0
}
fn managed_create_contract(&self, gas: i64, value_handle: i32, code_handle: i32, code_metadata_handle: i32, arguments_handle: i32, result_address_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_create_contract");
0
}
fn managed_execute_read_only(&self, gas: i64, address_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_execute_read_only");
0
}
fn managed_execute_on_same_context(&self, gas: i64, address_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_execute_on_same_context");
0
}
fn managed_execute_on_dest_context(&self, gas: i64, address_handle: i32, value_handle: i32, function_handle: i32, arguments_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_execute_on_dest_context");
0
}
fn managed_multi_transfer_dcdt_nft_execute(&self, dst_handle: i32, token_transfers_handle: i32, gas_limit: i64, function_handle: i32, arguments_handle: i32) -> i32 {
println!("Called: managed_multi_transfer_dcdt_nft_execute");
0
}
fn managed_transfer_value_execute(&self, dst_handle: i32, value_handle: i32, gas_limit: i64, function_handle: i32, arguments_handle: i32) -> i32 {
println!("Called: managed_transfer_value_execute");
0
}
fn managed_is_dcdt_frozen(&self, address_handle: i32, token_id_handle: i32, nonce: i64) -> i32 {
println!("Called: managed_is_dcdt_frozen");
0
}
fn managed_is_dcdt_limited_transfer(&self, token_id_handle: i32) -> i32 {
println!("Called: managed_is_dcdt_limited_transfer");
0
}
fn managed_is_dcdt_paused(&self, token_id_handle: i32) -> i32 {
println!("Called: managed_is_dcdt_paused");
0
}
fn managed_buffer_to_hex(&self, source_handle: i32, dest_handle: i32) {
println!("Called: managed_buffer_to_hex");
}
fn managed_get_code_metadata(&self, address_handle: i32, response_handle: i32) {
println!("Called: managed_get_code_metadata");
}
fn managed_is_builtin_function(&self, function_name_handle: i32) -> i32 {
println!("Called: managed_is_builtin_function");
0
}
fn big_float_new_from_parts(&self, integral_part: i32, fractional_part: i32, exponent: i32) -> i32 {
println!("Called: big_float_new_from_parts");
0
}
fn big_float_new_from_frac(&self, numerator: i64, denominator: i64) -> i32 {
println!("Called: big_float_new_from_frac");
0
}
fn big_float_new_from_sci(&self, significand: i64, exponent: i64) -> i32 {
println!("Called: big_float_new_from_sci");
0
}
fn big_float_add(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_float_add");
}
fn big_float_sub(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_float_sub");
}
fn big_float_mul(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_float_mul");
}
fn big_float_div(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_float_div");
}
fn big_float_neg(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_float_neg");
}
fn big_float_clone(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_float_clone");
}
fn big_float_cmp(&self, op1_handle: i32, op2_handle: i32) -> i32 {
println!("Called: big_float_cmp");
0
}
fn big_float_abs(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_float_abs");
}
fn big_float_sign(&self, op_handle: i32) -> i32 {
println!("Called: big_float_sign");
0
}
fn big_float_sqrt(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_float_sqrt");
}
fn big_float_pow(&self, destination_handle: i32, op_handle: i32, exponent: i32) {
println!("Called: big_float_pow");
}
fn big_float_floor(&self, dest_big_int_handle: i32, op_handle: i32) {
println!("Called: big_float_floor");
}
fn big_float_ceil(&self, dest_big_int_handle: i32, op_handle: i32) {
println!("Called: big_float_ceil");
}
fn big_float_truncate(&self, dest_big_int_handle: i32, op_handle: i32) {
println!("Called: big_float_truncate");
}
fn big_float_set_int64(&self, destination_handle: i32, value: i64) {
println!("Called: big_float_set_int64");
}
fn big_float_is_int(&self, op_handle: i32) -> i32 {
println!("Called: big_float_is_int");
0
}
fn big_float_set_big_int(&self, destination_handle: i32, big_int_handle: i32) {
println!("Called: big_float_set_big_int");
}
fn big_float_get_const_pi(&self, destination_handle: i32) {
println!("Called: big_float_get_const_pi");
}
fn big_float_get_const_e(&self, destination_handle: i32) {
println!("Called: big_float_get_const_e");
}
fn big_int_get_unsigned_argument(&self, id: i32, destination_handle: i32) {
println!("Called: big_int_get_unsigned_argument");
}
fn big_int_get_signed_argument(&self, id: i32, destination_handle: i32) {
println!("Called: big_int_get_signed_argument");
}
fn big_int_storage_store_unsigned(&self, key_offset: MemPtr, key_length: MemLength, source_handle: i32) -> i32 {
println!("Called: big_int_storage_store_unsigned");
0
}
fn big_int_storage_load_unsigned(&self, key_offset: MemPtr, key_length: MemLength, destination_handle: i32) -> i32 {
println!("Called: big_int_storage_load_unsigned");
0
}
fn big_int_get_call_value(&self, destination_handle: i32) {
println!("Called: big_int_get_call_value");
}
fn big_int_get_dcdt_call_value(&self, destination: i32) {
println!("Called: big_int_get_dcdt_call_value");
}
fn big_int_get_dcdt_call_value_by_index(&self, destination_handle: i32, index: i32) {
println!("Called: big_int_get_dcdt_call_value_by_index");
}
fn big_int_get_external_balance(&self, address_offset: MemPtr, result: i32) {
println!("Called: big_int_get_external_balance");
}
fn big_int_get_dcdt_external_balance(&self, address_offset: MemPtr, token_id_offset: MemPtr, token_id_len: MemLength, nonce: i64, result_handle: i32) {
println!("Called: big_int_get_dcdt_external_balance");
}
fn big_int_new(&self, small_value: i64) -> i32 {
println!("Called: big_int_new");
0
}
fn big_int_unsigned_byte_length(&self, reference_handle: i32) -> i32 {
println!("Called: big_int_unsigned_byte_length");
0
}
fn big_int_signed_byte_length(&self, reference_handle: i32) -> i32 {
println!("Called: big_int_signed_byte_length");
0
}
fn big_int_get_unsigned_bytes(&self, reference_handle: i32, byte_offset: MemPtr) -> i32 {
println!("Called: big_int_get_unsigned_bytes");
0
}
fn big_int_get_signed_bytes(&self, reference_handle: i32, byte_offset: MemPtr) -> i32 {
println!("Called: big_int_get_signed_bytes");
0
}
fn big_int_set_unsigned_bytes(&self, destination_handle: i32, byte_offset: MemPtr, byte_length: MemLength) {
println!("Called: big_int_set_unsigned_bytes");
}
fn big_int_set_signed_bytes(&self, destination_handle: i32, byte_offset: MemPtr, byte_length: MemLength) {
println!("Called: big_int_set_signed_bytes");
}
fn big_int_is_int64(&self, destination_handle: i32) -> i32 {
println!("Called: big_int_is_int64");
0
}
fn big_int_get_int64(&self, destination_handle: i32) -> i64 {
println!("Called: big_int_get_int64");
0
}
fn big_int_set_int64(&self, destination_handle: i32, value: i64) {
println!("Called: big_int_set_int64");
}
fn big_int_add(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_add");
}
fn big_int_sub(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_sub");
}
fn big_int_mul(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_mul");
}
fn big_int_tdiv(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_tdiv");
}
fn big_int_tmod(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_tmod");
}
fn big_int_ediv(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_ediv");
}
fn big_int_emod(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_emod");
}
fn big_int_sqrt(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_int_sqrt");
}
fn big_int_pow(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_pow");
}
fn big_int_log2(&self, op1_handle: i32) -> i32 {
println!("Called: big_int_log2");
0
}
fn big_int_abs(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_int_abs");
}
fn big_int_neg(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_int_neg");
}
fn big_int_sign(&self, op_handle: i32) -> i32 {
println!("Called: big_int_sign");
0
}
fn big_int_cmp(&self, op1_handle: i32, op2_handle: i32) -> i32 {
println!("Called: big_int_cmp");
0
}
fn big_int_not(&self, destination_handle: i32, op_handle: i32) {
println!("Called: big_int_not");
}
fn big_int_and(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_and");
}
fn big_int_or(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_or");
}
fn big_int_xor(&self, destination_handle: i32, op1_handle: i32, op2_handle: i32) {
println!("Called: big_int_xor");
}
fn big_int_shr(&self, destination_handle: i32, op_handle: i32, bits: i32) {
println!("Called: big_int_shr");
}
fn big_int_shl(&self, destination_handle: i32, op_handle: i32, bits: i32) {
println!("Called: big_int_shl");
}
fn big_int_finish_unsigned(&self, reference_handle: i32) {
println!("Called: big_int_finish_unsigned");
}
fn big_int_finish_signed(&self, reference_handle: i32) {
println!("Called: big_int_finish_signed");
}
fn big_int_to_string(&self, big_int_handle: i32, destination_handle: i32) {
println!("Called: big_int_to_string");
}
fn mbuffer_new(&self) -> i32 {
println!("Called: mbuffer_new");
0
}
fn mbuffer_new_from_bytes(&self, data_offset: MemPtr, data_length: MemLength) -> i32 {
println!("Called: mbuffer_new_from_bytes");
0
}
fn mbuffer_get_length(&self, m_buffer_handle: i32) -> i32 {
println!("Called: mbuffer_get_length");
0
}
fn mbuffer_get_bytes(&self, m_buffer_handle: i32, result_offset: MemPtr) -> i32 {
println!("Called: mbuffer_get_bytes");
0
}
fn mbuffer_get_byte_slice(&self, source_handle: i32, starting_position: i32, slice_length: i32, result_offset: MemPtr) -> i32 {
println!("Called: mbuffer_get_byte_slice");
0
}
fn mbuffer_copy_byte_slice(&self, source_handle: i32, starting_position: i32, slice_length: i32, destination_handle: i32) -> i32 {
println!("Called: mbuffer_copy_byte_slice");
0
}
fn mbuffer_eq(&self, m_buffer_handle1: i32, m_buffer_handle2: i32) -> i32 {
println!("Called: mbuffer_eq");
0
}
fn mbuffer_set_bytes(&self, m_buffer_handle: i32, data_offset: MemPtr, data_length: MemLength) -> i32 {
println!("Called: mbuffer_set_bytes");
0
}
fn mbuffer_set_byte_slice(&self, m_buffer_handle: i32, starting_position: i32, data_length: MemLength, data_offset: MemPtr) -> i32 {
println!("Called: mbuffer_set_byte_slice");
0
}
fn mbuffer_append(&self, accumulator_handle: i32, data_handle: i32) -> i32 {
println!("Called: mbuffer_append");
0
}
fn mbuffer_append_bytes(&self, accumulator_handle: i32, data_offset: MemPtr, data_length: MemLength) -> i32 {
println!("Called: mbuffer_append_bytes");
0
}
fn mbuffer_to_big_int_unsigned(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32 {
println!("Called: mbuffer_to_big_int_unsigned");
0
}
fn mbuffer_to_big_int_signed(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32 {
println!("Called: mbuffer_to_big_int_signed");
0
}
fn mbuffer_from_big_int_unsigned(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32 {
println!("Called: mbuffer_from_big_int_unsigned");
0
}
fn mbuffer_from_big_int_signed(&self, m_buffer_handle: i32, big_int_handle: i32) -> i32 {
println!("Called: mbuffer_from_big_int_signed");
0
}
fn mbuffer_to_big_float(&self, m_buffer_handle: i32, big_float_handle: i32) -> i32 {
println!("Called: mbuffer_to_big_float");
0
}
fn mbuffer_from_big_float(&self, m_buffer_handle: i32, big_float_handle: i32) -> i32 {
println!("Called: mbuffer_from_big_float");
0
}
fn mbuffer_storage_store(&self, key_handle: i32, source_handle: i32) -> i32 {
println!("Called: mbuffer_storage_store");
0
}
fn mbuffer_storage_load(&self, key_handle: i32, destination_handle: i32) -> i32 {
println!("Called: mbuffer_storage_load");
0
}
fn mbuffer_storage_load_from_address(&self, address_handle: i32, key_handle: i32, destination_handle: i32) {
println!("Called: mbuffer_storage_load_from_address");
}
fn mbuffer_get_argument(&self, id: i32, destination_handle: i32) -> i32 {
println!("Called: mbuffer_get_argument");
0
}
fn mbuffer_finish(&self, source_handle: i32) -> i32 {
println!("Called: mbuffer_finish");
0
}
fn mbuffer_set_random(&self, destination_handle: i32, length: i32) -> i32 {
println!("Called: mbuffer_set_random");
0
}
fn managed_map_new(&self) -> i32 {
println!("Called: managed_map_new");
0
}
fn managed_map_put(&self, m_map_handle: i32, key_handle: i32, value_handle: i32) -> i32 {
println!("Called: managed_map_put");
0
}
fn managed_map_get(&self, m_map_handle: i32, key_handle: i32, out_value_handle: i32) -> i32 {
println!("Called: managed_map_get");
0
}
fn managed_map_remove(&self, m_map_handle: i32, key_handle: i32, out_value_handle: i32) -> i32 {
println!("Called: managed_map_remove");
0
}
fn managed_map_contains(&self, m_map_handle: i32, key_handle: i32) -> i32 {
println!("Called: managed_map_contains");
0
}
fn small_int_get_unsigned_argument(&self, id: i32) -> i64 {
println!("Called: small_int_get_unsigned_argument");
0
}
fn small_int_get_signed_argument(&self, id: i32) -> i64 {
println!("Called: small_int_get_signed_argument");
0
}
fn small_int_finish_unsigned(&self, value: i64) {
println!("Called: small_int_finish_unsigned");
}
fn small_int_finish_signed(&self, value: i64) {
println!("Called: small_int_finish_signed");
}
fn small_int_storage_store_unsigned(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32 {
println!("Called: small_int_storage_store_unsigned");
0
}
fn small_int_storage_store_signed(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32 {
println!("Called: small_int_storage_store_signed");
0
}
fn small_int_storage_load_unsigned(&self, key_offset: MemPtr, key_length: MemLength) -> i64 {
println!("Called: small_int_storage_load_unsigned");
0
}
fn small_int_storage_load_signed(&self, key_offset: MemPtr, key_length: MemLength) -> i64 {
println!("Called: small_int_storage_load_signed");
0
}
fn int64get_argument(&self, id: i32) -> i64 {
println!("Called: int64get_argument");
0
}
fn int64finish(&self, value: i64) {
println!("Called: int64finish");
}
fn int64storage_store(&self, key_offset: MemPtr, key_length: MemLength, value: i64) -> i32 {
println!("Called: int64storage_store");
0
}
fn int64storage_load(&self, key_offset: MemPtr, key_length: MemLength) -> i64 {
println!("Called: int64storage_load");
0
}
fn sha256(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32 {
println!("Called: sha256");
0
}
fn managed_sha256(&self, input_handle: i32, output_handle: i32) -> i32 {
println!("Called: managed_sha256");
0
}
fn keccak256(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32 {
println!("Called: keccak256");
0
}
fn managed_keccak256(&self, input_handle: i32, output_handle: i32) -> i32 {
println!("Called: managed_keccak256");
0
}
fn ripemd160(&self, data_offset: MemPtr, length: MemLength, result_offset: MemPtr) -> i32 {
println!("Called: ripemd160");
0
}
fn managed_ripemd160(&self, input_handle: i32, output_handle: i32) -> i32 {
println!("Called: managed_ripemd160");
0
}
fn verify_bls(&self, key_offset: MemPtr, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32 {
println!("Called: verify_bls");
0
}
fn managed_verify_bls(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32 {
println!("Called: managed_verify_bls");
0
}
fn verify_ed25519(&self, key_offset: MemPtr, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32 {
println!("Called: verify_ed25519");
0
}
fn managed_verify_ed25519(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32 {
println!("Called: managed_verify_ed25519");
0
}
fn verify_custom_secp256k1(&self, key_offset: MemPtr, key_length: MemLength, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr, hash_type: i32) -> i32 {
println!("Called: verify_custom_secp256k1");
0
}
fn managed_verify_custom_secp256k1(&self, key_handle: i32, message_handle: i32, sig_handle: i32, hash_type: i32) -> i32 {
println!("Called: managed_verify_custom_secp256k1");
0
}
fn verify_secp256k1(&self, key_offset: MemPtr, key_length: MemLength, message_offset: MemPtr, message_length: MemLength, sig_offset: MemPtr) -> i32 {
println!("Called: verify_secp256k1");
0
}
fn managed_verify_secp256k1(&self, key_handle: i32, message_handle: i32, sig_handle: i32) -> i32 {
println!("Called: managed_verify_secp256k1");
0
}
fn encode_secp256k1_der_signature(&self, r_offset: MemPtr, r_length: MemLength, s_offset: MemPtr, s_length: MemLength, sig_offset: MemPtr) -> i32 {
println!("Called: encode_secp256k1_der_signature");
0
}
fn managed_encode_secp256k1_der_signature(&self, r_handle: i32, s_handle: i32, sig_handle: i32) -> i32 {
println!("Called: managed_encode_secp256k1_der_signature");
0
}
fn add_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, fst_point_xhandle: i32, fst_point_yhandle: i32, snd_point_xhandle: i32, snd_point_yhandle: i32) {
println!("Called: add_ec");
}
fn double_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32) {
println!("Called: double_ec");
}
fn is_on_curve_ec(&self, ec_handle: i32, point_xhandle: i32, point_yhandle: i32) -> i32 {
println!("Called: is_on_curve_ec");
0
}
fn scalar_base_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32 {
println!("Called: scalar_base_mult_ec");
0
}
fn managed_scalar_base_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32 {
println!("Called: managed_scalar_base_mult_ec");
0
}
fn scalar_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32, data_offset: MemPtr, length: MemLength) -> i32 {
println!("Called: scalar_mult_ec");
0
}
fn managed_scalar_mult_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, point_xhandle: i32, point_yhandle: i32, data_handle: i32) -> i32 {
println!("Called: managed_scalar_mult_ec");
0
}
fn marshal_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32 {
println!("Called: marshal_ec");
0
}
fn managed_marshal_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_marshal_ec");
0
}
fn marshal_compressed_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32 {
println!("Called: marshal_compressed_ec");
0
}
fn managed_marshal_compressed_ec(&self, x_pair_handle: i32, y_pair_handle: i32, ec_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_marshal_compressed_ec");
0
}
fn unmarshal_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32 {
println!("Called: unmarshal_ec");
0
}
fn managed_unmarshal_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32 {
println!("Called: managed_unmarshal_ec");
0
}
fn unmarshal_compressed_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_offset: MemPtr, length: MemLength) -> i32 {
println!("Called: unmarshal_compressed_ec");
0
}
fn managed_unmarshal_compressed_ec(&self, x_result_handle: i32, y_result_handle: i32, ec_handle: i32, data_handle: i32) -> i32 {
println!("Called: managed_unmarshal_compressed_ec");
0
}
fn generate_key_ec(&self, x_pub_key_handle: i32, y_pub_key_handle: i32, ec_handle: i32, result_offset: MemPtr) -> i32 {
println!("Called: generate_key_ec");
0
}
fn managed_generate_key_ec(&self, x_pub_key_handle: i32, y_pub_key_handle: i32, ec_handle: i32, result_handle: i32) -> i32 {
println!("Called: managed_generate_key_ec");
0
}
fn create_ec(&self, data_offset: MemPtr, data_length: MemLength) -> i32 {
println!("Called: create_ec");
0
}
fn managed_create_ec(&self, data_handle: i32) -> i32 {
println!("Called: managed_create_ec");
0
}
fn get_curve_length_ec(&self, ec_handle: i32) -> i32 {
println!("Called: get_curve_length_ec");
0
}
fn get_priv_key_byte_length_ec(&self, ec_handle: i32) -> i32 {
println!("Called: get_priv_key_byte_length_ec");
0
}
fn elliptic_curve_get_values(&self, ec_handle: i32, field_order_handle: i32, base_point_order_handle: i32, eq_constant_handle: i32, x_base_point_handle: i32, y_base_point_handle: i32) -> i32 {
println!("Called: elliptic_curve_get_values");
0
}
}