TIPCChainTesterSyncClient

Trait TIPCChainTesterSyncClient 

Source
pub trait TIPCChainTesterSyncClient {
Show 17 methods // Required methods fn init_vm_api(&mut self) -> Result<()>; fn init_apply_request(&mut self) -> Result<()>; fn enable_debug_contract( &mut self, id: i32, contract: String, enable: bool, ) -> Result<()>; fn is_debug_contract_enabled( &mut self, id: i32, contract: String, ) -> Result<bool>; fn pack_abi(&mut self, abi: String) -> Result<Vec<u8>>; fn pack_action_args( &mut self, id: i32, contract: String, action: String, action_args: String, ) -> Result<Vec<u8>>; fn unpack_action_args( &mut self, id: i32, contract: String, action: String, raw_args: Vec<u8>, ) -> Result<Vec<u8>>; fn new_chain(&mut self) -> Result<i32>; fn free_chain(&mut self, id: i32) -> Result<i32>; fn get_info(&mut self, id: i32) -> Result<String>; fn get_account(&mut self, id: i32, account: String) -> Result<String>; fn import_key( &mut self, id: i32, pub_key: String, priv_key: String, ) -> Result<bool>; fn get_required_keys( &mut self, id: i32, transaction: String, available_keys: Vec<String>, ) -> Result<String>; fn produce_block(&mut self, id: i32) -> Result<()>; fn push_action( &mut self, id: i32, account: String, action: String, arguments: String, permissions: String, ) -> Result<Vec<u8>>; fn push_actions( &mut self, id: i32, actions: Vec<Box<Action>>, ) -> Result<Vec<u8>>; fn get_table_rows( &mut self, id: i32, json: bool, code: String, scope: String, table: String, lower_bound: String, upper_bound: String, limit: i64, key_type: String, index_position: String, reverse: bool, show_payer: bool, ) -> Result<String>;
}

Required Methods§

Source

fn init_vm_api(&mut self) -> Result<()>

Source

fn init_apply_request(&mut self) -> Result<()>

Source

fn enable_debug_contract( &mut self, id: i32, contract: String, enable: bool, ) -> Result<()>

Source

fn is_debug_contract_enabled( &mut self, id: i32, contract: String, ) -> Result<bool>

Source

fn pack_abi(&mut self, abi: String) -> Result<Vec<u8>>

Source

fn pack_action_args( &mut self, id: i32, contract: String, action: String, action_args: String, ) -> Result<Vec<u8>>

Source

fn unpack_action_args( &mut self, id: i32, contract: String, action: String, raw_args: Vec<u8>, ) -> Result<Vec<u8>>

Source

fn new_chain(&mut self) -> Result<i32>

Source

fn free_chain(&mut self, id: i32) -> Result<i32>

Source

fn get_info(&mut self, id: i32) -> Result<String>

Source

fn get_account(&mut self, id: i32, account: String) -> Result<String>

Source

fn import_key( &mut self, id: i32, pub_key: String, priv_key: String, ) -> Result<bool>

Source

fn get_required_keys( &mut self, id: i32, transaction: String, available_keys: Vec<String>, ) -> Result<String>

Source

fn produce_block(&mut self, id: i32) -> Result<()>

Source

fn push_action( &mut self, id: i32, account: String, action: String, arguments: String, permissions: String, ) -> Result<Vec<u8>>

Source

fn push_actions( &mut self, id: i32, actions: Vec<Box<Action>>, ) -> Result<Vec<u8>>

Source

fn get_table_rows( &mut self, id: i32, json: bool, code: String, scope: String, table: String, lower_bound: String, upper_bound: String, limit: i64, key_type: String, index_position: String, reverse: bool, show_payer: bool, ) -> Result<String>

Implementors§