pub struct UncallableApi;
Expand description
Dummy type with no implementation. Provides context in ABI generators.
Trait Implementations§
Source§impl BigFloatApiImpl for UncallableApi
impl BigFloatApiImpl for UncallableApi
fn bf_from_parts( &self, _integral_part: i32, _fractional_part: i32, _exponent: i32, ) -> Self::BigFloatHandle
fn bf_from_frac( &self, _numerator: i64, _denominator: i64, ) -> Self::BigFloatHandle
fn bf_from_sci(&self, _significand: i64, _exponent: i64) -> Self::BigFloatHandle
fn bf_add( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle, )
fn bf_sub( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle, )
fn bf_mul( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle, )
fn bf_div( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle, )
fn bf_abs(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)
fn bf_neg(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)
fn bf_cmp(&self, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle) -> Ordering
fn bf_sign(&self, _x: Self::BigFloatHandle) -> Sign
fn bf_clone(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)
fn bf_sqrt(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)
fn bf_pow( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _exp: i32, )
fn bf_floor(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)
fn bf_ceil(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)
fn bf_trunc(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)
fn bf_is_bi(&self, _x: Self::BigFloatHandle) -> bool
fn bf_set_i64(&self, _dest: Self::BigFloatHandle, _value: i64)
fn bf_set_bi(&self, _dest: Self::BigFloatHandle, _bi: Self::BigIntHandle)
fn bf_get_const_pi(&self, _dest: Self::BigFloatHandle)
fn bf_get_const_e(&self, _dest: Self::BigFloatHandle)
fn bf_new_zero(&self) -> Self::BigFloatHandle
Source§impl BigIntApiImpl for UncallableApi
impl BigIntApiImpl for UncallableApi
fn bi_new(&self, _value: i64) -> Self::BigIntHandle
fn bi_set_int64(&self, _destination: Self::BigIntHandle, _value: i64)
fn bi_to_i64(&self, _reference: Self::BigIntHandle) -> Option<i64>
fn bi_add( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_sub( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_mul( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_t_div( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_t_mod( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_abs(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)
fn bi_neg(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)
fn bi_sign(&self, _x: Self::BigIntHandle) -> Sign
fn bi_cmp(&self, _x: Self::BigIntHandle, _y: Self::BigIntHandle) -> Ordering
fn bi_sqrt(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)
fn bi_pow( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_log2(&self, _x: Self::BigIntHandle) -> i32
fn bi_and( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_or( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_xor( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle, )
fn bi_shr( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _bits: usize, )
fn bi_shl( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _bits: usize, )
fn bi_to_string( &self, _bi_handle: Self::BigIntHandle, _str_handle: Self::ManagedBufferHandle, )
fn bi_new_zero(&self) -> Self::BigIntHandle
fn bi_sub_unsigned( &self, dest: Self::BigIntHandle, x: Self::BigIntHandle, y: Self::BigIntHandle, )
Source§impl BlockchainApi for UncallableApi
impl BlockchainApi for UncallableApi
type BlockchainApiImpl = UncallableApi
fn blockchain_api_impl() -> Self::BlockchainApiImpl
Source§impl BlockchainApiImpl for UncallableApi
impl BlockchainApiImpl for UncallableApi
fn get_sc_address_legacy(&self) -> Address
fn load_owner_address_managed(&self, _dest: Self::ManagedBufferHandle)
fn get_shard_of_address_legacy(&self, _address: &Address) -> u32
fn is_smart_contract_legacy(&self, _address: &Address) -> bool
fn get_caller_legacy(&self) -> Address
fn load_balance_legacy(&self, _dest: Self::BigIntHandle, _address: &Address)
fn load_state_root_hash_managed(&self, _dest: Self::ManagedBufferHandle)
fn get_tx_hash_legacy(&self) -> H256
fn get_gas_left(&self) -> u64
fn get_block_timestamp(&self) -> u64
fn get_block_nonce(&self) -> u64
fn get_block_round(&self) -> u64
fn get_block_epoch(&self) -> u64
fn load_block_random_seed_managed(&self, _dest: Self::ManagedBufferHandle)
fn get_prev_block_timestamp(&self) -> u64
fn get_prev_block_nonce(&self) -> u64
fn get_prev_block_round(&self) -> u64
fn get_prev_block_epoch(&self) -> u64
fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]>
fn get_current_esdt_nft_nonce( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle, ) -> u64
fn load_esdt_balance( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle, _nonce: u64, _dest: Self::BigIntHandle, )
fn managed_get_esdt_token_data( &self, _address_handle: RawHandle, _token_id_handle: RawHandle, _nonce: u64, _value_handle: RawHandle, _properties_handle: RawHandle, _hash_handle: RawHandle, _name_handle: RawHandle, _attributes_handle: RawHandle, _creator_handle: RawHandle, _royalties_handle: RawHandle, _uris_handle: RawHandle, )
fn managed_get_back_transfers( &self, _esdt_transfer_value_handle: RawHandle, _call_value_handle: RawHandle, )
fn check_esdt_frozen( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle, _nonce: u64, ) -> bool
fn check_esdt_paused(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool
fn check_esdt_limited_transfer( &self, _token_id_handle: Self::ManagedBufferHandle, ) -> bool
fn load_esdt_local_roles( &self, _token_id_handle: Self::ManagedBufferHandle, ) -> EsdtLocalRoleFlags
fn managed_get_code_metadata( &self, _address_handle: Self::ManagedBufferHandle, _response_handle: Self::ManagedBufferHandle, )
fn managed_is_builtin_function( &self, _function_name_handle: Self::ManagedBufferHandle, ) -> bool
fn load_caller_managed(&self, dest: Self::ManagedBufferHandle)
fn load_sc_address_managed(&self, dest: Self::ManagedBufferHandle)
fn get_shard_of_address(&self, address_handle: Self::ManagedBufferHandle) -> u32
fn is_smart_contract(&self, address_handle: Self::ManagedBufferHandle) -> bool
fn load_balance( &self, dest: Self::BigIntHandle, address_handle: Self::ManagedBufferHandle, )
fn load_tx_hash_managed(&self, dest: Self::ManagedBufferHandle)
fn load_prev_block_random_seed_managed(&self, dest: Self::ManagedBufferHandle)
Source§impl CallValueApi for UncallableApi
impl CallValueApi for UncallableApi
type CallValueApiImpl = UncallableApi
fn call_value_api_impl() -> Self::CallValueApiImpl
Source§impl CallValueApiImpl for UncallableApi
impl CallValueApiImpl for UncallableApi
fn check_not_payable(&self)
Source§fn load_egld_value(&self, _dest: Self::BigIntHandle)
fn load_egld_value(&self, _dest: Self::BigIntHandle)
Retrieves the EGLD call value from the VM.
Will return 0 in case of an ESDT transfer (cannot have both EGLD and ESDT transfer simultaneously).
Source§fn load_all_esdt_transfers(&self, _dest_handle: Self::ManagedBufferHandle)
fn load_all_esdt_transfers(&self, _dest_handle: Self::ManagedBufferHandle)
Loads all ESDT call values into a managed vec. Overwrites destination.
Source§fn esdt_num_transfers(&self) -> usize
fn esdt_num_transfers(&self) -> usize
Gets the total number of ESDT transfers (Fungible/SFT/NFT). Read more
Source§impl Clone for UncallableApi
impl Clone for UncallableApi
Source§fn clone(&self) -> UncallableApi
fn clone(&self) -> UncallableApi
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CryptoApi for UncallableApi
impl CryptoApi for UncallableApi
type CryptoApiImpl = UncallableApi
fn crypto_api_impl() -> Self::CryptoApiImpl
Source§impl CryptoApiImpl for UncallableApi
impl CryptoApiImpl for UncallableApi
fn sha256_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle, )
fn keccak256_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle, )
fn ripemd160_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle, )
fn verify_bls_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, )
fn verify_ed25519_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, )
Source§fn verify_secp256k1_managed(
&self,
_key: Self::ManagedBufferHandle,
_message: Self::ManagedBufferHandle,
_signature: Self::ManagedBufferHandle,
) -> bool
fn verify_secp256k1_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, ) -> bool
Note: the signature is minimum 2 bytes in length,
the second byte encodes the length of the remaining signature bytes.
fn verify_custom_secp256k1_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, _hash_type: MessageHashType, ) -> bool
fn encode_secp256k1_der_signature_managed( &self, _r: Self::ManagedBufferHandle, _s: Self::ManagedBufferHandle, _dest: Self::ManagedBufferHandle, )
fn verify_secp256r1_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, )
fn verify_bls_aggregated_signature_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, )
Source§impl EllipticCurveApiImpl for UncallableApi
impl EllipticCurveApiImpl for UncallableApi
fn ec_create_from_name_bytes(&self, _name: &[u8]) -> Self::EllipticCurveHandle
fn ec_create_from_name_mb( &self, _name_handle: Self::ManagedBufferHandle, ) -> Self::ManagedBufferHandle
fn ec_get_values( &self, _ec_handle: Self::EllipticCurveHandle, _field_order_handle: Self::BigIntHandle, _base_point_order_handle: Self::BigIntHandle, _eq_constant_handle: Self::BigIntHandle, _x_base_point_handle: Self::BigIntHandle, _y_base_point_handle: Self::BigIntHandle, )
fn ec_curve_length(&self, _ec_handle: Self::EllipticCurveHandle) -> u32
fn ec_private_key_byte_length( &self, _ec_handle: Self::EllipticCurveHandle, ) -> u32
fn ec_add( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _x_first_point: Self::BigIntHandle, _y_first_point: Self::BigIntHandle, _x_second_point: Self::BigIntHandle, _y_second_point: Self::BigIntHandle, )
fn ec_double( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _x_point_handle: Self::BigIntHandle, _y_point_handle: Self::BigIntHandle, )
fn ec_is_on_curve( &self, _ec_handle: Self::EllipticCurveHandle, _x_point_handle: Self::BigIntHandle, _y_point_handle: Self::BigIntHandle, ) -> bool
fn ec_scalar_mult_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _x_point_handle: Self::BigIntHandle, _y_point_handle: Self::BigIntHandle, _data: &[u8], )
fn ec_scalar_mult( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _x_point_handle: Self::BigIntHandle, _y_point_handle: Self::BigIntHandle, _data_handle: Self::ManagedBufferHandle, )
fn ec_scalar_base_mult_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8], )
fn ec_scalar_base_mult( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle, )
fn ec_marshal_legacy( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, ) -> BoxedBytes
fn ec_marshal( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, _result_handle: Self::ManagedBufferHandle, )
fn ec_marshal_compressed_legacy( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, ) -> BoxedBytes
fn ec_marshal_compressed( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, _result_handle: Self::ManagedBufferHandle, )
fn ec_unmarshal_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8], )
fn ec_unmarshal( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle, )
fn ec_unmarshal_compressed_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8], )
fn ec_unmarshal_compressed( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle, )
fn ec_generate_key_legacy( &self, _x_pub_key_handle: Self::BigIntHandle, _y_pub_key_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, ) -> BoxedBytes
fn ec_generate_key( &self, _x_pub_key_handle: Self::BigIntHandle, _y_pub_key_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _result_handle: Self::ManagedBufferHandle, )
Source§impl EndpointArgumentApi for UncallableApi
impl EndpointArgumentApi for UncallableApi
type EndpointArgumentApiImpl = UncallableApi
fn argument_api_impl() -> Self::EndpointArgumentApiImpl
Source§impl EndpointArgumentApiImpl for UncallableApi
impl EndpointArgumentApiImpl for UncallableApi
fn get_num_arguments(&self) -> i32
fn load_argument_managed_buffer( &self, _arg_id: i32, _dest: Self::ManagedBufferHandle, )
fn load_callback_closure_buffer(&self, _dest: Self::ManagedBufferHandle)
fn get_argument_len(&self, arg_index: i32) -> usize
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes
fn load_argument_big_int_unsigned( &self, arg_index: i32, dest: Self::BigIntHandle, )
fn load_argument_big_int_signed(&self, arg_index: i32, dest: Self::BigIntHandle)
fn get_argument_u64(&self, arg_index: i32) -> u64
fn get_argument_i64(&self, arg_index: i32) -> i64
Source§impl EndpointFinishApi for UncallableApi
impl EndpointFinishApi for UncallableApi
type EndpointFinishApiImpl = UncallableApi
fn finish_api_impl() -> Self::EndpointFinishApiImpl
Source§impl EndpointFinishApiImpl for UncallableApi
impl EndpointFinishApiImpl for UncallableApi
fn finish_slice_u8(&self, _slice: &[u8])
fn finish_big_int_raw(&self, _handle: Self::BigIntHandle)
fn finish_big_uint_raw(&self, _handle: Self::BigIntHandle)
fn finish_managed_buffer_raw(&self, _handle: Self::ManagedBufferHandle)
fn finish_u64(&self, _value: u64)
fn finish_i64(&self, _value: i64)
Source§impl ErrorApi for UncallableApi
impl ErrorApi for UncallableApi
type ErrorApiImpl = UncallableApi
fn error_api_impl() -> Self::ErrorApiImpl
Source§impl ErrorApiImpl for UncallableApi
impl ErrorApiImpl for UncallableApi
fn signal_error(&self, _message: &[u8]) -> !
fn signal_error_from_buffer( &self, _message_handle: Self::ManagedBufferHandle, ) -> !
Source§impl HandleTypeInfo for UncallableApi
impl HandleTypeInfo for UncallableApi
type ManagedBufferHandle = i32
type BigIntHandle = i32
type BigFloatHandle = i32
type EllipticCurveHandle = i32
type ManagedMapHandle = i32
Source§impl LogApi for UncallableApi
impl LogApi for UncallableApi
type LogApiImpl = UncallableApi
fn log_api_impl() -> Self::LogApiImpl
Source§impl LogApiImpl for UncallableApi
impl LogApiImpl for UncallableApi
Source§fn managed_write_log(
&self,
_topics_handle: Self::ManagedBufferHandle,
_data_handle: Self::ManagedBufferHandle,
)
fn managed_write_log( &self, _topics_handle: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle, )
Saves an event log.
Source§impl ManagedBufferApiImpl for UncallableApi
impl ManagedBufferApiImpl for UncallableApi
Source§fn mb_new_empty(&self) -> Self::ManagedBufferHandle
fn mb_new_empty(&self) -> Self::ManagedBufferHandle
Requests a new handle from the VM. No longer used extensively.
Source§fn mb_new_from_bytes(&self, _bytes: &[u8]) -> Self::ManagedBufferHandle
fn mb_new_from_bytes(&self, _bytes: &[u8]) -> Self::ManagedBufferHandle
Requests a new handle from the VM, initialized with some data. No longer used extensively.
fn mb_len(&self, _handle: Self::ManagedBufferHandle) -> usize
fn mb_to_boxed_bytes(&self, _handle: Self::ManagedBufferHandle) -> BoxedBytes
Source§fn mb_load_slice(
&self,
_source_handle: Self::ManagedBufferHandle,
_starting_position: usize,
_dest_slice: &mut [u8],
) -> Result<(), InvalidSliceError>
fn mb_load_slice( &self, _source_handle: Self::ManagedBufferHandle, _starting_position: usize, _dest_slice: &mut [u8], ) -> Result<(), InvalidSliceError>
TODO: investigate the impact of using
Result<(), ()>
on the wasm output.Source§fn mb_copy_slice(
&self,
_source_handle: Self::ManagedBufferHandle,
_starting_pos: usize,
_slice_len: usize,
_dest_handle: Self::ManagedBufferHandle,
) -> Result<(), InvalidSliceError>
fn mb_copy_slice( &self, _source_handle: Self::ManagedBufferHandle, _starting_pos: usize, _slice_len: usize, _dest_handle: Self::ManagedBufferHandle, ) -> Result<(), InvalidSliceError>
TODO: investigate the impact of using
Result<(), ()>
on the wasm output.fn mb_overwrite(&self, _handle: Self::ManagedBufferHandle, _value: &[u8])
fn mb_set_slice( &self, _dest_handle: Self::ManagedBufferHandle, _starting_position: usize, _source_slice: &[u8], ) -> Result<(), InvalidSliceError>
fn mb_set_random(&self, _dest_handle: Self::ManagedBufferHandle, _length: usize)
fn mb_append( &self, _accumulator_handle: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle, )
fn mb_append_bytes( &self, _accumulator_handle: Self::ManagedBufferHandle, _bytes: &[u8], )
fn mb_eq( &self, _handle1: Self::ManagedBufferHandle, _handle2: Self::ManagedBufferHandle, ) -> bool
fn mb_to_hex( &self, _source_handle: Self::ManagedBufferHandle, _dest_handle: Self::ManagedBufferHandle, )
Source§impl ManagedMapApiImpl for UncallableApi
impl ManagedMapApiImpl for UncallableApi
Source§fn mm_new(&self) -> Self::ManagedBufferHandle
fn mm_new(&self) -> Self::ManagedBufferHandle
Requests a new handle from the VM.
fn mm_get( &self, _map_handle: Self::ManagedMapHandle, _key_handle: Self::ManagedBufferHandle, _value_handle: Self::ManagedBufferHandle, )
fn mm_put( &self, _map_handle: Self::ManagedMapHandle, _key_handle: Self::ManagedBufferHandle, _out_value_handle: Self::ManagedBufferHandle, )
fn mm_remove( &self, _map_handle: Self::ManagedMapHandle, _key_handle: Self::ManagedBufferHandle, _out_value_handle: Self::ManagedBufferHandle, )
fn mm_contains( &self, _map_handle: Self::ManagedMapHandle, _key_handle: Self::ManagedBufferHandle, ) -> bool
Source§impl ManagedTypeApi for UncallableApi
impl ManagedTypeApi for UncallableApi
type ManagedTypeApiImpl = UncallableApi
fn managed_type_impl() -> Self::ManagedTypeApiImpl
Source§impl ManagedTypeApiImpl for UncallableApi
impl ManagedTypeApiImpl for UncallableApi
fn mb_to_big_int_unsigned( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigIntHandle, )
fn mb_to_big_int_signed( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigIntHandle, )
fn mb_from_big_int_unsigned( &self, _big_int_handle: Self::BigIntHandle, _dest: Self::ManagedBufferHandle, )
fn mb_from_big_int_signed( &self, _big_int_handle: Self::BigIntHandle, _dest: Self::ManagedBufferHandle, )
fn mb_to_big_float( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigFloatHandle, )
fn mb_from_big_float( &self, _big_float_handle: Self::BigFloatHandle, _dest: Self::ManagedBufferHandle, )
fn validate_token_identifier( &self, token_id_handle: Self::ManagedBufferHandle, ) -> bool
fn get_token_ticker_len(&self, token_id_len: usize) -> usize
Source§impl PartialEq for UncallableApi
impl PartialEq for UncallableApi
Source§impl PrintApi for UncallableApi
impl PrintApi for UncallableApi
type PrintApiImpl = UncallableApi
fn print_api_impl() -> Self::PrintApiImpl
Source§impl PrintApiImpl for UncallableApi
impl PrintApiImpl for UncallableApi
Source§type Buffer = FormatBufferIgnore
type Buffer = FormatBufferIgnore
Buffer used for printing only.
fn print_buffer(&self, _buffer: Self::Buffer)
Source§impl SendApi for UncallableApi
impl SendApi for UncallableApi
type SendApiImpl = UncallableApi
fn send_api_impl() -> Self::SendApiImpl
Source§impl SendApiImpl for UncallableApi
impl SendApiImpl for UncallableApi
Source§fn transfer_value_execute(
&self,
_to_handle: RawHandle,
_amount_handle: RawHandle,
_gas_limit: u64,
_endpoint_name_handle: RawHandle,
_arg_buffer_handle: RawHandle,
) -> Result<(), &'static [u8]>
fn transfer_value_execute( &self, _to_handle: RawHandle, _amount_handle: RawHandle, _gas_limit: u64, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, ) -> Result<(), &'static [u8]>
Sends EGLD to an address (optionally) and executes like an async call, but without callback.
fn multi_transfer_esdt_nft_execute( &self, _to_handle: RawHandle, _payments_handle: RawHandle, _gas_limit: u64, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, ) -> Result<(), &'static [u8]>
Source§fn async_call_raw(
&self,
_to_handle: RawHandle,
_amount_handle: RawHandle,
_endpoint_name_handle: RawHandle,
_arg_buffer_handle: RawHandle,
) -> !
fn async_call_raw( &self, _to_handle: RawHandle, _amount_handle: RawHandle, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, ) -> !
Sends an asynchronous call to another contract.
Calling this method immediately terminates tx execution.
Using it directly is generally discouraged.
fn create_async_call_raw( &self, _to_handle: RawHandle, _amount_handle: RawHandle, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, _success_callback: &'static str, _error_callback: &'static str, _gas: u64, _extra_gas_for_callback: u64, _callback_closure: RawHandle, )
Source§fn deploy_contract(
&self,
_gas: u64,
_amount_handle: RawHandle,
_code_handle: RawHandle,
_code_metadata_handle: RawHandle,
_arg_buffer_handle: RawHandle,
_new_address_handle: RawHandle,
_result_handle: RawHandle,
)
fn deploy_contract( &self, _gas: u64, _amount_handle: RawHandle, _code_handle: RawHandle, _code_metadata_handle: RawHandle, _arg_buffer_handle: RawHandle, _new_address_handle: RawHandle, _result_handle: RawHandle, )
Deploys a new contract in the same shard.
Unlike
async_call_raw
, the deployment is synchronous and tx execution continues afterwards.
Also unlike async_call_raw
, it uses an argument buffer to pass arguments
If the deployment fails, Option::None is returnedSource§fn deploy_from_source_contract(
&self,
_gas: u64,
_amount_handle: RawHandle,
_source_contract_address_handle: RawHandle,
_code_metadata_handle: RawHandle,
_arg_buffer_handle: RawHandle,
_new_address_handle: RawHandle,
_result_handle: RawHandle,
)
fn deploy_from_source_contract( &self, _gas: u64, _amount_handle: RawHandle, _source_contract_address_handle: RawHandle, _code_metadata_handle: RawHandle, _arg_buffer_handle: RawHandle, _new_address_handle: RawHandle, _result_handle: RawHandle, )
Deploys a new contract in the same shard by re-using the code of an already deployed source contract.
The deployment is done synchronously and the new contract’s address is returned.
If the deployment fails, Option::None is returned
fn upgrade_from_source_contract( &self, _sc_address: RawHandle, _gas: u64, _amount_handle: RawHandle, _source_contract_address_handle: RawHandle, _code_metadata_handle: RawHandle, _arg_buffer_handle: RawHandle, )
Source§fn upgrade_contract(
&self,
_sc_address: RawHandle,
_gas: u64,
_amount_handle: RawHandle,
_code_handle: RawHandle,
_code_metadata_handle: RawHandle,
_arg_buffer_handle: RawHandle,
)
fn upgrade_contract( &self, _sc_address: RawHandle, _gas: u64, _amount_handle: RawHandle, _code_handle: RawHandle, _code_metadata_handle: RawHandle, _arg_buffer_handle: RawHandle, )
Upgrades a child contract of the currently executing contract.
The upgrade is synchronous, and the current transaction will fail if the upgrade fails.
The child contract’s new init function will be called with the provided arguments
Source§fn execute_on_dest_context_raw(
&self,
_gas: u64,
_address: RawHandle,
_value: RawHandle,
_endpoint_name_handle: RawHandle,
_arg_buffer_handle: RawHandle,
_result_handle: RawHandle,
)
fn execute_on_dest_context_raw( &self, _gas: u64, _address: RawHandle, _value: RawHandle, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, _result_handle: RawHandle, )
Same shard, in-line execution of another contract.
fn execute_on_same_context_raw( &self, _gas: u64, _address: RawHandle, _value: RawHandle, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, _result_handle: RawHandle, )
fn execute_on_dest_context_readonly_raw( &self, _gas: u64, _address: RawHandle, _endpoint_name_handle: RawHandle, _arg_buffer_handle: RawHandle, _result_handle: RawHandle, )
fn clean_return_data(&self)
fn delete_from_return_data(&self, _index: usize)
Source§impl StaticVarApi for UncallableApi
impl StaticVarApi for UncallableApi
type StaticVarApiImpl = UncallableApi
fn static_var_api_impl() -> Self::StaticVarApiImpl
Source§impl StaticVarApiImpl for UncallableApi
impl StaticVarApiImpl for UncallableApi
fn with_lockable_static_buffer<R, F: FnOnce(&mut LockableStaticBuffer) -> R>( &self, _f: F, ) -> R
fn set_external_view_target_address_handle(&self, _handle: RawHandle)
fn get_external_view_target_address_handle(&self) -> RawHandle
fn next_handle(&self) -> RawHandle
fn set_num_arguments(&self, _num_arguments: i32)
fn get_num_arguments(&self) -> i32
fn set_flags(&self, _flags: StaticVarApiFlags)
fn get_flags(&self) -> StaticVarApiFlags
fn is_scaling_factor_cached(&self, _decimals: usize) -> bool
fn set_scaling_factor_cached(&self, _decimals: usize)
Source§fn flag_is_set_or_update(&self, flag: StaticVarApiFlags) -> bool
fn flag_is_set_or_update(&self, flag: StaticVarApiFlags) -> bool
Returns true if the flag is set, false if is default (false). Read more
Source§impl StorageReadApi for UncallableApi
impl StorageReadApi for UncallableApi
type StorageReadApiImpl = UncallableApi
fn storage_read_api_impl() -> Self
Source§impl StorageReadApiImpl for UncallableApi
impl StorageReadApiImpl for UncallableApi
fn storage_load_managed_buffer_raw(&self, _key_handle: i32, _dest: i32)
fn storage_load_from_address( &self, _address_handle: i32, _key_handle: i32, _dest: i32, )
fn storage_read_api_init(&self)
Source§impl StorageWriteApi for UncallableApi
impl StorageWriteApi for UncallableApi
type StorageWriteApiImpl = UncallableApi
fn storage_write_api_impl() -> Self::StorageWriteApiImpl
Source§impl StorageWriteApiImpl for UncallableApi
impl StorageWriteApiImpl for UncallableApi
fn storage_store_managed_buffer_raw( &self, _key_handle: Self::ManagedBufferHandle, _value_handle: Self::ManagedBufferHandle, )
Source§impl TryStaticCast for UncallableApi
impl TryStaticCast for UncallableApi
fn type_eq<U>() -> boolwhere
U: TryStaticCast,
fn try_cast<U>(self) -> Option<U>where
U: TryStaticCast,
fn try_cast_ref<U>(&self) -> Option<&U>where
U: TryStaticCast,
Source§impl VMApi for UncallableApi
impl VMApi for UncallableApi
Source§fn external_view_init_override() -> bool
fn external_view_init_override() -> bool
Slightly hacky way of overriding the constructor for external view contracts. Read more
fn init_static()
impl CallTypeApi for UncallableApi
impl Eq for UncallableApi
impl StorageMapperApi for UncallableApi
Auto Trait Implementations§
impl Freeze for UncallableApi
impl RefUnwindSafe for UncallableApi
impl Send for UncallableApi
impl Sync for UncallableApi
impl Unpin for UncallableApi
impl UnwindSafe for UncallableApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more