Struct osmosis_test_tube::OsmosisTestApp
source · pub struct OsmosisTestApp { /* private fields */ }
Implementations§
source§impl OsmosisTestApp
impl OsmosisTestApp
pub fn new() -> Self
sourcepub fn get_block_timestamp(&self) -> Timestamp
pub fn get_block_timestamp(&self) -> Timestamp
Get the current block time as a timestamp
sourcepub fn get_block_time_nanos(&self) -> i64
pub fn get_block_time_nanos(&self) -> i64
Get the current block time in nanoseconds
sourcepub fn get_block_time_seconds(&self) -> i64
pub fn get_block_time_seconds(&self) -> i64
Get the current block time in seconds
sourcepub fn get_block_height(&self) -> i64
pub fn get_block_height(&self) -> i64
Get the current block height
sourcepub fn get_first_validator_address(&self) -> RunnerResult<String>
pub fn get_first_validator_address(&self) -> RunnerResult<String>
Get the first validator address
sourcepub fn get_first_validator_signing_account(
&self
) -> RunnerResult<SigningAccount>
pub fn get_first_validator_signing_account( &self ) -> RunnerResult<SigningAccount>
Get the first validator signing account
sourcepub fn increase_time(&self, seconds: u64)
pub fn increase_time(&self, seconds: u64)
Increase the time of the blockchain by the given number of seconds.
sourcepub fn init_account(&self, coins: &[Coin]) -> RunnerResult<SigningAccount>
pub fn init_account(&self, coins: &[Coin]) -> RunnerResult<SigningAccount>
Initialize account with initial balance of any coins. This function mints new coins and send to newly created account
sourcepub fn init_accounts(
&self,
coins: &[Coin],
count: u64
) -> RunnerResult<Vec<SigningAccount>>
pub fn init_accounts( &self, coins: &[Coin], count: u64 ) -> RunnerResult<Vec<SigningAccount>>
Convinience function to create multiple accounts with the same Initial coins balance
sourcepub fn simulate_tx<I>(
&self,
msgs: I,
signer: &SigningAccount
) -> RunnerResult<GasInfo>where
I: IntoIterator<Item = Any>,
pub fn simulate_tx<I>( &self, msgs: I, signer: &SigningAccount ) -> RunnerResult<GasInfo>where I: IntoIterator<Item = Any>,
Simulate transaction execution and return gas info
sourcepub fn set_param_set(
&self,
subspace: &str,
pset: impl Into<Any>
) -> RunnerResult<()>
pub fn set_param_set( &self, subspace: &str, pset: impl Into<Any> ) -> RunnerResult<()>
Set parameter set for a given subspace.
sourcepub fn get_param_set<P: Message + Default>(
&self,
subspace: &str,
type_url: &str
) -> RunnerResult<P>
pub fn get_param_set<P: Message + Default>( &self, subspace: &str, type_url: &str ) -> RunnerResult<P>
Get parameter set for a given subspace.
Trait Implementations§
source§impl Debug for OsmosisTestApp
impl Debug for OsmosisTestApp
source§impl Default for OsmosisTestApp
impl Default for OsmosisTestApp
source§impl PartialEq<OsmosisTestApp> for OsmosisTestApp
impl PartialEq<OsmosisTestApp> for OsmosisTestApp
source§fn eq(&self, other: &OsmosisTestApp) -> bool
fn eq(&self, other: &OsmosisTestApp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Runner<'a> for OsmosisTestApp
impl<'a> Runner<'a> for OsmosisTestApp
fn execute_multiple<M, R>( &self, msgs: &[(M, &str)], signer: &SigningAccount ) -> RunnerExecuteResult<R>where M: Message, R: Message + Default,
fn query<Q, R>(&self, path: &str, q: &Q) -> RunnerResult<R>where Q: Message, R: Message + Default,
fn execute_multiple_raw<R>( &self, msgs: Vec<Any>, signer: &SigningAccount ) -> RunnerExecuteResult<R>where R: Message + Default,
fn execute<M, R>( &self, msg: M, type_url: &str, signer: &SigningAccount ) -> Result<ExecuteResponse<R>, RunnerError>where M: Message, R: Message + Default,
fn execute_cosmos_msgs<S>( &self, msgs: &[CosmosMsg<Empty>], signer: &SigningAccount ) -> Result<ExecuteResponse<S>, RunnerError>where S: Message + Default,
impl StructuralPartialEq for OsmosisTestApp
Auto Trait Implementations§
impl RefUnwindSafe for OsmosisTestApp
impl Send for OsmosisTestApp
impl Sync for OsmosisTestApp
impl Unpin for OsmosisTestApp
impl UnwindSafe for OsmosisTestApp
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