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 valuesfee
,denom
andgas
. -
checkStringBytesLen(
String str, int len) → bool -
Returns
true
if the bytes length of a stringstr
is less than a certain valuelen
. -
getTimeStamp(
) → String - Returns the ISO-8601 current time stamp
-
matchBech32Format(
String? str) → bool -
Returns
true
if the providedstr
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 stringuuid
has a Uuid v4 format.