cosmwasm_std::CanonicalAddr conversion for types that contain addresses.
The trait that represents any type which contains a
cosmwasm_std::Addrand needs to be stored since
cosmwasm_std::Addris usually converted to
cosmwasm_std::CanonicalAddrfirst. The trait must be implemented on the non-canonical version of the type and the output of
Canonize::canonizemust return the canonical version of the same type which is represented by its sister trait
Humanize. This relationship is enforced on the type level since
Humanizeand vice versa.
Attempting to canonicalize an empty address will fail. This function skips calling
cosmwasm_std::Api::addr_canonicalizeif the input is empty and returns
Attempting to humanize an empty address will fail. This function skips calling
cosmwasm_std::Api::addr_humanizeif the input is empty and returns
Validates a collection of strings that are expected to be valid addresses.