[][src]Trait elrond_wasm::ContractIOApi

pub trait ContractIOApi<BigInt, BigUint>: Clone {
    fn get_num_arguments(&self) -> i32;
fn check_not_payable(&self);
fn get_argument_len(&self, arg_index: i32) -> usize;
fn copy_argument_to_slice(&self, arg_index: i32, slice: &mut [u8]);
fn get_argument_vec_u8(&self, arg_index: i32) -> Vec<u8>;
fn get_argument_big_int(&self, arg_id: i32) -> BigInt;
fn get_argument_big_uint(&self, arg_id: i32) -> BigUint;
fn get_argument_big_int_raw(&self, arg_id: i32) -> i32;
fn get_argument_big_uint_raw(&self, arg_id: i32) -> i32;
fn get_argument_u64(&self, arg_id: i32) -> u64;
fn get_argument_i64(&self, arg_id: i32) -> i64;
fn finish_slice_u8(&self, slice: &[u8]);
fn finish_big_int(&self, b: &BigInt);
fn finish_big_uint(&self, b: &BigUint);
fn finish_big_int_raw(&self, handle: i32);
fn finish_big_uint_raw(&self, handle: i32);
fn finish_u64(&self, value: u64);
fn finish_i64(&self, value: i64);
fn signal_error(&self, message: &[u8]) -> !;
fn write_log(&self, topics: &[[u8; 32]], data: &[u8]); fn check_num_arguments(&self, expected: i32) { ... }
fn get_argument_boxed_bytes(&self, arg_index: i32) -> BoxedBytes { ... } }

Interface to only be used by code generated by the macros. The smart contract code doesn't have access to these methods directly.

Required methods

fn get_num_arguments(&self) -> i32[src]

fn check_not_payable(&self)[src]

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

fn copy_argument_to_slice(&self, arg_index: i32, slice: &mut [u8])[src]

fn get_argument_vec_u8(&self, arg_index: i32) -> Vec<u8>[src]

fn get_argument_big_int(&self, arg_id: i32) -> BigInt[src]

fn get_argument_big_uint(&self, arg_id: i32) -> BigUint[src]

fn get_argument_big_int_raw(&self, arg_id: i32) -> i32[src]

fn get_argument_big_uint_raw(&self, arg_id: i32) -> i32[src]

fn get_argument_u64(&self, arg_id: i32) -> u64[src]

fn get_argument_i64(&self, arg_id: i32) -> i64[src]

fn finish_slice_u8(&self, slice: &[u8])[src]

fn finish_big_int(&self, b: &BigInt)[src]

fn finish_big_uint(&self, b: &BigUint)[src]

fn finish_big_int_raw(&self, handle: i32)[src]

fn finish_big_uint_raw(&self, handle: i32)[src]

fn finish_u64(&self, value: u64)[src]

fn finish_i64(&self, value: i64)[src]

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

fn write_log(&self, topics: &[[u8; 32]], data: &[u8])[src]

Loading content...

Provided methods

fn check_num_arguments(&self, expected: i32)[src]

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

Loading content...

Implementors

Loading content...