package
15.1.0+incompatible
Repository: https://github.com/comdex-official/comdex.git
Documentation: pkg.go.dev
# Functions
This function lets you run the function f.
DateRangeIncludes returns true if the target date included on the start, end time range.
DateRangesOverlap returns true if two date ranges overlap each other.
DecApproxEqual returns true if a and b are approximately equal, which means the diff ratio is equal or less than 0.1%.
DecApproxSqrt returns an approximate estimation of x's square root.
GenAndDeliverTx generates a transactions and delivers it.
GenAndDeliverTxWithFees generates a transaction with given fee and delivers it.
GetShareValue multiplies with truncation by receiving int amount and decimal ratio and returns int result.
IsOverflow returns true if the panic value can be interpreted as an overflow.
LengthPrefixString returns length-prefixed bytes representation of a string.
ParseCoin parses and returns sdk.Coin.
ParseCoins parses and returns sdk.Coins.
ParseDec is a shortcut for sdk.MustNewDecFromStr.
ParseDecCoin parses and returns sdk.DecCoin.
ParseDecCoins parses and returns sdk.DecCoins.
ParseDecP is like ParseDec, but it returns a pointer to sdk.Dec.
ParseTime parses and returns time.Time in time.RFC3339 format.
No description provided by the author
PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed.
RandomDec returns a random decimal in the half-open interval [min, max).
RandomInt returns a random integer in the half-open interval [min, max).
SafeMath runs f in safe mode, which means that any panics occurred inside f gets caught by recover() and if the panic was an overflow, onOverflow is run.
ShuffleSimAccounts returns randomly shuffled simulation accounts.
TestAddress returns an address for testing purpose.
# Type aliases
No description provided by the author