Trait dharitri_wasm::api::EndpointArgumentApiImpl
source · pub trait EndpointArgumentApiImpl: ErrorApiImpl {
// Required methods
fn get_num_arguments(&self) -> i32;
fn get_argument_len(&self, arg_index: i32) -> usize;
fn copy_argument_to_slice(&self, arg_index: i32, slice: &mut [u8]);
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes;
fn get_argument_big_int_raw(&self, arg_id: i32) -> Handle;
fn get_argument_big_uint_raw(&self, arg_id: i32) -> Handle;
fn get_argument_managed_buffer_raw(&self, arg_id: i32) -> Handle;
fn get_argument_u64(&self, arg_id: i32) -> u64;
fn get_argument_i64(&self, arg_id: i32) -> i64;
// Provided method
fn check_num_arguments(&self, expected: i32) { ... }
}Expand description
Interface to only be used by code generated by the macros. The smart contract code doesn’t have access to these methods directly.