pub struct TerpApp(/* private fields */);Implementations§
Methods from Deref<Target = App<BankKeeper, MockApi, MockStorage, TerpModule, WasmKeeper<TerpMsgWrapper, Empty>>>§
pub fn init_modules<F, T>(&mut self, init_fn: F) -> T
pub fn read_module<F, T>(&self, query_fn: F) -> T
pub fn set_block(&mut self, block: BlockInfo)
pub fn update_block<F>(&mut self, action: F)
Sourcepub fn block_info(&self) -> BlockInfo
pub fn block_info(&self) -> BlockInfo
Returns a copy of the current block_info
Sourcepub fn wrap(&self) -> QuerierWrapper<'_, <CustomT as Module>::QueryT>
pub fn wrap(&self) -> QuerierWrapper<'_, <CustomT as Module>::QueryT>
Simple helper so we get access to all the QuerierWrapper helpers, eg. wrap().query_wasm_smart, query_all_balances, …
Sourcepub fn execute_multi(
&mut self,
sender: Addr,
msgs: Vec<CosmosMsg<<CustomT as Module>::ExecT>>,
) -> Result<Vec<AppResponse>, Error>
pub fn execute_multi( &mut self, sender: Addr, msgs: Vec<CosmosMsg<<CustomT as Module>::ExecT>>, ) -> Result<Vec<AppResponse>, Error>
Runs multiple CosmosMsg in one atomic operation. This will create a cache before the execution, so no state changes are persisted if any of them return an error. But all writes are persisted on success.
Trait Implementations§
Source§impl Deref for TerpApp
impl Deref for TerpApp
Source§type Target = App<BankKeeper, MockApi, MemoryStorage, TerpModule, WasmKeeper<TerpMsgWrapper, Empty>>
type Target = App<BankKeeper, MockApi, MemoryStorage, TerpModule, WasmKeeper<TerpMsgWrapper, Empty>>
The resulting type after dereferencing.
Source§impl Querier for TerpApp
impl Querier for TerpApp
Source§fn raw_query(&self, bin_request: &[u8]) -> QuerierResult
fn raw_query(&self, bin_request: &[u8]) -> QuerierResult
raw_query is all that must be implemented for the Querier.
This allows us to pass through binary queries from one level to another without
knowing the custom format, or we can decode it, with the knowledge of the allowed
types. People using the querier probably want one of the simpler auto-generated
helper methods
Auto Trait Implementations§
impl Freeze for TerpApp
impl !RefUnwindSafe for TerpApp
impl !Send for TerpApp
impl !Sync for TerpApp
impl Unpin for TerpApp
impl !UnwindSafe for TerpApp
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more