Struct abstract_testing::prelude::CwMockApi
source · pub struct CwMockApi { /* private fields */ }
Trait Implementations§
source§impl Api for MockApi
impl Api for MockApi
source§fn addr_validate(&self, input: &str) -> Result<Addr, StdError>
fn addr_validate(&self, input: &str) -> Result<Addr, StdError>
Takes a human readable address and validates if it is valid.
If it the validation succeeds, a
Addr
containing the same data as the input is returned. Read moresource§fn addr_canonicalize(&self, input: &str) -> Result<CanonicalAddr, StdError>
fn addr_canonicalize(&self, input: &str) -> Result<CanonicalAddr, StdError>
Takes a human readable address and returns a canonical binary representation of it.
This can be used when a compact representation is needed. Read more
source§fn addr_humanize(&self, canonical: &CanonicalAddr) -> Result<Addr, StdError>
fn addr_humanize(&self, canonical: &CanonicalAddr) -> Result<Addr, StdError>
Takes a canonical address and returns a human readble address.
This is the inverse of
addr_canonicalize
.