pub struct UncallableApi;
Expand description

Dummy type with no implementation. Provides context in ABI generators.

Trait Implementations§

source§

impl BigFloatApi for UncallableApi

source§

fn bf_from_parts( &self, _integral_part: i32, _fractional_part: i32, _exponent: i32 ) -> Self::BigFloatHandle

source§

fn bf_from_frac( &self, _numerator: i64, _denominator: i64 ) -> Self::BigFloatHandle

source§

fn bf_from_sci(&self, _significand: i64, _exponent: i64) -> Self::BigFloatHandle

source§

fn bf_add( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle )

source§

fn bf_sub( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle )

source§

fn bf_mul( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle )

source§

fn bf_div( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle )

source§

fn bf_abs(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)

source§

fn bf_neg(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)

source§

fn bf_cmp(&self, _x: Self::BigFloatHandle, _y: Self::BigFloatHandle) -> Ordering

source§

fn bf_sign(&self, _x: Self::BigFloatHandle) -> Sign

source§

fn bf_clone(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)

source§

fn bf_sqrt(&self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle)

source§

fn bf_pow( &self, _dest: Self::BigFloatHandle, _x: Self::BigFloatHandle, _exp: i32 )

source§

fn bf_floor(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)

source§

fn bf_ceil(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)

source§

fn bf_trunc(&self, _dest: Self::BigIntHandle, _x: Self::BigFloatHandle)

source§

fn bf_is_bi(&self, _x: Self::BigFloatHandle) -> bool

source§

fn bf_set_i64(&self, _dest: Self::BigFloatHandle, _value: i64)

source§

fn bf_set_bi(&self, _dest: Self::BigFloatHandle, _bi: Self::BigIntHandle)

source§

fn bf_get_const_pi(&self, _dest: Self::BigFloatHandle)

source§

fn bf_get_const_e(&self, _dest: Self::BigFloatHandle)

source§

fn bf_new_zero(&self) -> Self::BigFloatHandle

source§

impl BigIntApi for UncallableApi

source§

fn bi_new(&self, _value: i64) -> Self::BigIntHandle

source§

fn bi_set_int64(&self, _destination: Self::BigIntHandle, _value: i64)

source§

fn bi_unsigned_byte_length(&self, _x: Self::BigIntHandle) -> usize

source§

fn bi_get_unsigned_bytes(&self, _reference: Self::BigIntHandle) -> BoxedBytes

source§

fn bi_set_unsigned_bytes(&self, _destination: Self::BigIntHandle, _bytes: &[u8])

source§

fn bi_signed_byte_length(&self, _x: Self::BigIntHandle) -> usize

source§

fn bi_get_signed_bytes(&self, _reference: Self::BigIntHandle) -> BoxedBytes

source§

fn bi_set_signed_bytes(&self, _destination: Self::BigIntHandle, _bytes: &[u8])

source§

fn bi_to_i64(&self, _reference: Self::BigIntHandle) -> Option<i64>

source§

fn bi_add( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_sub( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_sub_unsigned( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_mul( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_t_div( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_t_mod( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_abs(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)

source§

fn bi_neg(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)

source§

fn bi_sign(&self, _x: Self::BigIntHandle) -> Sign

source§

fn bi_cmp(&self, _x: Self::BigIntHandle, _y: Self::BigIntHandle) -> Ordering

source§

fn bi_sqrt(&self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle)

source§

fn bi_pow( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_log2(&self, _x: Self::BigIntHandle) -> u32

source§

fn bi_and( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_or( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_xor( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _y: Self::BigIntHandle )

source§

fn bi_shr( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _bits: usize )

source§

fn bi_shl( &self, _dest: Self::BigIntHandle, _x: Self::BigIntHandle, _bits: usize )

source§

fn bi_to_string( &self, _bi_handle: Self::BigIntHandle, _str_handle: Self::ManagedBufferHandle )

source§

fn bi_new_zero(&self) -> Self::BigIntHandle

source§

impl BlockchainApi for UncallableApi

source§

impl BlockchainApiImpl for UncallableApi

source§

fn get_sc_address_legacy(&self) -> Address

source§

fn get_owner_address_legacy(&self) -> Address

source§

fn get_shard_of_address_legacy(&self, _address: &Address) -> u32

source§

fn is_smart_contract_legacy(&self, _address: &Address) -> bool

source§

fn get_caller_legacy(&self) -> Address

source§

fn load_balance_legacy(&self, _dest: Self::BigIntHandle, _address: &Address)

source§

fn get_state_root_hash_legacy(&self) -> H256

source§

fn get_tx_hash_legacy(&self) -> H256

source§

fn get_gas_left(&self) -> u64

source§

fn get_block_timestamp(&self) -> u64

source§

fn get_block_nonce(&self) -> u64

source§

fn get_block_round(&self) -> u64

source§

fn get_block_epoch(&self) -> u64

source§

fn get_block_random_seed_legacy(&self) -> Box<[u8; 48]>

source§

fn get_prev_block_timestamp(&self) -> u64

source§

fn get_prev_block_nonce(&self) -> u64

source§

fn get_prev_block_round(&self) -> u64

source§

fn get_prev_block_epoch(&self) -> u64

source§

fn get_prev_block_random_seed_legacy(&self) -> Box<[u8; 48]>

source§

fn get_current_esdt_nft_nonce( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle ) -> u64

source§

fn load_esdt_balance( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle, _nonce: u64, _dest: Self::BigIntHandle )

source§

fn load_esdt_token_data<M: ManagedTypeApi>( &self, _address: &ManagedAddress<M>, _token: &TokenIdentifier<M>, _nonce: u64 ) -> EsdtTokenData<M>

source§

fn load_esdt_token_data_unmanaged<M: ManagedTypeApi>( &self, _address: &ManagedAddress<M>, _token: &TokenIdentifier<M>, _nonce: u64 ) -> EsdtTokenData<M>

👎Deprecated since 0.31.0: Only used for limited backwards compatibility tests. Never use! Use load_esdt_token_data instead.
source§

fn check_esdt_frozen( &self, _address_handle: Self::ManagedBufferHandle, _token_id_handle: Self::ManagedBufferHandle, _nonce: u64 ) -> bool

source§

fn check_esdt_paused(&self, _token_id_handle: Self::ManagedBufferHandle) -> bool

source§

fn check_esdt_limited_transfer( &self, _token_id_handle: Self::ManagedBufferHandle ) -> bool

source§

fn load_esdt_local_roles( &self, _token_id_handle: Self::ManagedBufferHandle ) -> EsdtLocalRoleFlags

source§

fn load_caller_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn load_sc_address_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn load_owner_address_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn get_shard_of_address(&self, address_handle: Self::ManagedBufferHandle) -> u32

source§

fn is_smart_contract(&self, address_handle: Self::ManagedBufferHandle) -> bool

source§

fn load_balance( &self, dest: Self::BigIntHandle, address_handle: Self::ManagedBufferHandle )

source§

fn load_state_root_hash_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn load_tx_hash_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn load_block_random_seed_managed(&self, dest: Self::ManagedBufferHandle)

source§

fn load_prev_block_random_seed_managed(&self, dest: Self::ManagedBufferHandle)

source§

impl CallValueApi for UncallableApi

source§

impl CallValueApiImpl for UncallableApi

source§

fn check_not_payable(&self)

source§

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_single_esdt_value(&self, _dest: Self::BigIntHandle)

Retrieves the ESDT call value from the VM. Will return 0 in case of an EGLD transfer (cannot have both EGLD and ESDT transfer simultaneously).
source§

fn token(&self) -> Option<Self::ManagedBufferHandle>

Returns the call value token identifier of the current call. The identifier is wrapped in a TokenIdentifier object, to hide underlying logic.
source§

fn esdt_token_nonce(&self) -> u64

Returns the nonce of the received ESDT token. Will return 0 in case of EGLD or fungible ESDT transfer.
source§

fn esdt_token_type(&self) -> EsdtTokenType

Returns the ESDT token type. Will return “Fungible” for EGLD.
source§

fn esdt_num_transfers(&self) -> usize

source§

fn esdt_value_by_index(&self, _index: usize) -> Self::BigIntHandle

source§

fn token_by_index(&self, _index: usize) -> Self::ManagedBufferHandle

source§

fn esdt_token_nonce_by_index(&self, _index: usize) -> u64

source§

fn esdt_token_type_by_index(&self, _index: usize) -> EsdtTokenType

source§

fn load_all_esdt_transfers(&self, dest_handle: Self::ManagedBufferHandle)

Loads all ESDT call values into a managed vec. Overwrites destination.
source§

impl Clone for UncallableApi

source§

fn clone(&self) -> UncallableApi

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CryptoApi for UncallableApi

source§

impl CryptoApiImpl for UncallableApi

source§

fn sha256_legacy(&self, _data: &[u8]) -> [u8; 32]

source§

fn sha256_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn keccak256_legacy(&self, _data: &[u8]) -> [u8; 32]

source§

fn keccak256_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn ripemd160_legacy(&self, _data: &[u8]) -> [u8; 20]

source§

fn ripemd160_managed( &self, _dest: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn verify_bls_legacy( &self, _key: &[u8], _message: &[u8], _signature: &[u8] ) -> bool

source§

fn verify_bls_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle ) -> bool

source§

fn verify_ed25519_legacy( &self, _key: &[u8], _message: &[u8], _signature: &[u8] ) -> bool

source§

fn verify_ed25519_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle ) -> bool

source§

fn verify_secp256k1_legacy( &self, _key: &[u8], _message: &[u8], _signature: &[u8] ) -> bool

Note: the signature is minimum 2 bytes in length, the second byte encodes the length of the remaining signature bytes.
source§

fn verify_secp256k1_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle ) -> bool

source§

fn verify_custom_secp256k1_legacy( &self, _key: &[u8], _message: &[u8], _signature: &[u8], _hash_type: MessageHashType ) -> bool

source§

fn verify_custom_secp256k1_managed( &self, _key: Self::ManagedBufferHandle, _message: Self::ManagedBufferHandle, _signature: Self::ManagedBufferHandle, _hash_type: MessageHashType ) -> bool

source§

fn encode_secp256k1_der_signature_legacy( &self, _r: &[u8], _s: &[u8] ) -> BoxedBytes

source§

fn encode_secp256k1_der_signature_managed( &self, _r: Self::ManagedBufferHandle, _s: Self::ManagedBufferHandle, _dest: Self::ManagedBufferHandle )

source§

impl EllipticCurveApi for UncallableApi

source§

fn ec_create_from_name_bytes(&self, _name: &[u8]) -> Self::ManagedBufferHandle

source§

fn ec_create_from_name_mb( &self, _name_handle: Self::ManagedBufferHandle ) -> Self::ManagedBufferHandle

source§

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 )

source§

fn ec_curve_length(&self, _ec_handle: Self::EllipticCurveHandle) -> u32

source§

fn ec_private_key_byte_length( &self, _ec_handle: Self::EllipticCurveHandle ) -> u32

source§

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 )

source§

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 )

source§

fn ec_is_on_curve( &self, _ec_handle: Self::EllipticCurveHandle, _x_point_handle: Self::BigIntHandle, _y_point_handle: Self::BigIntHandle ) -> bool

source§

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] )

source§

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 )

source§

fn ec_scalar_base_mult_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8] )

source§

fn ec_scalar_base_mult( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn ec_marshal_legacy( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle ) -> BoxedBytes

source§

fn ec_marshal( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, _result_handle: Self::ManagedBufferHandle )

source§

fn ec_marshal_compressed_legacy( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle ) -> BoxedBytes

source§

fn ec_marshal_compressed( &self, _ec_handle: Self::EllipticCurveHandle, _x_pair_handle: Self::BigIntHandle, _y_pair_handle: Self::BigIntHandle, _result_handle: Self::ManagedBufferHandle )

source§

fn ec_unmarshal_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8] )

source§

fn ec_unmarshal( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn ec_unmarshal_compressed_legacy( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data: &[u8] )

source§

fn ec_unmarshal_compressed( &self, _x_result_handle: Self::BigIntHandle, _y_result_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn ec_generate_key_legacy( &self, _x_pub_key_handle: Self::BigIntHandle, _y_pub_key_handle: Self::BigIntHandle, _ec_handle: Self::EllipticCurveHandle ) -> BoxedBytes

source§

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

source§

impl EndpointArgumentApiImpl for UncallableApi

source§

fn get_num_arguments(&self) -> i32

source§

fn load_argument_managed_buffer( &self, _arg_id: i32, _dest: Self::ManagedBufferHandle )

source§

fn load_callback_closure_buffer(&self, _dest: Self::ManagedBufferHandle)

source§

fn endpoint_init(&self)

source§

fn get_argument_len(&self, arg_index: i32) -> usize

source§

fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes

source§

fn load_argument_big_int_unsigned( &self, arg_index: i32, dest: Self::BigIntHandle )

source§

fn load_argument_big_int_signed(&self, arg_index: i32, dest: Self::BigIntHandle)

source§

fn get_argument_u64(&self, arg_index: i32) -> u64

source§

fn get_argument_i64(&self, arg_index: i32) -> i64

source§

impl EndpointFinishApi for UncallableApi

source§

impl EndpointFinishApiImpl for UncallableApi

source§

fn finish_slice_u8(&self, _slice: &[u8])

source§

fn finish_big_int_raw(&self, _handle: Self::BigIntHandle)

source§

fn finish_big_uint_raw(&self, _handle: Self::BigIntHandle)

source§

fn finish_managed_buffer_raw(&self, _handle: Self::ManagedBufferHandle)

source§

fn finish_u64(&self, _value: u64)

source§

fn finish_i64(&self, _value: i64)

source§

impl ErrorApi for UncallableApi

source§

impl ErrorApiImpl for UncallableApi

source§

fn signal_error(&self, _message: &[u8]) -> !

source§

fn signal_error_from_buffer( &self, _message_handle: Self::ManagedBufferHandle ) -> !

source§

impl HandleTypeInfo for UncallableApi

source§

impl LogApi for UncallableApi

source§

impl LogApiImpl for UncallableApi

source§

fn write_event_log(&self, _topics_buffer: &ArgBuffer, _data: &[u8])

Saves an event log.
source§

fn write_legacy_log(&self, _topics: &[[u8; 32]], _data: &[u8])

The legacy Arwen hook for saving event logs. It does the same, but only accepts 32-byte topics. Only kept for backwards compatibility.
source§

fn managed_write_log( &self, _topics_handle: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle )

source§

impl ManagedBufferApi for UncallableApi

source§

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

Requests a new handle from the VM, initialized with some data. No longer used extensively.
source§

fn mb_len(&self, _handle: Self::ManagedBufferHandle) -> usize

source§

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>

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>

TODO: investigate the impact of using Result<(), ()> on the wasm output.
source§

fn mb_copy_to_slice_pad_right( &self, _handle: Self::ManagedBufferHandle, _destination: &mut [u8] )

source§

fn mb_overwrite(&self, _handle: Self::ManagedBufferHandle, _value: &[u8])

source§

fn mb_set_slice( &self, _dest_handle: Self::ManagedBufferHandle, _starting_position: usize, _source_slice: &[u8] ) -> Result<(), InvalidSliceError>

source§

fn mb_set_random(&self, _dest_handle: Self::ManagedBufferHandle, _length: usize)

source§

fn mb_append( &self, _accumulator_handle: Self::ManagedBufferHandle, _data_handle: Self::ManagedBufferHandle )

source§

fn mb_append_bytes( &self, _accumulator_handle: Self::ManagedBufferHandle, _bytes: &[u8] )

source§

fn mb_eq( &self, _handle1: Self::ManagedBufferHandle, _handle2: Self::ManagedBufferHandle ) -> bool

source§

fn mb_to_hex( &self, _source_handle: Self::ManagedBufferHandle, _dest_handle: Self::ManagedBufferHandle )

source§

impl ManagedTypeApi for UncallableApi

source§

impl ManagedTypeApiImpl for UncallableApi

source§

fn mb_to_big_int_unsigned( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigIntHandle )

source§

fn mb_to_big_int_signed( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigIntHandle )

source§

fn mb_from_big_int_unsigned( &self, _big_int_handle: Self::BigIntHandle, _dest: Self::ManagedBufferHandle )

source§

fn mb_from_big_int_signed( &self, _big_int_handle: Self::BigIntHandle, _dest: Self::ManagedBufferHandle )

source§

fn mb_to_big_float( &self, _buffer_handle: Self::ManagedBufferHandle, _dest: Self::BigFloatHandle )

source§

fn mb_from_big_float( &self, _big_float_handle: Self::BigFloatHandle, _dest: Self::ManagedBufferHandle )

source§

fn validate_token_identifier( &self, token_id_handle: Self::ManagedBufferHandle ) -> bool

source§

fn get_token_ticker_len(&self, token_id_len: usize) -> usize

source§

impl PartialEq<UncallableApi> for UncallableApi

source§

fn eq(&self, _: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PrintApi for UncallableApi

source§

impl PrintApiImpl for UncallableApi

§

type Buffer = FormatBufferIgnore

Buffer used for printing only.
source§

fn print_buffer(&self, _buffer: Self::Buffer)

source§

impl SendApi for UncallableApi

source§

impl SendApiImpl for UncallableApi

source§

fn transfer_value_legacy<M>( &self, _to: &Address, _amount: &BigUint<M>, _data: &BoxedBytes )where M: ManagedTypeApi,

source§

fn transfer_value_execute<M: ManagedTypeApi>( &self, _to: &ManagedAddress<M>, _amount: &BigUint<M>, _gas_limit: u64, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> Result<(), &'static [u8]>

Sends EGLD to an address (optionally) and executes like an async call, but without callback.
source§

fn transfer_value_execute_legacy<M: ManagedTypeApi>( &self, _to: &Address, _amount: &BigUint<M>, _gas_limit: u64, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> Result<(), &'static [u8]>

source§

fn transfer_esdt_execute<M: ManagedTypeApi>( &self, _to: &ManagedAddress<M>, _token: &TokenIdentifier<M>, _amount: &BigUint<M>, _gas: u64, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> Result<(), &'static [u8]>

Sends ESDT to an address and executes like an async call, but without callback.
source§

fn transfer_esdt_execute_legacy<M: ManagedTypeApi>( &self, _to: &Address, _token: &TokenIdentifier<M>, _amount: &BigUint<M>, _gas: u64, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> Result<(), &'static [u8]>

source§

fn transfer_esdt_nft_execute<M: ManagedTypeApi>( &self, _to: &ManagedAddress<M>, _token: &TokenIdentifier<M>, _nonce: u64, _amount: &BigUint<M>, _gas_limit: u64, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> Result<(), &'static [u8]>

Sends ESDT NFT to an address and executes like an async call, but without callback.
source§

fn transfer_esdt_nft_execute_legacy<M: ManagedTypeApi>( &self, _to: &Address, _token: &TokenIdentifier<M>, _nonce: u64, _amount: &BigUint<M>, _gas_limit: u64, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> Result<(), &'static [u8]>

source§

fn multi_transfer_esdt_nft_execute<M: ManagedTypeApi>( &self, _to: &ManagedAddress<M>, _payments: &ManagedVec<M, EsdtTokenPayment<M>>, _gas_limit: u64, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> Result<(), &'static [u8]>

source§

fn multi_transfer_esdt_nft_execute_legacy<M: ManagedTypeApi>( &self, _to: &Address, _payments: &[EsdtTokenPayment<M>], _gas_limit: u64, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> Result<(), &'static [u8]>

source§

fn async_call_raw<M: ManagedTypeApi>( &self, _to: &ManagedAddress<M>, _amount: &BigUint<M>, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> !

Sends an asynchronous call to another contract. Calling this method immediately terminates tx execution. Using it directly is generally discouraged. Read more
source§

fn async_call_raw_legacy<M: ManagedTypeApi>( &self, _to: &Address, _amount: &BigUint<M>, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> !

source§

fn create_async_call_raw( &self, _to: Self::ManagedBufferHandle, _amount: Self::BigIntHandle, _endpoint_name: Self::ManagedBufferHandle, _arg_buffer: Self::ManagedBufferHandle, _success_callback: &'static str, _error_callback: &'static str, _gas: u64, _extra_gas_for_callback: u64, _callback_closure: Self::ManagedBufferHandle )

source§

fn deploy_contract<M: ManagedTypeApi>( &self, _gas: u64, _amount: &BigUint<M>, _code: &ManagedBuffer<M>, _code_metadata: CodeMetadata, _arg_buffer: &ManagedArgBuffer<M> ) -> (ManagedAddress<M>, ManagedVec<M, ManagedBuffer<M>>)

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 returned
source§

fn deploy_contract_legacy<M: ManagedTypeApi>( &self, _gas: u64, _amount: &BigUint<M>, _code: &BoxedBytes, _code_metadata: CodeMetadata, _arg_buffer: &ArgBuffer ) -> (ManagedAddress<M>, ManagedVec<M, ManagedBuffer<M>>)

source§

fn deploy_from_source_contract<M: ManagedTypeApi>( &self, _gas: u64, _amount: &BigUint<M>, _source_contract_address: &ManagedAddress<M>, _code_metadata: CodeMetadata, _arg_buffer: &ManagedArgBuffer<M> ) -> (ManagedAddress<M>, ManagedVec<M, ManagedBuffer<M>>)

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
source§

fn deploy_from_source_contract_legacy<M: ManagedTypeApi>( &self, _gas: u64, _amount: &BigUint<M>, _source_contract_address: &Address, _code_metadata: CodeMetadata, _arg_buffer: &ArgBuffer ) -> (ManagedAddress<M>, ManagedVec<M, ManagedBuffer<M>>)

source§

fn upgrade_from_source_contract<M: ManagedTypeApi>( &self, _sc_address: &ManagedAddress<M>, _gas: u64, _amount: &BigUint<M>, _source_contract_address: &ManagedAddress<M>, _code_metadata: CodeMetadata, _arg_buffer: &ManagedArgBuffer<M> )

source§

fn upgrade_from_source_contract_legacy<M: ManagedTypeApi>( &self, _sc_address: &Address, _gas: u64, _amount: &BigUint<M>, _source_contract_address: &Address, _code_metadata: CodeMetadata, _arg_buffer: &ArgBuffer )

source§

fn upgrade_contract<M: ManagedTypeApi>( &self, _sc_address: &ManagedAddress<M>, _gas: u64, _amount: &BigUint<M>, _code: &ManagedBuffer<M>, _code_metadata: CodeMetadata, _arg_buffer: &ManagedArgBuffer<M> )

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 upgrade_contract_legacy<M: ManagedTypeApi>( &self, _sc_address: &Address, _gas: u64, _amount: &BigUint<M>, _code: &BoxedBytes, _code_metadata: CodeMetadata, _arg_buffer: &ArgBuffer )

source§

fn execute_on_dest_context_raw<M: ManagedTypeApi>( &self, _gas: u64, _to: &ManagedAddress<M>, _value: &BigUint<M>, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> ManagedVec<M, ManagedBuffer<M>>

Same shard, in-line execution of another contract.
source§

fn execute_on_dest_context_raw_legacy<M: ManagedTypeApi>( &self, _gas: u64, _to: &Address, _value: &BigUint<M>, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> ManagedVec<M, ManagedBuffer<M>>

source§

fn execute_on_same_context_raw<M: ManagedTypeApi>( &self, _gas: u64, _to: &ManagedAddress<M>, _value: &BigUint<M>, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> ManagedVec<M, ManagedBuffer<M>>

source§

fn execute_on_same_context_raw_legacy<M: ManagedTypeApi>( &self, _gas: u64, _to: &Address, _value: &BigUint<M>, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> ManagedVec<M, ManagedBuffer<M>>

source§

fn execute_on_dest_context_readonly_raw<M: ManagedTypeApi>( &self, _gas: u64, _address: &ManagedAddress<M>, _endpoint_name: &ManagedBuffer<M>, _arg_buffer: &ManagedArgBuffer<M> ) -> ManagedVec<M, ManagedBuffer<M>>

source§

fn execute_on_dest_context_readonly_raw_legacy<M: ManagedTypeApi>( &self, _gas: u64, _address: &Address, _endpoint_name: &BoxedBytes, _arg_buffer: &ArgBuffer ) -> ManagedVec<M, ManagedBuffer<M>>

source§

fn clean_return_data(&self)

source§

fn delete_from_return_data(&self, _index: usize)

source§

impl StaticVarApi for UncallableApi

source§

impl StaticVarApiImpl for UncallableApi

source§

impl StorageReadApi for UncallableApi

source§

impl StorageReadApiImpl for UncallableApi

source§

fn storage_load_len(&self, _key: &[u8]) -> usize

source§

fn storage_load_to_heap(&self, _key: &[u8]) -> Box<[u8]>

source§

fn storage_load_big_uint_raw(&self, _key: &[u8], _dest: i32)

source§

fn storage_load_managed_buffer_raw(&self, _key_handle: i32, _dest: i32)

source§

fn storage_load_from_address( &self, _address_handle: i32, _key_handle: i32, _dest: i32 )

source§

fn storage_read_api_init(&self)

source§

impl StorageWriteApi for UncallableApi

source§

impl StorageWriteApiImpl for UncallableApi

source§

fn storage_store_slice_u8(&self, _key: &[u8], _value: &[u8])

source§

fn storage_store_big_uint_raw( &self, _key: &[u8], _value_handle: Self::BigIntHandle )

source§

fn storage_store_managed_buffer_raw( &self, _key_handle: Self::ManagedBufferHandle, _value_handle: Self::ManagedBufferHandle )

source§

fn storage_store_managed_buffer_clear( &self, _key_handle: Self::ManagedBufferHandle )

source§

impl TryStaticCast for UncallableApi

source§

fn type_eq<U>() -> boolwhere U: TryStaticCast,

source§

fn try_cast<U>(self) -> Option<U>where U: TryStaticCast,

source§

fn try_cast_ref<U>(&self) -> Option<&U>where U: TryStaticCast,

source§

impl VMApi for UncallableApi

source§

fn external_view_init_override() -> bool

Slightly hacky way of overriding the constructor for external view contracts. Read more
source§

fn init_static()

source§

impl CallTypeApi for UncallableApi

source§

impl Eq for UncallableApi

source§

impl StorageMapperApi for UncallableApi

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.