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
msgsNumbercontained in the transaction and the default valuesfee,denomandgas. -
checkStringBytesLen(
String str, int len) → bool -
Returns
trueif the bytes length of a stringstris less than a certain valuelen. -
getTimeStamp(
) → String - Returns the ISO-8601 current time stamp
-
matchBech32Format(
String? str) → bool -
Returns
trueif the providedstris a valid bech32 string (no checksum check is done). See: https://en.bitcoin.it/wiki/Bech32 -
matchUuidv4(
String uuid) → bool -
Return
trueif the stringuuidhas a Uuid v4 format.