Module mars_utils::helpers

source ·

Functions

Used when unwrapping an optional address sent in a contract call by a user. Validates addreess if present, otherwise uses a given default value.
follows cosmos SDK validation logic where denoms can be 3 - 128 characters long and starts with a letter, followed but either a letter, number, or separator ( ‘/’ , ‘:’ , ‘.’ , ‘_’ , or ‘-’) reference: https://github.com/cosmos/cosmos-sdk/blob/7728516abfab950dc7a9120caad4870f1f962df5/types/coin.go#L865-L867