Struct dharitri_wasm_node::ArwenApiImpl
source · pub struct ArwenApiImpl {}Trait Implementations§
source§impl Clone for ArwenApiImpl
impl Clone for ArwenApiImpl
Should be no-op. The API implementation is zero-sized.
source§impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
impl ContractHookApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
fn get_sc_address(&self) -> Address
fn get_owner_address(&self) -> Address
fn get_caller(&self) -> Address
fn get_balance(&self, address: &Address) -> ArwenBigUint
fn storage_store_slice_u8(&self, key: &[u8], value: &[u8])
fn storage_load_len(&self, key: &[u8]) -> usize
fn storage_load_vec_u8(&self, key: &[u8]) -> Vec<u8>
fn storage_load_boxed_bytes(&self, key: &[u8]) -> BoxedBytes
fn storage_store_bytes32(&self, key: &[u8], value: &[u8; 32])
fn storage_load_bytes32(&self, key: &[u8]) -> [u8; 32]
fn storage_store_big_uint(&self, key: &[u8], value: &ArwenBigUint)
fn storage_load_big_uint(&self, key: &[u8]) -> ArwenBigUint
fn storage_store_big_uint_raw(&self, key: &[u8], handle: i32)
fn storage_load_big_uint_raw(&self, key: &[u8]) -> i32
fn storage_store_big_int(&self, key: &[u8], value: &ArwenBigInt)
fn storage_load_big_int(&self, key: &[u8]) -> ArwenBigInt
fn storage_store_u64(&self, key: &[u8], value: u64)
fn storage_store_i64(&self, key: &[u8], value: i64)
fn storage_load_u64(&self, key: &[u8]) -> u64
fn storage_load_i64(&self, key: &[u8]) -> i64
fn get_call_value_big_uint(&self) -> ArwenBigUint
fn get_dct_value_big_uint(&self) -> ArwenBigUint
fn get_dct_token_name(&self) -> Vec<u8>
fn send_tx(&self, to: &Address, amount: &ArwenBigUint, data: &[u8])
fn async_call(&self, to: &Address, amount: &ArwenBigUint, data: &[u8])
fn deploy_contract( &self, gas: u64, amount: &ArwenBigUint, code: &BoxedBytes, code_metadata: CodeMetadata, arg_buffer: &ArgBuffer ) -> Address
fn get_tx_hash(&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 get_block_random_seed(&self) -> Box<[u8; 48]>
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(&self) -> Box<[u8; 48]>
fn sha256(&self, data: &[u8]) -> H256
fn keccak256(&self, data: &[u8]) -> H256
fn get_sc_balance(&self) -> BigUint
fn storage_load_cumulated_validator_reward(&self) -> BigUint
source§impl ContractIOApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
impl ContractIOApi<ArwenBigInt, ArwenBigUint> for ArwenApiImpl
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_boxed_bytes(&self, arg_index: i32) -> BoxedBytes
fn get_argument_big_uint(&self, arg_id: i32) -> ArwenBigUint
fn get_argument_big_int(&self, arg_id: i32) -> ArwenBigInt
fn get_argument_big_uint_raw(&self, arg_id: i32) -> i32
fn get_argument_big_int_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: &ArwenBigInt)
fn finish_big_uint(&self, b: &ArwenBigUint)
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)
Auto Trait Implementations§
impl RefUnwindSafe for ArwenApiImpl
impl Send for ArwenApiImpl
impl Sync for ArwenApiImpl
impl Unpin for ArwenApiImpl
impl UnwindSafe for ArwenApiImpl
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