utils/utils library

Functions

calculateDefaultFee({required int msgsNumber, required int fee, required String denom, required int gas}) → StdFee
Calculates the default fees from the messages number msgsNumber contained in the transaction and the default values fee, denom and gas.
checkStringBytesLen(String str, int len) → bool
Returns true if the bytes length of a string str is less than a certain value len.
getTimeStamp() → String
Returns the ISO-8601 current time stamp
matchBech32Format(String? str) → bool
Returns true if the provided str is a valid bech32 string (no checksum check is done). See: https://en.bitcoin.it/wiki/Bech32
matchUuidv4(String uuid) → bool
Return true if the string uuid has a Uuid v4 format.