Fields
code_ids: HashMap<String, u64>addresses: HashMap<String, Addr>Implementations
Trait Implementations
sourceimpl StateInterface for MockState
impl StateInterface for MockState
sourcefn get_code_id(&self, contract_id: &str) -> Result<u64, BootError>
fn get_code_id(&self, contract_id: &str) -> Result<u64, BootError>
Get the locally-saved version of the contract’s version on this network
sourcefn set_code_id(&mut self, contract_id: &str, code_id: u64)
fn set_code_id(&mut self, contract_id: &str, code_id: u64)
Set the locally-saved version of the contract’s latest version on this network
fn get_address(&self, contract_id: &str) -> Result<Addr, BootError>
fn set_address(&mut self, contract_id: &str, address: &Addr)
fn get_all_addresses(&self) -> Result<HashMap<String, Addr>, BootError>
fn get_all_code_ids(&self) -> Result<HashMap<String, u64>, BootError>
Auto Trait Implementations
impl RefUnwindSafe for MockState
impl Send for MockState
impl Sync for MockState
impl Unpin for MockState
impl UnwindSafe for MockState
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request