Struct cosmwasm_std::testing::MockApi
source · pub struct MockApi { /* private fields */ }
Trait Implementations§
source§impl Api for MockApi
impl Api for MockApi
source§fn addr_validate(&self, input: &str) -> StdResult<Addr>
fn addr_validate(&self, input: &str) -> StdResult<Addr>
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) -> StdResult<CanonicalAddr>
fn addr_canonicalize(&self, input: &str) -> StdResult<CanonicalAddr>
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) -> StdResult<Addr>
fn addr_humanize(&self, canonical: &CanonicalAddr) -> StdResult<Addr>
Takes a canonical address and returns a human readble address.
This is the inverse of
addr_canonicalize
.