Struct rust_chain::ChainTester 
source · [−]pub struct ChainTester { /* private fields */ }Implementations
sourceimpl ChainTester
 
impl ChainTester
pub fn new() -> ChainTester
pub fn new_ex(initialize: bool) -> ChainTester
pub fn free(&mut self)
pub fn produce_block(&mut self)
pub fn produce_block_ex(&mut self, next_block_skip_seconds: i64)
pub fn enable_debug_contract(
    &mut self,
    contract: &str,
    enable: bool
) -> Result<(), Error>
pub fn is_debug_contract_enabled(
    &mut self,
    contract: &str
) -> Result<bool, Error>
pub fn import_key(&mut self, pub_key: &str, priv_key: &str) -> bool
pub fn get_info(&mut self) -> Result<Value, ChainTesterError>
pub fn create_key(&mut self) -> Result<Value, ChainTesterError>
pub fn create_key_ex(
    &mut self,
    key_type: &str
) -> Result<Value, ChainTesterError>
pub fn get_account(&mut self, account: &str) -> Result<Value, ChainTesterError>
pub fn create_account(
    &mut self,
    creator: &str,
    account: &str,
    owner_key: &str,
    active_key: &str,
    ram_bytes: i64,
    stake_net: i64,
    stake_cpu: i64
) -> Result<Value, ChainTesterError>
pub fn push_action(
    &mut self,
    account: &str,
    action: &str,
    arguments: ActionArguments,
    permissions: &str
) -> Result<Value, ChainTesterError>
pub fn deploy_contract(
    &mut self,
    account: &str,
    wasm_file: &str,
    abi_file: &str
) -> Result<Value, ChainTesterError>
pub fn push_actions(
    &mut self,
    actions: Vec<Box<Action, Global>, Global>
) -> Result<Value, ChainTesterError>
pub fn get_table_rows(
    &mut self,
    json: bool,
    code: &str,
    scope: &str,
    table: &str,
    lower_bound: &str,
    upper_bound: &str,
    limit: i64
) -> Result<Value, ChainTesterError>
pub fn get_table_rows_ex(
    &mut self,
    params: &GetTableRowsPrams<'_>
) -> Result<Value, ChainTesterError>
pub fn get_balance(&mut self, account: &str) -> u64
pub fn get_balance_ex(
    &mut self,
    account: &str,
    token_account: &str,
    symbol: &str
) -> u64
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChainTester
impl Send for ChainTester
impl Sync for ChainTester
impl Unpin for ChainTester
impl UnwindSafe for ChainTester
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more